* config/h8300/h8300-protos.h: Add a prototype for
[official-gcc.git] / gcc / ChangeLog
blobfed41ea17df735346e4a33b58a7a0f615772dab6
1 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
3         * config/h8300/h8300-protos.h: Add a prototype for
4         h8300_shift_needs_scratch_p.
5         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
6         * config/h8300/h8300.h (OK_FOR_R): New.
7         (OK_FOR_S): Likewise.
8         (OK_FOR_T): Likewise.
9         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
10         * config/h8300/h8300.md (anonymous shift patterns): Use
11         constraints R, S, and T.
13 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15         * basic-block.h (struct basic_block_def): New field loop_father.
16         (BB_VISITED): New flag.
17         (struct loop): New field pred, removed field shared.
18         (struct loops): New field parray.
19         (LOOP_EXITS_DOMS): Removed.
20         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
21         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
22         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
23         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
24         verify_loop_structure): Declare.
25         * cfg.c (entry_exit_blocks): Initialize loop_father field.
26         * cfganal.c (dfs_enumerate_from): New function.
27         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
28         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
29         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
30         flow_loop_dump, flow_loops_dump, flow_loops_free,
31         flow_loop_tree_node_add, flow_loop_level_compute,
32         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
33         flow_loop_outside_edge_p): Modified for new infrastructure.
34         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
35         redirect_edge_with_latch_update, flow_loop_free): New static functions.
36         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
37         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
38         find_common_loop, verify_loop_structure, loop_latch_edge,
39         loop_preheader_edge): New functions.
40         (flow_loops_cfg_dump): Do not show dominators, as this information
41         does not remain up to date long.
42         (flow_loops_find): Store results in new format.
43         * predict.c (propagate_freq, estimate_probability,
44         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
45         infrastructure.
47 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
48         
49         * except.c (nothrow_function_p): Walk epilogue delay list
50         checking the insn, not the chain for potential throws.
51         
52 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
54         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
55         (install): Refer to install-cpp directly.
56         (uninstall-cpp): Folded into uninstall rule.
57         * configure.in: Delete all code relating to --disable-cpp.
58         * configure: Regenerate.
59         * config/t-install-cpp: Delete.
61 2002-05-31  Richard Henderson  <rth@redhat.com>
63         * configure.in (HAVE_AS_TLS): Add alpha tests.
64         * configure: Rebuild.
65         * config/alpha/alpha.c (TARGET_AS_TLS): New.
66         (alpha_tls_size, alpha_tls_size_string): New.
67         (overide_options): Set it.  Always install machine_status hooks.
68         (input_operand): Accept got tls predicates.
69         (local_symbol_p): Merge into ...
70         (local_symbolic_operand): ... here.  Reject tls symbols.
71         (global_symbolic_operand): Likewise.
72         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
73         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
74         (tp16_symbolic_operand, tp32_symbolic_operand): New.
75         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
76         (alpha_encode_section_info): Handle TLS symbols.
77         (alpha_strip_name_encoding): Likewise.
78         (alpha_legitimate_address_p): Likewise.
79         (alpha_legitimize_address): Likewise.
80         (alpha_expand_mov): Early exit to avoid nop moves.
81         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
82         (alpha_init_machine_status, alpha_mark_machine_status,
83         alpha_free_machine_status): Always define.
84         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
85         (print_operand, print_operand_address): Add TLS relocs.
86         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
87         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
88         (TARGET_SWITCHES): Add -mtls-kernel.
89         (alpha_tls_size, alpha_tls_size_string): New.
90         (TARGET_OPTIONS): Add -mtls-size=.
91         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
92         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
93         (ASM_OUTPUT_LABELREF): Skip %.
94         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
95         (PREDICATE_CODES): Update.
96         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
97         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
98         UNSPEC_TP, UNSPECV_SET_TP): New.
99         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
100         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
101         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
102         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
103         (call_value_osf_2_er): Accept anything as op4.
104         * config/alpha/alpha-protos.h: Update.
105         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
107 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
109         * cppinit.c (append_include_chain): Always pay attention to
110         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
111         marker on argument.
113 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
115         * target.h: Fix formatting.
116         * timevar.h: Likewise.
117         * tlink.c: Likewise.
118         * toplev.c: Likewise.
119         * toplev.h: Likewise.
120         * tree.c: Likewise.
121         * tree-dump.h: Likewise.
122         * tree.h: Likewise.
123         * tree-inline.h: Likewise.
124         * unroll.c: Likewise.
125         * unwind-dw2.c: Likewise.
126         * unwind-dw2-fde.c: Likewise.
127         * unwind-dw2-fde-glibc.c: Likewise.
128         * unwind-dw2-fde.h: Likewise.
129         * unwind.h: Likewise.
130         * unwind-sjlj.c: Likewise.
131         * varasm.c: Likewise.
132         * varray.h: Likewise.
133         * vmsdbg.h: Likewise.
134         * vmsdbgout.c: Likewise.
135         * xcoffout.h: Likewise.
137 2002-05-31  Igor Shevlyakov <igor@microunity.com>
139         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
140         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
142 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
144         * gcc.c (cpp_unique_options): Remove "-d" options.
145         (cpp_debug_options): New spec string.
146         (default_compilers): Use it.
147         * objc/lang-specs.h: Likewise.
149 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
151         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
152         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
153         * gcc/mklibgcc.in: Likewise.
154         * gcc/config/arc/t-arc: Likewise.
155         * gcc/configure.in: Likewise.
156         * gcc/configure: Regenerate.
158 2002-05-31  Stan Shebs  <shebs@apple.com>
159             Turly O'Connor  <turly@apple.com>
161         * c-decl.c (struct binding_level): Change int field n_incomplete
162         to tree list incomplete_list.
163         (clear_binding_level): Init field with NULL.
164         (pushdecl): Add incomplete type to list.
165         (mark_binding_level): Mark the incomplete list.
166         (finish_struct): Scan the incomplete list for types instead
167         of all decls in the current binding level.
169 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
171         * pa.c (output_millicode_call): Add missing '%' characters.
172         (output_call): Likewise.
174 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
176         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
177         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
179 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
180         
181         * varasm.c (mark_constant_pool): Walk epilogue delay list
182         checking the insn, not the chain for potential constants.
184 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
186         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
188 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
190         * i386.c (classify_argument): Properly handle base types.
192         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
193         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
194         registers.
196 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
198         * gcse.c (gcse_emit_move_after): New.
199         (pre_delete, hoist_store): Use it.
201         * reload1.c (emit_input_reload_insns): Use constrain_operands
202         instead of constraint_accepts_reg_p to verify optimization.
203         (constraint_accepts_reg_p): Kill
205         * reload1.c (reload_cse_delete_noop_set): Kill.
206         (reload_cse_simplify): use delte_insn_and_edges.
208 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
210         * cfgloop.c (flow_loops_find): Initialize first and last fields
211         correctly.
213 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
215         * c-common.c (builtin_define_std): Correct logic.
217 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
219         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
220         (output_call): Likewise.
222 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
224         * pa.c: Move output.h include after tree.h include.
225         (pa_asm_output_mi_thunk): Constify identifier lab.
227 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
229         * config/ns32k/ns32k.h: Define named constants for the
230         bits in target_flags and use them.
231         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
233 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
235         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
236         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
237         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
238         default scheduling model.
239         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
240         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
241         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
242         * doc/install.texi (hppa*-*-*): Document default scheduling.
244 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
246         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
248 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
250         * config.gcc (ns32k-*-netbsd*): Set tm_file to
251         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
252         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
253         netbsd.h, or netbsd-aout.h.
255 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
257         * longlong.h (count_trailing_zeros): Add missing \, and clean up
258         whitespace in __ns32000__ case.
260 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
262         * expr.c (expand_expr): Output partially zeroed out vectors with
263         output_constant_def.
265 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
267         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
268         (sh-*-netbsdelf*)
269         (shl*-*-netbsdelf*): New targets.
270         * config/sh/netbsd-elf.h: New file.
272 2002-05-30  Richard Henderson  <rth@redhat.com>
273             Eric Botcazou  <ebotcazou@multimania.com>
275         PR optimization/6822
276         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
277         to unsigned int for op1 comparisons.  Use gen_int_mode.
279 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
281         * expmed.c (const_mult_add_overflow_p): New.
282         * expr.h: Declare it.
283         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
284         Don't eliminate the biv if the giv has a constant multiplier and
285         the rhs argument of the comparison does satisfy the predicate.
286         Use expand_mult_add to compute the replacement constant.
288 2002-05-30  Osku Salerma  <osku@iki.fi>
290         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
291         (c_common_get_alias_set): Handle it.
292         * doc/extend.texi: Document it.
294 2002-05-30  Richard Henderson  <rth@redhat.com>
296         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
297         * toplev.c (process_options): Don't check it.
298         * doc/tm.texi: Don't document it.
299         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
300         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
301         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
302         frame pointer optimization if current_function_profile.
304 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
306         * langhooks.c: Fix formatting.
307         * langhooks.h: Likewise.
308         * lcm.c: Likewise.
309         * libgcc2.c: Likewise.
310         * lists.c: Likewise.
311         * local-alloc.c: Likewise.
312         * loop.c: Likewise.
313         * loop.h: Likewise.
315 2002-05-30  Marc Espie <espie@openbsd.org>
317         * config.gcc (sparc64-*-openbsd*): New.
318         * config/sparc/openbsd1-64.h: New.
319         * config/sparc/openbsd64.h: New.
321 2002-05-30  Jeff Law <law@redhat.com>
323         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
324         a dead insn with a REG_RETVAL note when the entire libcall is not
325         dead and remove the associated REG_LIBCALL note at the same time.
327 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
329         * lcm.c (output.h): #include.
330         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
331         as an ordinary block.
332         (optimize_mode_switching): Don't pretend that the exit block is
333         an ordinary block, or handle sucessors of entry block specially.
334         Instead, split edges from entry block and to exit block, and
335         put a computing definition on the thus gained post-entry-block,
336         and a need on the pre-exit-block.
338 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
340         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
341         * rtl.texi: Document 'B'
343 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
345         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
346         at run-time.
347         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
349 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
351         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
352         const0_rtx instead of NULL_RTX when in error.
353         (altivec_expand_abs_builtin): Same.
354         (rs6000_expand_binop_builtin): Same.
355         (altivec_expand_predicate_builtin): Same.
356         (altivec_expand_stv_builtin): Same.
357         (rs6000_expand_ternop_builtin): Same.
358         (altivec_expand_builtin): Same.
360 2002-05-29  David S. Miller  <davem@redhat.com>
362         * rtl.h (clear_emit_caches): Delete.
363         * integrate.c (output_inline_function): Don't call it.
364         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
365         (clear_emit_caches): Delete definition.
366         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
368 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
370         * config/mmix/mmix.c: Include real.h.
371         (mmix_constant_address_p): Remove redundant test before switch.
373 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
375         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
376         only if not already defined.
378 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
380         * config/h8300/h8300-protos.h: Remove prototypes for
381         ok_for_bclr and small_power_of_two.
382         * config/h8300/h8300.c (small_power_of_two): Remove.
383         (ok_for_blcr): Likewise.
384         (fix_bit_operand): Make WHAT deal with an integer instead of a
385         constraint character.
386         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
387         (CONST_OK_FOR_P): Likewise.
388         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
389         CONST_OK_FOR_P any more.
390         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
391         of fix_bit_operand.
392         (iorqi3): Likewise.
393         (xorqi3): Likewise.
395 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
397         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
398         (CPP_PREDEFINES): Make sure this is undefined.
399         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
400         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
401         or -U__MIPSEB__ before defining one or the other.  Instead,
402         use %(subtarget_endian_default) if neither -EB nor -EL are
403         specified.
404         (SUBTARGET_EXTRA_SPECS): Define.
405         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
406         %(netbsd_cpp_spec).
408 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
410         * doc/md.texi (Patterns): Note pattern condition pitfall
411         for unnamed insn.
413 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
415         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
416         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
417         ternary operations from here...
418         (rs6000_expand_builtin): ...to here.
419         New argument expandedp.
420         Change all instances of altivec_expand_binop_builtin to
421         rs6000_expand_binop_builtin.
422         (altivec_expand_unop_builtin): Rename to
423         rs6000_expand_unop_builtin.
424         (altivec_expand_binop_builtin): Rename to
425         rs6000_expand_binop_builtin.
426         (altivec_expand_ternop_builtin): Rename to
427         rs6000_expand_ternop_builtin.
429 2002-05-29  Richard Henderson  <rth@redhat.com>
431         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
432         (TARGET_BI_ARCH): Likewise.
433         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
434         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
435         (TARGET_64BIT_DEFAULT): Default to 0.
436         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
438 2002-05-29  Richard Henderson  <rth@redhat.com>
440         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
441         (get_pc_thunk_name): New.
442         (output_set_got): Use it.
443         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
444         into linkonce sections.
446 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
448         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
449         (CPP_PREDEFINES): Make sure this is undefined.
450         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
451         (CPP_SUBTARGET_SPEC): Don't provide different versions for
452         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
453         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
454         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
455         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
456         (CPP_PREDEFINES): Make sure this is undefined.
457         (SUBTARGET_EXTRA_SPECS): Define.
458         (CPP_SPEC): Use %(netbsd_cpp_spec).
460 2002-05-29  Jeff Law <law@redhat.com>
462         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
464         * flow.c (propagate_one_insn): Do not remove a dead insn if it
465         contains a REG_RETVAL note.
467         * haifa-sched (sched_analyze): Remove another useless clearing
468         of SCHED_GROUP_P I missed yesterday.
470         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
471         * pa.c (pa_asm_output_mi_thunk): New function.
472         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
474 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
475             Marek Michalkiewicz  <marekm@amelek.gda.pl>
477         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
478         (avr_asm_only_p): Make non-static.
479         (enum avr_arch): Remove.
480         (avr_arch_types): New.
481         (avr_mcu_types): Update.
482         (avr_override_options): Use avr_arch_types table instead of switch.
483         * avr.h (CPP_PREDEFINES): Die.
484         (avr_base_arch_macro, avr_extra_arch_macro): New.
485         (TARGET_CPU_CPP_BUILTINS): New.
486         (CPP_SPEC, EXTRA_SPECS): Simplify.
487         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
488         CPP_AVR5_SPEC): Die.
490 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
492         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
493         NETBSD_OS_CPP_BUILTINS_AOUT.
494         (SUBTARGET_EXTRA_SPECS): Define.
495         (CPP_SPEC): Use %(netbsd_cpp_spec).
497 2002-05-29  Richard Henderson  <rth@redhat.com>
499         * config/i386/i386.c (ix86_output_function_epilogue): New.
500         (TARGET_ASM_FUNCTION_EPILOGUE): New.
501         (pic_label_name): Remove.
502         (pic_labels_used): New.
503         (ix86_asm_file_end): Emit one pc load stub for each register used.
504         (output_set_got): Generate deep pc load to any register.
505         (ix86_select_alt_pic_regnum): New.
506         (ix86_save_reg): Don't save pic register if we can find a valid
507         call-clobbered replacement.
508         (ix86_expand_prologue): If we found a valid replacement, renumber
509         pic_offset_table_rtx.
510         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
511         pic_offset_table_rtx after reload.
512         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
513         * config/i386/i386.md (set_got): Make insn, not expander.
514         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
516 2002-05-29  Richard Henderson  <rth@redhat.com>
518         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
519         alignment for alloca.
521 2002-05-29  Richard Henderson  <rth@redhat.com>
523         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
524         (print_operand_address): Only add rip for symbolic addresses
525         for which we do not have another relocation type.
527 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
529         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
530         (EXTRA_SPECS): Add netbsd_cpp_spec.
531         (CPP_SPEC): Use %(netbsd_cpp_spec).
532         (CPP_PREDEFINES): Remove.
533         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
534         (EXTRA_SPECS): Define.
535         (CPP_SPEC): Use %(netbsd_cpp_spec).
536         (CPP_PREDEFINES): Remove.
538 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
540         PR preprocessor/6844
541         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
542         NUL.
544 2002-05-29  Eric Christopher  <echristo@redhat.com>
546         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
547         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
549 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
551         * config/fr30/fr30.md: Remove previous restriction on splits.
552         Enforce conformance through gen_lowpart and cont_int_operand.
553         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
554         as the assembler does not support ".bss".
556 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
558         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
559         (CPP_PREDEFINES): Remove.
560         (SUBTARGET_EXTRA_SPECS): Define.
561         (CPP_SPEC): Use %(netbsd_cpp_spec).
562         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
563         (CPP_PREDEFINES): Remove.
564         (SUBTARGET_EXTRA_SPECS): Define.
565         (CPP_SPEC): Use %(netbsd_cpp_spec).
566         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
567         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
568         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
569         Add netbsd_cpp_spec.
570         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
572 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
573             Zack Weinberg <zack@codesourcery.com>
575         * cppexp.c (cpp_num): Move to cpplib.h.
576         (CPP_ERROR): Remove.
577         (interpret_float_suffix, interpret_int_suffix): New.
578         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
579         (cpp_classify_number, cpp_interpret_integer): New.
580         (interpret_number): Remove.
581         (eval_token): Update to use new routines.
582         * cpphash.h (cpp_num_part): Move to cpplib.h.
583         * cppinit.c (cpp_post_options): Set warn_long_long.
584         * cpplib.h (struct cpp_options): Add warn_long_long.
585         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
586         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
587         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
588         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
589         cpp_interpret_integer): New.
591 2002-05-29  Joel Sherrill <joel@OARcorp.com>
593         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
595 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
597         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
598         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
599         (CPP_SUBTARGET_SPEC): Define.
600         (SUBTARGET_EXTRA_SPECS): Define.
601         (CPP_SPEC): Remove.
603 2002-05-29  Chris Lattner  <sabre@nondot.org>
605         * ssa.c (rename_insn_1): Rename uses of undefined registers to
606         prevent confusion if/when the register is defined.
608 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
610         PR target/6838
611         * config/cris/cris.md: Fix typos and thinkos in comments.
612         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
613         second alternative.
614         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
615         ("*mov_sideqi_mem"): Similar, but for operand 3.
616         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
617         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
618         Remove spurious mode specifier on operand 2.
620 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
622         * config/h8300/h8300-protos.h: Remove the prototype for
623         o_operand.
624         Add prototypes for single_one_operand and single_zero_operand.
625         * config/h8300/h8300.c (o_operand): Remove.
626         (single_one_operand): New.
627         (single_zero_operand): Likewise.
628         (print_operand): For 'V' operand, and the operand with 0xff.
629         For 'V' and 'W' operands, do not and the bit position with 7.
630         * config/h8300/h8300.md (various anonymous patterns): Replace
631         use of exact_log2 with single_one_operand/single_zero_operand.
633 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
635         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
637 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
639         * config/s390/s390.c (legitimate_pic_operand_p): Do not
640         accept symbolic LARL operands.
641         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
642         epilogue insns.
644 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
646         * config/s390/s390.md (cmpstr_64/31): Mark whole
647         input registers as used.
649 2002-05-28  Richard Henderson  <rth@redhat.com>
651         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
652         not current_function_uses_pic_offset_table and
653         current_function_uses_const_pool; examine current_function_profile.
654         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
655         input to blockage if needed.
656         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
657         (legitimize_pic_address): Likewise.  Set regs_ever_live for
658         pic_offset_table_rtx when invoked during reload.
659         * config/i386/i386.h (FINALIZE_PIC): Remove.
660         * config/i386/i386.md (tablejump): Reformat.  Do not set
661         current_function_uses_pic_offset_table.
662         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
663         (blockage): Accept anything as operand 0.
665 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
667         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
668         common CPP built-ins for all NetBSD a.out targets.
669         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
670         common CPP built-ins for all NetBSD ELF targets.
671         * config/netbsd.h: Add missing notice.
672         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
673         for all NetBSD targets.
674         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
675         for all NetBSD targets using an LP64 code model.
676         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
677         NetBSD targets.
679 2002-05-28  Richard Henderson  <rth@redhat.com>
681         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
682         update if UPDATE_LIFE_LOCAL.
684 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
686         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
688 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
689                           Jason R. Thorpe <thorpej@wasabisystems.com>
691         config/sh reorganization to factor out endianness and coff:
693         * config/sh/little.h: New file.
694         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
695         defined, define to 0 to select big-endian.
696         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
697         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
698         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
699         * config/sh/t-be: New file.
700         * config/sh/t-le: New file.
702         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
703         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
704         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
705         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
706         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
707         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
708         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
709         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
710         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
711         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
712         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
713         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
714         (LINK_SPEC): Define to SH_LINK_SPEC.
715         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
716         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
717         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
718         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
719         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
720         * config/sh/coff.h: New file.
721         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
722         (TARGET_OBJFMT_CPP_BUILTINS): Define.
723         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
724         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
725         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
726         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
727         (PTRDIFF_TYPE): Likewise.
728         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
729         (CPP_PREDEFINES): Don't define.
730         (TARGET_OBJFMT_CPP_BUILTINS): Define.
731         (LINK_SPEC): Define to SH_LINK_SPEC.
732         (LINK_EMUL_PREFIX): Redefine.
733         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
734         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
735         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
736         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
737         (TARGET_OS_CPP_BUILTINS): Define.
738         (TARGET_DEFAULT): Redefine.
739         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
740         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
741         (LINK_SPEC): Don't redefine.
742         (LINK_DEFAULT_CPU_EMUL): Redefine.
743         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
744         * sh.c (sh_asm_named_section): Don't declare / define.
745         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
746         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
747         (sh64-*-elf* tm_file): Likewise.
748         (sh-*-rtemself* tm_file): Likewise.
749         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
750         (sh-*-linux* tmake_file): Add sh/t-le.
751         (sh-*-rtems* tm_file): Add sh/coff.h
752         (sh-*-* tm_file): Likewise.
754 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
756         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
757         CONSTANT_POOL_ADDRESS_P.
759         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
761 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
762             Jeff Law <law@redhat.com>
764         * optabs.c (expand_binop): Fix nwords sign warnings.
765         generate pseudo for add_optab.
767         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
768         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
770 2002-05-28      Marc Espie <espie@openbsd.org>
772         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
773         inherited from gas.h.
774         (ASM_QUAD):  Undef.  OpenBSD does not support it.
776 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
778         * doc/install.texi (binaries): Change mingw binaries
779         link to www.mingw.org.
781 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
783         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
785 2002-05-28  Richard Henderson  <rth@redhat.com>
787         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
788         bottom alignment for leaf functions.
790 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
792         * config/pa/milli32.S, config/pa/lib1funcs.asm,
793         config/sparc/sol2-g1.asm: Delete unused files.
795 2002-05-28  Richard Henderson  <rth@redhat.com>
797         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
799         * flow.c (calculate_global_regs_live): Rename call_used to
800         invalidated_by_call.  Initialize from regs_invalidated_by_call
801         instead of call_used_regs.
803         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
804         DECL_EXTERNAL.
806 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
808         * tree.h: Don't include real.h.
809         Forward-declare struct realvaluetype.
810         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
811         contain it.
812         (TREE_REAL_CST_PTR): New accessor.
813         (TREE_REAL_CST): Update.
814         * real.h: Include machmode.h.
815         (realvaluetype): Make it struct realvaluetype, not a typedef.
816         (build_real): Prototype here.
818         * tree.c: Include real.h.
819         (build_real): Allocate the REAL_VALUE_TYPE as a separate
820         object in GC memory, set TREE_REAL_CST_PTR to point to it.
821         (build_real_from_int_cst): Use build_real.
822         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
823         REAL_CST.
825         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
826         fold-const.c, print-tree.c, real.c: Include real.h.
827         * Makefile.in: Update dependency lists.
829 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
831         * basic-block.h (last_basic_block): Declare.
832         (expunge_block_nocompact): Declaration removed.
833         (compact_blocks): Declare.
834         * cfg.c (last_basic_block): New variable.
835         (expunge_block_nocompact): Removed.
836         (expunge_block): Do not compact basic blocks.
837         (compact_blocks): New.
838         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
839         longer change.
840         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
841         last_basic_block.
842         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
843         real positions of blocks.
844         (delete_unreachable_blocks): Simplified -- quadratic behavior now
845         cannot occur.
846         (cleanup_cfg): Compact blocks.
847         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
848         basic_block_info varray.
849         (flow_delete_block): Comment update.
850         (back_edge_of_syntactic_loop_p): Modify position check code.
851         (verify_flow_info): Update checking.
852         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
853         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
854         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
855         indices no longer change.
856         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
857         last_basic_block.
858         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
859         * profile.c (branch_prob): Compact blocks.
860         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
861         last_basic_block.
863 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
865         * config/h8300/h8300.md (two anonymous patterns): New.
867 2002-05-28  David S. Miller  <davem@redhat.com>
869         * config/sparc/sparc.md (cpu): Tidy.
870         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
871         'trap'.
872         (in_call_delay): Delete reference to 'return' type.
873         (eligible_for_return_delay, in_return_delay, define_delay
874         referencing those): Delete.
875         (rest of file): Use new type attributes as appropriate.
876         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
877         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
878         * config/sparc/ultra1_2.md (us1_single): New reservation.
879         (us1_ialuX): Likewise.
880         * config/sparc/ultra3.md (us3_single): Likewise.
881         (us3_ialuX): Likewise.
882         (us3_imul, us3_idiv): Tweak.
884 2002-05-28  Richard Henderson  <rth@redhat.com>
886         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
887         STRING_CST.
889 2002-05-28  Richard Henderson  <rth@redhat.com>
891         * config.gcc: Obsolete mn10200.
893 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
895         * cppexp.c (interpret_number): Optimize for single-digit
896         and less-than-half-precision cases.
897         (num_trim, num_positive, num_div_op): Cast constants.
899 2002-05-27  Bo Thorsen  <bo@suse.de>
901         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
902         3.1 branch. The file was made by Jakub Jelinek.
903         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
904         support so multilib doesn't break. And don't define this at all
905         when -Dinhibit_libc is used.
906         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
907         * config/i386/t-linux64: Implement full multilib support. Patch
908         originally done by Andreas Jaeger and Jakub Jelinek.
910 2002-05-27  Roger Sayle  <roger@eyesopen.com>
912         * c-common.c: Add support for __attribute__((nothrow)) to specify
913         that a function cannot throw an exception (using TREE_NOTHROW).
914         (handle_nothrow_attribute): New function to process this attribute.
916         * doc/extend.texi: Document the new nothrow function attribute.
918 2002-05-27  H.J. Lu  (hjl@gnu.org)
920         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
921         (num_positive): Likewise.
922         (num_div_op): Likewise.
924 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
926         * c-common.c (c_common_init): Always use intmax_t.
928 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
930         * c-common.c (c_common_init): Use intmax_t for now.
932 2002-05-24  Andrew Haley  <aph@redhat.com>
934         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
935         if T is a boolean type.
937 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
939         * basic-block.h (last_basic_block): Defined as synonym for
940         n_basic_blocks.
941         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
942         flow_depth_first_order_compute, flow_preorder_transversal_compute,
943         flow_dfs_compute_reverse_init): Replaced relevant occurences of
944         n_basic_blocks with last_basic_block.
945         * cfgbuild.c (make_edges): Likewise.
946         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
947         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
948         * combine.c (combine_instructions): Likewise.
949         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
950         iterative_dataflow_bitmap): Likewise.
951         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
952         calc_idoms, idoms_to_doms): Likewise.
953         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
954         Likewise.
955         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
956         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
957         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
958         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
959         delete_null_pointer_checks, compute_code_hoist_vbeinout,
960         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
961         compute_store_table, build_store_vectors): Likewise.
962         * haifa-sched.c (sched_init): Likewise.
963         * ifcvt.c (if_convert): Likewise.
964         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
965         pre_edge_lcm, compute_available, compute_nearerout,
966         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
967         Likewise.
968         * predict.c (estimate_probability, process_note_prediction,
969         note_prediction_to_br_prob): Likewise.
970         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
971         * recog.c (split_all_insns, peephole2_optimize): Likewise.
972         * regrename.c (copyprop_hardreg_forward): Likewise.
973         * resource.c (init_resource_info): Likewise.
974         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
975         init_regions, schedule_insns): Likewise.
976         * ssa-ccp.c (ssa_const_prop): Likewise.
977         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
978         * ssa.c (compute_dominance_frontiers,
979         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
981         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
982         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
983         sizes consistently.
985 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
987         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
988         new.
989         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
990         hoist_insn_after, hoist_insn_to_edge): New.
992 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
994         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
995         (PROP_FINAL): Include.
996         * flow.c (life_analysis, update_life_info,
997         init_propagate_block_info, mark_set_1, mark_used_rgs):
998         Support SCAN_DEAD_STORE.
1000 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1002         * c-common.c (c_common_init): Set CPP arithmetic precision.
1003         * cppexp.c (cpp_num_part): Move typedef ...
1004         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1005         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1006         (sanity_checks): Update.
1008 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
1010         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1011         (mkheaders): New rule.
1012         (install-mkheaders): New rule.
1013         * configure.in (all_outputs): Add mkheaders.
1014         * configure: Regenerate.
1015         * mkheaders.in: New file.
1017 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
1019         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1021 2002-05-26  Andreas Jaeger  <aj@suse.de>
1023         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1025 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1027         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1028         right_shift): Remove.
1029         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1030         HIGH_PART): New.
1031         (struct op): Use cpp_num.
1032         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1033         num_part_mul, num_unary_op, num_binary_op, num_negate,
1034         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1035         num_div_op, num_lshift, num_rshift, append_digit): New.
1036         (interpret_number, parse_defined, eval_token, reduce): Update
1037         for two-integer arithmetic.
1038         (binary_handler): New typedef.
1039         (optab): Update.
1040         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1041         (_cpp_parse_expr, reduce): Update to handle two-integers.
1042         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1044 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1046         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1047         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1048         branch insn into account, do not assume 1.
1049         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
1050         over single word insn.  Handle upper half of I/O space too.
1051         * config/avr/avr.md (*sbrx_branch): Use it.
1052         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1053         (*sbix_branch, *sbix_branch_bit7): Likewise.
1054         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1055         Use RTL peepholes to optimize register operand sign tests.
1057 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1059         * config/avr/avr.c (avr_asm_only_p): New variable.
1060         (avr_override_options): Set it here if AVR1.
1061         (asm_file_start): Test it here, report an error if set.
1063 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
1065         * alias.c: Fix formatting.
1066         * attribs.c: Likewise.
1067         * bb-reorder.c: Likewise.
1068         * bitmap.c: Likewise.
1069         * bitmap.h: Likewise.
1070         * builtins.c: Likewise.
1072 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
1074         * reload.c (find_valid_class): Accept new argument DEST,
1075         choose class accordingly.
1076         (push_reload): Update callers.
1078 2002-05-26  Andreas Jaeger  <aj@suse.de>
1080         * combine.c (combine_instructions): Do not indent #if for
1081         traditional C.
1083 2002-05-25  Richard Henderson  <rth@redhat.com>
1085         * c-pragma.c (apply_pragma_weak): Convert value identifier to
1086         string for decl_attributes.
1087         (handle_pragma_weak): Call assemble_alias if we're modifying
1088         an existing decl.
1090 2002-05-25  Richard Henderson  <rth@redhat.com>
1092         PR target/6788
1093         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1094         using rtl instead of fprintf.
1095         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1096         * config/sparc/sparc-protos.h: Update.
1098 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1100         * Makefile.in (C_COMMON_H): Fix.
1101         Update other targets.
1102         * c-common.c: Don't include c-lex.h.
1103         (builtin_define_with_value): Make static and prototype.
1104         (builtin_define_std): Move from c-lex.h.
1105         * c-common.h (init_c_lex): Move from c-lex.h.
1106         * c-decl.c: Don't include c-lex.h.
1107         (make_pointer_declarator): Move from c-parse.in.
1108         * c-lex.c: Don't include c-lex.h.
1109         * c-lex.h: Remove.
1110         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1111         (make_pointer_declarator): Move to c-decl.c.
1112         * c-pragma.c: Don't include c-lex.h.
1113         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1114         * c-tree.h (make_pointer_declarator): New.
1115 doc:
1116         * passes.texi, tm.texi: Update.
1117 objc:
1118         * Make-lang.in: Update and correct.
1119         * objc-act.c: Don't include c-lex.h or cpplib.h.
1120 treelang:
1121         * treetree.c: Don't include c-lex.h.
1122 config:
1123         * darwin-c.c: Don't include c-lex.h.
1124         * c4x/c4x-c.c: Don't include c-lex.h.
1125         * c4x/t-c4x: Update.
1126         * i370/i370-c.c: Don't include c-lex.h.
1127         * i370/t-i370: Update.
1128         * i960/i960-c.c: Don't include c-lex.h.
1129         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1130         * i960/t-960bare: Update.
1131         * i960/t-vxworks: Update.
1132         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1133         * rs6000/t-darwin: Update.
1134         * rs6000/t-rs6000-c-rule: Update.
1135         * v850/v850-c.c: Don't include c-lex.h.
1136         * v850/v850.c: Don't include c-lex.h or cpplib.h.
1139 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1141         * tree.def: Fix typos.
1142         * doc/install.texi: Likewise.
1144 2002-05-25  Richard Henderson  <rth@redhat.com>
1146         * configure.in (HAVE_AS_TLS): Add ia64 test.
1147         * configure: Rebuild.
1148         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1149         (override_options): Set it.
1150         (TARGET_HAVE_TLS): New.
1151         (sdata_symbolic_operand): Look for 's'.
1152         (tls_symbolic_operand): New.
1153         (ia64_expand_load_address): Abort for tls symbols.
1154         (gen_tls_get_addr): New.
1155         (gen_thread_pointer): New.
1156         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
1157         (rtx_needs_barrier): Add new unspecs.
1158         (ia64_encode_section_info): Handle tls symbols.
1159         (ia64_strip_name_encoding): Strip two encoding chars.
1160         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1161         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1162         (TARGET_OPTIONS): Add tls-size.
1163         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1164         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1165         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1166         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1167         (movsf, movdf): Likewise.
1168         (movdi_symbolic): Use match_scratch.  Don't split if we won't
1169         have a scratch availiable.
1170         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1171         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1172         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1173         * config/ia64/ia64-protos.h: Update.
1174         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1175         sdata_symbolic_operand.
1176         (ASM_OUTPUT_LABELREF): Strip two characters.
1178 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1180         * combine.c (simplify_set): Remove an unnecessary subreg.
1182 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1184         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1186         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1188 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1190         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
1192 2002-05-25  Roger Sayle  <roger@eyesopen.com>
1194         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1195         (cond (compare x y) 0) into the equivalent (cond x y).
1197 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1199         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
1201 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
1203         * config.gcc: Remove all stanzas for previously obsoleted
1204         systems.  Where necessary, add explicit error stanzas to
1205         prevent removed systems from being misidentified as something
1206         else.  Begin a fresh obsoletions list, with the systems that
1207         were reprieved last round.
1208         * doc/install.texi: Remove all mention of dead targets.
1209         * fixinc/mkfixinc.sh: Likewise.
1211         * config/arm/arm.h: Bit 31 of target_flags is no longer
1212         reserved.
1214         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1215         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1216         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1217         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1218         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1219         config/alpha/osf12.h, config/alpha/osf2or3.h,
1220         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1221         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1222         config/clipper/clipper-protos.h, config/clipper/clipper.c,
1223         config/clipper/clipper.h, config/clipper/clipper.md,
1224         config/clipper/clix.h, config/convex/convex-protos.h,
1225         config/convex/convex.c, config/convex/convex.h,
1226         config/convex/convex.md, config/convex/fixinc.convex,
1227         config/convex/proto.h, config/elxsi/elxsi-protos.h,
1228         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1229         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1230         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1231         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1232         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1233         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1234         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1235         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1236         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1237         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1238         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1239         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1240         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1241         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1242         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1243         config/m68k/altos3068.h, config/m68k/apollo68.h,
1244         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1245         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1246         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1247         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1248         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1249         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1250         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1251         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1252         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1253         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1254         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1255         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1256         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1257         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1258         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1259         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1260         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1261         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1262         config/mips/dec-osf1.h, config/mips/elflorion.h,
1263         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1264         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1265         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1266         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1267         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1268         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1269         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1270         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1271         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1272         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1273         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1274         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1275         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1276         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1277         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1278         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1279         Delete file.
1281 2002-05-24  Richard Henderson  <rth@redhat.com>
1283         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1284         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1285         * config/i386/i386.c (tls_model_chars): Add leading space.
1286         (tls_symbolic_operand): Don't bias by 1.
1287         (legitimize_address): Don't unbias by 1.
1289 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1291         * lcm.c (optimize_mode_switching): Change bb used as indices
1292         to bb->index.
1294 2002-05-24  Richard Henderson  <rth@redhat.com>
1296         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1297         of update_life_info_in_dirty_blocks.
1299 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1301         PR other/6782
1302         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1304 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1306         PR preprocessor/6780
1307         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1309 2002-05-24  Jim Blandy  <jimb@redhat.com>
1311         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1312         entry with a type code of zero, marking the end of the compilation
1313         unit's macro info.
1315 2002-05-24  Richard Henderson  <rth@redhat.com>
1317         * varasm.c (asm_output_bss): Always output one byte.
1318         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1320 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1322         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1323         namespace.
1325 2002-05-24  Andreas Jaeger  <aj@suse.de>
1327         * ggc-page.c (alloc_page): Cast variables of type size_t to
1328         unsigned long, adjust printf format string.
1329         (ggc_alloc): Likewise.
1330         (ggc_print_statistics): Likewise.
1331         (ggc_print_statistics): Correct printf format string for SCALE to
1332         use unsigned long.
1334 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1336         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1338 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1339             Zack Weinberg     <zack@codesourcery.com>
1341         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1342         quoted strings.
1343         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1344         directive in assembly file.
1345         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1346         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1347         * config/pj/pj.h (ASM_FILE_START): Likewise.
1348         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1349         * config/avr/avr.c (asm_file_end): Likewise.
1350         * toplev.c (output_quoted_string): Handle possibly signed plain
1351         char.
1352         * toplev.h (output_clean_symbol_name): Declare
1353         * toplev.c (output_clean_symbol_name): Define.
1354         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1355         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1357 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1359         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1361 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1363         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1364         of size of unsigned.
1366 2002-05-23  Richard Henderson  <rth@redhat.com>
1368         * configure.in (HAVE_AS_TLS): New test.
1369         * config.in, configure: Rebuild.
1370         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1371         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1372         (override_options): Set it.
1373         (tls_model_chars, tls_symbolic_operand): New.
1374         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1375         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1376         (local_exec_symbolic_operand): New.
1377         (get_pic_label_name): Merge into output_set_got.
1378         (ix86_asm_file_end): Emit pic_label_name if defined.
1379         (legitimate_constant_p, constant_address_p): New.
1380         (legitimate_pic_operand_p): New.
1381         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1382         (legitimate_address_p): Likewise.
1383         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1384         (ix86_strip_name_encoding): New.
1385         (get_thread_pointer): New.
1386         (legitimize_address): Handle tls symbols.
1387         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1388         Remove UNSPEC_PLT.
1389         (struct machine_function): Add some_ld_name.
1390         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1391         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1392         (output_addr_const_extra): New.
1393         (maybe_get_pool_constant): New.
1394         (ix86_split_to_parts): Use it.
1395         (ix86_expand_move): Handle tls symbols.
1396         (ix86_tls_get_addr): New.
1397         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1398         (TARGET_OPTIONS): Add tls-dialect.
1399         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1400         (LEGITIMATE_CONSTANT_P): Likewise.
1401         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1402         (TARGET_STRIP_NAME_ENCODING): New.
1403         (ASM_OUTPUT_LABELREF): New.
1404         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1405         (OUTPUT_ADDR_CONST_EXTRA): New.
1406         (PREDICATE_CODES): Update.
1407         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1408         * config/i386/i386.md: Regroup and renumber unspec constants.
1409         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1410         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1411         (tls_global_dynamic, tls_local_dynamic_base): New.
1412         (tls_local_dynamic_once): New.
1413         * config/i386/i386-protos.h: Update.
1415 2002-05-23  Richard Henderson  <rth@redhat.com>
1417         * genemit.c (gen_insn): Print file:lineno comment before function.
1418         (main): likewise.
1419         * gensupport.c (struct queue_elem): Add filename member.
1420         (queue_pattern): Initialize it; update all callers.
1421         (process_include): Don't free filename.
1422         (read_md_rtx): Set read_rtx_filename.
1424 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1426         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1428 2002-05-23  Richard Henderson  <rth@redhat.com>
1430         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1432 2002-05-23  Richard Henderson  <rth@redhat.com>
1434         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1435         commentary from Mark.
1437 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1439         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1440         Use FOR_EACH_BB macros to iterate over basic block chain.
1441         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1442         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1443         Likewise.
1444         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1445         find_unreachable_blocks, create_edge_list, verify_edge_list,
1446         remove_fake_edges, add_noreturn_fake_exit_edges,
1447         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1448         Likewise.
1449         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1450         find_sub_basic_blocks): Likewise.
1451         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1452         Likewise.
1453         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1454         Likewise.
1455         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1456         Likewise.
1457         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1458         commit_edge_insertions, commit_edge_insertions_watch_calls,
1459         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1460         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1461         * conflict.c (conflict_graph_compute): Likewise.
1462         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1463         df_modified_p, df_refs_unlink, df_dump): Likewise.
1464         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1465         * final.c (compute_alignments): Likewise.
1466         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1467         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1468         count_or_remove_death_notes): Likewise.
1469         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1470         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1471         classic_gcse, compute_transp, cprop, compute_pre_data,
1472         compute_transpout, invalidate_nonnull_info,
1473         delete_null_pointer_checks_1, delete_null_pointer_checks,
1474         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1475         compute_store_table, build_store_vectors, store_motion): Likewise.
1476         * global.c (global_conflicts, mark_elimination): Likewise.
1477         * graph.c (print_rtl_graph_with_bb): Likewise.
1478         * haifa-sched.c (sched_init): Likewise.
1479         * ifcvt.c (if_convert): Likewise.
1480         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1481         compute_available, compute_nearerout, compute_rev_insert_delete,
1482         optimize_mode_switching): Likewise.
1483         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1484         * predict.c (estimate_probability, note_prediction_to_br_prob,
1485         propagate_freq, counts_to_freqs, expensive_function_p,
1486         estimate_bb_frequencies): Likewise.
1487         * profile.c (instrument_edges, get_exec_counts,
1488         compute_branch_probabilities, compute_checksum, branch_prob,
1489         find_spanning_tree): Likewise.
1490         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1491         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1492         Likewise.
1493         * regclass.c (scan_one_insn, regclass): Likewise.
1494         * regmove.c (mark_flags_life_zones, regmove_optimize,
1495         record_stack_memrefs): Likewise.
1496         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1497         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1498         * resource.c (find_basic_block): Likewise.
1499         * sched-ebb.c (schedule_ebbs): Likewise.
1500         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1501         find_single_block_region, find_rgns, schedule_insns)
1502         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1503         * ssa-ccp.c (optimize_unexecutable_edges,
1504         ssa_ccp_df_delete_unreachable_insns): Likewise.
1505         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1506         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1507         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1508         compute_coalesced_reg_partition, rename_equivalent_regs,
1509         convert_from_ssa): Likewise.
1510         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1511         process_for_unwind_directive): Likewise.
1513         * df.c (FOR_ALL_BBS): Removed.
1514         * gcse.c (struct null_pointer_info): Type of current_block field
1515         changed.
1516         (struct reg_avail_info): Type of last_bb field changed.
1517         * config/ia64/ia64.c (block_num): Removed.
1518         (need_copy_state): Type changed.
1519         (last_block): New.
1521 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1523         * cppinit.c (mark_named_operators): Split out from init_builtins.
1524         (cpp_finish_options): Call it from here instead.
1526 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1528         * builtin-attrs.def: Update copyright years.
1529         (ATTR_NONNULL): New attribute identifier.
1530         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1531         attribute tree lists.
1532         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1533         format operand.
1534         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1535         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1536         attribute lists.  Chain the appropriate nonnull attribute.
1537         * c-format.c (check_format_arg): Remove null format string
1538         warning.
1539         * testsuite/gcc.dg/format/null-1.c: New test.
1541 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1543         * Makefile.in (ADAC): Define.
1544         (SYSLIBS): Define.
1545         (.SUFFIXES): Move before language makefile fragments.
1546         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1548 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1550         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1551         placed in common.
1553 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1555         * cfg.c (dump_flow_info): Print results of
1556         maybe_hot/probably_never_executed predicates.
1557         * toplev.c (open_dump_file): Print function frequency.
1559 2002-05-23  David S. Miller  <davem@redhat.com>
1561         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1562         regsets.
1564 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1566         * c-common.c (warn_nonnull): Declare.
1567         (c_common_attribute_table): Add "nonnull" attribute.
1568         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1569         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1570         check_function_arguments_recurse): New functions.
1571         * c-common.h (warn_nonnull): Declare extern.
1572         (check_function_arguments, check_function_arguments_recurse): New
1573         prototypes.
1574         * c-decl.c (c_decode_option): Add -Wnonnull option.
1575         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1576         format checking.
1577         (format_check_context): New structure.
1578         (check_format_info_recurse): Remove recursion and rename to...
1579         (check_format_arg): ...this.  Update comment.
1580         (check_format_info): Use check_function_arguments_recurse.
1581         * c-typeck.c (build_function_call): Call check_function_arguments
1582         instead of check_function_format.
1583         * doc/extend.texi: Document "nonnull" attribute.
1584         * doc/invoke.texi: Docuemnt -Wnonnull option.
1585         * testsuite/gcc.dg/nonnull-1.c: New test.
1586         * testsuite/gcc.dg/nonnull-2.c: New test.
1588 2002-05-23  David S. Miller  <davem@redhat.com>
1590         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1591         * cfgcleanup.c (cleanup_cfg): If it is set do not
1592         attempt to delete trivially dead insns.
1593         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1594         * toplev.c (rest_of_compilation): Document non-trivial aspect
1595         the RTL before optimize_save_area_alloca is run.
1597 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1599         * c-lex.c (indent_level): Remove.
1600         (cb_file_change, c_lex): Remove indent level handling.
1601         * c-lex.h (indent_level): Remove.
1602         * input.h (struct file_stack): Remove indent_level.
1603         * toplev.c (push_srcloc): Remove indent_level handling.
1605 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1607         PR target/6753
1608         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1609         of x in constraints for clarity.
1610         (sse_mov?fcc split): abort if op2 == op3.
1611         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1612         sse_movsfcc_const0_4): Add earlyclobber.
1613         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1614         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1615         Use Y instead of x in constraints.
1617 2002-05-23  Richard Henderson  <rth@redhat.com>
1619         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1620         (C++98 Thread-Local Edits): New subsection.
1622         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1623         (ix86_arch): Set type to enum processor_type.
1625         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1626         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1628 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1630         * configure.in: Fix as version test for binutils 2.12.1 releases
1631         (without dates).
1632         * configure: Rebuilt.
1634 2002-05-23  Richard Henderson  <rth@redhat.com>
1636         * config/i386/i386.c (get_pic_label_name): New.
1637         (load_pic_register): Remove.
1638         (output_set_got): New.
1639         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1640         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1641         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1642         (prologue_set_got, prologue_get_pc): Remove.
1643         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1644         (builtin_setjmp_receiver): Use gen_set_got.
1645         * config/i386/i386-protos.h: Update.
1647 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1649         * gcse.c (hash_expr): Do not use alias set for hashing.
1651 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1653         * dbxout.c (dbxout_class_name_qualifiers): New function.
1654         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1656 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1658         * cpperror.c (_cpp_begin_message): No special casing
1659         of CPP_FATAL_LIMIT.
1660         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1661         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1662         * cpplib.c (do_include_common): Use DL_ERROR.
1663         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1664         (DL_ICE): Renumber.
1665         * fix-header.c (read_scan_file): Update.
1667 2002-05-22  Richard Henderson  <rth@redhat.com>
1669         * config/i386/i386.c (ix86_expand_call): New function, extracted
1670         from md call patterns.  Add pic_offset_table_rtx to
1671         CALL_INSN_FUNCTION_USAGE when needed.
1672         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1673         (call_value_pop, call_value, untyped_call): Likewise.
1674         (call_exp, call_value_exp): Remove.
1675         * config/i386/i386-protos.h: Update.
1677 2002-05-22  Richard Henderson  <rth@redhat.com>
1679         * varasm.c (default_section_type_flags): Check for VAR_DECL
1680         before using DECL_THREAD_LOCAL.
1682 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1684         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1685         (STARTFILE_SPEC): Delete PE crt0.o.
1686         * config/rs6000/aix51.h: Same.
1687         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1688         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1689         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1690         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1691         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1693 2002-05-22  Richard Henderson  <rth@redhat.com>
1695         * varasm.c (default_section_type_flags): Handle tls data and
1696         default sections.
1697         (default_unique_section): Handle tls sections.
1699 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1701         * configure.in (CROSS): Define NATIVE_CROSS.
1702         * configure: Regenerate.
1703         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1704         (startfile_prefix_spec): New var.
1705         (static_specs): Add startfile_prefix_spec.
1706         (do_spec_2): Split out from..
1707         (do_spec): ..here.
1708         (main): Process startfile_prefix_spec.
1709         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1710         dynamic linker.
1711         (STARTFILE_PREFIX_SPEC): Define.
1712         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1713         absolute paths.
1715 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1717         * cpperror.c: Fix formatting.
1718         * cppexp.c: Likewise.
1719         * cppfiles.c: Likewise.
1720         * cpphash.c: Likewise.
1721         * cpphash.h: Likewise.
1722         * cppinit.c: Likewise.
1723         * cpplex.c: Likewise.
1724         * cpplib.c: Likewise.
1725         * cppmacro.c: Likewise.
1726         * cppmain.c: Likewise.
1727         * cppspec.c: Likewise.
1729 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1731         * combine.c (force_to_mode): Use gen_int_mode.
1732         Don't clear CONST_INT bits outside of mode.
1734 2002-05-22  Richard Henderson  <rth@redhat.com>
1736         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1737         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1739 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1741         PR c/6643
1742         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1743         if DECL_SIZE_UNIT is INTEGER_CST.
1745 2002-05-22  Richard Henderson  <rth@redhat.com>
1747         * flow.c (life_analysis): Delete broken reg_label check.
1749 2002-05-22  Richard Henderson  <rth@redhat.com>
1751         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1752         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1754 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1756         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1757         (embed-bb.c): New rule.
1758         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1759         * config/sh/embed_bb.c: Delete.
1761 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1763         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1765 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1767         * config/h8300/h8300.md (*andorqi3): New.
1769 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1771         PR preprocessor/6517
1772         * Makefile.in: Update.
1773         * c-common.c (c_common_post_options): Add preprocessor
1774         errors to the error count.
1775         * c-lang.c (c_post_options): Kill.
1776         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1777         * hooks.h: Add header guards.
1778         * langhooks-def.h: Include hooks.h.
1779         (LANG_HOOKS_POST_OPTIONS): Update.
1780         * langhooks.h (struct lang_hooks): Update post_options.
1781         * toplev.c (parse_options_and_default_flags): Update.
1782 objc:
1783         * objc-lang.c (objc_post_options): Kill.
1784         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1786 2002-05-21  Bruce Korb  <bkorb@gnu.org>
1788         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1789         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1790         * fixinc/fixincl.x: regen.
1792 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
1794         * cfgbuild.c: Fix formatting.
1795         * cfg.c: Likewise.
1796         * cfgcleanup.c: Likewise.
1797         * cfglayout.c: Likewise.
1798         * cfgloop.c: Likewise.
1799         * cfgrtl.c: Likewise.
1801 2002-05-21  Richard Henderson  <rth@redhat.com>
1803         * c-common.h (enum rid): Add RID_THREAD.
1804         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1805         (grokdeclarator): Grok __thread.
1806         * c-parse.in (reswords): Add __thread.
1807         (rid_to_yy): Add RID_THREAD.
1809         * tree.h (DECL_THREAD_LOCAL): New.
1810         (struct tree_decl): Add thread_local_flag.
1811         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1812         * tree.c (staticp): TLS variables are not static.
1814         * target-def.h (TARGET_HAVE_TLS): New.
1815         * target.h (have_tls): New.
1816         * output.h (SECTION_TLS): New.
1817         * varasm.c (assemble_variable): TLS variables can't be common for now.
1818         (default_section_type_flags): Handle .tdata and .tbss.
1819         (default_elf_asm_named_section): Handle SECTION_TLS.
1820         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1822         * flags.h (flag_tls_default): Declare.
1823         * toplev.c (flag_tls_default): Define.
1824         (display_help): Display help for it.
1825         (decode_f_option): Set it.
1827         * doc/extend.texi (Thread-Local): New node describing language-level
1828         thread-local storage.
1829         * doc/invoke.texi (-ftls-model): Document.
1831         * fixinc/inclhack.def (thread_keyword): New.
1832         * fixinc/fixincl.x: Rebuild.
1834 2002-05-21  Jeffrey A Law  <law@redhat.com>
1836         * optabs.c (expand_binop): For double-word integer multiplies,
1837         do not compute intermediate results into something that is
1838         not a register (such as a SUBREG or MEM).
1840         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1841         (ix86_sched_reorder): Make sure to initialize scheduling
1842         data even when there's only one insn in the ready queue.
1844 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1846         * genautomata.c (reserv_sets_hash_value): Fix a typo.
1848 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1850         * genautomata.c (reserv_sets_hash_value): Define hash_value as
1851         set_el_t.  Transform the hash value into unsigned.
1852         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1853         (transform_3): Add code to process `(A,B)+(D,E)'.
1855 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
1857         * reload1.c (do_output_reload): Run delete_output_reload
1858         only if optimizing.
1860 2002-05-21  Roger Sayle  <roger@eyesopen.com>
1862         PR middle-end/6600
1863         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1864         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
1865         (can_store_by_pieces): ... and here to limit the largest mode used.
1866         Add a comment to document this function.
1868 2002-05-21  Richard Henderson  <rth@redhat.com>
1870         * flow.c (life_analysis): Fix test for deleted label.
1872 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1874         * doc/tm.texi: Fix typo.
1876 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
1878         * c-common.c (c_common_init): Set options->unsigned_char from
1879         flag_signed_char.
1880         (cb_register_builtins): Define __STRICT_ANSI__ and
1881         __CHAR_UNSIGNED__ here...
1882         * cppinit.c (init_builtins): Not here.
1883         (cpp_create_reader): unsigned_char option defaults to 0, not
1884         !DEFAULT_SIGNED_CHAR.
1885         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1886         and -funsigned-char.
1888         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1889         * cpphash.c (_cpp_init_hashtable): Don't set it.
1890         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1891         directly.  Clarify comment.
1893 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1895         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1896         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
1897         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
1898         BASIC_BLOCK (n_basic_blocks - 1).
1899         * cfganal.c (can_fallthru, flow_call_edges_add,
1900         flow_preorder_transversal_compute): Too.
1901         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1902         find_sub_basic_blocks): Too.
1903         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1904         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1905         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1906         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1907         * combine.c (this_basic_block): Type changed to basic_block.
1908         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1909         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1910         get_last_value, distribute_notes, distribute_links): Too.
1911         * final.c (compute_alignments): Too.
1912         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1913         * function.c (thread_prologue_and_epilogue_insns): Too.
1914         * gcse.c (compute_code_hoist_vbeinout): Too.
1915         * global.c (build_insn_chain): Too.
1916         * ifcvt.c (find_if_block, find_cond_trap): Too.
1917         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1918         * regmove.c (regmove_optimize): Too.
1919         * resource.c (find_basic_block): Too.
1920         * sched-ebb.c (schedule_ebbs): Too.
1921         * ssa-dce.c (find_control_dependence, find_pdom): Too.
1923 2002-05-21  Andreas Jaeger  <aj@suse.de>
1925         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1927 2002-05-21  Richard Henderson  <rth@redhat.com>
1929         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1930         unspec names, not numbers.
1932 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
1934         * doc/sourcebuild.texi: Mention snapshot-README and
1935         snapshot-index.html as needing updating for new front ends.
1937 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1939         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1940         disabling checking, and avoid multiple evaluation of RTX.
1942 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
1944         * bitmap.c (bitmap_find_bit): Return early if we have the correct
1945         element cached.
1947 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
1949         * profile.c (gen_edge_profiler):  Set alias set before the memory is
1950         used.
1952 2002-05-20  David S. Miller  <davem@redhat.com>
1954         * cselib.c (max_value_regs): New.
1955         (cselib_lookup, cselib_invalidate_regno): Initialize it when
1956         adding new entries to the REG_VALUES table and we are dealing with
1957         a hard register.
1958         (clear_table): Initialize it.
1959         (cselib_invalidate_regno): Use it to determine which hard
1960         registers to scan when mode is not VOIDmode.
1962 2002-05-20  Duraid Madina   <duraid@fl.net.au>
1964         * tradcpp.c (fixup_newlines): Use old-style function header.
1966 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
1968         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1970 2002-05-20  H.J. Lu  (hjl@gnu.org)
1972         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1974         * config/mips/mips.h (DFMODE_NAN): Defined.
1975         (SFMODE_NAN): Likewise.
1977 2002-05-20  Dale Johannesen  <dalej@apple.com>
1979         * combine.c (cant_combine_insn_p):  Back out my
1980         previous patch.
1982 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
1984         * params.c: Fix formatting.
1985         * params.h: Likewise.
1986         * predict.c: Likewise.
1987         * prefix.c: Likewise.
1988         * print-rtl.c: Likewise.
1989         * print-tree.c: Likewise.
1990         * profile.c: Likewise.
1992 2002-05-20  H.J. Lu  (hjl@gnu.org)
1994         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1996 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
1998         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1999         switches straight on to the assembler, do not abbreviate them.
2000         * config/arm/elf.h (ASM_SPEC): As above.
2001         * config/arm/semi.h (ASM_SPEC): As above.
2002         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2003         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2004         -mcpu=xscale on to the assembler by default.
2005         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2007 2002-05-20  Richard Henderson  <rth@redhat.com>
2009         * cse.c (canon_hash): Reorder do_not_record test.  Always
2010         allow pic_offset_table_rtx.
2012 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
2014         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2015         (expand_binop): Ditto (3 times).
2017 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
2019         * Makefile.in (distclean): Remove QMTest stuff.
2020         (QMTEST_PATH): New variable.
2021         (QMTESTFLAGS): Likewise.
2022         (QMTESTRUNFLAGS): Likewise.
2023         (QMTEST): Likewise.
2024         (QMTEST_GPP_TESTS): Likewise.
2025         (QMTEST_DIR): Likewise.
2026         (QMTEST_DIR/context): New target.
2027         (qmtest-g++): Likeise.
2028         (qmtest-gui): Likewise.
2029         (QMTEST_DIR/gpp-expected.qmr): Likewise.
2031 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
2033         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2034         an altivec register if TARGET_ALTIVEC.
2036         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2037         to ALTIVEC_VECTOR_MODE.
2038         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2039         (rs6000_va_arg): Vectors may go in registers if they are not
2040         altivec vectors.
2042 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
2044         * protoize.c: Fix formatting.
2046 2002-05-19  Richard Henderson  <rth@redhat.com>
2048         * gensupport.c (init_include_reader): Merge into ...
2049         (process_include): ... here.  Simplify composite path creation.
2050         Plug memory leaks.  Fix file/line number tracking.  Do not
2051         process_define_cond_exec.  Return void.
2052         (process_rtx): Don't check process_include return value.
2054 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2056         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2057         fields.
2058         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2059         traversing basic block chain.
2060         (create_basic_block_structure, create_basic_block): Declaration changed.
2061         (link_block, unlink_block): Declare.
2062         * cfg.c (entry_exit_blocks): Initialize new fields.
2063         (link_block, unlink_block): New.
2064         (expunge_block_nocompact): Unlink basic block.
2065         (dump_flow_info): Print prev_bb/next_bb fields.
2066         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2067         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2068         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2069         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2070         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2071         (verify_flow_info): Check that list agrees with numbering.
2073 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2075         * c-common.c (preprocessing_asm): New macro.
2076         * c-lex.h (builtin_define, builtin_assert): Use pfile.
2077 doc:
2078         * tm.texi: Update.
2079 config/alpha:
2080         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2081         (CPP_SPEC): Simplify.
2082         (TARGET_CPU_CPP_BUILTINS): Update.
2083         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2084         (CPP_SPEC): Simplify.
2085         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2086         (TARGET_OS_CPP_BUILTINS): Update.
2087         * osf.h (CPP_XFLOAT_SPEC): Kill.
2088         (TARGET_OS_CPP_BUILTINS): Update.
2089         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2090         * osf5.h (CPP_XFLOAT_SPEC): Kill.
2091         * vms.h (CPP_SUBTARGET_SPEC): Kill.
2092         (TARGET_OS_CPP_BUILTINS): Update.
2094 2002-05-19  Richard Henderson  <rth@redhat.com>
2096         * varasm.c (default_binds_local_p): Fix typo.
2098 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2100         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2101         CONST_INT operand to the correct mode after adding 1 to it.
2103 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
2105         * config.gcc (powerpc-wrs-windiss*): New target.
2107 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2109         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2110         (ashrdi3): Use it.
2112 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
2114         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2115         alphasort.
2116         * config.in: Regenerated.
2117         * configure: Regenerated.
2119 2002-05-19  Richard Henderson  <rth@redhat.com>
2121         * target-def.h (TARGET_BINDS_LOCAL_P): New.
2122         * target.h (struct gcc_target): Move boolean fields to the end.
2123         Add binds_local_p.
2124         * varasm.c (default_binds_local_p): New.
2125         * output.h: Declare it.
2127         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2128         * config/cris/cris.c (cris_encode_section_info): Likewise.
2129         * config/i386/i386.c (i386_encode_section_info): Likewise.
2130         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2131         * config/sh/sh.c (sh_encode_section_info): Likewise.
2133         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2134         (TARGET_BINDS_LOCAL_P): New.
2136 2002-05-19  Richard Henderson  <rth@redhat.com>
2138         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2139         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2140         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2142         * toplev.c (display_help): Kill -a -ax help.
2144         * config/1750a/1750a.h, config/alpha/alpha.h,
2145         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2146         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2147         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2148         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2150         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2151         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2153         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2154         (ix86_output_function_block_profiler): Kill.
2155         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2156         (m68hc11_function_block_profiler): Kill.
2157         * config/m68hc11/m68hc11-protos.h: Update.
2158         * config/m88k/m88k.c (output_block_profiler): Kill.
2159         (output_function_block_profiler): Kill.
2160         * config/m88k/m88k-protos.h: Update.
2162 2002-05-19  Richard Henderson  <rth@redhat.com>
2164         * system.h (STRIP_NAME_ENCODING): Poison it.
2165         * output.h (STRIP_NAME_ENCODING): Remove.
2166         (default_strip_name_encoding): Declare.
2167         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2168         * target.h (strip_name_encoding): New.
2169         * varasm.c (default_strip_name_encoding): New.
2171         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2172         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2173         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2174         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2175         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2176         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2177         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2178         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2179         config/v850/v850.h: Use the hook, not the macro.
2181         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2182         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2183         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2184         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2185         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2186         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2187         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2188         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2189         config/v850/v850.c, config/v850/v850.h:
2190         Move STRIP_NAME_ENCODING to out-of-line function and add
2191         TARGET_STRIP_NAME_ENCODING.
2193         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2194         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2195         with TARGET_STRIP_NAME_ENCODING referencing existing function;
2196         make function static.
2198         * xcoffout.c: Include target.h
2199         * Makefile.in (xcoffout.o): Update.
2201         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2202         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2203         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2204         reloc argument unused.
2205         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2207         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2208         STRIP_NAME_ENCODING docs.
2210 2002-05-19  Andreas Jaeger  <aj@suse.de>
2212         * gengenrtl.c: Add prototype for excluded_rtx.
2214         * real.h: Add prototype for exact_real_truncate.
2216 2002-05-18  Richard Henderson  <rth@redhat.com>
2218         * system.h (ENCODE_SECTION_INFO): Poison it.
2219         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2220         * target.h (encode_section_info): New.
2221         * varasm.c (make_decl_rtl, output_constant_def): Use it.
2222         * hooks.c (hook_tree_int_void): New.
2223         * hooks.h: Declare it.
2225         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2226         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2227         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2228         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2229         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2230         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2231         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2232         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2233         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2234         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2235         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2236         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2237         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2238         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2239         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2240         referencing existing function.  Make function static.
2242         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2243         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2244         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2245         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2246         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2247         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2248         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2249         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2250         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2251         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2252         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2253         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2254         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2255         Move ENCODE_SECTION_INFO to out-of-line function and add
2256         TARGET_ENCODE_SECTION_INFO.
2258         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2259         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2261         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2262         from SUBTARGET_*
2263         (switch_to_section): Replace in_rdata case with in_readonly_data.
2265         * config/h8300/h8300.c (h8300_encode_label): Make static.
2266         * config/h8300/h8300-protos.h: Update.
2268         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2269         from rs6000_encode_section_info; make static.
2270         (rs6000_xcoff_encode_section_info): New.
2272         * config/v850/v850.c (v850_encode_data_area): Make static.
2273         * config/v850/v850-protos.h: Update.
2275         * config/vax/vax.c: Include flags.h.
2276         (vms_select_section): Fix typo.
2278         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2279         ENCODE_SECTION_INFO docs.
2281 2002-05-18  Richard Henderson  <rth@redhat.com>
2283         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2284         REGISTER_TARGET_PRAGMAS.
2285         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2287         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2289 2002-05-18  Richard Henderson  <rth@redhat.com>
2291         * system.h (SELECT_RTX_SECTION): Poison.
2292         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2293         * target.h (select_rtx_section): New.
2294         * varasm.c (output_constant_pool): Use it.
2295         (default_select_rtx_section, default_elf_select_rtx_section): New.
2296         * output.h: Declare them.
2298         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2299         * config/darwin.c (machopic_select_rtx_section): ... here.
2300         * config/darwin-protos.h: Update.
2302         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2303         * config/nextstep.c (machopic_select_rtx_section): ... here.
2304         (nextstep_select_section): Rename variable to avoid macro clash.
2305         * config/nextstep-protos.h: Update.
2307         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2308         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2309         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2310         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2311         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2312         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2313         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2314         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2315         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2316         (SELECT_RTX_SECTION): Remove.
2318         * config/darwin.h, config/elfos.h, config/nextstep.h,
2319         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2320         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2321         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2322         config/sparc/lynx.h, config/xtensa/xtensa.c
2323         (TARGET_ASM_SELECT_RTX_SECTION): New.
2325         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2326         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2327         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2328         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2329         (ia64_aix_select_rtx_section): New.
2330         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2331         redefining.
2332         * config/mips/mips.c (mips_select_rtx_section): Make static.
2333         Support ELF SHF_MERGE features.
2334         * config/mips/mips-protos.h: Update.
2335         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2336         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2337         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2338         make static, fall back to default_elf_select_rtx_section.
2339         * config/rs6000/rs6000-protos.h: Update.
2340         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2341         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2342         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2343         * config/romp/romp.c (romp_select_rtx_section): New.
2344         * config/s390/s390.c (s390_select_rtx_section): New.
2345         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2346         declarations before target macro definition.
2347         (xtensa_emit_call): Use static buffer.
2348         (xtensa_select_rtx_section): New.
2349         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2350         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2351         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2353         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2354         SELECT_RTX_SECTION docs.
2356 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2358         * i386.md (movsi/movdi): Fix template.
2359         (sse2 patterns): Set attributes consistently.
2361         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2363 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2365         * optabs.c (complex_part_zero_p): New.
2366         * (expand_cmplxdiv_straight): Use it.
2367         * (expand_cmplxdiv_wide): Ditto.
2368         * (expand_binop): Ditto.
2370 2002-05-18  Richard Henderson  <rth@redhat.com>
2372         * final.c (HAVE_READONLY_DATA_SECTION): New.
2373         (shorten_branches): Use it instead of ifdefs.
2374         * varasm.c (enum in_section): Add in_readonly_data.
2375         (text_section, data_section): Tidy.
2376         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2378         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2379         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2380         (READONLY_DATA_SECTION): Don't undef.
2382         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2383         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2384         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2386         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2387         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2388         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2389         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2391         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2392         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2393         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2394         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2395         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2396         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2397         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2398         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2399         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2401         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2402         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2403         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2404         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2405         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2406         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2408         * config/elfos.h, config/netware.h, config/svr3.h,
2409         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2410         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2411         config/h8300/h8300.h, config/i386/i386-interix.h,
2412         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2413         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2415         * config/elfos.h, config/netware.h, config/svr3.h,
2416         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2417         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2418         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2419         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2421         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2422         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2423         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2424         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2425         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2426         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2427         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2428         config/rs6000/sysv4.h, config/v850/v850.h
2429         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2430         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2432         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2433         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2434         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2435         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2436         * config/alpha/alpha.c (alpha_start_function): Likewise.
2437         (alpha_write_linkage): Likewise.
2438         * config/m32r/m32r.c (m32r_select_section): Likewise.
2439         * config/m88k/m88k.c (m88k_select_section): Likewise.
2440         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2441         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2442         (rs6000_elf_select_section): Likewise.
2443         * config/v850/v850.c (v850_select_section): Likewise.
2445         * config/1750a/1750a.h, config/i860/sysv3.h
2446         (READONLY_DATA_SECTION_ASM_OP): New.
2447         READONLY_DATA_SECTION_ASM_OP.
2448         * config/i386/interix.c, config/i386/winnt.c
2449         (i386_pe_unique_section): Always use .rdata prefix.
2450         * config/pa/som.h (readonly_data): Always switch to read-only section.
2451         (READONLY_DATA_SECTION): Predicate on flag_pic.
2452         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2453         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2454         (READONLY_DATA_SECTION): Update.
2456 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2458         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2459         is used without -Wformat.
2460         * c-common.h (warn_format_zero_length): Declare extern.
2461         * c-decl.c (warn_options): Add "format-zero-length".
2462         * c-format.c (warn_format_zero_length): Declare.
2463         (set_Wformat): Set warn_format_zero_length for -Wformat.
2464         (check_format_info): Only warn about zero-length formats if
2465         warn_format_zero_length is true.  Include the format type
2466         name in the warning message.
2467         * doc/invoke.texi: Document -Wformat-zero-length.
2468         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2470 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2472         * timevar.c: Fix formatting.
2473         * tlink.c: Likewise.
2474         * toplev.c: Likewise.
2475         * tree-dump.c: Likewise.
2476         * tree-inline.c: Likewise.
2478 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2480         * cppinit.c (cpp_post_options): If preprocessed, turn off
2481         traditional.  If traditional, turn off column numbers.
2482         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2483         * cpptrad.c (handle_newline): Update line_base.
2484         (skip_comment): Handle -Wcomment.
2486 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2488         * cppinit.c (struct builtin): Remove unused fields.
2489         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2490         (operator_array): New - was second half of builtin_array.
2491         (init_builtins): Simplify loop over builtin_array/operator_array.
2493 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2495         * defaults.h (UNIQUE_SECTION): Remove.
2496         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2498 2002-05-17  Richard Henderson  <rth@redhat.com>
2500         * expr.c (init_expr_once): Don't use start/end_sequence.
2501         Use rtx_alloc instead of emit_insn.
2502         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2503         (lang_independent_init): ... not here.
2505 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2507         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2509 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2511         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2512         for fixed registers, possibly used for global register variables.
2513         (initial_elimination_offset, avr_output_function_prologue,
2514         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2516 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2518         * Makefile.in: Update for cpptrad.c.
2519         * cpphash.h (struct cpp_buffer): New members for buffer
2520         overlays.
2521         (struct cpp_reader): New members for traditional output.
2522         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2523         * cppinit.c (cpp_create_reader): Set trad_line.
2524         (cpp_destroy): Free trad_out_base if used.
2525         (cpp_read_main_file): Overlay an empty buffer if traditional.
2526         (cpp_finish_options): Don't do builtins.
2527         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2528         (cpp_handle_option): Handle it.
2529         * cpplex.c (continue_after_nul): New.
2530         (_cpp_lex_direct): Use handle_nul.
2531         * cpplib.h (struct cpp_options): New traditional option.
2532         * cpptrad.c: New file.
2534 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2536         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2537         and set the options flag.
2538         * cppinit.c (lang_flags): Remove objc.
2539         (lang_defaults): Remove OBJC and OBJCXX.
2540         (set_lang): Update.
2541         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2542         (cpp_handle_option): Remove -+ and -lang-objc++.
2543         For ObjC, just set a flag.
2544         (print_help): Update.
2545         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2547 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2549         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2550         bootstrap with -mips3.
2552 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2554         * final.c: Fix formatting.
2555         * fix-header.c: Likewise.
2556         * flow.c: Likewise.
2557         * fold-const.c: Likewise.
2558         * function.c: Likewise.
2560 2002-05-17  David S. Miller  <davem@redhat.com>
2562         PR c/6689, PR optimization/6615
2563         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2564         and make it a pointer to rtx.  Update comments.
2565         (update_equiv_regs): When scanning for equivalences, record
2566         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2567         it while making the equiv replacements.
2569 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2571         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2573 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2575         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2576         when encoding visibility into SYMBOL_REF_FLAG.
2578 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2580         * expr.c (force_operand): Fix reversed move.
2582 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2584         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2585         that can be ignored.
2587 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2589         * doc/install.texi (Final install): Recommend to install into a
2590         "clean" target directory.
2592 2002-05-17  Richard Henderson  <rth@redhat.com>
2594         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2595         for code blocks.  Tidy whitespace.
2597 2002-05-17  Richard Henderson  <rth@redhat.com>
2599         * hooks.c (hook_tree_bool_false): New.
2600         * hooks.h: Declare it.
2601         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2602         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2603         * target.h (select_section, unique_section): New.
2604         (in_small_data_p): New.
2605         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2606         (variable_section, output_constant_def_contents): Likewise.
2607         (default_select_section, default_unique_section): New.
2608         (categorize_decl_for_section, default_elf_select_section): New.
2609         * output.h: Declare them.
2611         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2612         (TARGET_ASM_SELECT_SECTION): New.
2613         (SELECT_SECTION): Move ...
2614         * config/darwin.c (machopic_select_section): ... here.
2615         * config/darwin-protos.h: Update.
2617         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2618         (SELECT_SECTION): Move ...
2619         * config/nextstep.c (nextstep_select_section): ... here.
2620         * config/nextstep-protos.h: Update.
2622         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2623         (TARGET_ASM_SELECT_SECTION): New.
2624         * config/svr3.h (SELECT_SECTION): Remove.
2626         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2627         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2628         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2629         (alpha_encode_section_info): Use it.
2630         * config/alpha/alpha-protos.h: Update.
2631         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2632         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2633         (TARGET_ASM_SELECT_SECTION): New.
2634         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2636         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2637         (TARGET_ASM_UNIQUE_SECTION): New.
2639         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2640         (avr_unique_section): Rename from unique_section; make static.
2641         * config/avr/avr-protos.h: Update.
2642         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2644         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2646         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2647         (TARGET_ASM_UNIQUE_SECTION): New.
2648         * config/i386/i386-interix.h: Likewise.
2649         * config/i386/win32.h: Likewise.
2650         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2651         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2652         * config/i386/sco5.h (SELECT_SECTION): Remove.
2653         (TARGET_ASM_SELECT_SECTION): New.
2654         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2656         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2657         instead of SELECT_SECTION.
2658         * config/m68k/dpx2.h: Likewise.
2659         * config/rs6000/lynx.h: Likewise.
2661         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2662         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2663         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2664         (ia64_in_small_data_p): New.
2665         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2666         (ia64_aix_select_section, ia64_aix_unique_section): New.
2667         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2668         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2670         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2671         (TARGET_ASM_SELECT_SECTION): New.
2672         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2673         * config/m32r/m32r-protos.h: Update.
2675         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2676         (SELECT_SECTION): Move ...
2677         * config/m88k/m88k.c (m88k_select_section): ... here.
2679         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2680         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2681         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2682         (mcore_unique_section): Make static.
2683         * config/mcore/mcore-protos.h: Update.
2685         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2686         (TARGET_ASM_UNIQUE_SECTION): New.
2687         * config/mips/elf64.h: Likewise.
2688         * config/mips/iris6gld.h: Likewise.
2689         * config/mips/linux.h: Likewise.
2690         * config/mips/mips-protos.h: Update.
2691         * config/mips/mips.c (mips_select_section): Add align argument.
2692         * config/mips/mips.h (SELECT_SECTION): Remove.
2693         (TARGET_ASM_SELECT_SECTION): New.
2695         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2696         * config/mmix/mmix.c (mmix_select_section): Remove.
2697         (mmix_unique_section): Remove.
2698         * config/mmix/mmix-protos.h: Update.
2700         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2701         (SELECT_SECTION): Move ...
2702         * config/pa/pa.c (pa_select_section): ... here.
2703         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2705         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2706         from rs6000_select_section and make static.
2707         (rs6000_elf_unique_section): Similarly.
2708         (rs6000_xcoff_select_section): From xcoff.h.
2709         (rs6000_xcoff_unique_section): Likewise.
2710         * config/rs6000/rs6000-protos.h: Update.
2711         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2712         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2713         * config/rs6000/xcoff.h: Likewise.
2715         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2716         (SELECT_SECTION): Move ...
2717         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2719         * config/v850/v850.h (SELECT_SECTION): Move ...
2720         * config/v850/v850.c (v850_select_section): ... here.
2721         (TARGET_ASM_SELECT_SECTION): New.
2723         * config/vax/vms.h (SELECT_SECTION): Move ...
2724         * config/vax/vax.c (vms_select_section): ... here.
2725         (TARGET_ASM_SELECT_SECTION): New.
2727         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2728         for the target hooks.
2730 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
2732         * config/arm/arm.c (emit_multi_reg_push): Do not set
2733         RTX_FRAME_RELATED_P on the SEQUENCE.
2735 2002-05-16  Richard Henderson  <rth@redhat.com>
2737         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2738         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
2740 2002-05-16  Richard Henderson  <rth@redhat.com>
2742         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2744         * config/ia64/ia64.c (saveable_obstack): Do not declare.
2746 2002-05-16  Richard Henderson  <rth@redhat.com>
2748         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2749         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2750         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2751         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2752         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2753         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2754         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2755         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2756         Revert "Basic block renumbering removal", and two followup patches.
2758 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2760         * lcm.c (optimize_mode_switching): Revert previous change.
2762 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2764         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2765         with only extant block numbers.
2767 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2769         * lcm.c (optimize_mode_switching): Fix typo.
2771 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2773         * flow.c (calculate_global_regs_live): Queue blocks in program order.
2775 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2777         * doc/install.texi (Configuration): Document PWDCMD.
2779 2002-05-16  Dale Johannesen  <dalej@apple.com>
2781         * combine.c (cant_combine_insn_p):  Reenable combinations
2782         involving hard regs unless CLASS_LIKELY_SPILLED_P.
2784 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2786         * c-common.c (cb_register_builtins): Handle more built-ins
2787         here rather than in gcc.c specs.
2788         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2789         (cpp_options): Pass -O flags even when only preprocessing.
2790         * toplev.c (set_fast_math_flags): New prototype.
2791         (fast_math_flags_set_p): New.
2792         (set_no_fast_math_flags): Remove.
2793         (decode_f_option): Update.
2794         * toplev.h (set_fast_math_flags): Update.
2795         (fast_math_flags_set_p): New.
2796         (set_no_fast_math_flags): Remove.
2797 config:
2798         * c4x/c4x.c (c4x_override_options): Update.
2800 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
2802         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2803         Default-define here.
2804         (builtin_define_with_value): Can now wrap the expansion in
2805         quotation marks if such is wanted.
2806         (cb_register_builtins): Update calls to builtin_define_with_value.
2807         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2808         here.
2809         (c_common_init): Set options->stdc_0_in_system_headers.
2810         * c-lex.h: Update prototype of builtin_define_with_value.
2811         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2812         and REGISTER_PREFIX.
2814         * cppinit.c (VERS, ULP, C, X): Kill.
2815         (builtin_array): Remove entries for __VERSION__,
2816         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2817         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
2818         a constant.
2819         (init_builtins): Kill off a bunch of now-dead code.
2820         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2821         -fno-leading-underscore.
2822         (cpp_handle_option): Remove code to set user_label_prefix.
2823         (cpp_post_options): Likewise.
2825         * cpplib.h (struct cpp_options): Remove user_label_prefix.
2826         (stdc_0_in_system_headers): New.
2827         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2828         stdc_0_in_system_headers) too to decide the value of __STDC__.
2830         * tradcpp.c (user_label_prefix): Kill.
2831         (main): Remove code handling -f(no-)leading-underscore.
2832         (initialize_builtins): Don't define __REGISTER_PREFIX__
2833         or __USER_LABEL_PREFIX__.
2834         (install_value): Wrap compound statement in dummy loop so the
2835         macro works properly in an if statement.
2838 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
2840         * loop.h (struct loop_info): Add member has_prefetch.
2841         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2842         (prescan_loop): Initialize has_prefetch.
2843         (struct prefetch_info): Change prefetch_in_loop and
2844         prefetch_before_loop from bit fields to ints.
2845         (emit_prefetch_instructions): Several small fixes.
2846         (check_dbra_loop): Don't reverse loop that uses prefetch.
2848 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2850         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2851         * configure.in: Likewise.
2852         * fixinc/check.tpl: Likewise.
2853         * fixinc/fixinc.dgux: Likewise.
2854         * fixinc/fixinc.svr4: Likewise.
2855         * fixinc/fixinc.winnt: Likewise.
2856         * fixinc/fixincl.sh: Likewise.
2857         * fixproto: Likewise.
2858         * configure: Regenerate.
2860 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2862         Basic block renumbering removal:
2863         * basic_block.h (struct basic_block_def): Renamed index to sindex,
2864         added prev_bb and next_bb fields.
2865         (n_basic_blocks): Renamed to num_basic_blocks.
2866         (last_basic_block): New, index of last basic block.
2867         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2868         traversing basic block chain.
2869         (BLOCK_NUM): index -> sindex.
2870         (create_basic_block_structure, create_basic_block): Declaration changed.
2871         (debug_num2bb): Declare.
2872         (expunge_block_nocompact): Declaration removed.
2873         (link_block, unlink_block, compact_blocks): Declare.
2874         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2875         * cfg.c (entry_exit_blocks): Initialize new fields.
2876         (clear_edges, alloc_block, expunge_block, cached_make_edge,
2877         redirect_edge_pred, dump_flow_info, dump_edge_info,
2878         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2879         free_aux_for_edges): Modified.
2880         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2881         (expunge_block_nocompact): Removed.
2882         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2883         find_unreachable_blocks, create_edge_list, print_edge_list,
2884         verify_edge_list, flow_edge_list_print, remove_fake_successors,
2885         remove_fake_edges, flow_reverse_top_sort_order_compute,
2886         flow_depth_first_order_compute, flow_preorder_transversal_compute,
2887         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2888         flow_dfs_compute_reverse_execute): Modified.
2889         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2890         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2891         Modified.
2892         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2893         merge_blocks_move_predecessor_nojumps,
2894         merge_blocks_move_successor_nojumps, merge_blocks,
2895         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2896         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2897         * cfglayout.c (skip_insns_after_block, label_for_bb,
2898         record_effective_endpoints, scope_to_insns_finalize,
2899         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2900         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2901         cfg_layout_duplicate_bb): Modified.
2902         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2903         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2904         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2905         flow_loops_find, flow_loop_outside_edge_p): Modified.
2906         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2907         flow_delete_block, compute_bb_for_insn, split_block,
2908         try_redirect_by_replacing_jump, redirect_edge_and_branch,
2909         force_nonfallthru_and_redirect, tidy_fallthru_edge,
2910         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2911         commit_edge_insertions, commit_edge_insertions_watch_calls,
2912         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2913         purge_all_dead_edges): Modified.
2914         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2915         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2916         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2917         Modified.
2918         * conflict.c (conflict_graph_compute): Modified.
2919         * df.c (FOR_ALL_BBS): Removed.
2920         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2921         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2922         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2923         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2924         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2925         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2926         * final.c (compute_alignments, final_scan_insn): Modified.
2927         * flow.c (verify_local_live_at_start, update_life_info,
2928         update_life_info_in_dirty_blocks, free_basic_block_vars,
2929         delete_noop_moves, calculate_global_regs_live,
2930         initialize_uninitialized_subregs, allocate_bb_life_data,
2931         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2932         mark_used_reg, count_or_remove_death_notes): Modified.
2933         * function.c (thread_prologue_and_epilogue_insns): Modified.
2934         * gcse.c (struct null_pointer_info): Change typo of current_block
2935         to basic_block.
2936         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2937         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2938         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2939         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2940         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2941         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2942         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2943         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2944         pre_delete, one_pre_gcse_pass, compute_transpout,
2945         invalidate_nonnull_info, delete_null_pointer_checks_1,
2946         free_code_hoist_mem, compute_code_hoist_vbeinout,
2947         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2948         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2949         compute_store_table, build_store_vectors, insert_insn_start_bb,
2950         insert_store, replace_store_insn, free_store_memory, store_motion):
2951         Modified.
2952         * global.c (global_alloc, global_conflicts, mark_elimination,
2953         build_insn_chain): Modified.
2954         * graph.c (print_rtl_graph_with_bb): Modified.
2955         * haifa-sched.c (sched_init): Modified.
2956         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2957         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2958         if_convert): Modified.
2959         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2960         compute_insert_delete, pre_edge_lcm, compute_available,
2961         compute_farthest, compute_nearerout, compute_rev_insert_delete,
2962         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2963         Modified.
2964         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2965         * loop.c (loop_dump_aux): Modified.
2966         * predict.c (combine_predictions_for_insn, estimate_probability,
2967         last_basic_block_p, process_note_prediction, process_note_predictions,
2968         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2969         expensive_function_p, estimate_bb_frequencies,
2970         compute_function_frequency): Modified.
2971         * print-rtl.c (print_rtx): Modified.
2972         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2973         get_exec_counts, compute_branch_probabilities, compute_checksum,
2974         branch_prob, find_spanning_tree): Modified.
2975         * recog.c (split_all_insns, peephole2_optimize): Modified.
2976         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2977         convert_regs_1, convert_regs_2, convert_regs): Modified.
2978         * regclass.c (scan_one_insn, regclass): Modified.
2979         * regmove.c (mark_flags_life_zones, regmove_optimize,
2980         combine_stack_adjustments): Modified.
2981         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2982         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2983         * reorg.c (dbr_schedule): Modified.
2984         * resource.c (find_basic_block, init_resource_info): Modified.
2985         * sbitmap.c (sbitmap_intersection_of_succs,
2986         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2987         sbitmap_union_of_preds): Modified.
2988         * sched-deps.c (init_dependency_caches): Modified.
2989         * sched-ebb.c (schedule_ebbs): Modified.
2990         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2991         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2992         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2993         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2994         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2995         ssa_const_prop): Modified.
2996         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2997         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2998         * ssa.c (remove_phi_alternative, find_evaluations,
2999         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3000         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3001         make_regs_equivalent_over_bad_edges,
3002         make_equivalent_phi_alternatives_equival,
3003         compute_conservative_reg_partition,
3004         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3005         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3006         Modified.
3008 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
3010         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3012 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
3014         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3015         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3016         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3017         calling CONSTANT_POOL_ADDRESS_P.
3018         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3019         to decide whether to define __arm__ or __thumb.
3020         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3021         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3023 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3025         * config/arc/arc.h (CPP_PREDEFINES): Remove.
3026         (CPP_SPEC): Update.
3027         (TARGET_CPU_CPP_BUILTINS): New.
3029 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3031         * cpphash.h (cpp_macro): Move here, and make expansion a union.
3032         * cppmacro.c (cpp_macro): Remove.
3033         (enter_macro_context, replace_args, warn_of_redefinition,
3034         _cpp_create_definition, cpp_macro_definition): Update.
3036 2002-05-16  Jason Merrill  <jason@redhat.com>
3038         * config/mips/mips.c (mips_output_external): Don't do sdata
3039         optimization for a variable with DECL_COMDAT set.
3041 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3043         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3044         Cleanups for accepting modifiers on pointers.
3045         Fix predicate typos.
3046         Allow long pointers as well as int pointers.
3048 2002-05-15  Richard Henderson  <rth@redhat.com>
3050         * varasm.c (merge_weak): Remove special case for extern and common.
3052 2002-05-15  Matt Hiller  <hiller@redhat.com>
3054         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3055         XFAILing.
3056         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3057         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3058         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3059         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3060         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3061         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3063 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3065         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3067 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3069         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3070         ("altivec_mfvscr"): Read from VSCR.
3072         Add vscr sets for the following insns: altivec_vctuxs,
3073         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3074         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3075         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3076         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3077         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3078         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3079         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3080         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3081         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3082         altivec_vsum2sws, altivec_vsumsws.
3084         * config/rs6000/rs6000.h: Add VSCR fixed register.
3085         (CALL_REALLY_USED_REGISTERS): Add vscr.
3086         (CALL_USED_REGISTERS): Same.
3087         (FIXED_REGISTERS): Same.
3088         (REG_ALLOC_ORDER): Same.
3089         (reg_class): Add VSCR_REGS.
3090         (REG_CLASS_NAMES): Same.
3091         (REG_CLASS_CONTENTS): Same.
3092         (VSCR_REGNO): New.
3093         (REGISTER_NAMES): Add vscr.
3094         (DEBUG_REGISTER_NAMES): Same.
3095         (ADDITIONAL_REGISTER_NAMES): Same.
3096         (FIRST_PSEUDO_REGISTER): Increment.
3097         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3099 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
3101         * fold-const.c (fold): Fix a typo.
3103 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
3105         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3106         comparison against the highest or lowest integer value before
3107         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3108         transformation and that of an unsigned comparison against 0
3109         right after.
3111 2002-05-15  Richard Henderson  <rth@redhat.com>
3113         * varasm.c (merge_weak): Error for any weakening after definition.
3114         Adjust weakening after use warning to catch more cases.
3115         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3116         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3118 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
3120         * invoke.texi (-malign-double): Re-add lost warning.
3122         * i386-protos.h (x86_output_mi_thunk): Declare.
3123         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3124         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3126         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3127         when flag_asynchronous_unwind_tables is set.
3129         * flags.h (flag_reorder_functions): Declare.
3130         * function.c (prepare_function_start): Initialize frequnecy.
3131         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3132         * Makefile.in (predict.o): Add dependency on target.h and params.h
3133         * defaults.h (HOT_TEXT_SECTION_NAME,
3134         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3135         * predict.c (choose_function_section): New function.
3136         (estimate_bb_frequencies): Use it.
3137         * toplev.c (flag_reorder_functions): New global variable.
3138         (lang_independent_options): New.
3139         (parse_options_and_default_flags): Set.
3140         * varasm.c (assemble_start_function): Bypass functdion alignment
3141         for never executed functions.
3142         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3143         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3144         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3145         Document.
3147         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3149         * predict.c: Inlude profile.h
3150         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3151         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3152         Use the information about maximal counter in the program.
3154         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3156         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3157         probably_never_executed_bb_p): New functions.
3158         * cfgcleanup.c (outgoing_edges_match): Use them.
3159         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3160         (maybe_hot_bb_p, probably_cold_bb_p,
3161         probably_never_executed_bb_p): New functions.
3163         * function.h (function): Add new field function_frequency.
3164         * predict.c (compute_function_frequency): New function.
3165         (estimate_probability): Call it.
3167 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3169         PR optimization/5172, optimization/5200
3170         * gcse.c (gcse_main): Disable store_motion.
3172 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
3174         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3175         (c_common_nodes_and_builtins): Use it.
3176         (builtin_define_with_value): New function.
3177         (cb_register_builtins): Define __SIZE_TYPE__,
3178         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3179         using builtin_define_with_value.  Use consistent notation when
3180         defining __GXX_WEAK__.
3181         (WCHAR_TYPE_SIZE): Don't redefine.
3182         (combine_strings): Don't use WCHAR_TYPE_SIZE.
3184         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3185         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3186         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3187         * tradcpp.c (initialize_builtins): Likewise.
3188         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3190         * c-lex.h (builtin_define_with_value): Prototype.
3191         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3192         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3193         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3195         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3196         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3197         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3198         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3199         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3200         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3201         config/sparc/sol2-bi.h, config/sparc/sparc.h:
3202         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
3203         to __SIZE_TYPE__ etc from all spec strings. When this makes
3204         extra specs empty, delete them.
3206 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3208         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3209         for PA8000 or generating dwarf2 call frame information.
3210         (output_call): Remove DO_FRAME_NOTES check from return pointer
3211         optimization.
3212         (following_call): Return 0 when scheduling for PA8000 or generating
3213         dwarf2 call frame information.  Revise comment.
3215 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3217 config/alpha:
3218         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3219         and __IEEE_FP_INEXACT as appropriate.
3220         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3221         (CPP_SPEC): Remove ieee defines.
3222         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3224 2002-05-14  Richard Henderson  <rth@redhat.com>
3226         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3227         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3229 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3231         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3232         (CPP_SPEC): Update.
3233         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3234         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3235         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3236         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3237         (EXTRA_SPECS): Update.
3238         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3239         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3240         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3241         define TARGET_OS_CPP_BUILTINS if necessary.
3243 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3245         * gcc.c (cpp_options): Must pass -m* and -f* options
3246         to the front end even when only preprocessing.
3247         (cc1_options): Remove redundant -lang-c.
3248         * tradcpp.c (main): Ignore -m options.
3249 objc:
3250         * lang-specs.h: Similarly.
3252 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3254         * genautomata.c (transform_3): Add code for transformation
3255         `(A,B,...)+C -> A+C,B,...'.
3257 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3259         * final.c (end_final): Do not output profile_arcs constructor, when
3260         no functions are instrumented.
3262 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3264         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3266 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3268         * doc/install.texi: Remove special markup originally required for
3269         HTML generation with texi2html.
3271 2002-05-14  Andreas Schwab  <schwab@suse.de>
3273         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3274         SELECT_SECTION.
3275         (UNIQUE_SECTION): Define to get small data correctly.
3277         * varasm.c (resolve_unique_section): Add third parameter
3278         flag_function_or_data_sections and use it instead of
3279         flag_function_sections.
3280         (assemble_start_function): Pass flag_function_sections.
3281         (asm_emit_uninitialised): Pass flag_data_sections.
3282         (assemble_variable): Likewise.
3284 2002-05-14  Richard Henderson  <rth@redhat.com>
3286         * config/i386/i386.md: Use define_constants for unspec numbers.
3287         * config/i386/i386.c: Likewise.
3289 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3291         * doc/contrib.texi: Update my entry.
3293 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3295         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3296         * fixinc/fixincl.x: Regenerated.
3297         * fixinc/tests/base/math.h: Update.
3298         * fixinc/tests/base/testing.h: Likewise.
3300 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3302         * genattr.c (gen_attr): Don't emit a comma after the last
3303         enumerator.
3305 2002-05-13  Richard Henderson  <rth@redhat.com>
3307         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3308         by non-local gotos.
3309         * recog.c (peephole2_optimize): Likewise.
3311 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3313         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3314         input to O_BINARY.
3316 2002-05-13  Jeffrey A Law  (law@redhat.com)
3318         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3319         Update prototype and callers.
3320         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3321         the mem_set_list which reference the stack pointer, as do
3322         calls to constant functions as they may clobber outgoing
3323         argument space.
3325         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3327         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3328         (ia32_multipass_dfa_lookahead): New function.
3330 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3332         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3333         (translate_options): Remove 'V'.
3334         (process_command): Similarly.
3335 doc:
3336         * invoke.texi: Remove documentation of 'V'.
3338 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3340         * config/s390/linux.h: Revert 2002-04-22 changes.
3342 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3344         * config/fr30/fr30.md: Only allow splits of immediate loads
3345         if the destination is a register.
3347 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3349         * Makefile.in (c-common.o, cppinit.o): Update.
3350         * c-common.c: Include except.h.
3351         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3352         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3353         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3354         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3355         CPP_PREDEFINES): Handle here.
3356 config:
3357         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3358         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3359         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3360         TARGET_OS_CPP_BUILTINS.
3361         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3362         (CPP_SPEC, EXTRA_SPECS): Update.
3363         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3364         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3365         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3366         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3367         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3368 doc:
3369         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3370         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3372 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3374         * emit-rtl.c (global_rtl): Update comment.
3375         (const_double_htab, const_double_htab_hash,
3376         const_double_htab_hash, lookup_const_double): New.
3377         (const_int_htab_hash, const_int_htab_eq): Remove const
3378         qualifiers, which cause tons of warnings with RTL checking on.
3379         (gen_rtx_CONST_DOUBLE): Deleted.
3380         (const_double_from_real_value): New function - bears some
3381         resemblance to the former immed_real_const_1.
3382         (immed_double_const): Moved here from varasm.c and
3383         simplified.
3384         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3385         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3386         (gen_rtx): Use immed_double_const.
3387         (init_emit_once): Initialize the const_double_htab.  Use
3388         REAL_VALUE_FROM_INT where possible.  Can now use
3389         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3390         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3391         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3392         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3393         (init_varasm_status, mark_varasm_status): Don't touch
3394         x_const_double_chain.
3396         * output.h: Delete prototype for clear_const_double_mem.
3397         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3398         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3399         const_double_from_real_value, not immed_real_const_1, and use
3400         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3401         CONST_DOUBLE_ATOF.
3402         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3403         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3404         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3405         (gen_rtx_REG): Second arg is unsigned.
3407         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3408         (excluded_rtx): New, return true for CONST_DOUBLE.
3409         (genmacro): Write nothing for excluded codes.
3410         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3411         * expr.c (expand_expr): Likewise.
3412         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3413         CONST_DOUBLE_CHAIN.
3414         * toplev.c (rest_of_compilation): Don't call
3415         clear_const_double_mem.
3417         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3418         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3419         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3420         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3421         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3422         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3423         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3424         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3426 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3428         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3430 2002-05-12  Tom Tromey  <tromey@redhat.com>
3432         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3434 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3436         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3437         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3438         * gensupport.h: Prototype new routines.
3439         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3440         use of printf.
3441         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3442         (next_comma_elt): Use scan_comma_elt.
3444         * config/i386/i386.md: Use new attribute notation to break up
3445         long lines in define_attr forms.
3447 2002-05-12  Richard Henderson  <rth@redhat.com>
3449         * expr.c (compress_float_constant): New.
3450         (emit_move_insn): Use it.
3451         (float_extend_from_mem): New.
3452         (init_expr_once): Initialize it.
3453         * real.c (exact_real_truncate): New.
3455         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3456         dropped into memory; penalize for size.
3457         (RTX_COSTS): FLOAT_EXTEND is free.
3458         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3459         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3461 2002-05-12  Richard Henderson  <rth@redhat.com>
3463         * profile.h (profile_info): Add missing extern to declaration.
3464         * profile.c (profile_info): Define it.
3466 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3468         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3469         used for DImode and TImode.
3471 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3473         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3474         fake a newline.
3476 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3478         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3479         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3480         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3481         (rs6000_override_options): Handle -m(no-)longcall.
3482         (init_cumulative_args, output_mi_thunk): Check for both
3483         longcall and shortcall attributes on the function.
3484         (rs6000_attribute_table): Add "shortcall".
3485         (rs6000_handle_longcall_attribute): Update comment.
3486         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3487         altivec_expand_ternop_builtin): Add default clauses to switches
3488         to silence warnings.
3490         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3491         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3492         (TARGET_OPTIONS): Add longcall and no-longcall.
3494         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3495         call_value_nonlocal_sysv): Split by alternatives.  One pair
3496         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3497         the call cookie.  The other pair accepts only LR/CTR and has
3498         no restriction.
3500         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3501         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3502         tmake_file.
3503         * config/rs6000/rs6000-c.c: New file.
3504         * config/rs6000/t-rs6000-c-rule: New file.
3505         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3506         Prototype rs6000_pragma_longcall.
3508         * doc/extend.texi: Document shortcall attribute.
3509         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3511 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3513         * reorg.c (dbr_schedule): Remove unnecessary test.
3515 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3517         * i386.md (testsi to testqi spliters): New.
3519         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3521         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3523         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3525         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3526         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3527         that can be made fallthru.
3529         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3531         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3532         (cfg_layout_initialize): Use it.
3534 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3536         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3537         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3538         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3540 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3542         * dbxout.c: Fix formatting.
3543         * dependence.c: Likewise.
3544         * df.c: Likewise.
3545         * diagnostic.c: Likewise.
3546         * doloop.c: Likewise.
3547         * dominance.c: Likewise.
3548         * doschk.c: Likewise.
3549         * dwarf2asm.c: Likewise.
3550         * dwarf2out.c: Likewise.
3551         * dwarfout.c: Likewise.
3553 2002-05-10  Richard Henderson  <rth@redhat.com>
3555         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3556         Convert integers constants as needed.  Replace "nwords" field with
3557         "sizeof_bb".
3558         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3559         * function.h: Fix typo in comment.
3560         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3562 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3564         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3565         into the equivalent (signed char)c > 0.
3567 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3569         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3570         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3571         (struct prefetch_info): Fix spelling of member bytes_accessed.
3572         (emit_prefetch_instructions): Make dump messages more regular;
3573         restructure code to add more dump messages; use new macros for
3574         heuristics. (There are no code generation changes in any of this).
3576 2002-05-10  David S. Miller  <davem@redhat.com>
3578         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3579         (struct rtx_def): Update unchanging flag comment.
3580         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3581         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3582         to be handled to INSN too.
3583         (dbr_schedule): Likewise.
3584         * resource.c (next_insn_no_annul): Likewise.
3586         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3587         casing.
3589 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3591         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3592         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3593         (possibly) work around broken /bin/sh.
3595 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3597         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3598         . as N64/N32 libgcc_s.so subdirs.
3600 2002-05-10  David S. Miller  <davem@redhat.com>
3602         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3604         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3605         more accurately.
3606         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3607         comment.
3608         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3609         * doc/rtl.texi: Document these macros more accurately.
3610         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3611         JUMP_INSNs and CALL_INSNs.
3612         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3613         or INSN_FROM_TARGET_P if the code is appropriate.
3615 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3617         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3618         before using SYMBOL_REF_FLAG (addr).
3620         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3621         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3622         Make non-static.  Update all callers.
3623         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3624         New insns to clear/set/test a single bit in I/O address space.
3626 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3628         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3630 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3632         * Makefile.in: Update.
3633         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3634         builtin_define_std): New.
3635         (c_common_init): Register CPP builtins callback.
3636         * c-common.h (flag_iso, flag_undef): New.
3637         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3638         * c-lex.c: Don't include target.h.
3639         (cb_register_builtins): Move to c-common.c.
3640         (init_c_lex): Don't register hook here.
3641         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3642         (cpp_define, cpp_assert): Remove.
3643         * gcc.c (cc1_options): Pass -undef to front end.
3644         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3645         (TARGET_INITIALIZER): Update.
3646         * target.h (struct cpp_reader): Don't predeclare.
3647         (struct gcc_target): Remove cpp builtin hook.
3648         * tree.c (default_register_cpp_builtins): Remove.
3649 doc:
3650         * tm.texi: Update.
3652 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3654         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3656 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3658         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3659         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3661 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3663         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3664         * config/sparc/libgcc-sparc-glibc.ver: New file.
3665         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3666         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3668 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3670         PR target/6429
3671         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3672         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3673         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3674         base multilibs.
3675         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3676         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3677         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3678         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3680 2002-05-09  Richard Henderson  <rth@redhat.com>
3682         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3683         * config/ia64/ia64.c: Likewise.
3685 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3687         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3688         (save_restore_insns): Likewise.
3689         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3690         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3692 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3694         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3695         * i386.md: Move scheduling information into new files.
3697         * i386.md (type attribute): Add "rotate" for rotate insns.
3698         (rotate insns): Set type to "rotate".
3699         (various attributes and function units): Treat rotate like shift.
3700         (pent_pair attribute): Only rotates by one bit position are
3701         pairable.
3702         (sbb insns): Explicitly set pent_pair attribute on a couple
3703         that were missing it.
3705 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3707         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3708         make sure that buffer starts on odd word address.
3709         (sh_va_arg): Skip odd fp registers when reading a double precision
3710         value.
3712 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3714         * tree.h (preserve_data, object_permanent_p, type_precision):
3715         Remove.
3717 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3719         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3720         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3721 doc:
3722         * cpp.texi: Update for removal of obsolete features.
3724 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
3725                           Jeffrey A Law  (law@redhat.com)
3727         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
3728         the DFA interface for Pentium processors.
3729         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3730         (attr_pent_pair, ix86_pent_find_pair): Remove.
3731         (ix86_sched_reorder_pentium): Remove.
3732         (ix86_sched_reorder): Remove reordering for Pentium.
3733         * i386.md (Pentium scheduling): Rewrite using DFA description.
3735 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3737         * cfganal.c (can_fallthru): Fix fast path.
3738         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3739         with edges to the next block.
3741 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3742                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
3744         * final.c (end_final): Use C trees to output data structures for profiling.
3746         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3747         (profile.o): New dependency profile.h
3748         (final.o): New dependency profile.h
3749         * profile.h: New file. New global structure profile_info.
3750         * final.h (count_edges_instrumented_now): Declare.
3751         (current_function_cfg_checksum): Declare.
3752         (function_list): New structure.
3753         (functions_head, functions_tail): New static variables.
3754         (end_final): Emits more data, removed some -ax stuff.
3755         (final): Stores function names and chcksums.
3756         * gcov-io.h (__write_gcov_string): New function.
3757         (__read_gcov_string): New function.
3758         * gcov.c (read_profile): New function.
3759         (create_program_flow_graph): Uses read_profile instead of reading
3760         da_file.
3761         (read_files): Removed da_file checking, it's done by read_profile now.
3762         * libgcc2.c (bb_function_info): New structure.
3763         (bb): New field in structure, removed some -ax stuff.
3764         (__bb_exit_func): Changed structure of da_file.
3765         * profile.c (count_edges_instrumented_now): New global variable.
3766         (current_function_cfg_checksum): New global variable.
3767         (max_counter_in_program): New global variable.
3768         (get_exec_counts): New function.
3769         (compute_checksum): New function.
3770         (instrument_edges): Sets count_edges_instrumented_now.
3771         (compute_branch_probabilities): Uses get_exec_counts instead of
3772         reading da_file.
3773         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3774         (init_branch_prob): Removed da_file checking, done in get_exec_counts
3775         now.
3776         (end_branch_prob): Removed da_file checking, done in get_exec_counts
3777         now.
3778         * gcov.texi: Updated information about gcov file format.
3780 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3782         * sbitmap.c: Fix formatting.
3783         * scan.c: Likewise.
3784         * scan-decls.c: Likewise.
3785         * sched-deps.c: Likewise.
3786         * sched-ebb.c: Likewise.
3787         * sched-rgn.c: Likewise.
3788         * sched-vis.c: Likewise.
3789         * sdbout.c: Likewise.
3790         * sibcall.c: Likewise.
3791         * simplify-rtx.c: Likewise.
3792         * ssa.c: Likewise.
3793         * ssa-ccp.c: Likewise.
3794         * ssa-dce.c: Likewise.
3795         * stmt.c: Likewise.
3796         * stor-layout.c: Likewise.
3797         * stringpool.c: Likewise.
3799 2002-05-09  David S. Miller  <davem@redhat.com>
3801         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3803 2002-05-07  David S. Miller  <davem@redhat.com>
3805         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3806         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3807         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3808         library implementation clobbers the output before the inputs
3809         are fully consumed, use stack temporary for the output.
3811 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
3813         * config/netbsd.h (CPP_SPEC): Remove.
3814         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3815         * config/i386/netbsd.h (CPP_SPEC): Define.
3816         * config/ns32k/netbsd.h (CPP_SPEC): Define.
3817         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3818         * config/sparc/netbsd.h (CPP_SPEC): Define.
3819         * config/vax/netbsd.h (CPP_SPEC): Define.
3821 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3823         * read-rtl.c: Fix formatting.
3824         * real.c: Likewise.
3825         * recog.c: Likewise.
3826         * regclass.c: Likewise.
3827         * regmove.c: Likewise.
3828         * reg-stack.c: Likewise.
3829         * reload1.c: Likewise.
3830         * reload.c: Likewise.
3831         * resource.c: Likewise.
3832         * rtlanal.c: Likewise.
3833         * rtl.c: Likewise.
3834         * rtl-error.c: Likewise.
3836 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3838         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3839         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3841 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
3843         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3844         use __SSE2__ macro instead.
3845         * config/i386/xmmintrin.h: Likewise.
3847 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
3849         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3850         and use it in all invocations of these macros.  Clean up comments.
3851         * rtl.c (rtl_check_failed_flag): Add an argument for the name
3852         of the flag access macro whose check failed.
3853         * doc/rtl.texi (Flags): Document additional flag uses.
3855 2002-05-08  Robert Spier <rspier@pobox.com>
3856             Neil Booth  <neil@daikokuya.demon.co.uk>
3858         PR preprocessor/6521
3859         * cppfiles.c (handle_missing_header): Don't do anything
3860         different for <> includes.
3861 doc:
3862         * cppopts.texi: Update documentation for -MG.
3864 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3866         * cpplex.c (cpp_interpret_charconst): Truncate as well as
3867         sign-extend.
3868 doc:
3869         * cpp.texi: Clarify multichar charconst valuation.
3871 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3873         * doc/invoke.texi: Document -mwindiss option.
3875 2002-05-08  Jason Merrill  <jason@redhat.com>
3877         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3879         * dwarf2out.c (gen_type_die): Abort on broken recursion.
3881         PR c++/6381
3882         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3883         REAL_CST.
3885 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
3887         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3888         little-endian multilibs to override arm/thumb multilibs.
3889         Do not build hardware floating point multilibs, nor apcs-26
3890         multilibs for the Thumb.
3892 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3894         PR c/6569.
3895         * varasm.c (mark_weak): New function.
3896         (merge_weak): Use it.  Do not call declare_weak.
3897         (declare_weak): Use merge_weak.
3899 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3901         * cse.c (dead_libcall_p): Update counts.
3902         (delete_trivially_dead_insns): Update call of dead_libcall_p.
3904 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
3906         * cfglayout.c (function_tail_eff_head): Rename to ...
3907         (function_footer): ... this one.
3908         (unlink_insn_chain): New functions.
3909         (label_for_bb): Only call block_label and emit debug message.
3910         (record_effective_endpoints): Actually unlink the headers and footers.
3911         (fixup_reorder_cahin): Re-insert the unlinked sequences.
3912         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3913         * cfglayout.h (struct reorder_block_def): New fields footer/header;
3914         remove eff_head/eff_end.
3915         * rtl.h (set_first_insn): Declare.
3916         * emit-rtl.c (set_first_insn): New function.
3918         * cfglayout.c (fixup_reorder_chain): Dump duplicated
3919         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3920         cfg_layout_duplicate_bb): New global function.
3921         (duplicate_insn_chain): New static function.
3922         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3923         cfg_layout_duplicate_bb): Declare.
3924         (struct reorder_block_def): Add "original" field.
3925         * emit-rtl.c (emit_copy_of_insn_after): New function.
3926         * rtl.h (emit_copy_of_insn_after): Declare.
3928         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3929         (fixup_reorder_chain): properly handle edges to exit block.
3931 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3932                                Jan Hubicka  <jh@suse.cz>
3934         * basic-block.h (note_prediction_to_br_prob): declare.
3935         * c-semantics.c: Inlucde predit.h
3936         (expand_stmt): predict GOTO_STMT as not taken.
3937         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3938         (cleanup_cfg): Do not free tail_recursion_list.
3939         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3940         (flow_delete_block): Kill predictions past end of basic block.
3941         * output.h (delete_unreachable_blocks): Declare.
3942         * predict.c (predicted_by_p, process_note_predictions,
3943         process_note_prediction, last_block_p): New function.
3944         (estimate_probability): Bypass loop on PRED_CONTINUE;
3945         do not handle noreturn heuristics; kill PRED_RETURN; add
3946         PRED_EARLY_RETURN.
3947         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3948         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3949         * predict.h (IS_TAKEN): New constant.
3950         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3951         * rtl.c (NOTE_INSN_PREDICTION): New.
3952         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3953         New macro.
3954         (insn_note): add NOTE_INSN_PREDICTION.
3955         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3956         CFG; free tail_recursion_label_list.
3957         * stmt.c: Include predict.h;
3958         (return_prediction): New.
3959         (expand_value_return): Use it.
3960         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3962 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
3964         * config/mips/mips.md: Name the unspecs with define_constant.
3965         (*HILO_delay): Rename to 'hilo_delay' (no star).
3966         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3967         (reload_outdi, reload_outsi): Likewise.
3969 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
3971         * toplev.c: Fix formatting.
3973 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
3975         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3976         * configure.in (ac_rtlflag_checking): New.
3977         * doc/install.texi (--enable-checking): Document RTL flag checking.
3979 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3981         * c-common.c (c_common_init): Set options->unsigned_wchar.
3982         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3983         group target dependencies.
3984         (init_builtins, cpp_handle_option): Update.
3985         * cpplex.c (cpp_interpret_charconst): Update.
3986         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3987         signed_char to unsigned_char, group target dependencies.
3988         * defaults.h (WCHAR_UNSIGNED): Remove.
3989         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3990 config:
3991         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3992         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3993         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3994         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3995         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3996 doc:
3997         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3999 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4001         * fixinc/inclhack.def (windiss_math1): New fix.
4002         (windiss_math2): Likewise.
4003         (windiss_valist): Likewise.
4004         * fixinc/fixincl.x: Regenerated.
4006 2002-05-07  Andreas Jaeger  <aj@suse.de>
4008         * genautomata.c (output_internal_min_issue_delay_func): Add
4009         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4010         (output_internal_trans_func): Likewise.
4012 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
4014         * pa.c (hppa_profile_hook): Use force_reg to get the address
4015         of the profile hook into an appropriate pseudo register.
4017 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4019         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4020         (LINK_START_SPEC): Handle it.
4021         (LINK_OS_SPEC): Likewise.
4022         (CPP_SPEC): Likewise.
4023         (STARTFILE_SPEC): Likewise.
4024         (LIB_SPEC): Likewise.
4025         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
4026         all platforms.
4027         (CRTSAVRES_DEFAULT_SPEC): New macro.
4028         (LIB_WINDISS_SPEC): New macro.
4029         (CPP_OS_WINDISS_SPEC): Likewise.
4030         (STARTFILE_WINDISS_SPEC): Likewise.
4031         (ENDFILE_WINDISS_SPEC): Likewise.
4032         (LINK_START_WINDISS_SPEC): Likewise.
4033         (LINK_OS_WINDISS_SPEC): Likewise.
4034         * config/rs6000/windiss.h: New file.
4036 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
4038         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4040 2002-05-06  David S. Miller  <davem@redhat.com>
4042         * config/sparc/sparc.md (shift insns): Do not mask off
4043         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4044         take care of it.
4046 2002-05-06  Richard Henderson  <rth@redhat.com>
4048         PR c++/6212
4049         * expr.c (highest_pow2_factor_for_type): New.
4050         (expand_assignment): Use it.
4052 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
4054         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4055         unspec_volatile.
4056         ("altivec_mfvscr"): Same.
4058 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4060         * rtl.h (struct rtx_def): Update comments.
4061         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
4062         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
4063         RTL_FLAG_CHECK macros with list of expected RTL codes.
4064         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4065         (rtl_check_failed_flag): New.
4066         * reload1.c (reload): Use REG macro before changing rtx to MEM.
4067         (reload_cse_noop_set_p): Check rtx code before using access macro.
4068         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4069         before using access macro.
4071 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4073         * doc/rtl.texi (Flags): Update to reflect current usage.
4075 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4077         PR opt/3995
4078         * fold-const.c (sign_bit_p): New function.
4079         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4080         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4081         Reapply fold when converting (A & C) == C into (A & C) != 0.
4082         (fold_binary_op_with_conditional_arg): Fix typo in comment.
4084 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4086         * c-common.c (warn_multichar): New.
4087         (c_common_init): Set CPP's warn_multichar.
4088         * c-common.h (warn_multichar): New.
4089         * c-decl.c (warn_multichar): Remove.
4090         * c-lex.c (lex_charconst): Update.
4091         * c-tree.h (warn_multichar): Remove.
4092         * cppexp.c (eval_token): Sign-extend charconst value.
4093         * cppinit.c (cpp_create_reader): Set warn_multichar.
4094         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4095         each character.  Update prototype.  Sign-extend the result.
4096         * cpplib.h: Fix conditions.
4097         (struct cpp_options): Add new warning flag.
4098         (cpp_interpret_charconst): Update prototype.
4099 doc:
4100         * cpp.texi: Update documentation.
4102 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
4104         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4105         Fix typo in usage of allof instead of unit.
4107 2002-05-06  Richard Henderson  <rth@redhat.com>
4109         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4110         and any jump or call for IN.
4112 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
4114         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4115         -msse2.
4116         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4118 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4120         * fold-const.c (lshift-double): Cast the high word to an unsigned
4121         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4122         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4123         avoid compiler warning.  (fold): Remove redundant code from
4124         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4126 2002-05-06  Jeff Law  <law@redhat.com>
4128         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4129         * pa.c (pa_adjust_cost): Remove all true dependency cost
4130         adjustments.  Also remove support for non-DFA scheduling.
4131         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4132         to adjust true dependency costs.  Update various comments.
4133         (7100lc, 7200, 7300 scheduling): Simplify by combining the
4134         FP ALU & MPY units into a single unit.
4136 2002-05-06  Catherine Moore  <clm@redhat.com>
4138         * config/v850/v850.c (compute_register_save_size): Make sure
4139         to count all of the registers that will be saved.
4141 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4143         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4145 2002-05-06  David S. Miller  <davem@redhat.com>
4147         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4148         allow result to overlap input operands in memory.
4150 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4152 doc:
4153         * cpp.texi: Update multichar charconst docs.
4155 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4157         * cpplex.c (cpp_interpret_charconst): Sign-extend each
4158         character.  Don't ignore excess characters.  Treat
4159         multicharacter character constants as signed.
4160         (cpp_parse_escape): Clarify diagnostic.
4162 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4164         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4165         use add instead of shift.
4166         (ashldi3_sp64): Likewise.
4167         (ashlsi3_const1, ashldi3_const1): Remove.
4168         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4169         * config/sparc/sparc.c (const1_operand): New.
4171 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
4173         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4175 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4177         PR target/6561
4178         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4180 2002-05-05  Richard Henderson  <rth@redhat.com>
4182         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4183         memory latency adjustments.
4184         (alpha_variable_issue): Remove.
4185         (alpha_use_dfa_pipeline_interface): New.
4186         (alpha_multipass_dfa_lookahead): New.
4187         * config/alpha/alpha.md: Remove define_function_unit scheduling;
4188         include new dfa scheduling.
4189         (attr type): Add none.
4190         (blockage): Use it.
4191         * config/alpha/ev4.md: New.
4192         * config/alpha/ev5.md: New.
4193         * config/alpha/ev6.md: New.
4195 2002-05-05  David S. Miller  <davem@redhat.com>
4197         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4199 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
4201         * cse.c: Fix formatting.
4202         * emit-rtl.c: Likewise.
4204 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4206         * genautomata.c (initiate_states): Add additional guard to
4207         initialize `units_array'.
4209 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4211         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4212         process_unit_to_form_the_same_automaton_unit_lists,
4213         form_the_same_automaton_unit_lists
4214         check_unit_distributions_to_automata): New prototypes and
4215         functions.
4216         (check_automata): Rename it into `check_automata_insn_issues'.
4217         (unit_decl): New fields `the_same_automaton_unit' and
4218         `the_same_automaton_message_reported_p'.
4219         (unit_decl_t): New typedef.
4220         (the_same_automaton_lists): New gloval variable.
4221         (unit_regexp, unit_set_el, units_array, units_cmp,
4222         output_get_cpu_unit_code_func): Use the typedef.
4223         (evaluate_max_reserv_cycles): Increment
4224         `description->max_insn_reserv_cycles'.
4225         (initiate_states): Don't increment `max_cycles_num'.
4226         (transform_insn_regexps): Move code around transformation of
4227         regexps from `generate'.
4228         (generate): Remove call of `transform_insn_regexps'.
4229         (expand_automata): Call `transform_insn_regexps' and
4230         `check_unit_distributions_to_automata'.  Check errors before
4231         `generate'.
4233         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4234         automaton `ultrasparc3_1'.
4236 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4238         * c-common.c (c_common_init): Set up CPP arithmetic.
4239         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4240         something reasonable for the host.
4241         (sanity_checks): Add checks.
4242         (cpp_read_main_file): Call sanity_checks() from here...
4243         (cpp_post_options): ... not here.
4244         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4245         * cpplib.h (struct cpp_options): New member int_precision.
4247 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4249         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4251 2002-05-04  David S. Miller  <davem@redhat.com>
4253         * config/sparc/linux.h, config/sparc/linux64.h
4254         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4256         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4257         more RTX codes.
4258         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4260         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4261         of SETs.
4263 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4265         * treelang; New directory for new sample language treelang.
4267 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4269         * Makefile.in (c-lex.o): Update.
4270         * c-lex.c: Include target.h.
4271         (cb_register_builtins): New.
4272         (init_c_lex): Set builtins callback.
4273         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4274         * cppinit.c (init_builtins): Use callback, including for
4275         GXX_WEAK.
4276         * cpplib.h (struct cpp_callbacks): New member.
4277         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4278         (TARGET_INITIALIZER): Update.
4279         * target.h (struct gcc_target): New hook.
4280         * tree.c (default_register_cpp_builtins): New.
4281         * tree.h (default_register_cpp_builtins): New.
4282 doc:
4283         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4285 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4287         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4288         (cpp_post_options): Move sanity checks to...
4289         (sanity_checks): New.
4290         * cpplex.c (maybe_read_ucs): Fix prototype.
4291         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4292         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4293         if necessary.
4295 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4297         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4298         builtins.  Use V2DI patterns instead of TI for logical operations.
4299         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4300         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4301         (ix86_expand_builtins): Change the pattern used for movntdq.
4302         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4303         sse2_nandv2di3): New patterns.
4304         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4305         on operands.
4306         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4307         (cvtdq2pd): Correct mode on operand 1.
4308         (sse2_umulsidi3): Describe without unspec.
4309         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4310         machine modes.
4311         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4312         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4313         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4314         ashlv4si3, ashlv2di3): Use SImode for shift count.
4315         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4316         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4317         New patterns.
4318         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4319         New typedefs.
4320         (__m128i, __m128d): New macros.
4321         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4322         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4323         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4324         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4325         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4326         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4327         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4328         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4329         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4330         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4331         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4332         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4333         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4334         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4335         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4336         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4337         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4338         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4339         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4340         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4341         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4342         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4343         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4344         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4345         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4346         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4347         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4348         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4349         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4350         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4351         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4352         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4353         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4354         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4355         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4356         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4357         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4358         functions.
4359         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4360         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4362 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4364         * dwarf2out.c: Fix formatting.
4365         * varasm.c: Likewise.
4367 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4369         PR c/6543
4370         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4371         clobber and use result as temporary value.
4373 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4375         * expr.c (force_operand): Use expand_simple_* to handle more
4376         cases.
4378 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4380         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4381         and sign-extension.
4382         (lex_charconst): Update for change in prototype of
4383         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4384         appropriately.
4385         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4386         * cppinit.c (cpp_create_reader): Initialize them for no
4387         change in semantics.
4388         (cpp_post_options): Add sanity checks.
4389         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4390         and truncation issues.  Calculate in type cppchar_t.
4391         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4392         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4393         run-time dependent precision correctly.  Return whether the
4394         result is signed or not.
4395         * cpplib.c (dequote_string): Use cppchar_t; update.
4396         * cpplib.h (cppchar_signed_t): New.
4397         struct cpp_options): New precision members.
4398         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4399         * cppexp.c (eval_token): Update.
4401 2002-05-03  David S. Miller  <davem@redhat.com>
4403         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4404         * config/sparc/sparc.c (sparc_rtx_costs): New function
4405         implementing RTX_COSTS and CONST_COSTS.
4406         * config/sparc/sparc.h (CONST_COSTS): Delete.
4407         (RTX_COSTS_CASES): Define.
4408         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4409         the work.
4411         * config/sparc/sparc.md (DFA schedulers): Split out...
4412         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4413         config/sparc/sparclet.md, config/sparc/supersparc.md,
4414         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4416         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4417         checks on it, always defined for Sparc.
4419         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4420         Tweak, and add more detailed comments.
4422 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4424         * Re-apply patch accidentally reverted with
4425         DFA scheduler merge: remove all rules and variables to slurp
4426         source files out of libiberty and rebuild them with HOST_CC.
4427         ($(HOST_PREFIX_1)varray.o): New rule.
4428         (genattrtab rule): Word wrap.
4430 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4432         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4433         (CPP_SUBTARGET_SPEC): Define.
4434         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4435         cpp_subtarget specs.
4436         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4438 2002-05-03  David S. Miller  <davem@redhat.com>
4440         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4441         * target.h (struct gcc_target): Delete cycle_display member.
4443         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4444         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4445         (ia64_sched_reorder2): Mention need for cycle display handling
4446         once such notes exist.
4448 2002-05-03  Richard Henderson  <rth@redhat.com>
4450         * real.c (etoasc): Strip most trailing zeros for clarity.
4451         * sched-vis.c: Include real.h.
4452         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4453         * Makefile.in (sched-vis.o): Add real.h.
4455 2002-05-03  David S. Miller  <davem@redhat.com>
4457         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4458         no longer needed.
4460 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4462         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4463         when we get an out of range literal.
4464         (altivec_expand_ternop_builtin): Same.
4465         (altivec_expand_unop_builtin): Same.
4466         (altivec_expand_builtin): Same, for dss.
4467         (altivec_expand_builtin): Use trees instead of rtl when
4468         determining literal argument validity.
4470 2002-05-03  David S. Miller  <davem@redhat.com>
4472         Delete cycle display scheduling hook.
4473         * config/ia64/ia64.c (ia64_cycle_display,
4474         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4475         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4476         and use emit_insn_before instead of ia64_emit_insn_before.
4477         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4478         (cycle_display): Delete insn pattern.
4479         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4480         (cycle_display): Delete insn pattern.
4481         * config/sparc/sparc.c (sparc_cycle_display,
4482         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4483         * doc/md.texi (cycle_display): Don't mention.
4484         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4486 2002-05-03  Richard Henderson  <rth@redhat.com>
4488         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4489         * recog.h: Declare them.
4491         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4492         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4493         * config/sparc/sparc-protos.h: Update.
4495 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4497         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4498         -D__arch64__.  Add -D_LP64.
4499         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4500         from sparc.h.
4501         (CPP_ARCH64_SPEC): Likewise.
4502         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4503         (NO_BUILTIN_SIZE_TYPE): Undef.
4505 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4507         * genautomata.c (min_issue_delay_pass_states): Change return type
4508         in the prototype.
4509         (min_issue_delay_pass_states): Change the algorithm.
4510         (min_issue_delay): Set up min_insn_issue_delay for the state.
4511         (output_min_issue_delay_table): Interchange the nested loops and
4512         and initiate min_insn_issue_delay for states.
4514 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4516         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4517         jump is simplejump.
4519 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4521         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4522         sequence.
4524 2002-05-03  Richard Henderson  <rth@redhat.com>
4526         PR opt/6534
4527         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4528         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4529         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4530         code before JUMP, not EARLIEST.
4532 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4534         * c-format.c (check_format_info_main): Don't check for presence of
4535         parameter for * width until after operand number has been read,
4536         and only check for it if format parameters are available.
4537         Fixes PR c/6547.
4539 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4541         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4542         (LINK_SPEC): Undef before defining.
4544 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4546         PR preprocessor/6489
4547         * tradcpp.c (fixup_newlines): New.
4548         (main, finclude): Use it.
4550 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4552         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4553         * config/mips/mips.c (mips_unique_section): Strip encoding from
4554         decl name.
4556 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4558         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4559         mode.
4561 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4563         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4564         (Specific): Removed buildstats references.
4565         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4566         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4567         Accomodate Solaris versions beyond 8.
4568         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4569         (Specific, *-*-solaris2.8): Removed, obsolete.
4571 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4573         PR target/6542
4574         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4575         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4576         fill leaf_reg_remap with identity.
4577         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4579 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4581         * config/h8300/crti.asm: Remove trailing spaces.
4582         * config/h8300/h8300.c: Likewise.
4583         * config/h8300/lib1funcs.asm: Likewise.
4585 2002-05-02  Jason Merrill  <jason@redhat.com>
4587         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4588         * c-decl.c (c_init_decl_processing): Use it.
4589         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4590         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4591         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4593 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4595         * regrename.c: Fix formatting.
4596         * tree.c: Likewise.
4598 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4600         * i386.md (attribute memory): Handle compares properly.
4602 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4604         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4605         to none.
4607 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4609         * function.c: Fix formatting.
4611 2002-05-02  Jan Hubicka  <jh@suse.cz>
4613         * haifa-sched.c (schedule_insn): Print table of instructions and
4614         reservations.
4615         (sched_block): Do not print ready list at verbosity level 1.
4616         * sched-vis.c (print_insn): Make global.
4617         * sched-ebb.c (ebb_print_insn): Rename from...
4618         (print_insn): ... this one.
4619         * sched-int.h (print_insn): Declare
4621 2002-05-02  Richard Henderson  <rth@redhat.com>
4623         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4624         emitted by cycle_display.
4626 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4628         * doc/install.texi (*-*-freebsd*): Update to latest status.
4630 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4632         PR target/6540
4633         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4634         * config/float-sparc.h: Assume 128-bit long double if
4635         __LONG_DOUBLE_128__ is defined.
4637 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4639         * genattrtab.c (write_function_unit_info): Add a dummy element
4640         when num_units == 0.
4642 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4644         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4645         TYPE_MODE (double_type_node) instead of DFmode.
4647 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4649         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4650         jumps post reload.
4651         * toplev.c (rest_of_compilation): Revert Richard's patch.
4653 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4655         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4657 2002-05-02  Catherine Moore  <clm@redhat.com>
4659         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4661 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4663         * combine.c: Fix comment typos.
4664         * expr.c: Likewise.
4665         * genautomata.c: Likewise.
4666         * stmt.c: Likewise.
4667         * tree.h: Likewise.
4669 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4671         * doc/install.texi: State GNAT version requirements.
4673 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4675         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4676         of the frame pointer or arg pointer register which strict register
4677         checking is not enabled.
4679 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4681         * gcc.dg/altivec-8.c: New.
4683         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4684         PRE_INC and PRE_DEC for altivec modes.
4686 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4688         * fixinc/check.tpl(set-writable): make sure the function exists first
4689         * fixinc/inclhack.def(alpha_assert): fix test_text
4690         * fixinc/tests/base/assert.h: add in missing result
4692 2002-05-01  Jeff Law  <law@redhat.com>
4694         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4695         'T' constraint.
4697 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4699         * dbxout.c (dbxout_type): Emit size information for range types,
4700         as well, but only when using GDB extensions.
4702 2002-05-01  Richard Henderson  <rth@redhat.com>
4704         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4705         target-independent gnu binutils date test.
4707 2002-05-01  Richard Henderson  <rth@redhat.com>
4709         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4710         info before expunging the block.
4712 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4714         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4715         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4716         -M -or -MM is in effect.
4718 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4720         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4721         A29k configurations.
4722         * doc/install.texi: Update to match.
4724 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4726         PR bootstrap/6514
4727         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4728         for duplicates. Always loop over whole list.
4730 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4732         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4734 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4736         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4737         support routines.
4739 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4741         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4743 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
4745         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4746         (nabs_nopower): Same.
4747         (floatdisf2): New pattern.
4748         (absdi2): Convert to define_insn_and_split.
4749         (nabsdi2): Same.
4750         (trunctfsf2): Same.
4751         (floatditf2): Same.
4752         (floatsitf2): Same.
4753         (fix_trunctfdi2): Same.
4754         (fix_trunctfsi2): Same.
4756 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4758         * doc/install.texi: Update Texinfo version requirement
4759         documentation.
4761 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4763         PR target/6512, PR target/5628
4764         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4765         when memory is not aligned.
4766         (movdf_insn_v9only_vis): Likewise.
4767         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4768         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4769         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4771 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
4773         * gcc.dg/altivec-7.c: New.
4775         * config/rs6000/altivec.h: Cleanup.
4777 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
4779         * doc/invoke.texi (Option Summary): Add -mvrsave=.
4780         (RS/6000 and PowerPC Options): Document -mvrsave=.
4782         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4783         (rs6000_altivec_vrsave_string): Same.
4784         (rs6000_override_options): Call rs6000_parse_vrsave_option.
4785         (rs6000_parse_vrsave_option): New.
4786         (rs6000_stack_info): Only generate vrsave instructions when
4787         TARGET_ALTIVEC_VRSAVE.
4789         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4790         (rs6000_altivec_vrsave_string): Define extern.
4791         (rs6000_altivec_vrsave): Same.
4792         (TARGET_ALTIVEC_VRSAVE): New.
4794 2002-04-30  Richard Henderson  <rth@redhat.com>
4796         PR opt/6516
4797         * toplev.c (rest_of_compilation): Don't run cross-jump before
4798         bb-reorder.
4800 2002-04-30  Tom Rix  <trix@redhat.com>
4802         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4803         check which_alternative.
4805 2002-04-30  Kazu Hirata  <kazu@hxi.com>
4807         * cpplex.c: Fix comment formatting.
4808         * function.c: Likewise.
4809         * integrate.c: Likewise.
4810         * regrename.c: Likewise.
4811         * sibcall.c: Likewise.
4812         * simplify-rtx.c: Likewise.
4813         * tree-inline.c: Likewise.
4815 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4817         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4818         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4819         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4820         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4821         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4822         * pa/x-ada: New file.  Define ADA_CFLAGS.
4824 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
4826         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4827         from MMIX_LAST_REGISTER_FILE_REGNUM.
4828         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4829         (struct machine_function): New member highest_saved_stack_register
4830         previously static variable in mmix.c.
4831         (MACHINE_DEPENDENT_REORG): Define.
4832         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4833         (MMIX_OUTPUT_REGNO): New.
4834         (mmix_target_asm_function_prologue): Move calculation of last used
4835         saved-stack-register into...
4836         (mmix_machine_dependent_reorg): New function.  Update to also handle
4837         !TARGET_ABI_GNU.
4838         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4839         register names, simplify somewhat by new variable regno.
4840         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
4841         register.
4842         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4843         emitting register names.
4844         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4845         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4846         Remove fixed FIXME.
4847         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4848         Declare.
4850         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4852 2002-04-30  Richard Henderson  <rth@redhat.com>
4854         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4855         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4856         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4857         emit_tfmode_cvt): New.
4858         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4859         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4860         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4861         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4862         * config/sparc/sparc-protos.h: Update.
4864 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
4866         * install.texi (Final install): Add to the list of info to include
4867         in a report of a successful bootstrap, and add link to 3.1 list.
4869 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
4871         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4872         (mode): Add vector modes
4873         (i387): Kill attribute.
4874         (unit): New attribute.
4875         (length_immediate): Grok new types.
4876         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4877         (modrm): Use "unit".
4878         (memory): Handle MMX/SSE properly.
4879         (scheduling descriptions): Kill uses of fop1.
4880         (sse, mmx, fp patterns): Set type and mode properly.
4882 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
4884         * pa.c (override_options): Default to PA8000 scheduling.
4885         * doc/invoke.texi (HP-PA options): Mention newly added 7300
4886         scheduling parameter.
4888         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4889         handling of double precision multiplies.
4891         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4892         fpdiv and fpsqrt instructions.
4893         (7200 & 7300 scheduling): Fix typo in handling of
4894         store-load and store-store penalties.
4896 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4898         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4899         mips.  Add two missing commas.
4901 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
4903         * doc/contrib.texi (Contributors): Update Paolo Carlini's
4904         and Benjamin Kosnik's entries.
4906 2002-04-29  David S. Miller  <davem@redhat.com>
4908         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4909         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4910         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4911         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4913 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4915         * combine.c (find_split_point): Use gen_int_mode.
4917 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4919         Merging code from dfa-branch:
4921         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
4923         * genautomata.c (output_reserv_sets): Fix typo.
4925         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
4927         * genautomata.c (output_reserv_sets): Remove
4928         next_cycle_output_flag.
4930         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
4932         * sched-rgn.c (init_ready_list): Make the DFA code handle
4933         USE/CLOBBER insns in the same way as the traditional
4934         scheduler.
4935         (new_ready): Similarly..
4937         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
4939         * haifa-sched.c (schedule_block): Change the DFA state only after
4940         issuing insn.
4942         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
4944         * pa.c (hppa_use_dfa_pipeline_interface): New function.
4945         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4946         (override_options): Add PA7300 scheduling support.
4947         (pa_adjust_cost): Update various comments.  Properly
4948         handle anti and output dependencies when using the
4949         DFA scheduler.
4950         (pa_issue_rate): Add PA7300 scheduling support.
4951         (pa_can_combine_p): Call extract_insn before calling
4952         constrain_operands (taken from mainline tree).
4953         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4954         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
4955         descriptions using DFA descriptions.  Add PA7300
4956         scheduling support.
4958         2002-03-30  David S. Miller  <davem@redhat.com>
4960         Add UltraSPARC-III DFA scheduling support.
4961         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4962         Update FP conditional move on register insn patterns to use it, as
4963         appropriate.
4964         (define_attr cpu): Add ultrasparc3.
4965         (define_attr us3load_type): New, update integer load patterns to
4966         set it, as appropriate.
4967         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4968         (rest): Add UltraSPARC3 scheduling description.
4969         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4970         (PROCESSOR_ULTRASPARC3): New.
4971         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4972         ({ASM,CPP}_CPU_SPEC): Likewise.
4973         (REGISTER_MOVE_COST): Likewise.
4974         (RTX_COSTS): Likewise.
4975         * config/sparc/sparc.c (sparc_override_options,
4976         sparc_initialize_trampoline, sparc64_initialize_trampoline,
4977         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4978         sparc_issue_rate): Likewise.
4979         * config/sparc/sol2.h: Likewise.
4980         * config/sparc/sol2-sld-64.h: Likewise.
4981         * config/sparc/linux64.h: Likewise.
4983         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
4985         * doc/md.texi: Add comments about usage the latency time for the
4986         different dependencies and about case when two or more conditions
4987         in different define_insn_reservations returns TRUE for an insn.
4989         * doc/md.texi: Add reference for automaton based pipeline
4990         description.
4992         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
4994         * doc/passes.texi: Add missed information about genattrtab.
4996         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
4998         * genautomata.c (output_automata_list_transition_code): Check
4999         automata_list on NULL.
5001         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
5003         * genautomata.c (output_insn_code_cases,
5004         output_automata_list_min_issue_delay_code,
5005         output_automata_list_transition_code,
5006         output_automata_list_state_alts_code): Comment the functions.
5008         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
5010         * genautomata.c (automata_list_el_t): New typedef.
5011         (get_free_automata_list_el,free_automata_list_el,
5012         free_automata_list, automata_list_hash, automata_list_eq_p,
5013         initiate_automata_lists, automata_list_start, automata_list_add,
5014         automata_list_finish, finish_automata_lists,
5015         output_insn_code_cases, output_automata_list_min_issue_delay_code,
5016         output_automata_list_transition_code,
5017         output_automata_list_state_alts_code, add_automaton_state,
5018         form_important_insn_automata_lists): New functions and prototypes.
5019         (insn_reserv_decl): Add members important_automata_list and
5020         processed_p.
5021         (ainsn): Add members important_p.
5022         (automata_list_el): New structure.
5023         (first_free_automata_list_el, current_automata_list,
5024         automata_list_table): New global variables.
5025         (create_ainsns): Initiate member important_p.
5026         (output_internal_min_issue_delay_func): Generate the switch and
5027         call output_insn_code_cases.
5028         (output_internal_trans_func, output_internal_state_alts_func):
5029         Ditto.
5030         (generate): Call initiate_automata_lists.
5031         (automaton_states): New global variable.
5032         (expand_automata): Call form_important_insn_automata_lists.
5033         (write_automata): Call finish_automata_lists.
5035         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
5037         * genautomata.c (add_excls, add_presence_absence): Check that
5038         cpu units in the sets belong the same automaton.
5040         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5041         about that cpu units in the sets belong the same automaton.
5043         * doc/md.texi: Ditto.
5045         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
5046                     Nitin Gupta  <niting@noida.hcltech.com>
5048         * config/sh/sh.c (sh_use_dfa_interface): New function.
5050         (sh_issue_rate): New Function.
5051         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5052         TARGET_SCHED_ISSUE_RATE: define.
5054         * config/sh/sh.md: Add DFA based pipeline description for SH4.
5056         (define_attr insn_class): New attribute used for DFA
5057          scheduling.
5058         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5059         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5060          cmpeqdi_t): Likewise.
5062         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5063          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5064          ex_group.
5065         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5067         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5069         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5070         break.
5072         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5074         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5075         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5076         necessary.
5077         (output_dfa_start_func): Initiate new variable insn_codes_length,
5078         (write_automata): Output definition of the new variable.
5080         2001-10-02  David S. Miller  <davem@redhat.com>
5082         * haifa-sched.c (advance_one_cycle): New function.
5083         (schedule_block): Use it.
5084         (queue_to_ready): Use it, and also make sure to advance the DFA
5085         state on all stall cycles, not just those where insn_queue links
5086         are found.
5088         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
5090         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
5091         non-zero if the highest-priority instruction could be scheduled.
5092         (choose_ready): Remove last argument from max_issue call.
5094         2001-09-28  David S. Miller  <davem@redhat.com>
5096         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5097         ultrasparc and 3 for other multi-issue sparcs.
5099         2001-09-27  David S. Miller  <davem@redhat.com>
5101         * config/sparc/sparc.md (cycle_display): New pattern.
5102         * config/sparc/sparc.c (sparc_cycle_display): New.
5103         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5105         2001-09-25  David S. Miller  <davem@redhat.com>
5107         Convert all of Sparc scheduling to DFA
5108         * config/sparc/sparc.md: Kill all define_function_unit
5109         directives and replace with DFA equivalent.
5110         * config/sparc/sparc.c (ultrasparc_adjust_cost,
5111         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5112         ultra_fpmode_conflict_exists, ultra_find_type,
5113         ultra_build_types_avail, ultra_flush_pipeline,
5114         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5115         ultrasparc_variable_issue, ultrasparc_sched_init,
5116         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5117         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5118         ultra_cur_hist, ultra_cycles_elapsed): Kill.
5119         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5120         ultrasparc_store_bypass_p): New.
5121         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5122         Declare.
5124         2001-09-24  David S. Miller  <davem@redhat.com>
5126         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5127         ready->vec[foo] not ready[foo].
5129         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5131         * doc/md.texi: Correct examples for define_insn_reservations
5132         `mult' and `div'.
5134         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5136         * genautomata.c (create_automata): Print message about creation of
5137         each automaton.
5138         (generate): Remove printing meease about creation of
5139         automata.
5141         2001-09-05  David S. Miller  <davem@redhat.com>
5143         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5144         * config/sparc/linux64.h: Likewise.
5146         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
5148         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5149         schedule_block, sched_init, sched_finish): Add missed calls of
5150         use_dfa_pipeline_interface.
5152         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5153         Ditto.
5155         * sched-vis.c (get_visual_tbl_length): Ditto.
5157         2001-08-27  Richard Henderson  <rth@redhat.com>
5159         * genattr.c (main): Emit state_t even when not doing scheduling.
5161         2001-08-27  Richard Henderson  <rth@redhat.com>
5163         * genautomata.c (expand_automata): Always create a description.
5165         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5167         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5168         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5169         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5170         RTL constructions.
5172         * genattr.c (main): New variable num_insn_reservations.  Increase
5173         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5174         pipeline hazard recognizer interface.
5176         * genattrtab.h: New file.
5178         * genattrtab.c: Include genattrtab.h.
5179         (attr_printf, check_attr_test, make_internal_attr,
5180         make_numeric_value): Move protypes into genattrtab.h.  Define them
5181         as external.
5182         (num_dfa_decls): New global variable.
5183         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5184         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5185         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5186         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5188         * genautomata.c: New file.
5190         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5192         * sched-int.h: (curr_state): Add the external definition for
5193         automaton pipeline interface.
5194         (haifa_insn_data): Add comments for members blockage and units.
5196         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5197         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5198         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5199         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5200         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5201         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5202         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5203         macros.
5204         (TARGET_SCHED): Use the new macros.
5206         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5207         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5208         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5209         dfa_bubble): New members in gcc_target.sched.
5211         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5212         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5213         (insn_queue): Redefine it as pointer to array.
5214         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5215         INSN_QUEUE_SIZE.
5216         (max_insn_queue_index_macro_value): New variable.
5217         (curr_state, dfa_state_size, ready_try): New varaibles for
5218         automaton interface.
5219         (ready_element, ready_remove, max_issue): New function prototypes
5220         for automaton interface.
5221         (choose_ready): New function prototype.
5222         (insn_unit, blockage_range): Add comments.
5223         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5224         FUNCTION_UNITS_SIZE == 0.
5225         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5226         actual_hazard, potential_hazard): Add comments.
5227         (insn_cost): Use cost -1 as undefined value.  Remove
5228         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5229         pipeline interface.
5230         (ready_element, ready_remove): New functions for automaton
5231         interface.
5232         (schedule_insn): Add new code for automaton pipeline interface.
5233         (queue_to_ready): Add new code for automaton pipeline interface.
5234         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5235         (debug_ready_list): Print newline when the queue is empty.
5236         (max_issue): New function for automaton pipeline interface.
5237         (choose_ready): New function.
5238         (schedule_block): Add new code for automaton pipeline interface.
5239         Print ready list before scheduling each insn.
5240         (sched_init): Add new code for automaton pipeline interface.
5241         Initiate insn cost by -1.
5242         (sched_finish): Free the current automaton state and finalize
5243         automaton pipeline interface.
5245         * sched-rgn.c: Include target.h.
5246         (init_ready_list, new_ready, debug_dependencies): Add new code for
5247         automaton pipeline interface.
5249         * sched-vis.c: Include target.h.
5250         (get_visual_tbl_length): Add code for automaton interface.
5251         (target_units, print_block_visualization):  Add comments.
5253         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5254         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5255         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5256         (getruntime.o, genautomata.o): New entries.
5257         (genattrtab.o): Add new dependency file genattrtab.h.
5258         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5259         (getruntime.o, hashtab.o): New entries for canadian cross.
5261         * doc/md.texi: Description of automaton based model.
5263         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5264         Add comments.
5265         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5266         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5267         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5268         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5269         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5270         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5271         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5272         hook descriptions.
5273         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5274         MAX_DFA_ISSUE_RATE): New macro descriptions.
5276         * doc/contrib.texi: Add dfa based scheduler contribution.
5278         * doc/gcc.texi: Add more information about genattrtab.
5280 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5282         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5283         adjust_address_nv call.
5285 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5287         * doc/install.texi (Testing): Provide additional information, and
5288         a stronger encouragement, for running the testsuites.
5290 2002-04-29  DJ Delorie  <dj@redhat.com>
5292         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5293         given in upper case.
5295 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5297         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5298         Solaris 2 <widec.h> if missing.
5299         * fixinc/fixincl.x: Regenerate.
5300         * fixinc/tests/base/widec.h: New file.
5302 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5304         * toplev.c (f_options): Add "profile" switch so that
5305         -fno-profile can be used to disable -p.
5307 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5309         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5310         UV2DImode.
5311         * tree.c (build_common_tree_nodes_2): Likewise.
5312         * tree.h (enum tree_index): Likewise.
5313         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5315         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5316         entries.
5317         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5318         (ix86_expand_builtin): Add support for SSE2 builtins.
5319         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5320         (VALID_SSE_REG_MODE): Use it.
5321         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5322         (enum ix86_builtins): Add SSE2 builtins.
5323         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5324         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5325         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5326         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5327         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5328         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5329         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5330         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5331         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5332         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5333         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5334         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5335         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5336         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5337         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5338         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5339         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5340         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5341         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5342         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5343         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5344         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5345         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5346         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5347         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5348         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5349         lfence_insn): New patterns.
5350         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5351         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5353 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5355         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5357 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5359         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5360         Janis Johnson.
5361         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5362         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5363         and CPU instead of cpu.
5365 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5367         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5368         variables.
5369         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5370         (rest_of_compilation): Do if conversion only when asked for.
5371         (parse_options_and_default_flags): Set new variables to 1 for -O1
5372         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5374 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5376         * i386.c (dbx64_register_map): Fix typo.
5378 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5380         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5381         real_one_half, real_bb_freq_max): New static variables.
5382         (debug_profile_bbauxs): Kill.
5383         (process_note_predictions): Kill unused variable.
5384         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5385         volatile double.
5386         (propagate_freq): Use REAL_ARITHMETICS.
5387         (estimate_bb_frequencies): Likevise; init new static variables.
5388         * Makefile.in (predict.o): Add dependency on real.h
5390 2002-04-28  David S. Miller  <davem@redhat.com>
5392         PR target/6500
5393         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5394         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5395         several {reads,writes} instead.
5396         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5397         Define.
5399 2002-04-27  David S. Miller  <davem@redhat.com>
5401         PR target/6494
5402         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5403         of the stack bias.
5405         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5406         including signal.h and sys/ucontext.h, not needed.
5408 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5410         * varasm.c (output_constant_def): Correct test for not calling
5411         ENCODE_SECTION_INFO for INTEGER_CST.
5413 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5415         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5416         keep most cases as function eval_token.
5417         (eval_token): New function.
5418         (_cpp_parse_expr): Read token here for improved diagnostics.
5419         Don't use op_as_text.  Detect bad ':' here.
5420         (reduce): Don't detect bad ':' here.
5421         (op_as_text): Remove.
5422         * cpphash.h (_cpp_test_assertion): Change prototype.
5423         * cpplib.c (_cpp_test_assertion): Change prototype.
5425 2002-04-28  Richard Henderson  <rth@redhat.com>
5427         PR c/5154
5428         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5429         (ggc_mark_rtx_children): New.
5431 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5433         PR target/6496
5434         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5435         after call peepholes for UltraSPARC.
5436         (call + jump 64-bit peepholes): Remove.
5438 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5440         PR c/6497
5441         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5442         result as temporary value.
5444 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5446         PR c++/6396
5447         * toplev.c (rest_of_compilation): Only run regrename and copy
5448         propagation if optimizing.
5450 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5452         PR optimization/6475
5453         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5454         register of REGNO_DECL (i).
5455         * Makefile.in (reload1.o): Add $(TREE_H).
5457 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5459         * cppexp.c (lex): Update to use state.skip_eval.
5460         (struct op): Remove prio and flags members.
5461         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5462         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5463         (LEFT_ASSOC): New macro.
5464         (optab): New table of operator priorities and flags.
5465         (SHIFT): Update.
5466         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5467         malloc-ed parser stack.
5468         (reduce): New; reduce the operator stack.
5469         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5470         * cpphash.h (struct op): Predeclare.
5471         (struct cpp_reader): New members op_stack, op_limit.
5472         (struct lexer_state): New member skip_eval.
5473         (_cpp_parse_expr): Update.
5474         (_cpp_expand_op_stack): New.
5475         * cpplib.c (do_if): Update.
5476         * cppinit.c (cpp_create_reader): Create op stack.
5477         (cpp_destroy): And destroy it.
5478         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5479         (TTYPE_TABLE): Correct.
5481 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5483         PR c/6343
5484         * c-decl.c (duplicate_decls): Call merge_weak.
5485         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5486         * output.h (merge_weak): Prototype merge_weak.
5487         * varasm.c (merge_weak): New function.
5488         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5489         Mark RTL with SYMBOL_REF_WEAK.
5491 2002-04-27  Kurt Garloff <garloff@suse.de>
5493         * tree-inline.c (inlinable_function_p): Improve heuristics
5494         by using a smoother function to cut down allowable inlinable size.
5495         * param.def: Add parameters max-inline-insns-single,
5496         max-inline-slope, min-inline-insns that determine the exact
5497         shape of the above function.
5498         * param.h: Likewise.
5500 2002-04-26  Richard Henderson  <rth@redhat.com>
5502         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5503         (yyoverflow): Re-add.  Set them.
5504         (free_parser_stacks): New.
5505         * c-common.h: Declare it.
5506         * c-lex.c (c_common_parse_file): Call it.
5508 2002-04-26  Richard Henderson  <rth@redhat.com>
5510         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5511         for fallthru search.
5513 2002-04-26  Eric Christopher  <echristo@redhat.com>
5515         PR optimization/3700
5516         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5517         (TARGET_SCHED_ISSUE_RATE): Use.
5519 2002-04-25  David S. Miller  <davem@redhat.com>
5521         PR target/6422
5522         * reorg.c (optimize_skip): Do not allow exception causing
5523         instructions to be considered for delay slots.
5524         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5525         (relax_delay_slots): Do not try to consider exception causing
5526         instructions as redundant.
5528 2002-04-26  Richard Henderson  <rth@redhat.com>
5530         PR c/5225
5531         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5533 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5535         PR bootstrap/6445
5536         * config/i386/i386.md (untyped_call): Return the value in a float
5537         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5538         TARGET_80387.
5540 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5542         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5543         in unsigned-ness correctly.
5545 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5547         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5548         portable runtime model.
5550 2002-04-26  Richard Henderson  <rth@redhat.com>
5552         * c-parse.in (yyoverflow): Revert.
5554 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5555             Richard Henderson  <rth@redhat.com>
5557         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5558         result as temporary value.
5560 2002-04-26  Richard Henderson  <rth@redhat.com>
5562         PR c/3581
5563         * c-common.c (fix_string_type): Split out of ...
5564         (combine_strings): ... here.  Take a varray, not a tree list.
5565         (c_expand_builtin_printf): Use fix_string_type.
5566         * c-common.h: Update decls.
5567         * c-parse.in (string): Remove.  Update all uses to use STRING
5568         instead, and not call combine_strings.
5569         (yylexstring): New.
5570         (_yylex): Use it.
5571         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5572         (build_asm_stmt): Likewise.
5573         * objc/objc-act.c (my_build_string): Use fix_string_type.
5574         (build_objc_string_object): Build varray for combine_strings.
5576 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5578         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5579         x86-64.
5581 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5583         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5584         (HAVE_NO_R_OPERAND): Remove.
5585         (HAVE_VALUE): Remove.
5586         (op_to_prio): Update.
5587         (UNARY): Don't alter flags.
5588         (_cpp_parse_expr): want_value used to indicate whether
5589         a number or unary operator is expected next.  Distinguish
5590         unary and binary +/-.
5591         (op_as_text): Update for unary operators.
5593 2002-04-25  Richard Henderson  <rth@redhat.com>
5595         PR c/2161
5596         * c-parse.in (yyoverflow): New.
5598 2002-04-25  Richard Henderson  <rth@redhat.com>
5600         PR c/2098
5601         * c-common.c (shorten_compare): Simplfy conditions leading to
5602         the generation of a warning.
5604 2002-04-25  Richard Henderson  <rth@redhat.com>
5606         PR c/2035
5607         * expmed.c (extract_bit_field): Fall through to generic code rather
5608         than aborting on subreg special case.
5610 2002-04-25  David S. Miller  <davem@redhat.com>
5612         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5613         for DECL being NULL.
5615 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5617         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5619 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5621         * c-decl.c (grokdeclarator): Remove outdated ??? note
5622         on invalid declaration of flexible array members.
5624 2002-04-25  Richard Henderson  <rth@redhat.com>
5626         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5628 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5630         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5631         needed by the compiler, even if they are used as global regs.
5633 2002-04-25  Matt Hiller  <hiller@redhat.com>
5635         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5636         functions.
5637         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5638         of the corresponding functions.
5639         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5640         New prototypes.
5642 2002-04-25  Matt Hiller  <hiller@redhat.com>
5644         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5646         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5647         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5648         registers, adjust comment accordingly.
5649         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5650         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5651         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5652         for coprocessor registers.
5653         (ADDITIONAL_REGISTER_NAMES): Include
5654         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5656         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5657         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5658         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5659         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5660         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5662         (mips_char_to_class): Adjust comment to include coprocessor
5663         constraint letters.
5665         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5666         New functions.
5667         (mips_reg_names, mips_regno_to_class): Include coprocessor
5668         information.
5669         (mips_sw_reg_names): Ditto, make non-static.
5670         (mips_move_1word): Handle moves to and from coprocessor registers.
5671         (mips_move_2words): Handle moves to and from coprocessor
5672         registers.
5673         (mips_class_max_nregs, mips_register_move_cost): Handle
5674         coprocessor register classes.
5675         (override_options): Initialize mips_char_to_class and
5676         mips_hard_regno_mode_ok properly for coprocessor registers.
5678         * config/mips/mips.md (movdi_internal, movdi_internal2,
5679         movsi_internal1, movsi_internal2): Add constraint-sets for
5680         coprocessor registers.
5681         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5682         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5683         isn't mips.
5684         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5685         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5686         isn't mips.
5687         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5688         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5689         isn't mips.
5690         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5691         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5692         isn't mips.
5694         * doc/tm.texi: Document feature.
5696 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5698         * integrate.c (function_attribute_inlinable_p): Simplify.
5699         Check the table pointer is not NULL.
5701 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5703         * doc/c-tree.texi: Fix typo in introduction.
5705 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5707         * c-common.h (c_common_parse_file): Update.
5708         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5709         * c-lex.c (YYDEBUG): Get from c-lex.h.
5710         (c_common_parse_file): Update.
5711         * c-lex.h (YYDEBUG, yydebug): New.
5712         * c-parse.in (YYDEBUG): Get from c-lex.h.
5713         (c_set_yydebug): Remove.
5714         * c-tree.h (c_set_yydebug): Remove.
5715         * langhooks-def.h (lhd_do_nothing_i): New.
5716         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5717         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5718         * langhooks.c  (lhd_do_nothing_i): New.
5719         (lhd_set_yydebug): Remove.
5720         * langhooks.h (struct lang_hooks): Update.
5721         * toplev.c (set_yydebug): New.
5722         (compile_file): Update call to parse_file hook.
5723         (decode_d_option): Update.
5724 objc:
5725         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5727 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
5729         * loop.c (load_mems): Don't change the interface of called functions.
5731         * calls.c (expand_call): Take current_function_pretend_args_size
5732         into account when setting argblock for sibcalls.
5734 2002-04-24  Matt Hiller  <hiller@redhat.com>
5736         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5737         * c-lex.c: Ditto.
5739         * cpplex.c (skip_line_comment): Process comment one multibyte
5740         character at a time rather than one char at a time, if
5741         appropriate.
5742         (parse_string): Process string one multibyte character at a time
5743         rather than one char at a time, if appropriate.
5744         * c-lex.c (lex_string): Lex and copy multibyte strings
5745         appropriately.
5746         * cpplib.h (cppchar_t): Change to unsigned.
5748 2002-04-24  Richard Henderson  <rth@redhat.com>
5750         PR c/3467
5751         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5752         for c99.
5754 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
5756         * sh.c (sh_va_arg): If argument was passed by reference,
5757         dereference the pointer.
5759         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5761         * sh.md (divsi3_i4_media): Use match_operand for input values
5762         rather than hard registers.
5763         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5764         unnecessarily through hard registers.  Keep copies of pseudo
5765         registers outside of the libcall sequence.
5767         * sh.md (casesi_shift_media): Add modes.
5769         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5770         values in memory.
5772 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5774         * attribs.c (c_common_attribute_table): Move table and handlers
5775         to c-common.c.
5776         (format_attribute_table, lang_attribute_table,
5777         lang_attribute_common): Remove.
5778         (init_attributes): Replace NULL pointers with pointers to the
5779         empty table.
5780         (handle_packed_attribute, handle_nocommon_attribute,
5781         handle_common_attribute, handle_noreturn_attribute,
5782         handle_noinline_attribute, handle_always_inline_attribute,
5783         handle_used_attribute, handle_unused_attribute,
5784         handle_const_attribute, handle_transparent_union_attribute,
5785         handle_constructor_attribute, handle_destructor_attribute,
5786         handle_mode_attribute, handle_section_attribute,
5787         handle_aligned_attribute, handle_weak_attribute,
5788         handle_alias_attribute, handle_visibility_attribute,
5789         handle_no_instrument_function_attribute, handle_malloc_attribute,
5790         handle_no_limit_stack_attribute, handle_pure_attribute,
5791         handle_deprecated_attribute, handle_vector_size_attribute,
5792         vector_size_helper): Move to c-common.c.
5793         * c-common.c (c_common_attribute_table,
5794         handle_packed_attribute, handle_nocommon_attribute,
5795         handle_common_attribute, handle_noreturn_attribute,
5796         handle_noinline_attribute, handle_always_inline_attribute,
5797         handle_used_attribute, handle_unused_attribute,
5798         handle_const_attribute, handle_transparent_union_attribute,
5799         handle_constructor_attribute, handle_destructor_attribute,
5800         handle_mode_attribute, handle_section_attribute,
5801         handle_aligned_attribute, handle_weak_attribute,
5802         handle_alias_attribute, handle_visibility_attribute,
5803         handle_no_instrument_function_attribute, handle_malloc_attribute,
5804         handle_no_limit_stack_attribute, handle_pure_attribute,
5805         handle_deprecated_attribute, handle_vector_size_attribute,
5806         vector_size_helper): Move from attribs.c.
5807         * c-common.h (c_common_attribute_table,
5808         c_common_format_attribute_table): New.
5809         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5810         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5811         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5812         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5813         (LANG_HOOKS_INITIALIZER): Update.
5814         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5815         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5816         * target.h: Update comment.
5817         * tree.c (default_target_attribute_table): Remove.
5818         * tree.h (default_target_attribute_table, format_attribute_table,
5819         lang_attribute_table, lang_attribute_common): Remove.
5820 objc:
5821         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5822         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5824 2002-04-24  Jason Merrill  <jason@redhat.com>
5826         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5827         * dwarf2out.c (dwarf_attr_name): Support it.
5828         (gen_array_type_die): Emit it.
5829         (lookup_type_die): No special handling for VECTOR_TYPE.
5830         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5832 2002-04-24  Richard Henderson  <rth@redhat.com>
5834         * config/mips/mips.md (movdi_usd): Renumber.
5836 2002-04-24  David S. Miller  <davem@redhat.com>
5838         PR target/6420
5839         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5840         32-bit Sparc and current_function_returns_struct is true.
5842 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5844         * loop.c (canonicalize_condition): Use gen_int_mode.
5846 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
5848         * config/rs6000/altivec.h: Cleanup file.  Add non individual
5849         variants.
5850         (vec_vaddubm): New.
5851         (vec_vadduhm): New.
5852         (vec_vadduwm): New.
5853         (vec_vaddfp): New.
5854         (vec_vaddcuw): New.
5855         (vec_vaddubs): New.
5856         (vec_vaddsbs): New.
5857         (vec_vadduhs): New.
5858         (vec_vadduws): New.
5859         (vec_vaddsws): New.
5860         (vec_vand): New.
5861         (vec_vandc): New.
5862         (vec_vavgub): New.
5863         (vec_vavgsb): New.
5864         (vec_vavguh): New.
5865         (vec_vavgsh): New.
5866         (vec_vavguw): New.
5867         (vec_vavgsw): New.
5868         (vec_vrfip): New.
5869         (vec_vcmpbfp): New.
5870         (vec_vcmpequb): New.
5871         (vec_vcmpequh): New.
5872         (vec_vcmpequw): New.
5873         (vec_vcmpeqfp): New.
5874         (vec_vcmpgefp): New.
5875         (vec_vcmpgtub): New.
5876         (vec_vcmpgtsb): New.
5877         (vec_vcmpgtuh): New.
5878         (vec_vcmpgtsh): New.
5879         (vec_vcmpgtuw): New.
5880         (vec_vcmpgtsw): New.
5881         (vec_vcmpgtfp): New.
5882         (vec_vcmpgefp): New.
5883         (vec_vcfux): New.
5884         (vec_vcfsx): New.
5885         (vec_vctsxs): New.
5886         (vec_vctuxs): New.
5887         (vec_vexptefp): New.
5888         (vec_vrfim): New.
5889         (vec_lvx): New.
5890         (vec_lvebx): New.
5891         (vec_lvehx): New.
5892         (vec_lde): Add vector float variant.
5893         (vec_lvewx): New.
5894         (vec_lvxl): New.
5895         (vec_vlogefp): New.
5896         (vec_vmaddfp): New.
5897         (vec_vmhaddshs): New.
5898         (vec_vmaxub): New.
5899         (vec_vmaxsb): New.
5900         (vec_vmaxuh): New.
5901         (vec_vmaxsh): New.
5902         (vec_vmaxuw): New.
5903         (vec_vmaxsw): New.
5904         (vec_vmaxsw): New.
5905         (vec_vmaxfp): New.
5906         (vec_vmrghb): New.
5907         (vec_vmrghh): New.
5908         (vec_vmrghw): New.
5909         (vec_vmrglb): New.
5910         (vec_vmrglh): New.
5911         (vec_vmrglw): New.
5912         (vec_vminub): New.
5913         (vec_vminsb): New.
5914         (vec_vminuh): New.
5915         (vec_vminsh): New.
5916         (vec_vminuw): New.
5917         (vec_vminsw): New.
5918         (vec_vminfp): New.
5919         (vec_vmladduhm): New.
5920         (vec_vmhraddshs): New.
5921         (vec_msumubm): New.
5922         (vec_vmsummbm): New.
5923         (vec_vmsumuhm): New.
5924         (vec_vmsumshm): New.
5925         (vec_vmsumuhs): New.
5926         (vec_vmsumshs): New.
5927         (vec_vmuleub): New.
5928         (vec_vmulesb): New.
5929         (vec_vmuleuh): New.
5930         (vec_vmulesh): New.
5931         (vec_vmuloub): New.
5932         (vec_mulosb): New.
5933         (vec_vmulouh): New.
5934         (vec_vmulosh): New.
5935         (vec_vnmsubfp): New.
5936         (vec_vnor): New.
5937         (vec_vor): New.
5938         (vec_vpkuhum): New.
5939         (vec_vpkuwum): New.
5940         (vec_vpkpx): New.
5941         (vec_vpkuhus): New.
5942         (vec_vpkshss): New.
5943         (vec_vpkuwus): New.
5944         (vec_vpkswss): New.
5945         (vec_vpkshus): New.
5946         (vec_vpkswus): New.
5947         (vec_vperm): New.
5948         (vec_vrefp): New.
5949         (vec_vrlb): New.
5950         (vec_vrlh): New.
5951         (vec_vrlw): New.
5952         (vec_vrfin): New.
5953         (vec_vrsqrtefp): New.
5954         (vec_vsel): New.
5955         (vec_vslb): New.
5956         (vec_vslh): New.
5957         (vec_vslw): New.
5958         (vec_vsldoi): New.
5959         (vec_vsl): New.
5960         (vec_vslo): New.
5961         (vec_vspltb): New.
5962         (vec_vsplth): New.
5963         (vec_vspltw): New.
5964         (vec_vspltisb): New.
5965         (vec_vspltish): New.
5966         (vec_vspltisw): New.
5967         (vec_vsrb): New.
5968         (vec_vsrh): New.
5969         (vec_vsrw): New.
5970         (vec_vsrab): New.
5971         (vec_vsrah): New.
5972         (vec_vsraw): New.
5973         (vec_vsr): New.
5974         (vec_vsro): New.
5975         (vec_stvx): New.
5976         (vec_stvebx): New.
5977         (vec_stvehx): New.
5978         (vec_stvewx): New.
5979         (vec_stvxl): New.
5980         (vec_vsububm): New.
5981         (vec_vsubuhm): New.
5982         (vec_vsubuwm): New.
5983         (vec_vsubfp): New.
5984         (vec_vsubcuw): New.
5985         (vec_vsububs): New.
5986         (vec_vsubsbs): New.
5987         (vec_vsubuhs): New.
5988         (vec_vsubshs): New.
5989         (vec_vsubuws): New.
5990         (vec_vsubsws): New.
5991         (vec_vsum4ubs): New.
5992         (vec_vsum4sbs): New.
5993         (vec_vsum4shs): New.
5994         (vec_vsum2sws): New.
5995         (vec_vsumsws): New.
5996         (vec_vrfiz): New.
5997         (vec_vupkhsb): New.
5998         (vec_vupkhpx): New.
5999         (vec_vupkhsh): New.
6000         (vec_vupklsb): New.
6001         (vec_vupklpx): New.
6002         (vec_vupklsh): New.
6003         (vec_vxor): New.
6005 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
6007         PR c/5430
6008         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6009         added literals from substracted literals.
6010         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6011         (fold) [associate]: Preserve MINUS_EXPR if needed.
6013 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
6015         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6016         are obsoleted.
6018 2002-04-23  Tom Tromey  <tromey@redhat.com>
6020         * gcc.c: Added --resource.  For PR java/6314.
6022 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6024         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6025         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6026         these libraries.
6028 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6030         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6032 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6034         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6035         workaround.
6036         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6037         (ix86_expand_clrstr): Fix typo.
6038         * loop.c (gen_load_of_final_value): New.
6039         (loop_givs_rescan, strength_reduce, check_dbra_loop):
6040         Use it.
6042 2002-04-23  Roger Sayle  <roger@eyesopen.com>
6044         * builtins.c (builtin_memset_gen_str): New function.
6045         (expand_builtin_memset): Optimize the case of constant length, but
6046         unknown value.
6048 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
6050         * config/rs6000/altivec.h (vec_step): Remove extraneous
6051         parentheses.
6052         (vec_ctu): Cast return.
6054 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
6056         PR target/6413
6057         * function.h: (struct function): Add profile_label_no field.
6058         (current_function_profile_label_no): Define.
6059         * function.c: (profile_label_no): New static var.
6060         (expand_function_start): Increment it, and copy to
6061         current_function_profile_label_no.
6062         * output.h (profile_label_no): Delete.
6063         * final.c (profile_label_no): Delete.
6064         (profile_function): Use current_function_profile_label_no.
6065         (final_end_function): Don't increment profile_label_no here.
6066         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6067         profile_label_no with current_function_profile_label_no.
6068         * config/pa/pa.c (current_function_number): Delete.
6069         (pa_output_function_prologue): Don't output profile label here.
6070         (hppa_profile_hook): Use label_no param rather than
6071         current_function_number.
6072         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6073         * config/pa/pa.h: .. here.
6074         (FUNCTION_PROFILER): Output profile label here.
6076 2002-04-22  Eric Christopher  <echristo@redhat.com>
6078         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6079         patch of 2002-04-09 due to binutils issues.
6080         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6082 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6084         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6085         constraint to 'o' for m=r and r=m alternatives.
6086         ("*movv8hi_internal1"): Same.
6087         ("*movv16qi_internal1"): Same.
6088         ("*movv4sf_internal1"): Same.
6090 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
6092         * rtl.h (RTX_FLAG): New macro.
6093         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6094         * final.c (alter_subreg): Use macro to access rtx flag.
6095         * integrate.c (copy_rtx_and_substitute): Use new access macro.
6096         * print-rtl.c (print_rtx): Use new access macro.
6098         * cse.c (insert): Check rtx code before accessing flag.
6100         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6101         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6102         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6103         convert_const_symbol_ref, make_canonical, make_alternative_compare,
6104         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6105         simplify_test_exp, optimize_attrs, simplify_by_exploding,
6106         find_and_mark_used_attributes, unmark_used_attributes,
6107         add_values_to_cover, simplify_with_current_value,
6108         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6109         copy_rtx_unchanging, main): Use new access macros.
6111 2002-04-22  Tom Rix  <trix@redhat.com>
6113         * expmed.c (init_expmed): Generate shifted constant once.
6115 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
6117         * c-lex.c (lex_charconst): Call convert to get constant in
6118         proper type; don't just smash the type field.
6119         Fixes PR c/6300.
6121         * config.gcc: Add list of obsolete configurations.  Disallow
6122         building these without --enable-obsolete.
6123         * doc/install.texi: Document --enable-obsolete and obsoletion
6124         policy.  Mention obsoletion of individual targets in
6125         appropriate places.
6127 2002-04-22  Richard Henderson  <rth@redhat.com>
6129         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6131 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
6133         PR f/6138.
6134         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6135         (walk_fixup_memory_subreg): Likewise.
6136         (fixup_var_refs_insn): Adjust accordingly.
6137         (fixup_var_refs_1): Likewise.
6139 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
6141         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6142         LIBPATH_ARCH64_SPEC): Define.
6143         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6144         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6145         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6146         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6148 2002-04-22      Joel Sherrill <joel@OARcorp.com>
6150         * gthr-rtems.h: Correct prototypes to remove warnings.
6152 2002-04-22  Richard Henderson  <rth@redhat.com>
6154         PR c/6344
6155         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6157         * gcse.c (free_insn_expr_list_list): New.
6158         (clear_modify_mem_tables): Use it.  Fix bit set usage.
6159         (canon_list_insert): Use EXPR_LISTs for expressions.
6160         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6162 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6164         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
6165         file change and include code to _cpp_pop_buffer.
6166         * cpphash.h (struct pending_option): Predeclare.
6167         (struct cpp_reader): New member next_include_file.
6168         (_cpp_pop_file_buffer): Update.
6169         (_cpp_push_next_buffer): Update, rename.
6170         * cppinit.c (cpp_destroy): Free include chain and pending here.
6171         (cpp_finish_options): Simplify.
6172         (_cpp_push_next_buffer): Rename and clean up.
6173         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6174         Clarify.
6175         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6177 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6179         * config/rs6000/altivec.h (vec_xor): Add variant for both args
6180         being vector signed int.
6181         (vec_andc): Same.
6182         (vec_xor): Add variant for both args being vector signed char.
6183         Remove redundant variant.
6184         (vec_andc): Same.
6186 2002-04-21  David S. Miller  <davem@redhat.com>
6188         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6189         compare mode in output RTL.
6191 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
6193         * config/rs6000/rs6000.c (rs6000_override_options): Correct
6194         style and formatting of previous patch.
6196 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
6198         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6199         flag_pic for ABI_AIX.
6201 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6203         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6204         * cppfiles.c (read_include_file): Similarly.
6205         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6206         uxstrdup ustrchr, ufputs): Similarly.
6207         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6208         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6209         cpp_ideq, parse_identifier, parse_number): Similarly.
6210         * cpplib.c (struct directive, dequote_string, D, run_directive,
6211         cpp_push_buffer): Similarly.
6212         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6213         _cpp_create_definition, check_trad_stringification,
6214         cpp_macro_definition): Similarly.
6216 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6218         * cppmacro.c (funlike_invocation_p): Don't step back
6219         over CPP_EOF.
6221 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
6223         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6224         labelno.
6226 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6228         * doc/invoke.texi: Remove Chill references.
6229         * doc/gcc.texi: Update last modified date.
6231 2002-04-20  Kazu Hirata  <kazu@hxi.com>
6233         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6234         push and pop.  Replace add.l with add.w.
6236 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6238         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6239         multiply instructions for H8/300H case.
6241 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6243         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6244         Bum three instructions from each routine.
6246 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6248         * Makefile.in: Update.
6249         * decl.c (push_c_function_context, pop_c_function_context,
6250         mark_c_function_context): Rename for consistency.
6251         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6252         * c-tree.h (push_c_function_context, pop_c_function_context,
6253         mark_c_function_context): Rename for consistency.
6254         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6255         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6256         * function.c (init_lang_status, save_lang_status,
6257         restore_lang_status, mark_lang_status, free_lang_status):
6258         Move to langhooks.h.
6259         (push_function_context_to, pop_function_context_from,
6260         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6261         Update.
6262         * function.h (init_lang_status, save_lang_status,
6263         restore_lang_status, mark_lang_status, free_lang_status):
6264         Move to langhooks.h.
6265         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6266         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6267         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6268         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6269         (LANG_HOOKS_INITIALIZER): Update.
6270         (lhd_do_nothing_f): New.
6271         * langhooks.h (struct lang_hooks_for_functions): New.
6272         (struct lang_hooks): New hooks.
6273         * langhooks.c (lhd_do_nothing_f): New.
6274 objc:
6275         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6276         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6278 2002-04-19  David S. Miller  <davem@redhat.com>
6280         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6281         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6283 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6285         PR optimization/3756
6286         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6287         x = ((int) y < 0) ? cst1 : cst2.
6289 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6291         PR c/6358
6292         * function.c: Reapply patch for c/6358.
6293         (expand_function_end): Copy decl_rtl's mode, not
6294         current_function_return_rtx mode.
6296 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6298         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6299         targets.
6301 2002-04-19  Tom Tromey  <tromey@redhat.com>
6303         * doc/install.texi (Specific): Update status of Solaris 2.8.
6304         For PR libgcj/6158.
6306 2002-04-19  Andreas Schwab  <schwab@suse.de>
6308         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6309         (PUT_REAL): Restore old definition.
6311 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6312             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6314         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6315         binutils 2.11.2 and higher generate smaller binaries than Sun's
6316         native tools.
6318 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6320         PR c++/6352
6321         * toplev.c (rest_of_compilation): Do not defer functions for which
6322         TREE_SYMBOL_REFERENCED has already been set.
6324 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6326         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6327         alternative.
6329 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6331         * builtins.c: Include langhooks.h.
6332         (lang_type_promotes_to): Remove.
6333         (expand_builtin_va_arg): Use new hook.
6334         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6335         (simple_type_promotes_to): Move to c-typeck.c.
6336         * c-common.h (simple_type_promotes_to): Remove.
6337         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6338         * c-format.c: Include langhooks.h.
6339         (check_format_types): Update.
6340         * c-tree.h (c_type_promotes_to): New.
6341         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6342         (type_lists_compatible_p): Update.
6343         * langhooks-def.h (lhd_type_promotes_to): New.
6344         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6345         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6346         * langhooks.c (lhd_type_promotes_to): New.
6347         * langhooks.h (struct lang_hooks_for_types): New hook.
6348         * tree.h (lang_type_promotes_to): Remove.
6349 objc:
6350         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6352 2002-04-18  Richard Henderson  <rth@redhat.com>
6354         * function.c: Revert patch for c/6358.
6356 2002-04-18  Richard Henderson  <rth@redhat.com>
6358         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6359         blocks.  Handle multiple references to the TRAP block.  Handle
6360         non-adjacent THEN and OTHER blocks.
6362 2002-04-18  Richard Henderson  <rth@redhat.com>
6364         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6365         crash with no type for by-mode libcalls.
6367         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6369 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6371         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6372         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6373         the register windows.
6375 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6377         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6378         appropriate.  Document need for extended precision even when
6379         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6380         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6381         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6382         instead of relying on later syntax error when REAL_WIDTH > 5.
6383         * real.c: Define NE based only on whether or not we have a
6384         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6385         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6386         define GET_REAL and PUT_REAL as simple memcpy operations; no
6387         need to byteswap or round.
6388         Use #error instead of #ifdef-ing out the entire file, for
6389         prompt error detection.
6391         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6393 2002-04-18  David S. Miller  <davem@redhat.com>
6395         * config/sparc/sparc.h (BRANCH_COST): Define.
6397         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6398         does it.
6400 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6402         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6403         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6404         propagate_block calls after relaxation loop using new variable
6405         stabilized_prop_flags.
6407 2002-04-18  Richard Henderson  <rth@redhat.com>
6409         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6410         (ia64_va_arg): Expect variable sized types by reference.
6411         * config/ia64/ia64-protos.h: Update.
6412         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6413         ia64_function_arg_pass_by_reference.
6415 2002-04-18  Richard Henderson  <rth@redhat.com>
6417         * ifcvt.c: Include except.h.
6418         (block_has_only_trap): Break out from find_cond_trap.
6419         (find_cond_trap): Use it.  Always delete the trap block.
6420         (merge_if_block): Allow then block null.  Be less simplistic about
6421         what insns can end a block.
6422         * Makefile.in (ifcvt.o): Depend on except.h.
6424         * config/ia64/ia64.md (trap, conditional_trap): New.
6426 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6428         PR c/6358
6429         * function.c (assign_parms): Assign hard current_function_return_rtx
6430         register here...
6431         (expand_function_end): ...not here.
6433 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6435         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6436         * c-tree.h (c_incomplete_type_error): New.
6437         * c-typeck.c (require_complete_type, build_component_ref): Update.
6438         (incomplete_type_error): Rename.
6439         * langhooks-def.h (lhd_incomplete_type_error): New.
6440         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6441         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6442         * langhooks.c (lhd_incomplete_type_error): New.
6443         * langhooks.h (struct lang_hooks_for_types): New hook.
6444         * tree.c (size_in_bytes): Use new hook.
6445         * tree.h (incomplete_type_error): Remove.
6446 objc:
6447         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6449 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6451         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6452         TARGET_FLOAT_FORMAT blocks.
6454 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6456         * doc/install.texi (Downloading the source): Do not mention Chill
6457         any longer, but mention Ada.
6458         (Configuration): Do not mention Chill any longer.
6460 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6462         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6464 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6466         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6467         in last patch.
6469 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6471         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6472         instead of unsigned_type.
6474 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6476         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6477         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6478         later.
6480 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6482         * attribs.c (vector_type_node_list): New static variable.
6483         (handle_vector_size_attribute): Use it to avoid generating a
6484         new type node each time we are called.
6486         * combine.c (subst): Avoid trying to make a vector mode subreg of
6487         an integer constant.
6488         (gen_lowpart_for_combine): Likewise.
6490 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6491             Jakub Jelinek  <jakub@redhat.com>
6493         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6494         for integer constant c (if x has unsigned type or sign bit is not
6495         set in c).  This folds the zero/sign extension into the bit-wise and
6496         operation.
6498 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6500         PR middle-end/6205
6501         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6502         otherwise xorps.
6504 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6506         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6508 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6510         * gcc.c (read_specs): Detect and fail if an attempt is made to
6511         rename a spec string to an already existing string.
6513 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6515         * config/s390/s390.c (legitimize_pic_address): Do not generate
6516         illegal address constant without CONST.
6518 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6520         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6521         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6523 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6525         PR optimization/6305
6526         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6527         to make sure previous reloads are taken into account.  Generate
6528         better code if one operand is an in-range immediate constant.
6530 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6532         * doc/install.texi (Building): libgcj requires GNU make.
6534 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6536         PR bootstrap/6315
6537         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6538         even if hard quad and register is not floating.
6539         (movtf reg<-mem split): Disallow splitting if hard quad and
6540         register is floating.
6541         (movtf mem<-reg split): Likewise.
6542         * config/sparc/sparc.c (fp_register_operand): New predicate.
6543         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6545 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6547         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6548         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6549         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6550         UNPROTOIZE on command line.
6551         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6552         (in_system_include_dir): Use cpp_include_defaults (defined in
6553         cppdefault.o).
6554         * unprotoize.c: Delete file.
6556 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6558         * config/rs6000/altivec.h (vec_ld): Add array variants.
6559         (vec_lde): Same.
6560         (vec_ldl): Same.
6562 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6563             Aldy Hernandez <aldyh@redhat.com>
6565         * config/rs6000/altivec.h: Define __ALTIVEC__.
6566         (bool): New.
6567         (__pixel): New.
6568         (pixel): New.
6569         (vec_cfux): New.
6570         (vec_vmaddfp): New.
6571         (vec_vsldoi): New.
6572         Add parentheses to all macro arguments.
6574 2002-04-16  Richard Henderson  <rth@redhat.com>
6576         PR c++/6320
6577         * except.c (remove_eh_handler): Insert inner regions at beginning
6578         of sibling chain.  Refactor expressions.
6580 2002-04-16  Richard Henderson  <rth@redhat.com>
6582         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6583         * config/sparc/sol2-gas-bi.h: New file.
6584         * config.gcc (sparc*-solaris): Add it as needed.
6585         * configure.in (AS_SPARC64_FLAG): Remove check.
6586         * config.in, configure: Regenerate.
6588         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6590 2002-04-16  Richard Henderson  <rth@redhat.com>
6592         * config/mips/mips.c (override_options): Don't override N32 for
6593         a 64-bit ISA.
6595         PR 6202
6596         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6597         (HILO_delay): Set can_delay false.
6599 2002-04-16  Dale Johannesen <dalej@apple.com>
6601         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6602         instruction addresses.
6603         (rs6000_output_function_epilogue): Likewise.
6605 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6607         * c-parse.in (poplevel, compstmt_start,
6608         compstmt_primary_start): Add ending ';', in accordance
6609         with POSIX.
6611 2002-04-16  Richard Henderson  <rth@redhat.com>
6613         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6614         Adjust tm_file order to get TARGET_DEFAULT set properly.
6615         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6616         * doc/install.texi (sparc-solaris): Update.
6618 2002-04-16  Dale Johannesen <dalej@apple.com>
6620         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6621         comparison operands do not match each other or if modes of
6622         conditions do not match result.
6624 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6626         PR target/6305
6627         * config/s390/s390.md (mulsidi3): Set both subregs of the
6628         multiword register.
6630 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6632         * config/rs6000/altivec.h (vec_addc): Type check.
6634 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6636         PR middle-end/6279
6637         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6639         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6641 2002-04-15  Richard Henderson  <rth@redhat.com>
6643         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6644         call_really_used_regs too.
6646 2002-04-15  Richard Henderson  <rth@redhat.com>
6648         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6650 2002-04-15  David S. Miller  <davem@redhat.com>
6652         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6653         as being CLOBBERed.
6655 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6657         PR c/6290
6658         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6659         CONST_VECTOR is { 0, ... 0 }.
6661 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6663         * doc/install.texi (Installing GCC: Configuration): Clarify
6664         the only supported ways to configure gcc.
6666 2002-04-15  Roland McGrath  <roland@frob.com>
6668         * config.gcc (alpha*-*-gnu*): New target configuration.
6669         * config/alpha/gnu.h: New file for it.
6670         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6672 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6674         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6675         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6676         * tree.h (expand_start_stmt_expr): Update prototype.
6677         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6678         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6679         on the STMT_EXPR created for the inline function.
6681 2002-04-15  Richard Henderson  <rth@redhat.com>
6683         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6684         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6685         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6686         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6687         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6688         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6689         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6690         Define __gnu_linux__, not gnu_linux.
6691         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6693 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6695         Remove Chill front end.
6696         * gcc.c (default_compilers): Remove Chill entries.
6697         * ch: Remove directory.
6698         * doc/frontends.texi: Remove information about Chill.
6699         * doc/sourcebuild.texi: Likewise.
6700         * doc/standards.texi: Likewise.
6702 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6704         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6705         (LONGLONG_STANDALONE): Define.
6707 2002-04-15  David S. Miller  <davem@redhat.com>
6709         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6710         Call emit_library_call with LCT_NORMAL.
6711         (sparc_initialize_trampoline): Use LCT_foo instead of
6712         magic constant in emit_library_call invocations.
6713         (sparc64_initialize_trampoline): Likewise.
6714         (sparc_profile_hook): Likewise.
6715         * config/sparc/sparc.md: Likewise.
6717         * config/sparc/sparc.c (sparc_extra_constraint_check):
6718         Fix type of argument 'c'.
6719         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6720         Likewise.
6722 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6724         * diagnostic.h (output_buffer_state): Redefine.
6725         (output_format_decoder): New macro.
6726         (output_prefixing_rule): Likewise.
6727         (output_line_cutoff): Likewise.
6728         (diagnostic_format_decoder): Adjust.
6729         (diagnostic_prefixing_rule): Likewise.
6730         (diagnostic_line_cutoff): Likewise.
6731         (diagnostic_state): Likewise.
6732         (diagnostic_kind_count): Likewise.
6733         (diagnostic_buffer): Now a macro.
6735         * diagnostic.c (diagnostic_buffer): Remove definition.
6736         (output_is_line_wrapping): Adjust.
6737         (set_real_maximum_length): Likewise.
6738         (output_set_maximum_length): Likewise.
6739         (init_output_buffer): Likewise.
6740         (lhd_print_error_function): Likewise.
6741         (output_do_verbatim): Likewise.
6743 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6745         * cpperror.c (print_location): Don't print include chain
6746         if line == 0.
6747         (cpp_begin_message): Update to use DL_ macros.
6748         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6749         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6750         cpp_notice, cpp_notice_from_errno): Remove.
6751         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6752         level.
6753         (cpp_errno): New.
6754         * cppexp.c (CPP_ICE): Remove.
6755         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6756         lex, integer_overflow, _cpp_parse_expr): Update.
6757         * cppfiles.c (read_include_file, find_include_file,
6758         handle_missing_header, _cpp_read_file, remap_filename): Update.
6759         * cpphash.h (enum error_type): Remove.
6760         (_cpp_begin_message): Update.
6761         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6762         cpp_handle_option, cpp_post_options): Update.
6763         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6764         skip_whitespace, parse_identifier, parse_slow, parse_string,
6765         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6766         cpp_interpret_charconst): Update.
6767         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6768         lex_macro_node, do_undef, glue_header_name, parse_include,
6769         do_include_common, read_flag, do_line, do_linemarker, do_ident,
6770         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6771         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6772         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6773         _cpp_pop_buffer, do_diagnostic): Update.
6774         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6775         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6776         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6777         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6778         cpp_notice, cpp_notice_from_errno): Remove.
6779         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6780         level.
6781         (cpp_errno): New.
6782         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6783         collect_args, enter_macro_context, save_parameter, parse_params,
6784         _cpp_create_definition, check_trad_stringification,
6785         cpp_macro_definition): Update.
6786         * cppmain.c (cpp_preprocess_file): Update.
6787         * fix-header.c (read_scan_file): Update.
6789 2002-04-14  Andreas Schwab  <schwab@suse.de>
6791         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6793 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6795         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6797 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6799         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6800         not gnu_hurd.
6802 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
6804         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6806 2002-04-13      Joel Sherrill <joel@OARcorp.com>
6808         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
6809         sparc-elf and sparc-rtems targets.
6811 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6813         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6814         defined, and __gnu_hurd__ wherever __GNU__ is defined.
6815         * arm/linux-elf.h: Likewise.
6816         * cris/aout.h: Likewise.
6817         * cris/linux.h: Likewise.
6818         * i370/linux.h: Likewise.
6819         * i386/gnu.h: Likewise.
6820         * i386/linux-aout.h: Likewise.
6821         * i386/linux-oldld.h: Likewise.
6822         * i386/linux.h: Likewise.
6823         * i386/linux64.h: Likewise.
6824         * ia64/linux.h: Likewise.
6825         * m68k/linux-aout.h: Likewise.
6826         * m68k/linux.h: Likewise.
6827         * mips/linux.h: Likewise.
6828         * pa/pa-linux.h: Likewise.
6829         * pj/linux.h: Likewise.
6830         * rs6000/sysv4.h: Likewise.
6831         * s390/linux.h: Likewise.
6832         * sh/linux.h: Likewise.
6833         * sparc/linux-aout.h: Likewise.
6834         * sparc/linux.h: Likewise.
6835         * sparc/linux64.h: Likewise.
6836         * xtensa/linux.h: Likewise.
6838 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
6840         * stmt.c (check_unique_operand_names): Expect operand names to
6841         be strings rather than identifiers.  Use simple_cst_equal to
6842         compare them.
6843         (resolve_operand_name_1): Make same identifier to string change here.
6844         * c-parse.in (asm_operand): Convert a named operand into a string.
6845         * cp/parse.y (asm_operand): Likewise.
6847 2002-04-13  Andreas Schwab  <schwab@suse.de>
6849         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6851 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
6853         Revert these changes:
6855         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
6857         PR c++/5571
6858         * stor-layout.c (layout_decl): Reset the RTL for the decl.
6860 2002-04-12  Richard Henderson  <rth@redhat.com>
6862         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6863         (sparc*-*-solaris): Clean up header files.
6864         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6865         and plan on generating 64-bit code.
6866         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6867         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6868         * config/sparc/sol2-sld-64.h: Rename ...
6869         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
6870         for AS_SPARC64_FLAG not defined.
6871         * config/sparc/sol2-gld-bi.h: New.
6872         * config/sparc/sol2-sld.h: Remove.
6873         * config/sparc/sol26-sld.h: New.
6874         * config/sparc/sol2.h: Tidy comments.
6875         * doc/install.texi: Document sparc-solaris configury changes.
6877 2002-04-12  Richard Henderson  <rth@redhat.com>
6879         * recog.c (offsettable_address_p): Match the logic in adjust_address.
6881         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6882         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
6884 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6886         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6888 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
6890         * pa.c (pa_can_combine_p): Call extract_insn before calling
6891         constrain_operands.
6893 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
6895         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6896         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6897         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6898         (CPP_PREDEFINES): Handle __declspec.
6899         * config/i386/t-interix (USER_H): Remove.
6901 2002-04-12  DJ Delorie  <dj@redhat.com>
6903         * integrate.c (compare_blocks): Make comparisons safe for when
6904         sizeof(int) < sizeof(char *).
6905         (find_block): Likewise.
6907 2002-04-12  Jan Hubicka  <jh@suse.cz>
6908             David Edelsohn  <edelsohn@gnu.org>
6910         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6911         registers.
6912         (symbol_ref_operand): New.
6913         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6914         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6916 2002-04-12  Andreas Schwab  <schwab@suse.de>
6918         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6919         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6920         overrides the definition in config/svr4.h.
6922 2002-04-12      Eric Norum <eric.norum@usask.ca>
6924         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6925         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6926         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6927         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6928         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6929         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6930         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6931         definitions to config/rtems.h and make the targets more similar.
6933 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6935         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6936         POINTERS_EXTEND_UNSIGNED.
6937         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6938         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6940         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6941         not specified.
6943 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
6945         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6946         depends on TARGET_SHMEDIA, not TARGET_SH5.
6948 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
6950         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6951         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6953 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
6955         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6956         no r0 clobber.
6958 2002-04-12  Andreas Schwab  <schwab@suse.de>
6960         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6962 2002-04-12  Richard Henderson  <rth@redhat.com>
6964         PR bootstrap/4191
6965         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6967         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6968         modes spanning multiple hard regs.
6970         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6972 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6974         * pa.c (pa_output_function_prologue): Don't accumulate the total
6975         number of code bytes when using TARGET_64BIT, or gas, SOM and not
6976         the portable runtime.
6977         (output_deferred_plabels): Handle 64bit plabels.
6978         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6979         generating pic code using the GAS assembler for object formats that
6980         are not SOM (ie., ELF32 and ELF64).
6981         (output_millicode_call): Check attribute type if attribute length is 28.
6982         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
6983         dbr_sequence_length once.
6984         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6985         dbr_sequence_length once.
6986         * pa.h (TARGET_SOM): Define if not defined.
6987         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6988         with GAS and not SOM.
6989         (jump, call_internal_reg, call_value_internal_reg): Likewise.
6990         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
6992 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6994         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6995         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6996         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6997         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6998         elfos.h and dbxelf.h values are fine now.
6999         * config/i386/freebsd.h, config/alpha/freebsd.h
7000         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7002 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7004         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7005         or set Acpu or Amachine.  Reformat.
7006         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7007         define.
7008         (LINK_SPEC): Do not need to undef.
7009         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7010         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7011         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7012         define.
7013         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7014         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7015         (LINK_SPEC): Do not need to undef.
7016         (DONT_USE_BUILTIN_SETJMP): Do not define.
7017         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7018         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
7019         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7020         Remove trailing spaces.
7021         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7022         __ELF__, or set Acpu or Amachine.  Reformat.
7023         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7024         define.
7026 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7028         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7029         all other *-*-freebsd* targets.
7031 2002-04-11  Richard Henderson  <rth@redhat.com>
7033         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7035 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7037         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7038         Include {cpu}/{cpu}.h thru tm_file.
7039         (alpha*-*-linux*ecoff): Remove target.
7040         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7041         (LINK_SPEC): Remove, is not OS independent.
7042         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7043         (LINK_SPEC): Do not need to #undef any longer.
7044         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7045         any longer.
7046         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7047         __ELF__.
7048         (LINK_SPEC): Moved here from alpha/elf.h.
7049         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7050         SUB_CPP_PREDEFINES.
7051         * config/alpha/linux-ecoff.h: Remove.
7052         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7053         (CPP_SPEC): Define _POSIX_SOURCE as needed.
7054         (CPP_SUBTARGET_SPEC): Do not define.
7055         (LINK_SPEC): Do not need to #undef any longer.
7056         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7057         * config/alpha/vms.h: Likewise.
7059 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
7061         * doc/extend.texi: Remove old claim that typedefs cannot have
7062         an alignment attribute.
7064 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7066         PR optimization/6177
7067         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7068         bitpos is 0 and bitsize CONCAT size.
7070 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7072         PR c/6223
7073         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7075 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
7077         * config/alpha/freebsd.h: Minor reformatting.
7078         (CPP_SPEC): Define ELF and add cpp_subtarget.
7079         (ASM_SPEC): No longer needed.
7081 2002-04-11  Richard Henderson  <rth@redhat.com>
7083         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7084         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
7085         (dimode mem/zero splitter): New.
7087 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
7089         * config/cris/cris.c (cris_override_options): Tweak error message
7090         for PIC not implemented.
7092         * config/cris/cris.h: Tweak comments related to parameter-passing.
7094         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7096 2002-04-10  Richard Henderson  <rth@redhat.com>
7098         * except.c (add_ehl_entry): Allow duplicates after landing pad
7099         creation.
7101 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
7103         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7105 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
7107         * c-decl.c (c_init_decl_processing): Move generation of
7108         decls for g77_integer_type_node and friends from here ...
7109         * c-common.c (c_common_nodes_and_builtins): ... to here.
7111 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
7113         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7114         is only used as frame pointer when frame_pointer_needed is true.
7116 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
7118         PR target/817
7119         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7120         for the fact that the pool entry uses two words.
7121         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
7122         1k bytes.
7123         (movdf_soft_insn): Similarly.
7124         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7125         for the fact that the pool entry uses three words.
7127 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
7129         * config/mips/mips.c (mips_va_arg): When using the struct version
7130         of the EABI va_list, allow arguments in the register save area to
7131         take up less room than a stack argument.
7133 2002-04-10  Richard Henderson  <rth@redhat.com>
7135         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7136         if EXPAND_INITIALIZER.
7138 2002-04-09  Richard Henderson  <rth@redhat.com>
7140         * config/alpha/alpha.md (movdi_er_maybe_g): New.
7141         * config/alpha/alpha.c (alpha_expand_mov): Use it.
7143 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
7145         PR optimization/6233
7146         * rtlanal.c (pure_call_p): New function.
7147         * rtl.h (pure_call_p): Declare.
7148         * loop.c (prescan_loop): Use it to set has_nonconst_call.
7149         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7151 2002-04-09  Eric Christopher  <echristo@redhat.com>
7153         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7154         information to .comm directive.
7156 2002-04-09  Richard Henderson  <rth@redhat.com>
7158         PR c/5078
7159         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7161 2002-04-09  Richard Henderson  <rth@redhat.com>
7163         * basic-block.h (flow_delete_block_noexpunge): Declare.
7164         (expunge_block_nocompact): Declare.
7165         * cfg.c (expunge_block_nocompact): Split out from ...
7166         (expunge_block): ... here.
7167         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7168         (flow_delete_block_noexpunge): Split out from ...
7169         (flow_delete_block): ... here.
7170         * cfgcleanup.c (delete_unreachable_blocks): Compact while
7171         removing dead blocks.
7172         * except.c (exception_handler_labels): Remove.
7173         (exception_handler_label_map): New.
7174         (struct eh_region): Add aka member.
7175         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7176         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7177         (for_each_eh_label, for_each_eh_label_1): New.
7178         (init_eh): Register exception_handler_label_map.
7179         (free_eh_status): Use free_region.
7180         (find_exception_handler_labels): Use the map, not the list.
7181         (remove_exception_handler_label): Likewise.
7182         (maybe_remove_eh_handler): Likewise.
7183         (remove_eh_handler): Use the region aka bitmap.
7184         * except.h (exception_handler_labels): Remove.
7185         (for_each_eh_label): Declare.
7186         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7187         * loop.c (invalidate_loops_containing_label): New.
7188         (find_and_verify_loops): Use it.  Use for_each_eh_label.
7189         * sched-rgn.c (is_cfg_nonregular): Use
7190         current_function_has_exception_handlers.
7192 2002-04-09  Richard Henderson  <rth@redhat.com>
7194         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7195         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7196         Do not return changed status.
7197         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7198         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7199         New functions that do return changed status.
7200         * sbitmap.h: Update decls.
7201         * gcse.c, lcm.c: Use _cg functions as needed.
7203 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7205         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7206         (sh64-*-elf*, sh-*-rtemself*): Likewise.
7207         * config/sh/embed_bb.c: New file.
7208         * config/sh/embed-elf.h: New file.
7209         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7210         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
7211         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7212         __PTRDIFF_TYPE__ .
7213         (SUBTARGET_CPP_PTR_SPEC): Don't define.
7214         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7215         Add subtarget_asm_endian_spec.
7216         (ASM_SPEC): Use subtarget_asm_endian_spec.
7217         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7218         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7219         (WCHAR_UNSIGNED): Define.
7220         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7221         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7222         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7223         Fix value.
7224         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7225         (sh_adjust_cost): Likewise.
7226         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7227         __PTRDIFF_TYPE__ .
7228         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7229         (WCHAR_TYPE_SIZE): Likewise.
7230         (ASM_SPEC): Use subtarget_asm_endian_spec.
7231         (SH_ELF_WCHAR_TYPE): #undef/ #define.
7232         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7233         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7234         (MAX_WCHAR_TYPE_SIZE): Don't #define .
7235         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7236         (USER_LABEL_PREFIX): Don't #undef /#define .
7237         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7238         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7239         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7240         (ASM_SPEC): Likewise.
7241         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7242         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7243         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7244         (LIB2FUNCS_EXTRA): Define.
7245         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7246         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7247         (LIB1ASMFUNCS_CACHE): Define.
7248         (LIB2FUNCS_EXTRA): Redefine empty.
7250 2002-04-08  Richard Henderson  <rth@redhat.com>
7252         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7254 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7256         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7257         and optimize for size.
7258         (__do_global_ctors): Fix pointer comparison.
7259         (__do_global_dtors): Likewise.
7261 2002-04-09  David S. Miller  <davem@redhat.com>
7263         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7264         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7265         allow reloading pseudos.
7266         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7267         * config/sparc/sparc-protos.h: Declare it.
7269         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7270         unsigned comparison warning.
7271         (output_restore_regs): Mark leaf_function as unused.
7273 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7275         * expr.c (is_aligning_offset): New function.
7276         (expand_expr, case COMPONENT_EXPR): Call it.
7278 2002-04-08  David S. Miller  <davem@redhat.com>
7280         PR target/6082
7281         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7283         Make init_priority work on Sparc when using GNU ld.
7284         * config/sparc/linux.h, config/sparc/linux64.h,
7285         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7286         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7287         * config/sparc/sol2-gld.h: New file to do the same.
7288         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7289         sparc/sol2-gld.h to tm_file.
7291         PR optimization/4328
7292         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7293         * doc/md.texi: Document it.
7294         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7295         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7296         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7297         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7298         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7300 2002-04-08  Andreas Jaeger  <aj@suse.de>
7302         * stmt.c (expand_asm_operands): Revert last patch from Richard
7303         Henderson.
7305 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7307         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7308         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7310 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7312         * doc/contrib.texi (Contributors): Add David O'Brien.
7314 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7316         * configure.in (auto-build.h): Use target_alias and build_alias
7317         when running configure.
7318         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7319         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7320         * configure: Regenerate.
7322 2002-04-07  David S. Miller  <davem@redhat.com>
7324         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7326 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7328         PR 5933
7329         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7330         generating 32-bit pic code.
7332 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7334         * cppinit.c (cpp_create_reader): Initialize
7335         discard_comments_in_macro_exp.
7336         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7337         (cpp_handle_option): Handle "-CC" option.
7338         * cpplex.c (save_comment): If saving a C++ comment in
7339         a directive, convert it to a C comment.
7340         (_cpp_lex_direct): Pass second comment start character to
7341         save_comment to indicate comment type.
7342         * cpplib.c (_cpp_handle_directive): If processing
7343         a "#define" directive and discard_comments_in_macro_exp
7344         is false,  re-enable saving of comments.
7345         (lex_macro_node): If discard_comments_in_macro_exp is false,
7346         discard any comments before the macro identifier.
7347         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7348         member.
7349         * cppmacro.c (cpp_get_token): If expanding a macro while
7350         processing a directive, discard any comments we might encounter.
7351         (parse_params): If discard_comments_in_macro_exp is false,
7352         ignore comments in the macro parameter list.
7353         * gcc.c (cpp_unique_options): Add "-CC" option.
7354         (option_map): Map "--comments-in-macros" to "-CC".
7355         * doc/cppopts.texi: Document "-CC" option.
7356         * f/lang-specs.h: Add "-CC" option.
7357         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7358         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7359         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7360         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7361         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7362         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7364 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7366         PR middle-end/6180
7367         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7369 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7371         PR c++/5571
7372         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7374         PR opt/5120
7375         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7376         RTX_UNCHANGING_P for the functions arguments when a tail call
7377         is made.
7379 2002-04-06  Jason Merrill  <jason@redhat.com>
7381         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7382         (parse_options_and_default_flags): Set them appropriately.
7383         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7385 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7387         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7388         here.
7390         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7391         semicolon.
7393         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7394         types come in by-reference.  Fix typo in comment.
7396 2002-04-05  David S. Miller  <davem@redhat.com>
7398         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7399         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7400         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7401         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7403 2002-04-05  David S. Miller  <davem@redhat.com>
7405         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7406         are not going to emit return instructions, emit at least a nop
7407         for the sake of sane backtraces.
7409 2002-04-05  Richard Henderson  <rth@redhat.com>
7411         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7413 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7415         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7417 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7419         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7420         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7421         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7423 2002-04-05  Andreas Schwab  <schwab@suse.de>
7425         * c-convert.c: Include c-common.h.
7426         * Makefile.in (c-convert.o): Updated.
7428 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7430         * mklibgcc.in: Use separate libgcc.map for each multilib.
7431         * Makefile.in (distclean): Don't remove libgcc.map here.
7433 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7435         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7436         genmultilib invocation.
7438 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7440         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7441         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7442         to num_gprs for symmetry.
7443         * config/mips/mips.c: Adjust accordingly.
7445 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7447         * c-common.c (truthvalue_conversion): Rename, update.
7448         * c-common.h (c_common_truthvalue_conversion): New.
7449         * c-convert.c (convert): Update.
7450         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7451         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7452         * c-typeck.c (build_binary_op, build_unary_op,
7453         build_conditional_expr): Update.
7454         * fold-const.c (constant_boolean_node, fold): Use langhook.
7455         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7456         * langhooks.h (struct lang_hooks): New hook.
7457         * stmt.c (expand_decl_cleanup): Use langhook.
7458         * tree.h (truthvalue_conversion): Remove.
7459 objc:
7460         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7462 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7464         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7465         Add rules to make null object file.
7467 2002-04-04  Jim Blandy  <jimb@redhat.com>
7469         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7470         macro formal parameter names.
7472 2002-04-04  David S. Miller  <davem@redhat.com>
7474         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7476 2002-04-04  Richard Henderson  <rth@redhat.com>
7478         PR middle-end/5099
7479         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7480         Support copies into and out of memory.  Don't accept allows_reg
7481         and allows_mem as gospel.
7483 2002-04-04  Richard Henderson  <rth@redhat.com>
7485         PR opt/6165
7486         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7487         (write_dependence_p): Likewise.
7489 2002-04-04  Richard Henderson  <rth@redhat.com>
7491         * predict.c (estimate_bb_frequencies): Do frequency calculation
7492         with a volatile temporary.
7494 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7496         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7498 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7500         PR c++/6119
7501         * final.c (final_start_function): Don't bump profile_label_no here...
7502         (final_end_function): ...but here.
7504 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7506         * config/sparc/sparc.md (pic): New attribute.
7507         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7508         into stack slots.
7509         (split after do_builtin_setjmp_setup): New.
7511 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7513         PR fortran/6106
7514         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7515         change.
7517 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7519         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7520         UNITS_PER_WORD for zero sized aggregates.
7522 2002-04-03  David S. Miller  <davem@redhat.com>
7524         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7525         one-character spec for this, just use %(link_gcc_c_sequence).
7527 2002-04-03  David S. Miller  <davem@redhat.com>
7529         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7530         handling.
7532 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7534         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7535         (DWARF_FRAME_RETURN_COLUMN): Move.
7536         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7537         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7538         * pa.c (except.h, predict.h): Include.
7539         (FRP): Delete.
7540         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7541         (output_ascii): Add cast.
7542         (store_reg_modify): Revise to add frame notes.
7543         (set_reg_plus_d): Likewise.
7544         (compute_frame_size): Include space for eh data registers in frame if
7545         the current function calls eh_return.
7546         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7547         function calls eh_return.  Save eh data registers if the current
7548         function calls eh_return.  Fix code to add frame notes.  Emit
7549         blockage to prevent insns with frame notes being scheduled in the
7550         delay slot of calls.
7551         (hppa_expand_epilogue): Restore eh data registers and do final stack
7552         adjustment if the current function calls eh_return.  Don't add frame
7553         notes.
7554         (output_call): Revise for change in length of call insn.  Don't do
7555         return pointer adjustment for an unconditional jump in the delay slot
7556         of a call when using frame notes.
7557         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7558         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7559         (ARG_POINTER_CFA_OFFSET): Define.
7560         * pa.md (return_external_pic): New pattern.
7561         (prologue): Correct formatting.  Use return_external_pic if current
7562         function calls eh_return.
7563         (call_internal_symref, call_value_internal_symref,
7564         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7565         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7566         respectively.
7567         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7569         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7570         list of targets to check using "nop" insn.
7571         * configure: Rebuilt.
7573 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7575         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7577 2002-04-03  David S. Miller  <davem@redhat.com>
7579         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7580         library sequence passed to the linker.
7581         (LINK_COMMAND_SPEC): Use it.
7582         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7583         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7584         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7586 2002-04-03  Jason Merrill  <jason@redhat.com>
7588         * except.c (struct eh_status): Remove protect_list.
7589         (begin_protect_partials, end_protect_partials): Remove.
7590         (add_partial_entry): Remove.
7591         * except.h: Remove prototypes.
7593         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7594         expand_decl_cleanup_eh.
7596         PR c++/5636
7597         * tree.h (CLEANUP_EH_ONLY): New macro.
7598         * stmt.c (expand_decl_cleanup_eh): New fn.
7599         (expand_cleanups): Check CLEANUP_EH_ONLY.
7600         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7601         Use expand_decl_cleanup_eh.
7602         (expand_stmt): Adjust.
7603         * c-common.h: Adjust prototype.
7605 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7607         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7608         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7609         (cris_target_asm_function_epilogue): Ditto.
7610         (cris_initial_frame_pointer_offset): Ditto.
7611         (cris_simple_epilogue): Ditto.
7612         (cris_expand_builtin_va_arg): Variable-size types come in
7613         by-reference.
7615 2002-04-03  David S. Miller  <davem@redhat.com>
7617         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7618         little-endian.
7619         (set_fast_math): Correct 'fsr' type.
7621 2002-04-03  Richard Henderson  <rth@redhat.com>
7623         PR opt/3569
7624         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7625         * toplev.c (check_global_declarations): Use it.
7626         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7627         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7628         (LANG_HOOKS_DECLS): Add it.
7629         * langhooks.c (lhd_warn_unused_global_decl): New.
7630         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7631         * c-objc-common.c (c_warn_unused_global_decl): New.
7632         * c-tree.h (c_warn_unused_global_decl): Declare.
7633         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7635 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7637         * langhooks-def.h (lhd_set_decl_assembler_name,
7638         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7639         (LANG_HOOKS_INITIALIZER): Update.
7640         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7641         * langhooks.h (struct lang_hooks): New hook.
7642         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7643         (lang_set_decl_assembler_name): Remove.
7644         (init_obstacks): Don't set hook.
7645         (decl_assembler_name): New function.
7646         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7647         (decl_assembler_name): New.
7648         (lang_set_decl_assembler_name): Remove.
7650 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7652         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7653         works properly with .hidden symbols.
7654         * configure: Rebuilt.
7655         * config.in: Rebuilt.
7656         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7657         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7658         properly with .hidden symbols.
7660 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7662         PR middle-end/6102
7663         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7664         USE argument.
7666 2002-04-03  Richard Henderson  <rth@redhat.com>
7668         PR opt/4120
7669         * sched-rgn.c (sets_likely_spilled): New.
7670         (sets_likely_spilled_1): New.
7671         (add_branch_dependences): Use it.
7673 2002-04-02  Richard Henderson  <rth@redhat.com>
7675         PR opt/4311
7676         * loop.h (LOOP_FIRST_PASS): New.
7677         * loop.c (strength_reduce): Mind it when deciding to unroll.
7678         * toplev.c (rest_of_compilation): Set it.
7680 2002-04-02  David S. Miller  <davem@redhat.com>
7682         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7683         mems_ok_for_ldd_peep when the order of the loads being examined
7684         is reversed.
7685         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7686         existing comment to increase comprehension of this situation.
7688 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7690         * config/sh/sh.md: Don't use union real_extract.
7692 2002-04-02  Richard Henderson  <rth@redhat.com>
7694         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7696 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7698         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7699         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7700         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7701         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7702         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7703         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7704         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7705         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7706         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7707         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7708         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7709         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7710         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7711         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7712         Include as many configury headers via tm_file as possible.  This
7713         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7714         * config/openbsd-oldgas.h: New file.
7715         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7716         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7717         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7718         config/i386/i386-coff.h, config/i386/i386-interix.h,
7719         config/i386/iscdbx.h, config/i386/linux-aout.h,
7720         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7721         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7722         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7723         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7724         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7725         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7726         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7727         config/i386/vxi386.h: Do not directly include configury headers.
7728         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7729         Directly include configury headers that are no longer automatically
7730         included by the above headers.
7731         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7732         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7733         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7734         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7735         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7736         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7737         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7738         (TARGET_VERSION): Define.
7739         * config/i386/beos-elf.h, config/i386/freebsd.h,
7740         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7741         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7742         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7743         config/i386/sco5.h, config/i386/sysv4.h
7744         (TARGET_VERSION): Do not need to protect.
7745         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7746         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7747         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7748         config/i386/i386-interix.h, config/i386/linux-aout.h,
7749         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7750         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7751         (YES_UNDERSCORES): Do not define - not needed.
7752         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7753         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7754         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7755         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7756         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7757         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7758         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7759         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7761 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
7762             Richard Henderson  <rth@redhat.com>
7764         PR c/5484
7765         * function.c (assign_temp): Accept either type or decl argument.
7766         Detect variables whose size is too large to fit into an integer.
7767         * stmt.c (expand_decl): Pass the decl, not the type.
7769 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7771         * protoize.c: Match include directory usage with cppdefault.c.
7773 2002-04-03  Jeffrey A Law  (law@redhat.com)
7774             Hans-Peter Nilsson  <hp@bitrange.com>
7776         * combine.c (simplify_comparison): Avoid narrowing a comparison
7777         with a paradoxical subreg when doing so would drop signficant bits.
7779 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
7781         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7782         if POINTERS_EXTEND_UNSIGNED is defined.
7784 2002-04-02  Richard Henderson  <rth@redhat.com>
7786         PR opt/3967
7787         * local-alloc.c (contains_replace_regs): LO_SUM may contain
7788         replace regs.
7790 2002-04-02  Richard Henderson  <rth@redhat.com>
7792         * doc/standards.texi: Document required freestanding libc entry points.
7794 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
7796         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7797         associated splitter.  Remove MQ constraint.
7798         (ctrdi_internal4): Correct CCmode clobber.
7800 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7802         * milli64.S ($$dyncall): New function.
7803         * t-linux (LIB1ASMFUNCS): Revise module list.
7804         (LIB1ASMSRC): Use pa/milli64.S.
7806 2002-04-02  Richard Henderson  <rth@redhat.com>
7808         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7809         rename solaris_sys_varargs_h.
7811 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7813         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7814         the same mode as its component.
7816 2002-04-02  Richard Henderson  <rth@redhat.com>
7818         PR opt/190
7819         * final.c (this_is_asm_operands): Export.
7820         * output.h (this_is_asm_operands): Declare.
7821         * config/i386/i386.c (print_operand): Error odd asm operands.
7823 2002-04-02  Richard Henderson  <rth@redhat.com>
7825         PR opt/420
7826         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7828 2002-04-01  Richard Henderson  <rth@redhat.com>
7830         PR target/1538
7831         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7832         * fixinc/fixincl.x: Rebuild.
7834 2002-04-01  Richard Henderson  <rth@redhat.com>
7836         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7837         (atomic_alloc, atomic_free): New.
7838         (SIZE, MASK_FOR, PTR_IN): New.
7839         (emergency_reg_state, emergency_reg_state_free): New.
7840         (emergency_labeled_state, emergency_labeled_state_free): New.
7841         (reg_state_alloced, labeled_state_alloced): New.
7842         (alloc_reg_state, free_reg_state): New.
7843         (alloc_label_state, free_label_state, free_label_states): New.
7844         (push, pop, dup_state_stack, free_state_stack): Use them.
7845         (desc_label_state): Likewise.
7846         (uw_frame_state_for): Free label states and state stack.
7847         (uw_update_reg_address): Eliminate warnings.
7849 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
7851         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7852         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7854 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7856         * c-decl.c (grokdeclarator): Update.
7857         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7858         * c-tree.h (c_mark_addressable): New.
7859         * c-typeck.c (default_function_array_conversion, build_unary_op,
7860         build_array_ref, convert_for_assignment): Update.
7861         (mark_addressable): Rename.
7862         * calls.c (try_to_integrate, expand_call): Use langhook.
7863         * expr.c (expand_expr): Use langhook.
7864         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7865         * langhooks.h (struct lang_hooks): New hook.
7866         * stmt.c (expand_asm_operands): Use langhook.
7867         * tree.h (mark_addressable): Remove.
7868 objc:
7869         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7871 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7873         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7874         in previous change.
7876 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7878         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7879         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7881 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7883         * c-common.c (unsigned_conversion_warning, convert_and_check,
7884         unsigned_type, signed_type, shorten_compare,
7885         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7886         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7887         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7888         New.
7889         * c-decl.c (grokdeclarator): Update.
7890         * c-format.c (check_format_types): Update.
7891         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7892         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7893         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7894         * convert.c (convert_to_integer): Use new hooks.
7895         * expmed.c (make_tree): Use new hooks.
7896         * expr.c (store_expr): Use new hooks.
7897         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7898         all_ones_mask_p, unextend, fold): Use new hooks.
7899         * langhooks.h (struct lang_hooks_for_types): New hooks.
7900         * tree.h (signed_or_unsigned_type, signed_type,
7901         unsigned_type): Remove.
7902 objc:
7903         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7904         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7906 2002-03-31  Richard Henderson  <rth@redhat.com>
7908         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7909         (desc_frgr_mem): Fix reference to f16-f31.
7911 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7913         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7914         RTVEC_ELT): Const-ify.
7915         * varray.h (VARRAY_CHECK): Const-ify.
7916         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7917         ggc_mark_rtvec, ggc_mark): Const-ify.
7919 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7921         * diagnostic.c: Include langhooks-def.h.
7922         * Makefile.in (diagnostic.o): Update.
7924 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7926         * c-common.c (c_unsafe_for_reeval): Rename.
7927         * c-common.h (c_unsafe_for_reeval): Rename.
7928         * c-decl.c (finish_incomplete_decl): Rename.
7929         (c_init_decl_processing): Don't set langhook.
7930         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7931         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7932         * c-objc-common.c (c_objc_common_init): Don't set langhook.
7933         * c-tree.h (finish_incomplete_decl): Rename.
7934         * langhooks-def.h (lhd_unsafe_for_reeval): New.
7935         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7936         (LANG_HOOKS_INITIALIZER): Update.
7937         * langhooks.c (lhd_unsafe_For_reeval): New.
7938         * langhooks.h (struct langhooks): New hooks.
7939         * toplev.c (incomplete_decl_finalize_hook): Remove.
7940         (wrapup_global_declarations): Update.
7941         * tree.c (lang_unsafe_for_reeval): Remove.
7942         (unsafe_for_reeval): Update.
7943         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7944         Remove.
7945 objc:
7946         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7947         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7949 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7951         * diagnostic.c (print_error_function): Remove.
7952         (default_print_error_function): Rename.
7953         (report_error_function): Update.
7954         * diagnostic.h (print_error_function): Remove.
7955         (default_print_error_function): Remove.
7956         * langhooks-def.h (struct diagnostic_context): Predeclare.
7957         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7958         (LANG_HOOKS_INITIALIZER): Update.
7959         * langhooks.h (struct diagnostic context): Predeclare.
7960         (struct lang_hooks): New hook.
7962 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7964         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7965         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7966         !flag_pic.
7967         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7968         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7969         of PIC_OFFSET_TABLE_REGNUM thruout.
7970         * config/rs6000/rs6000.md: Likewise.
7971         * config/rs6000/darwin.h: Likewise.
7973 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7975         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7976         unsigned HOST_WIDE_INT, not unsigned int.
7978 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7980         PR middle-end/6096, middle-end/6098, middle-end/6099
7981         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7982         CODE_LABELs.
7983         (fill_slots_from_thread): Likewise.
7985 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7987         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7988         floating fields in float regs.
7989         (function_arg_record_value_2): Likewise.
7991 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7993         * config/mmix/mmix.md (define_constants): Remove misleading
7994         FIXME.  Add MMIX_fp_rO_OFFSET.
7995         ("nonlocal_goto_receiver"): Don't have stack-frame address of
7996         saved rO as part of the pattern.  Remove FIXME.
7997         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
7998         here, at output-time.
8000 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8002         PR middle-end/6100
8003         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8004         REG_BR_PRED.
8005         (output_v9branch): Likewise.
8007 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8009         * gcc.c: Revert previous patch for now.
8010         * config/i386/djgpp.h: Likewise.
8012 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8014         * config/mmix/crti.asm (_init): Register _fini with atexit.
8015         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8017 2002-03-31  Richard Henderson  <rth@redhat.com>
8019         PR target/3997
8020         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8021         (ASM_OUTPUT_DEF_FROM_DECLS): New.
8023 2002-03-31  Richard Henderson  <rth@redhat.com>
8025         * libgcc2.c (__bb_exit_func): Make static.
8027         * config/alpha/alpha.md (trap): New.
8029 2002-03-31  Richard Henderson  <rth@redhat.com>
8031         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8032         promoted argument types; build trap.
8033         (expand_builtin_trap): New.
8034         (expand_builtin): Use it.
8035         * stmt.c (expand_nl_goto_receivers): Likewise.
8036         * expr.h (expand_builtin_trap): Declare.
8037         * libfuncs.h (LTI_abort, abort_libfunc): New.
8038         * optabs.c (init_optabs): Init abort_libfunc.
8040 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8042         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8043         (LINK_COMMAND_SPEC): ... from here.
8044         (init_gcc_specs): Duplicate it here too, omitting
8045         shared_name in the second copy.
8046         (init_spec): Test for duplicate
8047         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8049 2002-03-30  David S. Miller  <davem@redhat.com>
8051         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8052         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8054 2002-03-30  Roger Sayle <roger@eyesopen.com>
8055             Richard Henderson  <rth@redhat.com>
8057         * regmove.c (combine_stack_adjustments_for_block): Avoid
8058         emitting a stack adjustment of zero bytes.  Let delete_insn
8059         update bb->head.
8061 2002-03-30  Richard Henderson  <rth@redhat.com>
8063         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8064         (sparc_emitting_epilogue): New.
8065         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8066         * config/sparc/sparc-protos.h: Update.
8067         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8068         (TARGET_SWITCHES): Update.
8069         * config/sparc/sparc.md (return): Remove.
8070         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8071         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8072         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8073         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8074         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8075         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8076         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8077         Remove MASK_EPILOGUE.
8078         * doc/invoke.texi: Update.
8080 2002-03-30  Daniel Berlin  <dan@dberlin.org>
8082         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8083         CPP will start the file for us.
8085 2002-03-30  Richard Henderson  <rth@redhat.com>
8087         PR target/5446
8088         * config/ia64/ia64.c (group_barrier_needed_p): Special case
8089         prologue_allocate_stack.
8090         (ia64_single_set): Use insn codes for recognition of special
8091         cases, not rtl matching.
8092         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8094 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
8096         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8098 2002-03-30  Richard Henderson  <rth@redhat.com>
8100         PR target/6032
8101         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8102         or -fomit-frame-pointer with profiling.
8103         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8104         (FUNCTION_PROFILER): Do nothing.
8105         (PROFILE_HOOK): New.
8106         * config/sparc/sparc.c (sparc_override_options): Don't check
8107         code models for profiling.
8108         (sparc_function_profiler): Remove.
8109         (sparc_profile_hook): New.
8110         * config/sparc/sparc-protos.h: Update.
8112 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8114         PR optimization/6086
8115         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8116         of SUBREG of volatile MEM or because the MEM was mode dependent,
8117         return CLOBBER instead of unmodified SUBREG.
8119 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
8121         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8122         when not optimizing.
8124         * toplev.c (rest_of_compilation): Cann mark_constant_function
8125         only when optimizing.
8127         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8128         are NULL.
8130         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8131         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8132         (try_optimize_cfg): clear all AUX fields.
8134         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8135         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8136         (ix86_address_cost): Be prepared for SUBREGed registers.
8137         (legitimate_address_p): Accept SUBREGed registers.
8139 2002-03-29  Richard Henderson  <rth@redhat.com>
8141         PR target/5672
8142         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8144 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8146         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8147         for aggregate and TFmode types.
8149 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8151         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8153 2002-03-29  Richard Henderson  <rth@redhat.com>
8155         PR target/5886
8156         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8157         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8159 2002-03-29  Richard Henderson  <rth@redhat.com>
8161         PR target/6041
8162         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8163         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8164         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8165         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8166         conditional.
8167         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8169 2002-03-29  Dale Johannesen <dalej@apple.com>
8171         * loop.c (combine_movables): Do allow combination of pseudos.
8173 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
8175         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8176         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8177         No functional change except ...
8178         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
8179         * doc/install.texi (*-*-freebsd*): Document port configuration.
8181 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8183         * Makefile.in (convert.o, calls.o, expmed.o): Update.
8184         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8185         Use new hooks.
8186         * builtin-types.def (BT_PTRMODE): Update.
8187         * c-common.c (type_for_size): Rename c_common_type_for_size.
8188         (type_for_mode): Similarly.
8189         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8190         Use new hook.
8191         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8192         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8193         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8194         Redefine.
8195         * c-typeck.c (common_type, comptypes, default_conversion):
8196         Use new hooks.
8197         * calls.c: Include langhooks.h.
8198         (emit_library_call_value_1): Use new hooks.  Avoid redundant
8199         calls.
8200         * convert.c: Include langhooks.h
8201         (convert_to_pointer, convert_to_integer): Use new hooks.
8202         * except.c (init_eh): Similarly.
8203         * expmed.c: Include langhooks.h.
8204         (expand_mult_add): Use new hooks.
8205         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8206         try_casesi): Similarly.
8207         * fold-const.c (optimize_bit_field_compare, make_range,
8208         decode_field_reference, fold_truthop, fold): Similarly.
8209         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8210         put_var_into_stack): Similarly.
8211         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8212         LANG_HOOKS_TYPE_FOR_SIZE): New.
8213         (LANG_HOOKS_TYPES_INITIALIZER): Update.
8214         * langhooks.h (lang_hooks_for_types): New hooks.
8215         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8216         * tree.c (get_unwidened, get_narrower): Similarly.
8217         * tree.h (type_for_mode, type_for_size): Remove.
8218         * varasm.c (force_const_mem): Use new hooks.
8219         * utils2.c (nonbinary_modular_operation): Update.
8220 objc:
8221         * objc-act.c (handle_impent): Update.
8222         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8223         Redefine.
8225 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
8227         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8228         * config/ia64/ia64.c (basereg_operand): New.
8229         * config/ia64/ia64-protos.h (basereg_operand): Declare.
8230         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8232 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8234         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8235         unwind information when frame_pointer_needed.
8236         (mmix_assemble_integer): Tweak wording in comment.
8238 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8240         * Makefile.in (except.o): Update.
8241         * except.c: Include langhooks.h.
8242         (init_eh): Use langhook.
8243         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8244         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8245         (LANG_HOOKS_INITIALIZER): Update.
8246         * langhooks.h (lang_hooks_for_types): New.
8247         (struct lang_hooks): Add it.
8248         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8249         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8250 config:
8251         * alpha/alpha.c: Include langhooks.h.
8252         (alpha_build_va_list): Use langhook.
8253         * d30v/d30v.c: Include langhooks.h.
8254         (d30v_build_va_list): Use langhook.
8255         * i386/i386.c: Include langhooks.h.
8256         (ix86_build_va_list): Use langhook.
8257         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8258         * s390/s390.c: Include langhooks.h.
8259         (s390_build_va_list): Use langhook.
8260         * stormy16/stormy16.c: Include langhooks.h.
8261         (stormy16_build_va_list): Use langhook.
8263 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8265         PR c++/5964
8266         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8267         attributes.
8268         (length): Compute variable length for branches/calls/jumps here.
8269         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8270         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8271         define branch_type attribute.
8272         (divsi3_sp32): Maximum length is 6 not 7.
8273         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8274         call_address_untyped_struct_value_sp32,
8275         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8276         * config/sparc/sparc.c (empty_delay_slot): New function.
8277         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8278         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8280 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8282         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8283         nonzero_bits if not needed.
8284         (nonzero_bits) [XOR]: Likewise.
8285         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8286         reg_last_set_mode and mode are both MODE_INT, but not equal.
8287         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8288         in nonzero_bits_mode for MODE_INT modes.
8290 2002-03-28  Richard Henderson  <rth@redhat.com>
8292         PR target/5715
8293         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8294         to GAS.  Correct drift between alternatives.
8296 2002-03-28  Richard Henderson  <rth@redhat.com>
8298         PR target/6087
8299         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8301 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8303         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8304         emulation to the linker.
8306 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8308         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8309         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8311 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8313         * combine.c (simplify_and_const_int): Make sure to apply mask
8314         when force_to_mode returns a constant integer.  PR3311.
8316 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8318         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8320 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8322         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8323         and Objective-C Dialect Options.
8325 2002-03-28  Richard Henderson  <rth@redhat.com>
8327         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8328         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8330 2002-03-28  Richard Henderson  <rth@redhat.com>
8332         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8333         on to c_expand_body.
8334         * c-tree.h (finish_function): Update decl.
8335         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8337 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8339         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8341 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8343         * rtlanal.c: Include flags.h
8344         (may_trap_p): Do not mark FP operations if trapping
8345         if !flag_trapping_math
8346         * Makefile.in (rtlanal.o): Add dependency on flag.h
8347         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8349 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8351         * mips.md: Use dconst1, not 1.0, as first argument of
8352         REAL_VALUE_LDEXP.  Don't use union real_extract.
8354 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8356         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8357         rather than $target.  Heed program_prefix and
8358         program_transform_name.  Search for gas in cross-compiler case too.
8359         "test -x" rather than "test -f".
8360         (gcc_cv_ld): Likewise.
8361         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8362         (gcc_cv_objdump): Likewise.
8363         * configure: Regenerate.
8365 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8367         * Makefile.in (attribs.o): Update.
8368         * attribs.c: Include langhooks.h.
8369         (decl_attributes): Use langhook.
8370         * c-decl.c (insert_default_attributes): Rename.
8371         * c-tree.h (c_insert_default_attributes): New.
8372         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8373         (LANG_HOOKS_INITIALIZER): Update.
8374         * langhooks.h (struct lang_hooks): New hook.
8375         * tree.h (insert_default_attributes): Remove.
8376 objc:
8377         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8379 2002-03-27  Andreas Schwab  <schwab@suse.de>
8381         * config/i386/i386.c (classify_argument): Also check for
8382         QUAL_UNION_TYPE.
8384 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8386         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8387         any more.
8389 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8391         * i960.md (ret): Set PC.
8392         (nonlocal_goto): Fix expander.
8393         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8394         some jump or call.
8396 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8398         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8399         of libcall regions.
8401 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8403         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8404         assigning to BLOCK_FOR_INSN directly.
8406 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8408         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8410 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8412         * c-common.c (c_expand_expr): Fix prototype.
8413         * c-common.h (c_expand_expr): Always declare, update.
8414         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8415         * c-objc-common.c (c_objc_common_init): No global hook.
8416         * expr.c (expand_expr): Use langhook.
8417         * expr.h (enum expand_modifier): Conditionally declare.
8418         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8419         (LANG_HOOKS_INITIALIZER): Update.
8420         * langhooks.c (lhd_expand_expr): New.
8421         * langhooks.h (struct lang_hooks): New hook.
8422         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8423         (lang_independent_init): Don't default hook.
8424 objc:
8425         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8427 2002-03-27  Richard Henderson  <rth@redhat.com>
8429         PR target/6054
8430         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8431         TARGET_CONST_GP.  Simplify conditions.
8433 2002-03-27  Richard Henderson  <rth@redhat.com>
8435         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8436         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8437         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8439 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8441         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8442         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8443         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8444         Remove unnecessary masks.
8445         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8446         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8447         -mwindows, -mdll switches and their negations.
8449 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8451         * gcc-common.c (lang_mark_false_label_stack): Remove.
8452         * ggc.h (lang_mark_false_label_stack): Similarly.
8454 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8456         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8458         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8459         or __rtems_ is defined.
8461 2002-03-26  Richard Henderson  <rth@redhat.com>
8463         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8464         if a non-trivial load was emitted.
8465         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8466         in high+extra+low case.
8468 2002-03-26  Richard Henderson  <rth@redhat.com>
8470         * config.gcc (sparc*-solaris): Use float_format=sparc.
8472 2002-03-26  Richard Henderson  <rth@redhat.com>
8474         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8475         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8476         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8477         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8478         (WINT_TYPE_SIZE): Fix at 32.
8480 2002-03-26  Richard Henderson  <rth@redhat.com>
8482         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8483         until after eh landing pad generation.
8484         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8485         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8487 2002-03-26  Richard Henderson  <rth@redhat.com>
8489         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8491 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8493         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8494         and warning switches.
8495         (cc1_options):  Likewise.
8497 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8499         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8500         Restore more of the signal context.  Set no_reg_stack_frame.
8501         * config/ia64/unwind-ia64.c (unw_state_record):
8502         Add no_reg_stack_frame, comments.
8503         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8504         (uw_update_context): Adjust bsp when unwinding from leaf,
8505         but not signal frame.
8507 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8509         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8511 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8513         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8515 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8517         PR target/5621
8518         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8519         "Add a pool_range attribute", which was lost during the ARM/Thumb
8520         merge.
8522 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8524         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8525         a register into the MAC16 accumulator.
8527 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8529         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8530         (Warning Options): Document -Wswitch-enum.
8531         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8532         -Wswitch.
8533         (warn_switch_enum): Define variables.
8534         * flags.h (warn_switch_enum): Declare variables.
8535         * stmt.c (expand_end_case_type): When warn_switch_enum /
8536         -Wswitch-enum, perform switch checks.
8537         Fix PR c/5044.
8539 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8541         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8542         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8543         (reload_muladdsi_compare0_scratch): Delete.
8545 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8547         * doc/install.texi (*-*-freebsd*): Update.
8549 2002-03-26  Richard Henderson  <rth@redhat.com>
8551         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8552         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8554         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8555         types from the normal argument frame.
8557         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8558         variable sized objects by reference.
8559         (sparc_va_arg): Receive them by reference too.
8561 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8563         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8564         code to not restoring global registers.
8566 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8568         * Makefile.in (ggc-common.o): Update.
8569         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8570         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8571         * c-tree.h (c_mark_tree): New.
8572         * ggc-common.c: Include langhooks.h.
8573         (gcc_mark_trees): Use new langhook.
8574         * ggc-callbacks.c: Delete file.
8575         * ggc.h (lang_mark_tree): Remove.
8576         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8577         (LANG_HOOKS_INITIALIZER): Update.
8578         * langhooks.h (struct lang_hooks): New hook.
8579 objc:
8580         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8582 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8584         * doc/cpp.texi: Exclude entire Top node from printed manual.
8585         Move option index after directive index.  Insert page breaks
8586         before GFDL and concept index.  Index environment variables
8587         with command line options.
8588         * doc/cppenv.texi: Use @vtable for environment variable list.
8589         Add paragraph explaining semantics of empty elements in path
8590         variables.  Exclude a cross-reference to Fishkill from the
8591         manpage.  Remove an unnecessary cross-reference of the entry
8592         right above the referer.  Don't use @anchor in text that goes
8593         into manpage.
8594         * doc/cppopts.texi: Cross-reference the environment variables
8595         section, not the specific environment variable, for consistency.
8597 2002-03-25  Richard Henderson  <rth@redhat.com>
8599         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8600         anywhere in the block.  Don't refer to insns that have been
8601         removed from the chain.  Iterate backward through the new insns.
8602         Don't refer to edges that have been removed.
8604 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8606         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8607         test for overflow of constant.
8609 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8611         PR target/2623
8612         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8613         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8614         these patterns on arm_archv4.
8616 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8618         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8619         int".
8621 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8623         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8624         float_handled, float_handler, float_signal, set_float_handler,
8625         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8626         * toplev.h: Don't prototype do_float_handler.
8628         * c-lex.c: Fold parse_float into lex_number.  Make warning
8629         about portability of hex float constants more informative, and
8630         don't issue it on top of a syntax error.
8631         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8632         their callers.
8633         * real.h: Define REAL_VALUE_ABS here...
8634         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8635         simplify_unary_real, simplify_binary_real, and
8636         simplify_binary_is2orm1 into their callers.
8637         * tree.c: Fold build_real_from_int_cst_1 into caller.
8639         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8641         * tsystem.h: Include float.h here...
8642         * libgcc2.c: ... not here.
8644 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8646         Fixes for: PR bootstrap/3591, target/5676
8647         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8648         defined.  Do not disable exceptions or rtti.
8649         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8650         mcore.h.  Disable exceptions and rtti, since they are not
8651         supported by EPOC.
8653 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8655         * c-decl.c (maybe_build_cleanup): Remove.
8656         * expr.c (expand_expr): Use langhook.
8657         * langhooks-def.h (lhd_return_null_tree,
8658         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8659         (LANGHOOKS_INITIALIZER): Update.
8660         * langhooks.c (lhd_return_null_tree): New.
8661         * langhooks.h (struct lang_hooks): New hook.
8662         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8663         * tree.h (maybe_build_cleanup): Remove.
8665 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8667         * regrename.c (build_def_use): Move recog_memoized
8668         before extract_insn.
8670 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8672         PR target/6043
8673         * expr.c (emit_group_store): Handle storing into CONCAT.
8675 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8677         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8678         corresponding MATCH_DUP.
8680 2002-03-24  Richard Henderson  <rth@redhat.com>
8682         * unroll.c (unroll_loop): Zero label_map.
8684         * gcse.c: Include except.h.
8685         * Makefile.in (gcse.o): Update.
8687 2002-03-24  Richard Henderson  <rth@redhat.com>
8689         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8690         Do resolve_unique_section before shared data clause.
8692 2002-03-24  Richard Henderson  <rth@redhat.com>
8694         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8696 2002-03-24  Richard Henderson  <rth@redhat.com>
8698         * recog.c (peephole2_optimize): Split blocks when EH insns are
8699         generated in the middle of a block.  Do global life update if
8700         zapped EH edges.
8702 2002-03-24  Richard Henderson  <rth@redhat.com>
8704         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8706 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8708         preprocessor/3951
8709         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8710         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8711         (init_dependency_output): Don't make no_output decision here.
8713 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8715         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8716         warn_switch.  Update description.
8717         (expand_end_case_type): Call check_for_full_enumeration_handling
8718         when warn_switch.
8720 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8722         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8723         (m68hc11_split_move): Call it to see if the source and destination
8724         operands use the same direction auto inc/dec mode, otherwise make the
8725         source an offsetable memory operand and generate an add.
8727 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8729         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8730         register for operand 2.
8731         ("*subsi3_zero_extendqi"): Likewise.
8732         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8733         bits so that it is compatible with a pop.
8734         ("*andhi3_gen"): Likewise.
8735         ("xorhi3"): Likewise.
8737 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8739         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8740         -pedantic here...
8741         (cpp_post_options): ... not here.
8743 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8744             Aldy Hernandez  <aldyh@redhat.com>
8746         Removal of separate preprocessor cpp0.
8748         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8749         cpp0, install-common): Update.
8750         * c-common.c (flag_preprocess_only): New.
8751         (c_common_init): Preprocess for -E.
8752         * c-common.h (flag_preprocess_only): New.
8753         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8754         * c-objc-common.c (c_init_decl_processing): Exit quickly
8755         for NULL return from c_common_init.
8756         * cpplib.h (cpp_preprocess_file): New.
8757         * cppmain.c (main, general_init, pfile, progname): Remove.
8758         (do_preprocessing): Rename cpp_preprocess_file, don't call
8759         cpp_finish.  Don't close stdout here.
8760         (setup_callbacks): Update prototype.
8761         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8762         Update.
8763         * tradcpp.c (main): Ignore -quiet.
8764 objc:
8765         * lang-specs.h (default_compilers): Preprocess with cc1obj.
8767 2002-03-24  Richard Henderson  <rth@redhat.com>
8769         PR optimization/5742
8770         * machmode.def: Add inner mode field to complex modes.
8771         * config/mips/mips.c (mips_function_value): Always define.  Add
8772         new argument to handle libcalls.
8773         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8774         (FUNCTION_VALUE): Likewise.
8775         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8776         * config/mips/mips-protos.h: Update.
8778 2002-03-23  Richard Henderson  <rth@redhat.com>
8780         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8781         * config/sparc/sparc-protos.h: Update.
8782         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8784 2002-03-23  Richard Henderson  <rth@redhat.com>
8786         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8787         _start or _init begins the text segment.
8789 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
8791         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
8792         not HOST_WIDEST_INT.
8793         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8795 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
8797         PR java/5489
8798         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8799         operand argument to output_return_instruction.
8800         * arm.c (arm_print_operand, case 'd'): If the operand is
8801         const_true_rtx then just return.
8802         (arm_print_operand, case 'D'): If the operand is const_true_rtx
8803         then abort.
8805 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8807         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8808         (Warning Options): Document -Wswitch-default.
8809         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
8810         -Wswitch.
8811         (warn_switch_default): Define variable.
8812         (warn_switch): Update comment.
8813         * flags.h (warn_switch_default): Declare variable.
8814         (warn_switch): Update comment.
8815         * stmt.c (expand_end_case): Check for and, when
8816         warn_switch_no_default, warn of a missing default case.
8818 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
8820         * real.h (N): Special case 128 bit doubles.
8822         * combine.c (simplify_comparison): When widening modes, ignore
8823         sign extension on CONST_INTs.
8825 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8827         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8828         passed to adjust_address.  Fix comment formatting.
8831 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
8833         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8834         Always make REAL_VALUE_TYPE a struct containing an array of
8835         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
8836         big it is.  Don't declare or use union real_extract.
8838         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8839         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8840         (print_operand), config/arm/arm.c (output_move_double),
8841         config/arm/arm.md (consttable_4, consttable_8),
8842         config/romp/romp.c (output_fpops), config/s390/s390.h
8843         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8844         (xtensa_output_literal): Don't use union real_extract.
8846         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8847         (sfmode_constant_to_ulong), config/ns32k/merlin.h
8848         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8849         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8850         (PRINT_OPERAND): Don't use local version of union
8851         real_extract.
8853         * config/convex/convex.c (check_float_value), config/vax/vax.c
8854         (vax_float_literal), config/m88k/m88k.md (divdf3),
8855         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8856         config/pdp11/pdp11.c (output_move_quad): Don't do host
8857         arithmetic on target floating point quantities.
8859         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8860         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8862         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8863         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8865         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8866         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8867         INFINITY.
8868         * print-rtl.c (print_rtx): Disable code which needs
8869         floating-point emulator.
8870         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8871         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8872         depending on HOST_FLOAT_FORMAT to be defined properly.
8874         * config/1750a/1750a.c (get_double, float_label): Delete.
8875         (print_operand): Delete huge commented-out chunk.  Use
8876         REAL_VALUE_TO_DECIMAL.
8877         * config/1750a/1750a-protos.h: Delete prototypes of deleted
8878         functions.
8879         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8880         IEEE_FLOAT_FORMAT.
8881         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8882         Use REAL_VALUE_TO_DECIMAL as ELF version does.
8883         * config/m88k/m88k.c (real_power_of_2_operand,
8884         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8885         real_extract out of the union; run the input through
8886         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8887         from that into the union.
8888         * config/pdp11/pdp11.c (output_move_double): Rearrange
8889         parentheses to make automatic indenter happy.
8891         * doc/tm.texi (Cross-compilation): Rename node to "Floating
8892         Point" and rewrite to describe current situation.  Also adjust
8893         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8894         match code.
8895         * doc/rtl.texi: Adjust cross reference.
8897 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8899         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8900         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8901         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8902         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8903         prevent use of sp as a reload register.
8904         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8905         non_acc_reg_operand.
8906         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8907         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8908         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8909         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8911 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8913         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8914         * cpplex.c (unterminated): Delete.
8915         (parse_string): No string literal may extend over multiple
8916         lines.  Suppress the error when preprocessing assembly.
8917         * cppmain.c (scan_translation_unit): Strings are single-line.
8919         * doc/cpp.texi: Update to match.
8921 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8923         PR optimization/5854
8924         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8925         Shut up warnings.
8926         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8927         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8928         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8929         const0 if scratch register was not allocated.
8930         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8931         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8932         with GEN_INT (...).
8933         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8934         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8935         with GEN_INT (...) everywhere.  Remove constraints in define_split
8936         patterns.
8937         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8938         require scratch register for setting 0 into regs/non-pushable memory.
8940 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8942         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8943         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8945 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
8947         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
8948         * cppinit.c (cpp_create_reader):  On by default.
8949         (cpp_handle_option):  Handle -W[no-]endif-labels.
8950         (cpp_post_options):  Also enable if -pedantic.
8951         * cpplib.c (do_else):  Use it.
8952         (do_endif):  Likewise.
8953         * doc/cppopts.texi:  Document new option.
8954         * doc/invoke.texi:  Document new option.
8956 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
8958         * config/i386/i386.c, config/i386/i386.md: Change all occurences
8959         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8961 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8963         * flow.c (calculate_global_regs_live): Clear aux fields of
8964         ENTRY and EXIT.
8966 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8968         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8969         REG or MEM subregs, pass rtx * instead of rtx to it.
8970         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8971         rtx * instead of rtx to alter_subreg.
8972         * config/m32r/m32r.c (gen_split_move_double): Likewise.
8973         * config/pj/pj.c (pj_output_rval): Likewise.
8975 2002-03-22  Richard Henderson  <rth@redhat.com>
8977         PR target/3177
8978         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8979         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8980         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8981         (ia64_expand_prologue): Look at int_regs, not words, for number
8982         of incomming int regs.
8984 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
8986         * expr.c (expand_expr): A RESULT_DECL is part of a call.
8988 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
8990         * toplev.c (flag_loop_optimize, flag_crossjumping):
8991         New static variables.
8992         (rest_of_compilation): Conditionalize crossjumping and
8993         loop optimizer.
8994         (parse_options_and_default_flags): Default loop_optimize and
8995         crossjumping.
8996         (lang_independent_options): Add -fcrossjumping and -floop-optimize
8997         * invoke.texi (crossjumping, loop-optimize): Document.
8999 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9001         * real.c (eiisneg): Move outside #ifdef NANS.
9003 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
9005         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9006         frequencies match; avoid match on different loop depths.
9007         (try_crossjump_to_bb): Kill tests that no longer brings time
9008         savings.
9009         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9010         updating code.
9011         (split_edge): Likewise.
9013         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9014         variable.
9016         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9017         * cfgrtl.c: Include insn-config.h
9018         (split_block) Dirtify block in presence of conditional execution
9020 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9022         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9023         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9024         (function_arg): Constify CUMULATIVE_ARGS.
9025         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9026         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9027         (UNITS_PER_DOUBLE): New macro.
9028         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
9029         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
9030         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
9031         fp_regs and stack_words.
9032         (EABI_FLOAT_VARARGS_P): New macro.
9033         * config/mips/mips.c (struct mips_arg_info): New.
9034         (mips_arg_info): New function.
9035         (function_arg_advance): Use it.  Add adjustment instructions here
9036         rather than in function_arg.
9037         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
9038         for VOIDmode at the beginning of the function.
9039         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
9040         (function_arg_pass_by_reference): Likewise.
9041         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9042         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9043         (mips_va_start): Likewise.  Use the new stack_words field of
9044         CUMULATIVE_ARGS to set up overflow area.  Reformat.
9045         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
9046         doubles and other types, aligning the overflow pointer for non-doubles
9047         too.  Remove some code duplication.  Replace hard-coded constants.
9049 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9051         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9052         (CLASS_UNITS): Undefine.
9053         (CLASS_MAX_NREGS): Use FP_INC.
9054         * config/mips/mips.c (compute_frame_size): Likewise.
9055         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9057 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9059         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9060         prototype, and handle lexing numbers and identifiers.
9061         (parse_identifier): Update to new form of parse_slow.
9062         (parse_number): Fast path only, use parse_slow otherwise.
9063         (_cpp_lex_direct): Update calls to parse_number.
9065 2002-03-21  DJ Delorie  <dj@redhat.com>
9067         * bb-reorder.c (make_reorder_chain_1): Protect against
9068         when redundant edges are omitted.
9069         * predict.c (dump_prediction): Likewise.
9071 2002-03-21  Richard Henderson  <rth@redhat.com>
9073         PR target/5996
9074         * fixinc/inclhack.def (solaris_stdio_tag): New.
9075         * fixinc/fixincl.x: Regenerate.
9077 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9079         PR c/5597
9080         * c-typeck.c (process_init_element): Flag non-static
9081         initialization of a flexible array member as illegal.
9083 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
9085         * config/rs6000/t-linux64: New.
9086         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9087         t-ppccomm.  Use t-rs6000 and t-linux64.
9088         (powerpc64-*-gnu* <tmake_file>): Likewise.
9089         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9090         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9091         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9093 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
9095         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9096         flag_really_no_inline instead of optimize == 0.
9098         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9100         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9102         * flags.h (flag_really_no_inline): New.
9104         * c-common.c (c_common_post_options): Initialize
9105         flag_really_no_inline.
9107         * toplev.c (flag_really_no_inline): New.
9109 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9111         * config/avr/avr.md (length): Fix length computation for
9112         conditional branches.
9114 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9116         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9117         sdbout.o, profile.o): Update.
9118         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9119         langhook.
9120         * c-common.h (gettags): Move here from tree.h.
9121         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9122         insert_block, getdecls, kept_level_p, global_bindings_p): New.
9123         * dbxout.c (dbxout_init): Use getdecls langhook.
9124         * expr.c (expand_expr): Use insert_block langhook.
9125         * fold-const.c: Include langhooks.h.
9126         (fold_range_test, fold_binary_op_with_conditional_arg,
9127         fold): Use global_bindings_p langhook.
9128         * integrate.c (expand_inline_function): Use insert_block langhook.
9129         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9130         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9131         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9132         LANG_HOOKS_GETDECLS): New.
9133         (LANG_HOOKS_INITIALIZER): Update.
9134         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9135         langhook.
9136         * langhooks.h (struct lang_hooks_for_decls): New.
9137         (struct lang_hooks): Update.
9138         * profile.c: Include langhooks.h.
9139         (output_func_start_profiler): Use new langhooks.
9140         * sdbout.c: Include langhooks.h.
9141         (sdbout_init, sdbout_finish): Use getdecls langhook.
9142         * stmt.c: Include langhooks.h.
9143         (expand_fixup, fixup_gotos): Use new langhooks.
9144         * stor-layout.c: Include langhooks.h.
9145         (variable_size): Use global_bindings_p langhook.
9146         * toplev.c (compile_file): Use getdecls langhook.
9147         * tree-inline.c (remap_block): Use insert_block langhook.
9148         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9149         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9151 2002-03-21  Richard Henderson  <rth@redhat.com>
9153         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9154         constants in .data when -fpic.
9156 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9158         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9159         where appropriate.
9161 2002-03-21  Tom Tromey  <tromey@redhat.com>
9163         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
9165 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9167         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9169         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9171 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9172             Richard Henderson  <rth@redhat.com>
9174         PR c/5354
9175         * c-common.c (c_expand_expr): Preserve result of a statement
9176         expression if needed.
9178 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9180         PR bootstrap/4195
9181         * genrecog.c (maybe_both_true_mode): Remove.
9182         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9183         * machmode.def (Pmode): Likewise.
9185 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
9187         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9188         (nonlocal_mentioned_p_1): New function.
9189         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9190         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9191         (mark_constant_function): Recognize pure functions.
9192         * rtl.h (global_reg_mentioned_p): New prototype.
9193         * rtlanal.c (global_reg_mentioned_p,
9194         global_reg_mentioned_p_1): New function.
9196 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9198         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9199         UNIX assert.h.
9200         * fixinc/fixincl.x: Regenerate.
9202 2002-03-20  Jason Merrill  <jason@redhat.com>
9204         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9206 2002-03-20  Michael Meissner  <meissner@redhat.com>
9208         * doc/invoke.texi (Optimize Options): Document that -O2 sets
9209         -fstrict-aliasing.
9211 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9213         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9214         ".literal_position" directive before the constant pool.
9216 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9218         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9219         Add Craig Rodrigues.
9220         Add Brad Lucier to testers.
9222 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9224         PR target/4792
9225         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9226         to if_then_else.
9227         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9228         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9229         instead of insn_extract.
9231 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9233         PR bootstrap/4192
9234         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9236         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9237         stmt if some case has been output.
9239 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9241         PR c/5972
9242         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9243         movsfcc_1, movdfcc_1): Add %O2.
9244         * config/i386/i386.c (print_operand): Handle %ON.
9245         Print . before float condition codes in Sun as cmov syntax.
9246         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9247         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9248         no longer true.
9250 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9252         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9253         return instruction if PC was popped.
9255 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9257         * config/xtensa/xtensa.md: Remove unused type attributes.
9258         (adddi_carry, subddi_carry): Change type attribute to "multi".
9260 2002-03-19  Dale Johannesen  <dalej@apple.com>
9262         PR optimization/5999, middle-end/5731
9263         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9264         multiplications by reciprocals.
9266 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9268         * Makefile.in: Update.
9269         * c-common.c: Include langhooks.h.
9270         (inline_forbidden_p): Use new hook.
9271         * diagnostic.c: Include langhooks.h.
9272         (format_with_decl, announce_function,
9273         default_print_error_function): Use new hook.
9274         * dwarf2out.c (dwarf2_name): Use new hook.
9275         * function.c: Include langhooks.h.
9276         (init_function_start): Use new hook.
9277         * langhooks-def.h (lhd_decl_printable_name): New.
9278         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9279         (LANGHOOKS_INITIALIZER): Update.
9280         * langhooks.c (lhd_decl_printable_name): New.
9281         * langhooks.h (struct lang_hooks): New hook.
9282         * toplev.c (decl_name, decl_printable_name): Remove.
9283         (open_dump_file): Use new hook.
9284         (process_options): Remove old hook.
9285         * tree.h (decl_printable_name): Remove.
9286 objc:
9287         * objc-act.c (objc_init): Remove old hook.
9288         (objc_printable_name): Export.
9289         * objc-act.h (objc_printable_name): New.
9290         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9292 2002-03-19  Jim Blandy  <jimb@redhat.com>
9294         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9295         the start_source_file debug hook, not the current line number.
9297 2002-03-19  Richard Henderson  <rth@redhat.com>
9299         * flow.c (EH_USES): Provide default.
9300         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9301         * doc/tm.texi (EH_USES): New.
9303         * config/ia64/ia64.c (ia64_eh_uses): New.
9304         * config/ia64/ia64-protos.h: Update.
9305         * config/ia64/ia64.h (EH_USES): New.
9307 2002-03-19  Richard Henderson  <rth@redhat.com>
9309         * varasm.c (output_constant_def): Fix stupid typo.
9311 2002-03-19  Richard Henderson  <rth@redhat.com>
9313         PR 5879
9314         * except.c (current_function_has_exception_handlers): New.
9315         * except.h: Declare it.
9316         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9317         Combine tests that disable all sibcalls for the function.
9319 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9321         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9322         for INTEGER_CST.
9324 2002-03-19  Richard Henderson  <rth@redhat.com>
9326         PR 5977, 5991
9327         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9328         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9330 2002-03-19  Jim Blandy  <jimb@redhat.com>
9332         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9333         name, even if the replacement list contains no tokens, as required
9334         by Dwarf.
9336 2002-03-19  Jason Merrill  <jason@redhat.com>
9338         * varasm.c (globalize_decl): Get the name from the RTL, not
9339         DECL_ASSEMBLER_NAME.
9341         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9343 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9345         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9346         subdi_carry): Define.
9348 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9350         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9351         about -fpic/-fPIC if extra_warnings set.
9353 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9355         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9356         TREE_STRING_POINTER.
9357         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9359 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9361         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9362         in favor of SP if FRAME_POINTER_REQUIRED is false.
9364 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9366         * emit-rtl.c (gen_int_mode): New function.
9367         * rtl.h: Prototype for it.
9368         * combine.c (make_extraction, simplify_comparison), expmed.c
9369         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9370         (convert_modes, store_field), optabs.c (expand_fix),
9371         simplify-rtx.c (neg_const_int, simplify_unary_real),
9373         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9374         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9376 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9378         PR c/5656
9379         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9380         convert_parm_for_inlining.
9381         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9382         Define.
9383         * langhooks-def.h: Likewise.
9384         * objc/objc-lang.c: Likewise.
9385         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9386         function.
9387         * tree-inline.c (initialize_inlined_parameters):
9388         Call convert_parm_for_inlining lang hook if needed.
9389         * c-typeck.c (c_convert_parm_for_inlining): New function.
9390         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9392 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9394         * calls.c (precompute_arguments): Do not assume that temporaries
9395         can be destroyed after expanding the argument.
9396         (expand_call): Likewise.
9398 2002-03-15  Eric Christopher  <echristo@redhat.com>
9400         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9401         Fix register preference on last change.
9402         * config/mips/mips.c (mips_return_in_memory): New function.
9403         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9404         * config/mips/mips-protos.h: Declare.
9405         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9406         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9408 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9410         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9411         a register too.
9412         (anddi3, iorsi3): Likewise.
9414         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9415         use %gprel for symbols that are going to be placed in linkonce
9416         sections.
9418         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9419         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9420         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9421         not needed.  Disregard leaf_function_p().
9422         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9423         mips16 frame pointer.
9424         * config/mips/mips.md (store ra): Only to small SP offsets.
9425         2001-08-22  Graham Stott  <grahams@redhat.com>
9426         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9427         return a REG rtx for the return address register.
9429 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9431         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9432         constant-pool addresses as "mode-dependent".
9433         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9435 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9437         PR target/5740
9438         * expr.c (emit_group_load): Use extract_bit_field if
9439         needed for CONCAT arguments.
9441 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9443         PR target/4863
9444         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9445         offset to the base of the table.
9446         (thumb_tablejump): Matcher for Thumb tablejump insn.
9447         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9448         as the difference of two labels.
9449         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9450         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9451         tables in the code.
9452         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9453         * arm.c (get_jump_table_size): If the table is not in the text
9454         section, return zero.
9456 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9458         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9459         of gen_rtx_SUBREG.
9460         (arm_reload_out_hi): Use gen_lowpart instead of
9461         gen_rtx_SUBREG to access QImode components.
9462         * config/arm/arm.md: Disable zero_extend split for QImode
9463         subregs in BIG_ENDIAN mode.
9464         (storehi_bigend): Match use of least significant byte.
9465         (storeinthi): Remove extraneous SUBREG.
9466         Add missing construction of operands[2].
9467         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9468         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9469         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9471 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9473         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9474         any_operand.
9476 2002-03-17  Richard Henderson  <rth@redhat.com>
9478         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9479         explicitly.
9481 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9483         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9484         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9486 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9488         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9490         * predict.c (estimate_bb_frequencies): Delete unused variables.
9492 2002-03-17  Richard Henderson  <rth@redhat.com>
9494         * config/ia64/ia64.c (ia64_attribute_table): Move before
9495         targetm definition.  Make static.
9497 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9499         * c-common.h (yyparse, c_common_parse_file): New.
9500         * c-lang.c: Include c-common.h.
9501         (LANG_HOOKS_PARSE_FILE): Redefine.
9502         * c-lex.c: Include c-common.h.
9503         (yyparse): Rename c_common_parse_file.  Call yyparse.
9504         * c-parse.in (yyparse): Remove macro.
9505         * c-tree.h (yyparse_1): Remove.
9506         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9507         (LANG_HOOKS_INITIALIZER): Update.
9508         * langhooks.h (struct lang_hoooks): New hook parse_file.
9509         * toplev.c (compile_file): Use parse_file hook.
9510         * tree.h (yyparse): Remove.
9511         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9513 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9515         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9516         float_truncate, not fix.
9517         ("*truncdfsf2_real"): Ditto.
9518         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9520         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9522 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9524         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9525         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9526         where appropriate.  Make the second reference to
9527         leaf_function_p a function call, as intended.  Reindented.
9529         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9530         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9532         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9533         add register to non-constant into sp.
9535         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9536         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9537         (mips16_gp_pseudo_rtx): Lose.
9538         (INIT_EXPANDERS): Deleted.
9539         * config/mips/mips.c (mips_init_machine_status): New.
9540         (mips_free_machine_status): New.
9541         (mips_mark_machine_status): New.
9542         (override_options): Set them.
9543         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9544         (struct machine_function): ... new.  Replaced all references.
9545         (mips_add_gc_roots): Don't mark them.
9546         (embedded_pic_fnaddr_reg): New, extracted from...
9547         (embedded_pic_offset): ... here.
9548         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9549         (movsi): Likewise.
9551 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9553         * cppinit.c: Revert -MD removal.
9555 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9557         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9558         soft registers by default for 68HC12.
9559         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9560         when compiling with -fomit-frame-pointer.
9561         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9562         (expand_epilogue): Likewise.
9563         (m68hc11_gen_rotate): Use exg when rotating by 8.
9565 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9567         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9568         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9569         (splits): Remove unused add splits.
9570         ("*addhi3_68hc12"): Tune constraints.
9571         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9572         constant fits in 8-bits and D is dead use abx/aby instructions.
9573         ("*addhi3"): Remove extern declaration of ix_reg.
9574         ("*subsi3"): Optimize and provide new split.
9575         ("subhi3"): Cleanup.
9576         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9577         (arith splits): For 68hc12 save the address register on the stack
9578         and do the arithmetic operation with a pop.
9580 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9582         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9583         allocating QImode in address registers.
9584         ("*movqi_m68hc11"): Likewise.
9586 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9588         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9590 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9592         * cppinit.c (print_help): Display -MD and -MMD.
9593         Don't display usage string.  Update assertion syntax and
9594         typo.
9595         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9596         (cpp_handle_option): Update.
9598 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9600         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9601         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9602         and define it so that regardless of target CPU size,
9603         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9604         of "int" rather than "long."
9606 2002-03-15  Richard Henderson  <rth@redhat.com>
9608         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9609         size as a tree.
9611 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9613         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9614         ("tstqi" split): Avoid using memory for tstqi on address register.
9615         (splits): Remove constraints.
9616         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9617         ("cmpdf", "cmpsf"): Remove since not used.
9618         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9619         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9621 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9623         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9624         ("neghi2"): Tighten constraints.
9625         ("one_cmplsi2"): Optimize and simplify split.
9626         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9628 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9630         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9631         and split of AND operation to clear the upper bits.
9632         ("*logicalsi3_zextqi"): Likewise.
9633         ("*logicallhi3_zexthi_ashift8"): Likewise.
9634         ("*logicalsi3_silshr16"): Likewise.
9635         ("logicalsi3_silshl16"): Likewise.
9636         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9638 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9640         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9641         (m68hc11_indirect_p): New function.
9642         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9643         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9644         TARGET_M6812.
9645         (asm_print_register): Likewise.
9646         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9647         (m68hc11_indirect_p): Declare.
9648         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9649         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9650         (TARGET_SWITCHES): New option -mrelax.
9651         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9652         destination.
9653         ("iorsi3", "xorsi3"): Likewise.
9654         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9655         ("*andhi3_mem"): New to handle destination in memory with bclr
9656         and a scratch register.
9657         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9658         ("*andhi3_const"): New when operand2 is constant.
9659         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9660         ("*andhi3_gen"): Cleanup of the old "andhi3".
9661         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9662         ("xorqi3"): Update constraints.
9664 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9666         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9667         for reg_equiv_memory_loc when the operand is a register that does
9668         not get a hard register (stack location).
9669         (tst_operand): After reload, accept all memory operand.
9670         (symbolic_memory_operand): Fix detection of symbolic references.
9671         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9672         accept symbols and any constant.
9674 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9676         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9677         note on the insn that sets the soft frame register.
9678         (must_parenthesize): ix and iy are also reserved names.
9679         (print_operand_address): One more place where parenthesis are required
9680         to avoid confusion with register names.
9681         (m68hc11_gen_movhi): Allow push of stack pointer.
9682         (m68hc11_check_z_replacement): Fix handling of parallel with a
9683         clobber.
9684         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9685         the replacement register is.
9686         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9687         and D8_REGS classes.
9688         (MODES_TIEABLE_P): All modes are tieable except QImode.
9690 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9692         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9693         (___subdi3): Likewise.
9694         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9695         (__map_data_section): Optimize 68hc11 case.
9697 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9699         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9700         than a shift to avoid adding a register with itself.
9701         (m68hc11_memory_move_cost): Take into account NO_REGS.
9702         (m68hc11_register_move_cost): Update and use memory move cost
9703         for soft registers.
9704         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9705         it gives more opportunities to cse to optimize.
9706         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9707         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9709 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9711         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9712         * c-common.def (CLEANUP_STMT): New tree node.
9713         * c-common.h (CLEANUP_DECL): New macro.
9714         (CLEANUP_EXPR): Likewise.
9715         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9716         * expr.c (expand_expr): Tidy.
9717         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9718         * tree-inline.c (initialize_inlined_parameters): Clean up
9719         new local variables.
9721 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9723         PR bootstrap/4128
9724         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9725         before movrXX only, use reg_overlap_mentioned_p.
9726         Only special case NE if just one insn can be generated.
9728 2002-03-15  Jason Merrill  <jason@redhat.com>
9730         * varasm.c (assemble_variable): Call resolve_unique_section before
9731         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
9732         of error_mark_node.
9734 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9736         PR target/5170
9737         * arm.md (split pattern for thumb shiftable immediates): Add comment
9738         explaining non-obvious test.
9740 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9742         PR target/5712
9743         * arm.md (movaddr, movaddr_insn): Delete.
9745 2002-03-15  Jason Merrill  <jason@redhat.com>
9747         * toplev.c (wrapup_global_declarations): Clarify variable handling.
9748         -fkeep-static-consts doesn't apply to comdats.
9750 2002-03-14  Richard Henderson  <rth@redhat.com>
9752         * c-decl.c: Include c-pragma.h.
9753         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9754         (finish_function): Tidy.
9755         * c-pragma.c: Include c-common.h.
9756         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9757         (handle_pragma_weak): Use them.
9758         (init_pragma): Register pending_weaks.
9759         * c-pragma.h (maybe_apply_pragma_weak): Declare.
9760         * print-tree.c (print_node): Print DECL_WEAK.
9761         * varasm.c (mark_weak_decls): Remove.
9762         (remove_from_pending_weak_list): Remove.
9763         (add_weak): Remove.
9764         (asm_emit_uninitialised): Call globalize_decl for weak commons.
9765         (weak_decls): Make a tree_list.
9766         (declare_weak): Cons weak_decls directly.
9767         (globalize_decl): Remove weak_decls elements directly.
9768         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
9769         symbols.  Don't pretend to handle aliases.
9770         (init_varasm_once): Update weak_decls registry.
9771         * Makefile.in: Update dependencies.
9773 2002-03-14  Richard Henderson  <rth@redhat.com>
9775         PR target/5312
9776         * config/ia64/ia64.c: Include tm_p.h last.
9777         (gen_nop_type): Remove duplicate definition.
9778         (cycle_end_fill_slots): Set sched_data for second L slot.
9779         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9780         (nop_cycles_until): Fix typos.
9782 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9784         PR optimization/5891
9785         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9787 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9789         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9790           descriptors correctly.
9792 2002-03-14  Michael Meissner  <meissner@redhat.com>
9794         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9795         100, allowing MAX_UNROLLED_INSNS to be overridden.
9797         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9798         --param.
9800         * unroll.c (params.h): Include.
9801         (MAX_UNROLLED_INSNS): Delete, now in params.h.
9803         * doc/invoke.texi (--param max-unroll-insns): Document.
9805         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9807 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9809         * arm.md: Fix warnings about constraints in peepholes and splits.
9811 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
9813         * cpphash.h (struct lexer_state): Remove line_extension member.
9814         * cpplib.c (dequote_string, do_linemarker): New functions.
9815         (linemarker_dir): New data object.
9816         (DIRECTIVE_TABLE): No longer need to interpret #line in
9817         preprocessed source.  Delete obsolete comment about return
9818         values of handlers.
9819         (end_directive, directive_diagnostics, _cpp_handle_directive):
9820         Don't muck with line_extension.
9821         (directive_diagnostics): No need to issue warnings for
9822         linemarkers here.
9823         (_cpp_handle_directive): Issue warnings for linemarkers here,
9824         when appropriate.  Dispatch linemarkers to do_linemarker, not
9825         do_line.
9826         (do_line): Code to handle linemarkers split out to do_linemarker.
9827         Convert escape sequences in filename argument, both places.
9829         * cppmacro.c (quote_string): Rename cpp_quote_string and
9830         export.  All callers changed.
9831         * cpplib.h (cpp_quote_string): Prototype.
9832         * cppmain.c (print_line): Call cpp_quote_string on to_file
9833         before printing it.
9835         * doc/cpp.texi: Document that escapes are now interpreted in
9836         #line and in linemarkers, and that non-printing characters are
9837         converted to octal escapes when linemarkers are generated.
9839 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
9841         * emit-rtl.c (try_split): Use delete_insns.
9842         * recog.c (split_all_insns): Fix terminating condition.
9844 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9845             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9847         PR target/5828
9848         * arm.c (arm_output_epilogue): Fix floating-point register save
9849         adjustment when using a frame pointer.
9851 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
9853         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9854         * config/mips/mips.c (compute_frame_size): Retrofit them here.
9855         (save_restore_insns, mips_expand_epilogue): And here.
9856         (build_mips16_call_stub): And here.
9857         (mips_function_value): Use the new macros to decide whether a single
9858         or complex float can be returned in floating-point registers.  Return
9859         a parallel rtx in the complex case.
9861 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9863         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9864         call after liveness analysis.
9866         * recog.c (split_insn): Use delete_insn_and_edges.
9868         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9869         instructions to have branch prediction notes.
9870         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9872 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
9874         * configure.in: Don't pass -Wno-long-long to a ADA compiler
9875         that doesn't support it.
9876         * configure: Regenerate.
9878 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9880         PR target/5626
9881         * config/sparc/sparc.md (normal_branch, inverted_branch,
9882         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9883         inverted_fp_branch): Adjust calls to output_cbranch.
9884         Set length attribute.
9885         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9886         output_v9branch.  Set length attribute.
9887         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9888         predicates.
9889         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9890         (output_cbranch): Likewise.  Handle far branches.
9891         (output_v9branch): Handle far branches.
9892         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9893         Adjust prototypes.
9894         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9895         noov_compare64_op predicates.
9897 2002-03-13  Jason Merrill  <jason@redhat.com>
9899         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9900         into the function and constify it.
9901         * gthr-dce.h, gthr-solaris.h: Likewise.
9903 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
9905         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9906         * config/rs6000/rs6000.c (rs6000_va_arg): Use
9907         std_expand_builtin_va_arg if not ABI_V4.
9909 2002-03-13  Jason Merrill  <jason@redhat.com>
9911         * varasm.c (globalize_decl): New fn.
9912         (assemble_start_function): Use it.
9913         (asm_emit_uninitialized): Use it.
9914         (assemble_alias): Use it.
9915         (assemble_variable): Use it.
9917 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
9919         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9920         2002-03-12 internal visibility change.
9921         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9922         visibility into SYMBOL_REF_FLAG.
9924 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
9926         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9927         VOIDmode operand.  Add compile-time optimization for constant results.
9929 2002-03-12  Jason Merrill  <jason@redhat.com>
9931         * c-typeck.c (convert_for_assignment): Don't allow conversions
9932         between pointers and references.  Only allow lvalues to convert to
9933         reference.
9935 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
9937         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9938         before prologue, to avoid scheduling problems.
9940 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9942         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9943         (ELIMINABLE_REGS): Add sfp->sp.
9944         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9946 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9948         PR optimization/5892
9949         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9951 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9953         * loop.c (basic_induction_var): Don't call convert_modes if mode
9954         classes are different.
9956 2002-03-12  Richard Henderson  <rth@redhat.com>
9958         PR optimization/5901
9959         * function.c (reposition_prologue_and_epilogue_notes): Position
9960         the markers after/before the last/first insn not deleted.
9962 2002-03-12  Richard Henderson  <rth@redhat.com>
9964         PR optimization/5878
9965         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9966         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9967         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9969         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9970         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9971         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9973         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9974         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9975         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9976         also.  Don't set it if not flag_pic.
9977         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9978         to be INVALID_REGNUM when not used.
9980 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
9982         * expmed.c (store_bit_field): Reset alias set for memory.
9983         (extract_bit_field): Same.
9985 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9987         * c-common.c (c_tree_code_type, c_tree_code_length,
9988         c_tree_code_name, add_c_tree_codes): Delete.
9989         * c-common.h (add_c_tree_codes): Delete.
9990         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9991         Define.
9992         * c-objc-common.c (c_objc_common_init): Don't call
9993         add_c_tree_codes, instead set lang_unsafe_for_reeval.
9994         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9995         objc_tree_code_name, add_objc_tree_codes): Delete.
9996         (objc_init): Don't call add_objc_tree_codes.
9997         * objc/objc-lang.c (tree_code_type, tree_code_length,
9998         tree_code_name): Define.
9999         * toplev.c (lang_independent_init): Don't set
10000         tree_code_length[IDENTIFIER_NODE].
10001         * tree.c (tree_code_type, tree_code_length, tree_code_name):
10002         Delete definitions, moved to language front-ends.
10003         * tree.def (IDENTIFIER_NODE): Hardwire the length.
10004         * tree.h (tree_code_type, tree_code_length, tree_code_name):
10005         Const-ify.
10006         (tree_code_length): Change type to unsigned char.
10008 2002-03-12  Richard Henderson  <rth@redhat.com>
10010         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10011         internal visibility change.
10013 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10015         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10016         validize_mem() instead of change_address to avoid clobbering
10017         memory attributes.
10019 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10021         * c-lex.h (position_after_whitespace): Remove.
10023 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
10025         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10026         (lex_string): Use unsigned char pointers.
10028 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10030         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10031         is not a valid memory_operand.
10033 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10035         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10036         * config/xtensa/lib1funcs.asm: Fix copyright to include
10037         special case for libgcc files.
10038         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10039         (__divsi3): Likewise.
10040         (__umodsi3): Likewise.
10041         (__modsi3): Likewise.
10042         * config/xtensa/lib2funcs.S: Fix copyright to include
10043         special case for libgcc files.
10045 2002-03-12  Tom Rix  <trix@redhat.com>
10047         * collect2.c (resolve_lib_name): Move outside of
10048         OBJECT_FORMAT_COFF ifdef.
10049         (ignore_library): Same.
10051 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10053         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10055 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10057         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10058         to function_section before writing out the constant pool.
10060 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
10062         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10063         zero_constant.
10064         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10066 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
10068         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10069         (adddi3): Likewise.
10070         (movdf): Likewise.
10071         (movdi): Likewise.
10072         (cmpsi splitter): Likewise.
10073         (modsi3): Fail if <= 0.
10074         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10075         redundant test when HOST_BITS_PER_WIDE_INT != 32.
10076         (reg_or_sub_cint64_operand): Likewise.
10077         (num_insns_constant_wide): Optimize sign extension.
10078         (rs6000_legitimize_address): Likewise.
10080 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10082         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10083         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10085 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10087         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10088         address calculation.
10090 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10092         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10093         scratch register to DImode / TImode.
10094         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10095         register used does not overlap the target.
10097 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10099         * Makefile.in (debug.o): Depend on debug.h.
10100         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10101         * debug.c (do_nothing_debug_hooks): Likewise.
10102         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10103         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10104         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10105         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10106         * dwarfout.c (dwarf_debug_hooks): Likewise.
10107         * integrate.c (output_inline_function): Likewise.
10108         * objc/objc-act.c (synth_module_prologue): Likewise.
10109         * sdbout.c (sdb_debug_hooks): Likewise.
10110         * toplev.c (debug_hooks): Likewise.
10111         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10113 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10115         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10116         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10117         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10118         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10119         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10120         * defaults.h (POINTER_SIZE): Define.
10121         * doc/tm.texi (POINTER_SIZE): Document default.
10123 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10125         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10127 2002-03-11  Richard Henderson  <rth@redhat.com>
10129         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10130         if rebuild_label_notes_after_reload.
10132 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
10134         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
10135         emit pic register load if "internal" visibility.
10136         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10137         (cris_expand_builtin_va_arg): Do all computations on trees.
10139 2002-03-11  Richard Henderson  <rth@redhat.com>
10141         * rtlanal.c: Include recog.h.
10142         (keep_with_call_p): Fix thinko.
10143         * Makefile.in (rtlanal.o): Update dependencies.
10145 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
10147         * genflags.c (gen_insn): Use IS_VSPACE.
10148         * genoutput.c (output_insn_data): Likewise.
10149         (process_template): Likewise.
10151 2002-03-11  Richard Henderson  <rth@redhat.com>
10153         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10155 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10157         * Makefile.in: Update.
10158         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10159         Update documentation.
10160         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10161         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10163 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
10165         * Makefile.in: Give texi2pod its input file as a command line
10166         argument, not on stdin.
10168 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
10169             Daniel Berlin  <dan@dberlin.org>
10171         C++ alias analysis improvement.
10172         * alias.c (record_component_aliases): Record aliases for base
10173         classes too.
10175 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
10177         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10179 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
10181         * toplev.c (vms_fopen): Remove, not needed.
10183         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10185         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10187         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10188         for FP, already done later.
10190         * toplev.c (debug_args): Add entry for VMS_DEBUG.
10191         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10193 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
10195         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10196         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10197         LARGEST_EXPONENT_IS_NORMAL for the given mode.
10198         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10199         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10200         (ediv, emul, eldexp, esqrt): Likewise.
10201         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10202         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10203         (saturate): New function.
10204         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10205         (make_nan): Use a saturation value instead of a NaN if
10206         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
10207         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10208         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
10209         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
10210         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10211         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10212         !ROUND_TOWARDS_ZERO.
10213         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10214         (ROUND_TOWARDS_ZERO): Document.
10216 2002-03-11  Andreas Jaeger  <aj@suse.de>
10218         * cfg.c (dump_flow_info): Remove unused variable.
10220 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
10222         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10223         computations on trees.
10225 2002-03-10  Richard Henderson  <rth@redhat.com>
10227         PR 5693:
10228         * reload.c (copy_replacements_1): New.
10229         (copy_replacements): Use it to recurse through the rtx.
10231 2002-03-10  Richard Henderson  <rth@redhat.com>
10233         * loop.c (strength_reduce): Compute number of iterations as
10234         unsigned HOST_WIDE_INT.
10236 2002-03-10  Richard Henderson  <rth@redhat.com>
10238         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10239         to move away from the end of the block.
10241 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10243         PR preprocessor/5899
10244         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10246 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10248         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10250         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10252 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10254         * config/mmix/mmix.c: Improve comments.
10255         (mmix_target_asm_function_prologue): Drop variable
10256         empty_stack_frame.  Don't allocate unused slot above fp.
10257         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10258         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10259         brace in first column.
10260         (enum reg_class): Ditto.
10261         (FIRST_PARM_OFFSET): Now 0.
10262         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10264 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10266         * combine.c (make_extraction): Fix error in last change.
10268 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10270         * c4x.c (c4x_fp_reglist): Const-ify.
10271         * cris.c (cris_print_operand): Likewise.
10272         * i386.c (ix86_va_arg): Likewise.
10273         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10274         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10275         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10276         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10277         * mcore.h (regno_reg_class): Likewise.
10278         * mips.c (gen_int_relational): Likewise.
10279         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10280         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10281         * pdp11.c (move_costs): Likewise.
10282         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10283         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10284         Likewise.
10285         * s390.h (regclass_map): Likewise.
10286         * sh.c (shift_amounts): Likewise.
10287         * sh.md (rotlsi3): Likewise.
10289 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10291         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10292         (ne0+5): Use new clobber to generate proper shift pattern.
10293         Patch by Michael Matz <matz@kde.org>.
10295 2002-03-09  Andreas Schwab  <schwab@suse.de>
10297         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10299 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10301         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10303 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10305         PR middle-end/5877
10306         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10307         even for non-representable constants.
10309 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10311         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10312         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10313         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10314         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10315         (pop_function_context): Compute MAY_SHARE parameter for
10316         fixup_var_refs.
10317         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10318         (gen_mem_addressof): Call fixup_var_refs with new parm.
10320         * combine.c (make_extraction): Don't make extension of CONST_INT.
10322 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10324         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10325         in o32 and o64 ABIs.
10326         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10327         but getting fixed-size structs passed in registers regardless of
10328         padding in o32 and o64 ABIs.
10330         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10331         offset before loading address of argument passed by transparent
10332         reference.
10334 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10336         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10338 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10340         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10341         marker such that registers after it are saved.
10343 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10345         * sparc.c (arith_4096_operand): Fix error in last change.
10347 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10349         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10350         defaults for MEABI.
10352 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10354         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10355         vectors.
10357 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10359         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10361 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10363         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10364         removed; fix return value.
10365         * combine.c (combine_instructions): Dirtify blocks where we failed to
10366         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10367         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10369 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10371         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10373 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10375         * recog.c (peephole2_optimize): Re-distribute EH edges.
10377 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10379         * expr.c (expand_expr): Use unsave lang hook.
10380         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10381         (LANG_HOOKS_INITIALIZER): Update.
10382         * langhooks.h (struct lang_hooks): New hook unsave.
10383         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10384         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10385         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10386         (unsave_expr_now): Remove.
10387         * tree.h (unsave_expr_now, lang_unsave,
10388         lang_unsave_expr_now): Remove.
10389         (lhd_unsave): New.
10391 2002-03-08  Andreas Jaeger  <aj@suse.de>
10393         * flow.c (propagate_block_delete_insn): Remove unused variable.
10395 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10397         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10398         insn length for memory load/store.
10400 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10402         * doc/install.texi (--with-libiconv-prefix): Document.
10404 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10406         * doc/sourcebuild.texi: Fix typo.
10408 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10410         PR c/3711
10411         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10412         trees.
10414 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10416         * rtl.c (copy_most_rtx): Move from here ...
10417         * emit-rtl.c (copy_most_rtx): ... to here.
10419 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10421         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10422         SUBTARGET_CPP_SIZE_SPEC.
10423         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10425         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10427 2002-03-07  Matt Hiller  <hiller@redhat.com>
10429         * gensupport.c (first_dir_md_include): Renamed from include;
10430         change all references.
10431         (last_dir_md_include): Renamed from last_include; change all
10432         references.
10433         (init_md_reader): Unconditionally initialize base_dir whether or
10434         not filename is a relative path.
10436 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10438         * config/fp-bit.c (_unord_f2): Compile it in even if
10439         US_SOFTWARE_GOFAST is enabled.
10441         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10442         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10443         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10444         NULL_RTX, try reversing the comparison and the operands.
10446 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10448         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10449         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10450         and MATCH_OP_DUP.
10452 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10454         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10456 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10458         * basic-block.h (fixup_abnormal_edges): Declare.
10459         * reload1.c (fixup_abnormal_edges): New function.
10460         * reg-stack.c (convert_regs): Use it.
10462         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10464         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10466 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10468         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10469         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10470         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10471         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10472         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10473         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10474         unless x and y could be infinite.
10475         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10476         Check that the common type of both arguments is a real, even for
10477         targets without unordered comparisons.  Allow an integer argument
10478         to be compared against a real.
10479         (expand_tree_builtin): Use expand_unordered_cmp.
10480         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10481         * cse.c (fold_rtx): Likewise.  Fix indentation.
10482         * fold-const.c (fold_real_zero_addition_p): New.
10483         (fold): Use it, and the new HONOR_... macros.
10484         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10485         * jump.c (reversed_comparison_code_parts): After searching for
10486         the true comparison mode, use HONOR_NANS to decide whether it
10487         can be safely reversed.
10488         (reverse_condition_maybe_unordered): Remove IEEE check.
10489         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10490         to decide which simplifications are valid.  Allow the following
10491         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10492         and (a - -b) to (a + b).
10493         (simplify_relational_operation): Use HONOR_NANS.
10494         * doc/tm.texi: Document the MODE_HAS_... macros.
10496 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10498         * combine.c (simplify_comparison): If simplifying a logical shift
10499         right and compare with constant, force the comparison to unsigned.
10501 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10503         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10505         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10506         -mabi=no-altivec
10507         (alt_reg_names): Remove % for vrsave.
10509 2002-03-06  Richard Henderson  <rth@redhat.com>
10511         PR optimization/5844
10512         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10513         if used indicates we've already emitted one copy of an operand.
10514         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10515         (gen_split): Supply a non-null used.
10517 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10519         * reload1.c (reload): Unshare all rtl after reload is done.
10521         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10522         but simply fail if the expression is too complex to simplify.
10523         (simplify_gen_binary): Handle simplify_plus_minus failures.
10525 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10527         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10528         consistently call delete_trivially_dead_insns after CSE and GCSE;
10529         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10530         after liveness2; update comment in last crossjumping.
10531         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10533 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10535         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10536         after completing fast dead code elimination.
10538         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10539         COMPARE operator.
10541 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10543         * version.c:  Fix misplaced leading blanks on first line.
10545 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10547         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10549 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10551         * cfgcleanup.c (mentions_nonequal_regs): New function.
10552         (thread_jump): Use it.
10553         * toplev.c (rest_of_compilation): Run jump threading after
10554         liveness.
10556 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10558         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10559         patch.
10561 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10563         * predict.c (estimate_bb_frequencies): Do not reload the
10564         frequencies from notes.
10566 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10568         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10569         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10571         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10572         delete_noop_moves): Return indeger.
10573         * flow.c (ndead): New variable.
10574         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10575         BB argument; update callers.
10576         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10577         (life_analysis): Do not call purge_all_dead_edges.
10578         (update_life_info): Return number of deleted insns; print statistics.
10579         (update_life_info_in_dirty_blocks): likewise.
10580         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10581         return number of insns deleted.
10583         * cse.c: Include timevar.h
10584         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10585         iterate until stabilizes; print statistics; return number of killed
10586         insns.
10587         * Makefile.in: (cse.o): Add timevar.h dependency
10588         * rtl.h (delete_trivially_dead_insns): New.
10589         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10590         * toplev.c (rest_of_compilation): Update callers.
10592         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10593         (try_optimize_cfg): Do not update liveness.
10594         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10595         removal stabilizes; use delete_trivially_dead_insns.
10597         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10599 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10601         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10602         callbacks when processing assembly language.
10604 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10606         * pa.h (ASM_FILE_END): Define.
10607         * som.h (ASM_FILE_END): Delete.
10609         * pa.c (function_arg): Don't pass floats in general registers in
10610         indirect calls if TARGET_ELF32.
10612 2002-03-05  Richard Henderson  <rth@redhat.com>
10614         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10616 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10618         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10620 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10622         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10623         -r command line.  Don't hide any symbols if not building
10624         shared libgcc.
10626 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10628         * cfg.c (dump_flow_info): Warn about profile mismatches.
10629         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10630         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10632 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10634         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10635         wide volatile memory by parts.
10637 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10639         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10640         is NULL.
10642 2002-03-05  Richard Henderson  <rth@redhat.com>
10644         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10646 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10648         * toplev.c (documented_lang_options): Document more
10649         language-specific options.
10650         * doc/invoke.texi (Warning Options): Correct documentation for
10651         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10652         * c-decl.c (c_decode_option): Use a table to handle warning options.
10654 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10656         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10657         parameter to mmix_encode_section_info.
10658         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10659         relocatably.  Always produce ELF, not mmo if linking relocatably.
10660         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10661         first is non-zero, don't add symbol prefix.
10662         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10663         prototype accordingly.
10665 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10667         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10669 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10671         * configure.in: Increase required makeinfo version to 4.1.
10672         * configure: Regenerate.
10674 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10676         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10677         elsewhere now.
10679 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10681         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10682         * doc/invoke.texi: Fix @math uses.
10684 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10686         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10687         removal
10689 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10691         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10692         (powerpc-*-eabisimaltivec*): Same.
10694         * config/rs6000/t-ppcendian: New.
10696 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10698         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10699         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10700         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10702 2002-03-03  Richard Henderson  <rth@redhat.com>
10704         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10706 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10708         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10709         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10710         tree.c, config/m68k/m68k.c:
10711         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10712         REAL_ARITHMETIC blocks unconditional.  Delete some further
10713         #ifdef blocks predicated on REAL_ARITHMETIC.
10714         * flags.h, toplev.c: Delete remaining references to
10715         flag_pretend_float.
10717         * doc/invoke.texi: Remove documentation of -fpretend-float.
10718         * doc/tm.texi: Describe the various REAL_* macros as provided by
10719         real.h, not by the target configuration files.
10721         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10722         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10723         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10724         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10725         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10726         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10727         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10728         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10729         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10730         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10731         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10732         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10733         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10734         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10735         config/xtensa/xtensa.h:
10736         Do not define, undefine, or mention in comments any of
10737         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10738         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10739         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10740         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10741         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10742         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10743         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10744         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10745         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10747 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10749         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10750         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10751         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10752         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10753         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10754         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10755         Delete.
10756         * defaults.h (BITS_PER_WORD): Define.
10757         * doc/tm.texi (BITS_PER_WORD): Document default value.
10759         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10760         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10761         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10763 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10765         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10766         lieu of explicit sizeof/sizeof.
10767         * i386.c (override_options, ix86_init_mmx_sse_builtins,
10768         ix86_expand_builtin): Likewise.
10769         * mips.c (mips_add_gc_roots): Likewise.
10770         * mmix.c (mmix_output_condition): Likewise.
10771         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10772         altivec_init_builtins): Likewise.
10773         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10774         * cppexp.c (Nsuff, parse_number): Likewise.
10775         * cppinit.c (builtin_array_end): Likewise.
10776         * gcc.c (n_default_compilers, process_command): Likewise.
10777         * genpreds.c (output_predicate_decls): Likewise.
10778         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10779         * lcm.c (N_ENTITIES): Likewise.
10780         * stor-layout.c (set_sizetype): Likewise.
10782 2002-03-03  Richard Henderson  <rth@redhat.com>
10784         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10785         for types or labels.
10787 2002-03-03  Richard Henderson  <rth@redhat.com>
10789         * c-decl.c (start_decl): Initialized variables are not common.
10791 2002-03-02  Per Bothner  <per@bothner.com>
10793         * gcc.c (option_map):  Suport new --bootclasspath option.
10794         --CLASSPATH is now just an alias for --classpath.
10796 2002-03-02  Richard Henderson  <rth@redhat.com>
10798         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10799         load if "internal" visibility.
10800         * doc/extend.texi: Document visibility meanings.
10802 2002-03-02  Richard Henderson  <rth@redhat.com>
10804         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10805         to functions as well.
10807 2002-03-02  Richard Henderson  <rth@redhat.com>
10809         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10810         (handle_visibility_attribute): Don't call assemble_visibility.
10811         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10812         without asmspec.  Invoke assemble_alias when needed.
10813         * varasm.c (maybe_assemble_visibility): New.
10814         (assemble_start_function, assemble_variable, assemble_alias): Use it.
10816 2002-03-02  Richard Henderson  <rth@redhat.com>
10818         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10819         invoke ENCODE_SECTION_INFO with first call flag.
10821         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10822         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10823         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10824         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10825         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10826         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10827         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10828         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10829         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10830         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10831         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10832         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10833         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10834         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10835         config/mcore/mcore-protos.h, config/mcore/mcore.c,
10836         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10837         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10838         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10839         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10840         config/sh/sh.h, config/sparc/sparc.h,
10841         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10842         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10843         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10844         FIRST argument.  As needed, examine it and do nothing.
10846         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10847         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10848         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10850         * config/arm/t-pe (pe.o): Add dependencies.
10852 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10854         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10855         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10856         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10857         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10858         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10859         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10860         * defaults.h (BITS_PER_UNIT): Define.
10861         * doc/tm.texi (BITS_PER_UNIT): Document default value.
10863 2002-03-02  Kazu Hirata  <kazu@hxi.com>
10865         * config/h8300/h8300-protos.h: Add a prototype for
10866         compute_a_shift_length.
10867         * config/h8300/h8300.c (h8300_asm_insn_count): New.
10868         (compute_a_shift_length): Likewise.
10869         (h8300_adjust_insn_length): Do not adjust insn length of shift
10870         insns.
10871         * config/h8300/h8300.md (anonymous shift patterns): Use
10872         compute_a_shift_length.
10874 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10876         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10877         trunc_int_for_mode.
10879         * emit-rtl.c (offset_address): Call update_temp_slot_address.
10881 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10883         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10884         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10885         * flags.h (flag_zero_initialized_in_bss): Declare.
10886         * toplev.c (flag_zero_initialized_in_bss): New flag.
10887         (lang_independent_options): Add flag_zero_initialized_in_bss.
10888         * tree.c (initializer_zerop): New function.
10889         * tree.h (initializer_zerop): Declare.
10890         * varasm.c (assemble_variable): If we can emit bss, put zero
10891         initializers in the bss section.
10893 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
10895         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10896         like more than one symbol per .weak directive.
10898 2002-03-01  Richard Henderson  <rth@redhat.com>
10900         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10901         adjust argument_pointer by pretend_args_size.
10902         (ia64_va_start): Adjust va_start address by -pretend_args_size.
10904 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10906         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10908 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
10910         * toplev.c (rest_of_compilation): Delete dead jumptables before
10911         loop.
10912         * flow.c (delete_dead_jumptables): Make global.
10913         * rtl.h (delete_dead_jumptables): Declare.
10915 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
10917         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10918         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10919         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10921 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10923         * config/h8300/h8300-protos.h: Fix formatting.
10924         * config/h8300/h8300.c: Likewise.
10925         * config/h8300/h8300.h: Likewise.
10927 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10929         * config/h8300/h8300.c (print_operand): Support 16-bit
10930         constant addresses.
10931         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10933 2002-02-28  Richard Henderson  <rth@redhat.com>
10935         * expmed.c (store_bit_field): Prevent generation of CONCATs;
10936         pun complex values as integers; use gen_lowpart instead of
10937         gen_rtx_SUBREG.
10938         (extract_bit_field): Likewise.
10940 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
10941             David Edelsohn  <edelsohn@gnu.org>
10943         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10944         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10945         (SUPPORTS_WEAK): Likewise.
10946         * output.h (add_weak): Add tree param.
10947         * varasm.c (add_weak): Likewise.  Save decl.
10948         (struct weak_syms): Add decl field.
10949         (mark_weak_decls): New function.
10950         (init_varasm_once): ggc_add_root mark_weak_decls.
10951         (assemble_start_function): Use ASM_WEAKEN_DECL.
10952         (assemble_variable): Likewise.
10953         (assemble_alias): Likewise.
10954         (declare_weak): Pass decl to add_weak.
10955         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10956         (remove_from_pending_weak_list): Declare and define for
10957         ASM_WEAKEN_DECL.
10958         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10959         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10960         * defaults.h (SUPPORTS_WEAK): Likewise.
10961         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10962         .weak for code sym.  Do emit .size for descriptor sym.
10963         (ASM_DECLARE_FUNCTION_SIZE): Define.
10964         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10965         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
10966         .lglobl unless TARGET_XCOFF.  Formatting fixes.
10967         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10968         .weak for code sym.
10969         (HANDLE_PRAGMA_WEAK): Remove.
10970         (ASM_WEAKEN_LABEL): Remove.
10971         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10973 2002-03-01  Jason Merrill  <jason@redhat.com>
10975         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10976         (TARGET_EXPR_CLEANUP): New macro.
10978 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
10980         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10981         to take ptr_extend into account as third type of extension.
10982         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10983         fields used by SUBREG_PROMOTED_UNSIGNED_P.
10984         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10985         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10986         * calls.c (precompute_arguments): Use new macro.
10987         (expand_call): Ditto.
10988         * combine.c (nonzero_bits): Ditto.
10989         (record_promoted_value): Ditto.
10990         * expr.c (store_expr): Ditto.
10991         (expand_expr): Ditto.
10992         * function.c (assign_parms): Ditto.
10994 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
10996         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10997         override -shared and -shared-libgcc.
10999 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
11001         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11002         of "ultrasparc".
11003         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
11004         to be broken.
11006 2002-02-28  Richard Henderson  <rth@redhat.com>
11008         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11009         4 cycle latency from MM producers.
11010         (ia64_internal_sched_reorder): Likewise with pipeline flush.
11012 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
11014         * mklibgcc.in: Don't use GNU make extension.
11016 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11018         * c-parse.in (STATIC): New terminal.
11019         (scspec): New non-terminal.  Update productions accordingly.
11020         (program): Remove bogus ifc / end ifc.
11021         (array_declarator): Simplify production using STATIC.
11023 2002-02-28  Jim Meyering  <meyering@lucent.com>
11025         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11026         \a still means TARGET_BELL.
11028 2002-02-28  Richard Henderson  <rth@redhat.com>
11030         * haifa-sched.c (sched_emit_insn): New.
11031         (schedule_block): Use last_scheduled_insn to track last insn.
11032         * sched-int.h (sched_emit_insn): Prototype.
11033         * config/ia64/ia64.c (last_issued): Remove.
11034         (ia64_variable_issue): Don't set it.
11035         (nop_cycles_until): Use sched_emit_insn.
11037 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
11039         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11040         extended constants.
11042 2002-02-28  Kazu Hirata  <kazu@hxi.com>
11044         * config/h8300/h8300.c: Fix formatting.
11045         * config/h8300/h8300.h: Likewise.
11047 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11049         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11050         which may overwrite the high byte of the frame pointer.
11052 2002-02-28  Bo Thorsen  <bo@suse.de>
11054         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11055         (STARTFILE_SPEC): Add 64 bit files.
11056         (ENDFILE_SPEC): Likewise.
11058 2002-02-28  Jason Merrill  <jason@redhat.com>
11060         * c-decl.c (finish_function): Only warn about missing return
11061         statement with -Wreturn-type.
11063 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11065         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11067         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11068         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11070 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11072         * basic-block.h (BB_REACHABLE): Renumber.
11073         (BB_DIRTY, BB_NEW): New flags.
11074         (clear_bb_flags): Declare.
11075         (update_life_info_in_dirty_blocks): Declare.
11076         * cfg.c (clear_bb_flags): New function.
11077         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11078         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11079         reorder_insns, emit_insn_after): Mark block as dirty.
11080         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11081         (update_life_info_in_dirty_blocks): New function.
11082         * recog.c (apply_change_group): Dirtify block.
11084         * cse.c (cse_insn): Reorder emitting of jump insn to keep
11085         cfg consistent.
11086         * gcse.c (delete_null_pointer_checks): Likewise.
11088         * toplev.c (dump_file_index): Move cse2 after bp,
11089         add DFI_null
11090         (dump_file_info): Similary.
11091         (rest_of_compilation): Avoid most of CFG rebuilds;
11092         do first if converision after null pointer checks, do cse2
11093         after branch prediction; avoid full liveness rebuild after
11094         initializing subregs.
11095         * invoke.texi (-d options): Document -du, renumber.
11097         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11098         (notice_new_block): Do not set BB_UPDATE_LIFE.
11099         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11100          merge_blocks_move_successor_nojumps, merge_blocks,
11101          try_crossjump_to_edge): Likewise.
11102         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11103         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11104         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11105         (merge_of_block): Do not use life_data_ok.
11106         (find_if_case_1): Do not use SET_UPDATE_LIFE.
11107         (if_convert): Use BB_DIRTY mechanizm to update life.
11108         * lcm.c (optimize_mode_switching): Update
11109         update_life_info_in_dirty_blocks
11111 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11113         * Makefile.in (integrate.o): Update.
11114         * c-decl.c (copy_lang_decl): Rename.
11115         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11116         * integrate.c: Include langhooks.h.
11117         (copy_decl_for_inlining): Update to use langhook.
11118         * langhooks-def.h (lhd_do_nothing_t,
11119         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11120         (LANG_HOOKS_INITIALIZER): Update.
11121         * langhooks.c (lhd_do_nothing_t): New.
11122         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11123         * tree.h (copy_lang_decl): Remove.
11124 objc:
11125         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11127 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
11129         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11130         POST_DEC, and POST_MODIFY.
11132 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11134         * c-typeck.c (digest_init): Remove unused parameter; all
11135         callers changed.
11137 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
11139         * expmed.c (expand_shift): Correctly test for low part of a
11140         subreg.
11142 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
11144         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11145         insn UIDs with insn addresses.
11147 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11149         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11150         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11151         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11152         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11153         gcc.c, toplev.c: Delete code implementing -traditional mode.
11155         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11156         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11157         Document removal of -traditional mode for compilation, and
11158         remove documentation only relevant to that mode.
11160         * config/nextstep.h, config/ptx4.h, config/svr4.h,
11161         config/convex/convex.h, config/d30v/d30v.h,
11162         config/i386/dgux.h, config/i386/osf1elf.h,
11163         config/i386/osfelf.h, config/i386/osfrose.h,
11164         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11165         config/m68k/hp310.h, config/m88k/dgux.h,
11166         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11167         config/m88k/m88k.h, config/m88k/openbsd.h,
11168         config/mips/abi64.h, config/mips/osfrose.h,
11169         config/mips/svr4-5.h, config/mips/svr4-t.h,
11170         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11171         config/stormy16/stormy16.h: Remove all references to
11172         -traditional from target specs.  Delete all mention of the
11173         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
11174         delete a couple of commented-out definitions of
11175         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11176         to -traditional.
11178         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11179         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11181 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11183         * mklibgcc.in: Don't use \n in a line subject to
11184         interpretation by echo.
11186 2002-02-27  Graham Stott  <grahams@redhat.com>
11188         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11189         Constify NAME.
11191         * loop.c (prescan_loop): Handle PARALLEL.
11193         * unroll.c (loop_iterations): Return 0 if the add_val for
11194         a BIV is REG.
11196         * final.c (output_operand_lossage): Constify PFX_STR.
11198         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11200 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11202         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11203         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11205 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
11207         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11209 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11211         * cpplex.c (_cpp_lex_token): Handle directives in macro
11212         arguments.
11213         * cpplib.c (_cpp_handle_directive): Save and restore state
11214         if parsing macro args when entering a directive.
11215         * cppmacro.c (collect_args): No need to handle directives
11216         in macro arguments.
11217         (enter_macro_context, replace_args): Use the original macro
11218         definition in case it was redefined whilst collecting arguments.
11219 doc:
11220         * cpp.texi: Update.
11222 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
11224         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11225         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11226         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11227         method on AIX.
11228         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11229         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11230         (load_toc_v4_PIC_2): Same.
11232 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
11234         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11236 2002-02-26  Richard Henderson  <rth@redhat.com>
11238         * config/alpha/alpha.md (ashldi_se): Re-enable.
11240 2002-02-26  Richard Henderson  <rth@redhat.com>
11242         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11243         MODULE_LOCAL_P; improve commentary.
11245 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11247         * doc/cpp.texi: Clarify documentation of relationship between
11248         #line and #include.
11250 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11252         * config/h8300/h8300-protos.h: Update the prototype for
11253         compute_logical_op_length.  Add the prototype for
11254         compute_logical_op_cc.
11255         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11256         code from operands.
11257         (compute_logical_op_cc): New.
11258         * config/h8300/h8300.md: Combine all the logical op patterns
11259         in HImode and SImode.  Use compute_logical_op_cc.
11261 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11263         * config/i386/i386.c (print_operand): Don't append ATT-style
11264         length suffixs to x87 opcodes when in Intel mode.
11266 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11268         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11269         (init_emit_once): Update calls.
11270         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11271         (init_syntax_once): Prototype.
11273 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11275         * pa-linux.h (LIB_SPEC): Update definition.
11276         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11278 2002-02-26  Richard Henderson  <rth@redhat.com>
11280         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11281         if we emitted a stop bit.
11283 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11285         * configure.in (libgcc_visibility): Substitute.
11286         * configure: Rebuilt.
11287         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11288         defined symbols .hidden.
11290 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11292         * attribs.c (c_common_attribute_table): Add visibility.
11293         (handle_visibility_attribute): New function.
11294         * varasm.c (assemble_visibility): New function.
11295         * output.h (assemble_visibility): Add prototype.
11296         * tree.h (MODULE_LOCAL_P): Define.
11297         * crtstuff.c (__dso_handle): Use visibility attribute.
11298         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11299         for MODULE_LOCAL_P symbols too.
11300         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11301         MODULE_LOCAL_P symbols the same way as local symbols.
11302         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11303         into .sdata/.sbss by the user.
11304         * doc/extend.texi (Function Attributes): Document visibility
11305         attribute.
11307 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11309         PR debug/5770
11310         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11311         STRING_CST initializer spanning the whole variable without
11312         embedded zeros.
11313         If expand_expr returned MEM, don't use it.
11315 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11317         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11318         generate a die for the lexical block.
11320 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11322         * config/h8300/h8300-protos.h: Add a prototype for
11323         compute_logical_op_length.
11324         * config/h8300/h8300.c (compute_logical_op_length): New.
11325         * config/h8300/h8300.md (anonymous logical patterns): Use
11326         compute_logical_op_length for length.
11328 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11330         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11331         for vectors.
11332         (gen_type_die): Same.
11334         * attribs.c (handle_vector_size_attribute): Set debug information.
11336 2002-02-26  Daniel Egger  <degger@fhm.edu>
11338         * config/rs6000/rs6000.md: Swap define_insn attributes to
11339         fix incorrect generation of merge high instructions instead
11340         of merge low.
11342 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11344         * c-typeck.c (really_start_incremental_init): Use
11345         bitsize_zero_node for vectors.
11347 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11349         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11350         ("*set_vrsave_internal"): Same.
11352 2002-02-25  Richard Henderson  <rth@redhat.com>
11354         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11355         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11357 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11359         PR target/5755
11360         * config/i386/i386.c (ix86_return_pops_args): Only pop
11361         fake structure return argument if it was passed on the stack.
11363 2002-02-25  Jason Merrill  <jason@redhat.com>
11365         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11366         RESULT_DECL.
11368 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11370         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11371         link with shared_name only.
11372         * doc/invoke.texi (Link Options): Document new behavior.
11374 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11376         * c-typeck.c (push_init_level): Handle vectors.
11378 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11380         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11381         operands of SPARC_SETHI_P.
11382         (input_operand): Likewise.
11383         (sparc_emit_set_const32): Likewise.
11384         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11385         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11386         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11387         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11388         (movdi_insn_sp64_vis): Likewise.
11389         (movdi split, movdf split): Use SETHI32.
11390         * doc/md.texi: Document SPARC constraints L, M and N.
11392 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11394         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11395         ("*set_vrsave_internal"): use mfspr for Darwin.
11397         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11398         gen_get_vrsave_internal.
11400 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11402         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11404 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11406         * cpplex.c (cpp_interpret_charconst): Get signedness or
11407         otherwise of wide character constants correct.
11408         * cppexp.c (lex): Get signedness of wide charconsts correct.
11410 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11412         * optabs.c (widen_operand): Only call convert_modes for
11413         promoted SUBREG if signedness matches.
11414         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11416 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11418         * cpplib.c (glue_header_name): Use local buffer to build up
11419         header name.
11421 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11423         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11425 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11427         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11428         H8/300[HS] separately.
11429         * config/h8300/h8300.md: Remove the early clobber constraint
11430         from bit field patterns.
11432 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11434         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11435         register_operand.
11436         (mulhisi3): Likewise.
11437         (umulqisi3): Likewise.
11438         (umulhisi3): Likewise.
11440 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11442         * cppinit.c (output_deps): Correct test for stdout output.
11443         (init_dependency_output): Cure warning.
11445 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11447         * expr.c (store_expr): When converting expression to promoted
11448         equivalent type, allow using SUBREG_REG of TARGET as the target
11449         of the expansion of EXP.
11450         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11451         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11452         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11453         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11454         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11456 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11458         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11459         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11460         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11462 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11464         PR optimization/5747
11465         * loop.c (scan_loop): Update reg info if move_movables created new
11466         pseudos.
11468 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11470         * gcc.c (init_gcc_spec): Revert last change.
11472 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11474         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11475         gpc_reg_operand constraint.
11477 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11479         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11480         Simplify comparison of `low'.
11481         (add_operand): Fix formatting.
11482         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11483         (mask_operand): Disallow mask to wrap in 64-bit mode.
11484         (rs6000_stack_info): Remove redundant test setting push_p.
11485         (output_toc): Fix formatting.
11486         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11487         cc_reg_not_cr0_operand constraint.
11488         (booldi3, boolcdi3 splitters): Same.
11490 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11492         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11494 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11496         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11497         gcc invoked with -shared-libgcc.
11499 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11501         PR c++/5748
11502         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11503         decl if any of elements was TREE_USED.
11505 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11507         * config/sparc/sol2.h: Don't include sys/mman.h.
11508         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11509         (arith_4096_operand): Don't throw high bits away.
11510         (const64_operand): Take sign extension of CONST_INTs into account.
11511         (const64_high_operand, sparc_emit_set_const32): Likewise.
11512         (GEN_HIGHINT64): Likewise.
11513         (sparc_emit_set_const64_quick1): Likewise.
11514         (const64_is_2insns): Likewise.
11515         (print_operand): Use trunc_int_for_mode for sign extension.
11516         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11517         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11518         chars.  Assume CONST_INT is already properly sign-extended.
11519         (movdi split): Sign-extend each SImode part.
11520         (andsi3 split): Don't mask high bits off, so that result
11521         remains properly sign-extend.
11522         (iorsi3 split): Likewise.
11523         (xorsi3 split): Likewise.
11525 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11527         * fold-const.c (fold): Fix typo in comments.
11529 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11531         * Makefile.in (langhooks.o): Update dependencies.
11533 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11535         * langhooks.c: Include flags.h.
11537 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11539         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11541         * c-common.c (c_common_post_options): Set inline trees by
11542         default.
11544         * doc/extend.texi (Function Attributes): Document always_inline
11545         attribute.
11546         Update documentation about inlining when not optimizing.
11548         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11550         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11551         unless DECL_ALWAYS_INLINE.
11553         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11554         unless DECL_ALWAYS_INLINE.
11555         (c_disregard_inline_limits): Disregard if always_inline set.
11557         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11558         Disregard if always_inline set.
11559         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11560         unless DECL_ALWAYS_INLINE.
11562         * attribs.c (handle_always_inline_attribute): New.
11563         (c_common_attribute_table): Add always_inline.
11565         * config/rs6000/altivec.h: Add prototypes for builtins
11566         requiring the always_inline attribute.
11568 2002-02-21  Eric Christopher  <echristo@redhat.com>
11570         * expmed.c (store_bit_field): Try to simplify the subreg
11571         before generating a new one when when the mode size of
11572         value is less than maxmode.
11574 2002-02-21  Richard Henderson  <rth@redhat.com>
11576         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11577         than gen_rtx_PLUS to form the sum.
11578         * explow.c (force_reg): Rearrange to not allocate new pseudo
11579         when force_operand returns a register.
11580         * expr.c (expand_assignment): Allow offset_rtx expansion to
11581         return a sum.  Do not force addresses into registers.
11582         (expand_expr): Likewise.
11583         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11584         to canonicalize arithmetic that didn't simpify.
11585         (simplify_plus_minus): New argument force; update
11586         all callers.  Don't split CONST unless we can do something with it,
11587         and wouldn't lose the constness of the operands.
11589         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11590         that we generated earlier.
11592 2002-02-21  Tom Tromey  <tromey@redhat.com>
11594         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11595         (output_line_info): Use constant `1', with a long explanatory
11596         comment.
11597         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11599 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11601         * jump.c (redirect_jump): If old label has no UID, don't try to
11602         delete it.
11604 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11606         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11607         If input is constant, do shifts at compile time.
11609 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11611         * doc/extend.texi: Fix some more overfull hboxes.
11613 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11615         PR optimization/4994
11616         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11617         register moves.
11619 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11621         PR c++/4574
11622         * expr.h (expand_and): Add mode argument.
11623         * expmed.c (expand_and): Add mode argument.
11624         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11625         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11626         * except.c (expand_builtin_extract_return_addr): Likewise.
11627         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11628         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11629         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11630         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11631         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11632         gen_rtx (CONST_INT, VOIDmode, x).
11634 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11636         PR c/4697:
11637         * stmt.c (warn_if_unused_value): Move side effects test once more.
11639 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11641         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11642         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11644 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11646         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11647         SUBREG or ZERO_EXTEND.
11649 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11651         * sh.h (current_function_anonymous_args): Remove.
11652         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11653         of current_function_varargs and current_function_stdarg is set.
11654         * sh.c (sh_expand_prologue): Check current_function_varargs /
11655         current_function_stdarg / TARGET_SH5 instead of
11656         current_function_anonymous_args.
11658         * sh64.h (TARGET_VERSION): Define.
11660 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11662         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11663         VRSAVE_REGNO on TARGET_ALTIVEC.
11665 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11667         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11668         bits of SImode const_int.
11669         (includes_rshift_p): Likewise.
11670         (print_operand): Call mask_operand and mask64_operand with correct
11671         mode.
11672         (rs6000_output_function_epilogue): Pad traceback table to word.
11673         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11674         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11675         mask64_operand with correct mode.
11676         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11678 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11680         PR debug/4461
11681         * varasm.c (get_pool_constant_mark): New.
11682         * rtl.h (get_pool_constant_mark): Add prototype.
11683         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11684         be represented if it has not been output.
11686 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11688         * combine.c (do_SUBST): Sanity check substitutions of
11689         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11690         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11691         CONST_INT into its operand.
11692         (known_cond): Likewise, for ZERO_EXTEND.
11693         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11694         allow for simplification of wide modes.  Reject CONST_INTs in
11695         ZERO_EXTEND when their actual mode is not given.
11697 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11699         * c-decl.c (pushdecl): If no global declaration is found for an
11700         extern declaration in block scope, try a limbo one.
11702 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11704         PR c++/4401
11705         * c-common.c (pointer_int_sum): Moved from...
11706         * c-typeck.c (pointer_int_sum): ...here.
11707         * c-common.h (pointer_int_sum): Add prototype.
11709 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11711         PR c++/5713
11712         * c-decl.c (duplicate_decls): Return 0 if issued error about
11713         redeclaration.
11715 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11716             Jakub Jelinek  <jakub@redhat.com>
11718         PR c/4389
11719         * tree.c (host_integerp): Ensure that the constant integer is
11720         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11721         when pos is zero or non-zero respectively.  Clarify comment.
11722         * c-format.c (check_format_info_recurse): Fix host_integerp
11723         usage; the pos argument should be zero when assigning to a
11724         signed HOST_WIDE_INT.
11726 2002-02-20  Richard Henderson  <rth@redhat.com>
11728         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11729         of the operand, rather than assuming TImode.
11730         (ix86_expand_binop_builtin): Cope with commutative patterns
11731         using nonimmediate_operand for both operands.
11732         (ix86_expand_timode_binop_builtin): Likewise.
11733         (ix86_expand_store_builtin): Validate operand 1.
11734         (ix86_expand_unop1_builtin): Likewise.
11736 2002-02-20  Philip Blundell  <philb@gnu.org>
11738         PR 5705
11739         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11741 2002-02-20  Richard Henderson  <rth@redhat.com>
11743         PR c/5615
11744         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11746 2002-02-20  Tom Tromey  <tromey@redhat.com>
11748         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11749         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11750         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11751         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11752         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11753         unconditionally.
11755 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11757         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11758           for (const_int 0) in X not just INTVAL.
11760 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11762         * doc/extend.texi: Avoid or reduce overfull hboxes.
11764 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
11766         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11767         operations if the field does not start at a mode boundary.
11769 2001-02-20      Joel Sherrill <joel@OARcorp.com>
11771         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11772         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11773         Also done for -Acpu and -Amachine.
11775 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11777         * cppinit.c (init_dependency_output): Take deps output file
11778         from -o if none given with -MF.  Suppress normal output.
11779         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11780         * doc/cpp.texi, doc/invoke.texi: Update.
11782 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11784         * toplev.c (output_quoted_string): Write unprintable
11785         characters with octal escapes.
11787 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11789         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11790         really_call_used[VRSAVE_REGNO] if not Altivec.
11792 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
11794         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11795         MODE_MASK.
11796         (constant_pool_expr_1): Fix formatting.
11797         (rs6000_legitimize_reload_address): Likewise.
11799 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11801         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11802         now that we have one.
11804 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11806         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
11807         end of first block of bitfields (which was only seven bits);
11808         rename dummy to unused_1; remove comment which is no longer true.
11810 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11812         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11814 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11816         PR 5399
11817         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11818         if generating PIC.
11820         PR 5054
11821         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11822         arm_is_longcall_p rather than inspecting call-type cookie
11823         directly.
11824         (call_value_insn) [TARGET_THUMB]: Likewise.
11826 2002-02-19  Graham Stott  <grahams@redhat.com>
11828         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11830 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11832         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11833         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11834         (FP_SAVE_INLINE): Delete.
11836         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11837         * config/rs6000/eabi.asm: Remove ABI save restore routines.
11838         * config/rs6000/t-ppccomm: Build crtsavres.o.
11839         * config/rs6000/crtsavres.asm: New file.
11841 2002-02-19  Philip Blundell  <philb@gnu.org>
11843         * config/arm/arm.c (use_return_insn): Don't reject interrupt
11844         functions.
11845         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11846         (output_return_instruction): Allow interrupt functions to return with
11847         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
11848         (arm_expand_prologue): Subtract 4 before stacking LR in an
11849         interrupt function.
11851 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11853         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11854         decl, not just FUNCTION_DECL.
11855         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11856         (arm_assemble_integer): Likewise.
11857         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11858         marked local.
11860 2002-02-19  matthew green  <mrg@eterna.com.au>
11862         * config.gcc (sparc-*-netbsdelf*): Enable target.
11863         (sparc64-*-netbsd*): New target.
11864         * config/sparc/netbsd-elf.h: New file.
11865         * config/sparc/t-netbsd64: New file.
11867 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11869         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11871 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
11873         * doc/invoke.texi: explicitly list the style guidelines that
11874         -Weffc++ checks for.
11876 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
11878         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11880 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11882         PR other/5718
11883         * gcc.c (cpp_unique_options): Treat -o as indicating object file
11884         only if not -E.  If -E, pass -o through to the preprocessor.
11886 2002-02-19  Kazu Hirata  <kazu@hxi.com>
11888         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11889         register number with an appropriate macro.
11891 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11893         * doc/rtl.texi (Constants): Close @code tag.
11895 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
11897         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11898         ("mmx_uavgv4hi3"): Same.
11899         ("pmulhrwv4hi3"): Same.
11901         * tree-inline.c (walk_tree): Handle vectors.
11903         * c-common.c (constant_expression_warning): Handle vectors.
11904         (overflow_warning): Same.
11906         * sched-deps.c (sched_analyze_2): Handle vectors.
11908         * rtlanal.c (rtx_unstable_p): Handle vectors.
11909         (rtx_varies_p): Same.
11910         (count_occurrences): Same.
11911         (regs_set_between_p): Same.
11912         (modified_between_p): Same.
11913         (modified_in_p): Same.
11914         (volatile_insn_p): Same.
11915         (volatile_refs_p): Same.
11916         (side_effects_p): Same.
11917         (may_trap_p): Same.
11918         (inequality_comparisons_p): Same.
11919         (replace_regs): Same.
11920         (computed_jump_p_1): Same.
11922         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11923         argument.
11924         (inner_mode_array): New.
11925         (copy_rtx): Handle vectors.
11926         (copy_most_rtx): Same.
11927         (rtx_equal_p): Same.
11928         (get_mode_alignment): Adjust for vectors.
11930         * resource.c (mark_referenced_resources): Handle vectors.
11931         (mark_set_resources): Same.
11933         * reload1.c (eliminate_regs): Handle vectors.
11934         (elimination_effects): Same.
11935         (scan_paradoxical_subregs): Same.
11937         * reload.c (subst_reg_equivs): Handle vectors.
11939         * regrename.c (scan_rtx): Handle vectors.
11941         * regclass.c (reg_scan_mark_refs): Handle vectors.
11943         * recog.c (find_single_use_1): Handle vectors.
11945         * local-alloc.c (equiv_init_varies_p): Handle vectors.
11946         (contains_replace_regs): Same.
11947         (memref_referenced_p): Same.
11949         * integrate.c (copy_rtx_and_substitute): Handle vectors.
11950         (subst_constants): Same.
11952         * genattrtab.c (attr_copy_rtx): Handle vectors.
11953         (encode_units_mask): Same.
11954         (clear_struct_flag): Same.
11955         (count_sub_rtxs): Same.
11957         * gcse.c (want_to_gcse_p): Handle vectors.
11958         (oprs_unchanged_p): Same.
11959         (hash_expr_1): Same.
11960         (oprs_not_set_p): Same.
11961         (expr_killed_p): Same.
11962         (compute_transp): Same.
11963         (store_ops_ok): Same.
11965         * function.c (purge_addressof_1): Do not allow paradoxical subregs
11966         of vectors.
11967         (fixup_var_refs_1): Same.
11968         (instantiate_virtual_regs_1): Same.
11970         * fold-const.c (operand_equal_p): Handle vectors.
11971         (fold): Same.
11972         (rtl_expr_nonnegative_p): Same.
11974         * flow.c (mark_used_regs): Handle vectors.
11976         * df.c (df_uses_record): Handle vectors.
11978         * cselib.c (cselib_subst_to_values): Handle vectors.
11979         (cselib_mem_conflict_p): Same.
11980         (hash_rtx): Same.
11982         * cse.c (canon_reg): Handle vectors.
11983         (fold_rt): Same.
11984         (cse_process_notes): Same.
11985         (count_reg_usage): Same.
11986         (canon_hash): Same.
11988         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11990         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11992         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11993         (gen_rtx): Handle CONST_VECTOR.
11994         (gen_const_vector_0): New.
11995         (copy_rtx_if_shared): CONST_VECTORs can be shared.
11996         (reset_used_flags): Same.
11997         (copy_insn_1): Same.
11998         (initializer_constant_valid_p): Handle VECTOR_CST.
12000         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12002         * doc/rtl.texi (Constants): Document const_vector.
12003         (CONST0_RTX): Update for vectors.
12004         (RTL sharing): Same.
12006         * print-tree.c (print_node): Add case for VECTOR_CST.
12008         * tree.h (TREE_VECTOR_CST_ELTS): New.
12009         (struct tree_vector): New.
12010         (union tree_node): Add vector node.
12011         (build_vector): Add prototype.
12013         * tree.def (VECTOR_CST): New.
12015         * tree.c (build_vector): New.
12017         * expmed.c (make_tree): Handle CONST_VECTOR.
12019         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12020         (CONST_VECTOR_ELT): New.
12021         (CONST_VECTOR_NUNITS): New.
12023         * machmode.h (GET_MODE_INNER): New.
12024         (DEF_MACHMODE): Accept 8th arg.
12026         * machmode.def: Add 8th argument for vector inner mode.
12027         Add inner vector modes for vectors.
12029         * rtl.def (VEC_CONST): Remove.
12030         (CONST_VECTOR): New.
12032         * expr.c (clear_storage): Allow vectors.
12033         (is_zeros_p): Handle VECTOR_CST.
12035         * varasm.c (output_constant_pool): Handle vectors.
12036         (rtx_const): Add veclo and vechi fields.
12037         (kind): Add RTX_VECTOR.
12038         (decode_rtx_const): Add case for vector.
12040         * config/rs6000/rs6000-protos.h: Add zero_constant.
12042         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12043         constants.  Force easy vector constants into memory.
12044         (easy_vector_constant): New.
12045         (emit_easy_vector_constant): New.
12046         (rs6000_legitimize_reload_address): Do not generate bad reloads on
12047         darwin.
12049         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12050         instruction does.
12051         ("altivec_lvxl"): Same.
12052         (altivec_lvebx): Same.
12053         (altivec_lvehx): Same.
12054         (altivec_lvewx): Same.
12055         ("*movv4si_const0"): New.
12056         ("*movv4sf_const0"): New.
12057         ("*movv8hi_const0"): New.
12058         ("*movv16qi_const0"): New.
12060 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12062         * config/h8300/h8300.c (notice_update_cc): Use
12063         cc_status.value2.
12065 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12067         * config/h8300/h8300.md (divmod patterns): Change the
12068         constraints for operands[1] to register_operand.
12070 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12072         * config/h8300/h8300-protos.h: Remove the prototype for
12073         p_operand.
12074         * config/h8300/h8300.c (p_operand): Remove.
12075         * config/h8300/h8300.md: Replace p_operand with
12076         const_int_operand.
12078 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12080         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12081         comment.
12082         (output_return_instruction): Allow use of LDR to unstack
12083         return addresss even for interrupt handlers or when
12084         interworking.  If compiling for ARMv5, use interworking-safe
12085         return instructions by default.  Remove duplicated code and
12086         lengthy "strcat" sequences.
12088 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12090         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12091         (LINK_EH_SPEC): Define.
12092         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12094 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
12096         * config/s390/s390.c (s390_emit_prologue): Do not set the
12097         frame_related flag for call-clobbered registers.
12099 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12101         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12102         (construct_container): Fix handling of SSE operands.
12103         (ix86_expand_builtin): Fix handling of 64bit pointers.
12104         (mmx_maskmovq_rex): New pattern.
12106 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12108         * regrename.c (kill_set_value): Handle subregs properly.
12110 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
12112         * objc/objc-act.c (handle_impent): Remove leading '*'
12113         from objc_class_name.
12115 2002-02-17  Richard Henderson  <rth@redhat.com>
12117         * config/alpha/alpha.c (some_small_symbolic_operand,
12118         some_small_symbolic_operand_1, split_small_symbolic_operand,
12119         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12120         Handle small SYMBOL_REFs anywhere, not just inside memories.
12121         * config/alpha/alpha-protos.h: Update.
12122         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12123         * config/alpha/alpha.md (small symbolic operand splitter): Update.
12125 2002-02-17  Roland McGrath  <roland@frob.com>
12127         * config.gcc (powerpc-*-gnu-gnualtivec*,
12128         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12129         * config/rs6000/gnu.h: New file.
12130         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12131         Grok "gnu" in rs6000_abi_name.
12132         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12133         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12134         Grok -mcall-gnu analogous to -mcall-linux et al.
12135         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12136         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12137         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12139 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
12141         PR c/3444:
12142         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12143         shortening.
12145 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12147         * config/cris/cris.h: Undefine STARTFILE_SPEC and
12148         ENDFILE_SPEC before (re)defining them.
12150 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12152         * config/h8300/h8300.c: Fix formatting.
12153         * config/h8300/h8300.h: Likewise.
12155 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12157         * doc/tm.texi: Explain why empty strings should not be
12158         marked for translation.
12160 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12162         * final.c (output_operand_lossage): Changed to accept
12163         printf style arguments. Change calls where necessary.
12164         * output.h (output_operand_lossage): Change declaration
12165         accordingly. Update copyright.
12166         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12167         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12168         Update copyright date where necessary.
12170         * config/i386/i386.c (print_operand): Likewise. Remove use of
12171         sprintf.
12173         * config/cris/cris.c (cris_operand_lossage): Likewise.
12174         Rename parameter so that exgettext recognizes it as
12175         translatable message.
12176         (LOSE_AND_RETURN): Rename parameter to msgid.
12178 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12180         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12181         hard coded register number with an appropriate macro.
12182         (HARD_REGNO_MODE_OK): Likewise.
12183         (ARG_POINTER_REGNUM): Likewise.
12184         (STATIC_CHAIN_REGNUM): Likewise.
12185         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12186         * config/h8300/h8300.md (define_constants): Define more
12187         register numbers.
12189 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12191         * config/i386/i386.h: Don't mark empty strings for translation.
12193 2002-02-16  H.J. Lu <hjl@gnu.org>
12195         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12197 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
12199         * cppinit.c (merge_include_chains): Check for brack being
12200         NULL before attempting to merge it with qtail.
12202 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12204         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12205         DBX_DEBUG.
12207 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12209         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12211 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12213         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12214         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12215         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12217 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12219         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12220         now only if !TARGET_FIX.
12221         (*movsi_nt_vms_fix): New pattern.
12223 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
12225         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12226         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12227         (alpha_sa_mask, alpha_sa_size): Reflect above change.
12228         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12229         (alpha_start_function, alpha_expand_epilogue): Likewise.
12230         (unicosmk_gen_dsib): Likewise.
12232 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12234         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12236 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
12238         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12239         check_and_change_labels, s390_final_chunkify): Delete.
12240         (s390_split_branches, s390_chunkify_pool): New functions.
12241         (s390_function_prologue): Call them.
12243         * config/s390/s390.h (S390_REL_MAX): Delete.
12244         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12246         * config/s390/s390.md (cjump, icjump, jump): Fix length
12247         attribute calculation.
12250 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12252         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12253         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12255 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12257         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12258         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12259         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12261 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12263         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12265 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12267         * reload.c (find_dummy_reload): Check that an output register
12268         is valid for its mode.
12270 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12272         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12273         to simplify it.
12275         * function.c (assign_parms): Demote promoted argument passed by
12276         transparent reference.
12278 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12280         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12281         -Acpu() and -Amachine() to eliminate warnings.
12283 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12285         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12287 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12289         * config/h8300/h8300-protos.h: Update the prototype for
12290         const_costs.
12291         * config/h8300/h8300.c (const_costs): Treat SET as a little
12292         more expensive operation.
12293         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12294         reference to const_costs.
12296 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12298         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12300 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12302         PR c/5503:
12303         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12304         use arguments from newtype.
12306 2002-02-13  Eric Christopher  <echristo@redhat.com>
12308         * config/mips/mips.c (override_options): Add check for march/mipsX
12309         on the same command line. Fix error message in cpu processing.
12310         Remove architecture and ISA checks.
12312 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12314         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12316         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12318 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12320         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12321         alternatives.
12322         ("*movv8hi_internal1"): Same.
12323         ("*movv16qi_internal1"): Same.
12324         ("*movv4sf_internal1"): Same.
12326         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12327         not push_reload for altivec modes.
12329 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12331         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12332         all RTEMS targets including removal of #includes from config/*/rtems*.h
12333         file and adding them to tm_file setting. Added xm_defines=POSIX to
12334         many targets.
12335         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12336         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12337         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12338         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12339         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12340         config/m68k/rtemself.h: Ditto.
12341         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12342         config/mips/rtems64.h: Ditto.
12343         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12344         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12345         Ditto.
12346         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12347         config/sparc/rtemself.h: Ditto.
12348         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12349         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12350         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12351         more like arm-elf.
12352         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12353         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12354         target made more similar to i386-elf.
12355         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12356         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12357         be similar to config/m68k/t-m68kelf.
12358         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12360 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12362         * regmove.c (kill_value): Handle subregs.
12364 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12366         * i386.md (mul patterns): Allow memory operand to be first;
12367         add expanders where needed; fix constraints.
12368         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12369         Allow memory operand to be the first.
12371         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12372         operands.
12374 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12376         PR c/5681:
12377         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12378         GET_MODE (x).
12380 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12382         PR optimization/5547:
12383         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12384         all valid IA-32 address modes involving non-scaled %ebx and
12385         GOT/GOTOFF as displacement.
12387 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12389         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12390         after emitting ltorg insns.
12392         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12393         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12394         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12395         *abssf2): Fix "op_type" attribute.
12397 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12399         * mkconfig.sh: Avoid using a subshell redirect.
12400         ($output.T): Change to $(output)T.
12401         (ENABLE_NLS): Remove unneeded undef.
12403         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12404         * config/alpha/x-vms (libsubdir): Define.
12406         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12407         register frame procedures. Optimize retrieving context.
12409         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12410         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12411         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12413 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12415         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12416         Make same change as for find_base_value.
12418 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12420         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12421         of QImode and SImode.
12423 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12425         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12426         length computation of movsi.
12427         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12429 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12431         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12432         operands[2] to register_operand.
12434 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12436         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12438 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12440         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12441         for altivec_lvx* and altivec_stvx*.
12442         ("*movv4si_internal"): Add constraint for loading from GPRs.
12443         ("*movv8hi_internal1"): Same.
12444         ("*movv16qi_internal1"): Same.
12445         ("*movv4sf_internal1"): Same.
12447         * config/rs6000/rs6000.c (altivec_register_operand): New.
12449         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12450         altivec_register_operand.
12452 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12454         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12455         handle SYMBOL_REF.
12457 2002-02-13  Stan Shebs  <shebs@apple.com>
12459         * c-typeck.c (digest_init): Handle vectors.
12460         (really_start_incremental_init): Same.
12461         (pop_init_level): Same.
12462         (process_init_element): Same.
12464         * varasm.c (output_constant): Same.
12466         * expr.c (clear_storage): Same.
12467         (store_constructor): Same.
12469 2002-02-12  Eric Christopher  <echristo@redhat.com>
12471         * explow.c (hard_function_value): Add comment explaining
12472         signed/unsigned comparison.
12474 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12476         * jump.c (never_reached_warning): Add finish argument.
12477         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12478         real insn after end.
12479         * rtl.h (never_reached_warning): Adjust prototype.
12480         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12481         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12482         never_reached_warning.
12484 2002-02-12  Graham Stott  <grahams@redhat.com>
12486         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12488 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12490         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12491         logical shifts on H8/300.
12492         (shift_alg_si): Improve several shifts on H8/300.
12493         (get_shift_alg): Likewise.
12495 2002-02-12  Graham Stott  <grahams@redhat.com>
12497         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12499 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12501         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12502         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12504 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12506         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12507         non-CONST_INT through default_assemble_integer.
12508         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12509         <case 8>: Abort for CONST_DOUBLE.
12511 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12513         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12514         is specified.
12515         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12516         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12518 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12520         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12522 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12524         * regrename.c (regrename_optimize): Don't accept a
12525         part-clobbered register if the replaced register is not part
12526         clobbered.
12528         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12529         take padding into account when computing the argument value.
12531         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12533         * combine.c (try_combine): Apply substitutions in
12534         CALL_INSN_FUNCTION_USAGE too.
12536 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12538         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12539         __builtin_altivec_abs*.
12540         (bdesc_abs): New.
12542         * config/rs6000/rs6000.h (rs6000_builtins): Add
12543         ALTIVEC_BUILTIN_ABS*.
12545         * config/rs6000/altivec.h: Use const char for builtins expecting
12546         literals.
12547         (vec_abs): New versions for C and C++.
12548         (vec_abss): Same.
12550 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12552         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12553         using Pmode.
12555 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12557         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12558         constant definition from h8300.md.
12559         (FRAME_POINTER_REGNUM): Likewise.
12560         * config/h8300/h8300.md (define_constants): Add FP_REG.
12562 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12564         * config/h8300/h8300.c (print_operand): Remove redundant code.
12566 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12568         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12569         * config/h8300/h8300.c (byte_reg): Make it static.
12571 2002-02-10  Richard Henderson  <rth@redhat.com>
12573         PR c/5623
12574         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12576 2002-02-10  Richard Henderson  <rth@redhat.com>
12578         PR c++/5624
12579         * tree.c (append_random_chars): Don't abort if main_input_filename
12580         does not exist.
12582 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12584         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12586 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12588         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12589         (pushhi1): Likewise.
12591 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12593         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12594         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12596 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12598         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12599         remove MASK_VIS.
12600         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12602 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12604         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12605         a half of an SImode register on H8/300.
12607 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12609         * i386.md (movdi_2): Add missing '!'.
12611 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12613         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12614         definitions.
12616 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12618         * config/h8300/h8300.md (length): Correct the distance valid
12619         for the short branch.
12621 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12623         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12625 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12627         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12628         registers in SImode.
12629         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12630         part-clobbered.
12632         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12633         patch.
12635         Contribute sh64-elf.
12636         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12637         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12638         (sh_cannot_modify_jumps_p): New function.
12639         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12640         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12641         (sh_ms_bitfield_layout_p): New function.
12642         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12643                     Zack Weinberg  <zack@codesourcery.com>
12644         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12645         expand_simple_binop instead of expand_binop.
12646         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12647         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12648         use of .quad and .uaquad.
12649         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12650         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12651         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12652         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12653         movdi_const_16bit): Make sure all CONSTs have modes.
12654         (sym2PIC): Ditto, but by adjusting all callers.
12655         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12656         if the prologue calls the SHmedia argument decoder or register
12657         saver.
12658         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12659         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12660         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12661         (sh_expand_epilogue): Don't emit USE of return target register.
12662         (prepare_move_operands): Legitimize DImode PIC addresses.
12663         (sh_media_register_for_return): Skip tr0, used to initialize the
12664         PIC register.
12665         (sh_expand_prologue): Remove explicit USE of return register.
12666         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12667         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12668         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12669         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12670         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12671         EXTRA_CONSTRAINT_T.
12672         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12673         (MOVI_SHORI_BASE_OPERAND_P): New.
12674         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12675         (EXTRA_CONSTRAINT_T): Define in terms of them.
12676         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12677         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12678         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12679         alternatives supporting TARGET_REGS.
12680         (UNSPEC_GOTPLT): New constant.
12681         (movdi split): Move incrementing of LABEL_NUSES...
12682         (movdi_const, movdi_const_32bit): Here.  Use
12683         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12684         (movdi_const_16bit): New.
12685         (call, call_value) [flag_pic]: Use GOTPLT.
12686         (call_pop, call_value_pop): New expands.
12687         (call_pop_compact, call_pop_rettramp): New insns.
12688         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12689         (sibcall) [flag_pic]: Use GOT.
12690         (builtint_setjmp_receiver): Remove bogus, unused expand.
12691         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12692         (*pt, *ptb, ptrel): New insns.
12693         (sym2GOT): Handle DImode GOT.
12694         (sym2GOTPLT, symGOTPLT2reg): New expands.
12695         (sym2PIC): New expand.
12696         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12697         (shcompact_return_tramp_i): Use return register explicitly.
12698         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12699         disable flag_reorder_blocks.
12700         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12701         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12702         clobbers, for clarity.
12703         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12704         restoring of r0 in macl as MAYBE_DEAD.
12705         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12706         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12707         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12708         alter_subreg all over.
12709         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12710         reload, instead of emitting instructions that would require
12711         reloading.
12712         (casesi_load_media): Add missing modes.
12713         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12714         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12715         as used if the argument decoder is called.
12716         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12717         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12718         Pmode, then extend it to DImode if necessary.
12719         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12720         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12721         constants in FPU-enabled SHmedia, let them be loaded from memory.
12722         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12723         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12724         Adjust whitespace in assembly output templates.
12725         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12726         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12727         mode of if_then_else.
12728         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
12729         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12730         sh.h.
12731         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
12732                     Joern Rennecke <amylaar@redhat.com>
12733         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12734         (SUBTARGET_CPP_PTR_SPEC): New.
12735         (SUBTARGET_CPP_SPEC): Remove.
12736         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12737         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12738         Fix typo in previous checkin.
12739         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
12740         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12741         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
12742                     Alexandre Oliva  <aoliva@redhat.com>
12743         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12744         what single FP register can hold for SHmedia target.
12745         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12746                     Alexandre Oliva  <aoliva@redhat.com>
12747         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12748         Do not split into SUBREG.
12749         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
12750         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12751         and added new functions as specified in SH5 ABI r9.
12752         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
12753         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12754         8-byte boundary.
12755         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
12756         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12757         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
12758         and consttable_window_ends.
12759         2001-06-03  Graham Stott  <grahams@redhat,com>
12760         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12761         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
12762         * config/sh/sh.c (print_operand): Handle floating-point pair,
12763         vector and matrix registers.
12764         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12765         vector modes into account.
12766         * config/sh/sh.md (movv2sf): Split move between registers into
12767         movdf.
12768         (movv4sf, movv16sf): Introduce insns that get split only after
12769         reload.
12770         * config/sh/shmedia.h: Fix Copyright dates.
12771         * config/sh/ushmedia.h: Likewise.  Move loop counter
12772         declarations into conditionals that uses them.
12773         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12774         loop boundary.
12775         * config/sh/sshmedia.h: Fix Copyright dates.
12776         (sh_media_PUTCFG): Fix constraints.
12777         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
12778         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12779         ptrmemfunc_vbit_in_delta for SH5.
12780         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
12781         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12782         * invoke.texi: Likewise.
12783         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12784         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12785         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12786         GCC_pop_shmedia_regs_nofpu): New global symbols.
12787         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12788         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12789         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12790         compact function with nonlocal labels.
12791         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12792         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12793         (initial_elimination_offset): Account for their stack space.
12794         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12795         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12796         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12797         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12798         least one of the operands to be a register.
12799         (movv2sf): Likewise.  Renamed to movv2sf_i.
12800         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12801         prepare_move_operands() before emitting SHmedia insns.
12802         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
12803         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12804         Don't save nor initialize r12.  Don't mis-align the stack.
12805         Pad the code with a nop.
12806         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
12807         stack.
12808         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
12809         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12810         [__SHMEDIA__]: Implement.
12811         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
12812         * config/sh/sh.md: Set latency of `pt' closer to reality.
12813         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12814         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12815         Set move, load and store type attributes.
12816         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12817         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12818         profiling.
12819         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12820         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12821         * config/sh/sh.c (sh_media_register_for_return): New function.
12822         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12823         branch-target register.
12824         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12825         * config/sh/sh.md (return_media_i): Use any call-clobbered
12826         branch-target register.
12827         (return_media): If r18 wasn't copied in the prologue, copy it
12828         here.
12829         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12830         Clear class FP0_REGS.
12831         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12832         from elf.h.
12833         2001-03-08  DJ Delorie  <dj@redhat.com>
12834         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12835         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
12836         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12837         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
12838         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12839         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
12840         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12841         return value correctly for call_cookie.
12842         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
12843         * config/sh/crt1.asm (start): Modified so as to call
12844         ___setup_argv_and_call_main.
12845         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
12846         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12847         SHmedia mode.
12848         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
12849         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12850         (STRIP_NAME_ENCODING): Use it.
12851         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
12852         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
12853         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12854         prepare_scc_operands().
12855         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12856         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12857         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
12858         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12859         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
12860         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12861         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12862         used in shcompact_incoming_args.
12863         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12864         change.
12865         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12866         mode.
12867         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12868         Adjust accordingly.
12869         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12870         Simplify.  Adjust.  Add sanity check.
12871         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12872         FPU_SINGLE_BIT.
12873         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12874         TARGET_SHCOMPACT.
12875         (udivsi3, divsi3): Use them.
12876         (force_mode_for_call): New insn.
12877         (call, call_value, sibcall_value): Emit it before SHcompact
12878         calls.
12879         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
12880         * config/sh/sh.md (call, call_value, sibcall): Make sure the
12881         call cookie is non-NULL before taking its value.
12882         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
12883         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12884         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
12885         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12886         block.
12887         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12888         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12889         temporary for stack adjusts.  Use MACL and MACH to pass
12890         arguments to shcompact_incoming_args.
12891         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
12892         clobber r1.
12893         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12894         (nested_trampoline): Load static chain address into r1.
12895         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12896         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
12897         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12898         fp_arith_reg_operand().
12899         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
12900         * config/sh/sh.md (casesi): Sign-extend the first two operands,
12901         and use signed compares for them.
12902         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12903         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
12904         ones properly aligned.
12905         (find_barrier): Account for extra alignment needed for 8-byte wide
12906         constants.
12907         (machine_dependent_reorg): Require a label for the second 4-byte
12908         constant after an 8-byte one.
12909         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12910         change.
12911         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12912         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12913         last_float when switching float modes.
12914         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12915         auto-increment for general-purpose registers.
12916         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12917         result.
12918         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12919         for stack adjust.
12920         * config/sh/sh.c (sh_builtin_saveregs): Support using all
12921         registers for varargs.
12922         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
12923         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12924         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12925         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12926         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12927         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
12928         call_cookie accordingly.
12929         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12930         (SHCOMPACT_BYREF): Likewise.
12931         (SHCOMPACT_FORCE_ON_STACK): New macro.
12932         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12933         (sh_builtin_saveregs): Likewise.
12934         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12935         shcompact_incoming_args): Use new shift values.  Support
12936         sequences of consecutive and non-consecutive pushes/pops.
12937         * config/sh/sh.md (return): Don't explicitly use PR_REG.
12938         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
12939         * config/sh/sh.h (TEXT_SECTION): Define.
12940         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12941         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12942         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12943         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12944         return values on FPU-enabled SHmedia.
12945         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12946         FPU-enabled SHmedia.
12947         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12948         value is returned in a non-FP reg and is not returned by
12949         reference.
12950         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12951         jump_ind.
12952         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
12953         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12954         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12955         quad-aligned to be passed by callee-copy reference.
12956         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
12957         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12958         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12959         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
12960         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12961         copying low-numbered FP regs to r7 and r8.
12962         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12963         FP regs to general-purpose regs only if the copy was passed on the
12964         stack.
12965         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12966         copying FP reg to r9.
12967         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12968         copy FP regs to general-purpose regs only in outgoing calls.
12969         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12970         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
12971         HOST_WIDE_INT.
12972         * config/sh/sh.h (struct sh_args): Document all fields.
12973         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12974         passed partially on the stack should not consider making
12975         sibcalls.
12976         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12977         stack_regs only for incoming calls.  When passing FP args,
12978         make sure there are FP regs available before modifying
12979         call_cookie.
12980         (SHCOMPACT_BYREF): Pass double args in general-purpose
12981         registers by reference.
12982         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
12983         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12984         attempt to generate sibcalls if the caller got any arguments
12985         by reference.
12986         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12987         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12988         to 8-byte boundaries.
12989         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12990         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12991         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12992         stored in the stack.
12993         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12994         for the offsets to have the ISA bit set.
12995         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
12996         invocation.  Use beq instead of bgt to mark end of sequence of
12997         loads.
12998         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
12999         bgt to mark end of sequence of stores.
13000         * config/sh/sh.c (arith_operand): Don't check whether
13001         CONST_OK_FOR_J for now.
13002         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13003         instead of long for conversion.
13004         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
13005         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13006         before passing it to fprintf.
13007         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
13008         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13009         Call set_fpscr before reading/writing SR.
13010         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13011         Call set_fpscr.
13012         * config/sh/lib1funcs.asm: Add `.align 2' directives before
13013         SHmedia code.
13014         (FMOVD_WORKS): Define on SH5 with FPU.
13015         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
13016         setting.
13017         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13018         _fpscr_values.
13019         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
13020         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13021         address.
13022         (ia_main_table): Ditto.
13023         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
13024         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13025         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13026         the definitions from sh.h.
13027         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13028         TARGET_SH5.
13029         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13030         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13031         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13032         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
13033         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13034         Increment LABEL_NUSES.
13036         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13037         TARGET_SH5.
13038         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13039         defined.
13040         * config/sh/elf.h (SIZE_TYPE): Likewise.
13041         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13042         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13043         shcompact_incoming_args): Load switch table addresses using
13044         datalabel.
13045         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13046         (NO_BUILTIN_SIZE_TYPE): Define.
13047         (SIZE_TYPE): Don't define.
13048         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13049         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13050         definition of __SH5__=32 for -m5-compact-nofpu.
13051         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13052         ADDR_DIFF_VEC.
13053         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
13054         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13055         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
13056         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13057         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13058         (INSN_LENGTH_ALIGNMENT): Likewise.
13059         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13060         * config/sh/sh.md (call, call_value, sibcall): Simplify
13061         copying of non-branch-target register.
13062         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13063         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
13064         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13065         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13066         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13067         floating-point values as structs.
13068         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13069         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13070         general-purpose register.
13071         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13072         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13073         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13074         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13075         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13076         (ENCODE_SECTION_INFO): Enclose variables and constants in
13077         DATALABEL unspecs.
13078         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13079         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13080         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13081         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13082         only for LABEL_REFs.  For SYMBOL_REFs, prepend
13083         SH_DATALABEL_ENCODING to the symbol name.
13084         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13085         convert_mode().
13086         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13087         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13088         UNSPEC_DATALABEL.
13089         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13090         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13091         (DATALABEL_REF_P): Don't require CONST.
13092         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13093         REL label.
13094         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
13095         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13096         right.
13097         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13098         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13099         Use shallow_copy_rtx and PUT_MODE to change the mode of
13100         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13101         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13102         on SHmedia using GENERAL_REGs.
13103         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13104         bltu_media_i): Fix reversion of conditions.
13105         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13106         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13107         * config/sh/sh.c (output_far_jump): Save r13 in macl.
13108         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
13109         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13110         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13111         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13112         (GCC_nested_trampoline): Likewise.
13113         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13114         * config/sh/sh.c (gen_datalabel_ref): Define.
13115         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13116         (INITIALIZE_TRAMPOLINE): Likewise.
13117         (TRAMPOLINE_ADJUST_ADDRESS): Define.
13118         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13119         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13120         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13121         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13122         (ic_invalidate): Adjust for SH5.
13123         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13124         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13125         _nested_trampoline.
13126         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
13127         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13128         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13129         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13130         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13131         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13132         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13133         * config/sh/sh.c (target_reg_operand): Match only target-branch
13134         registers and pseudos that aren't virtual registers.
13135         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13136         Copy operands that don't match target_reg_operand to pseudos.
13137         (call_media, call_value_media, sibcall_media): Use
13138         target_reg_operand instead of target_operand.
13139         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
13140         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13141         * config/sh/sh.c (target_reg_operand): Match hardware registers
13142         other than branch-target registers.
13143         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13144         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13145         (fpscr_values) [SH5 == 32]: Define.
13146         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13147         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13148         Handle function addresses coming in SUBREGs.
13149         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
13150         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13151         shcompact_return_trampoline): Use datalabel where appropriate.
13152         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
13153         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13154         general-purpose register to copy one branch-target register to
13155         another.
13156         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13157         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13158         SYMBOL_REFs with VOIDmode.
13159         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13160         bltu_media_i): New insns.
13161         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13162         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13163         (INIT_CUMULATIVE_ARGS): Likewise.
13164         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13165         * machmode.def (V16SFmode): New mode.
13166         * c-common.c (type_for_mode): Support V2SF and V16SF.
13167         * tree.c (build_common_tree_nodes_2): Likewise.
13168         * tree.h (tree_index): Likewise.
13169         * calls.c (emit_call_1): Take args_so_far.  Adjust all
13170         callers.  Introduce CALL_POPS_ARGS.
13171         * tm.texi (CALL_POPS_ARGS): Document.
13172         * config/sh/crt1.asm: Implement in SHmedia mode.
13173         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13174         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13175         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13176         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13177         Implement divsi and udivsi in SHmedia mode.  Introduce
13178         SHcompact trampolines.
13179         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13180         only in SHmedia64.
13181         (regno_reg_class): Rewrite.
13182         (fp_reg_names): Remove.
13183         (sh_register_names, sh_additional_register_names): New.
13184         (print_operand): Added `u'.  Support SUBREGs in addresses.
13185         Add parentheses around shifted CONSTs.
13186         (output_file_start): Output .mode and .abi directives.
13187         (shiftcosts, addsubcosts, multcosts): Adjust.
13188         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
13189         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
13190         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
13191         bytes, not registers.  Take into account the need for the
13192         SHcompact incoming args trampoline.  Adjust all callers.
13193         (sh_expand_prologue): Take stack_regs into account.  Call
13194         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
13195         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
13196         stack aligned as per SH5 ABI.
13197         (sh_builtin_saveregs): Support SH5 ABI.
13198         (sh_build_va_list, sh_va_start): Likewise.
13199         (initial_elimination_offset): Take alignment into account.
13200         Compute location of PR according to the SH5 stack frame.
13201         (arith_reg_operand): Reject branch-target registers.
13202         (shmedia_6bit_operand): New.
13203         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13204         (target_reg_operand): Match DImode only.  Accept SUBREGs.
13205         (target_operand): New.
13206         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13207         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
13208         SIBCALL_REGS for SHmedia.
13209         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13210         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13211         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13212         (TARGET_SWITCHES): New SH5 flags.
13213         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
13214         VALID_REGISTER_P to disable unsupported registers.
13215         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13216         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13217         (FUNCTION_ARG_PADDING): Define.
13218         (FASTEST_ALIGNMENT): Adjust.
13219         (SH_REGISTER_NAMES_INITIALIZER): New.
13220         (sh_register_names): Declare.
13221         (DEBUG_REGISTER_NAMES): Define.
13222         (REGISTER_NAMES): Define based on sh_register_names.
13223         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13224         (sh_additional_register_names): Declare.
13225         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13226         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13227         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13228         (REGISTER_NATURAL_MODE): Define.
13229         (FIRST_PSEUDO_REGISTER): Adjust.
13230         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13231         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13232         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13233         (VECTOR_MODE_SUPPORTED_P): Define.
13234         (REG_CLASS_CONTENTS): Adjust.
13235         (SMALL_REGISTER_CLASSES): Adjust.
13236         (REG_ALLOC_ORDER): Adjust.
13237         (INDEX_REG_CLASS): Adjust.
13238         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13239         (CONST_OK_FOR_LETTER_P): Adjust.
13240         (PREFERRED_RELOAD_CLASS): Adjust.
13241         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13242         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13243         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13244         (FIRST_FP_PARM_REG): Adjust.
13245         (CALL_POPS_ARGS): Define.
13246         (FUNCTION_ARG_REGNO_P): Adjust.
13247         (struct sh_args): New fields.
13248         (GET_SH_ARG_CLASS): Adjust.
13249         (INIT_CUMULATIVE_ARGS): Adjust.
13250         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13251         (FUNCTION_ARG_ADVANCE): Adjust.
13252         (FUNCTION_ARG): Adjust.
13253         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13254         (FUNCTION_ARG_CALLEE_COPIES): Define.
13255         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13256         (STRICT_ARGUMENT_NAMING): Define.
13257         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13258         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13259         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13260         (SETUP_INCOMING_VARARGS): Adjust.
13261         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13262         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13263         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13264         (SUBREG_OK_FOR_INDEX_P): Adjust.
13265         (EXTRA_CONSTRAINT_S): Update.
13266         (EXTRA_CONSTRAINT_T): New.
13267         (EXTRA_CONSTRAINT): Adjust.
13268         (GO_IF_LEGITIMATE_INDEX): Adjust.
13269         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13270         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13271         (MOVE_MAX): Adjust.
13272         (MAX_MOVE_MAX): Define.
13273         (Pmode): Adjust.
13274         (CONST_COSTS): Adjust.
13275         (REGISTER_MOVE_COST): Adjust.
13276         (BRANCH_COST): Adjust.
13277         (TEXT_SECTION_ASM_OP): Adjust.
13278         (DBX_REGISTER_NUMBER): Adjust.
13279         (ASM_OUTPUT_DOUBLE_INT): New.
13280         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13281         (PREDICATE_CODES): Adjust.
13282         (PROMOTE_MODE): Adjust.
13283         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13284         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13285         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13286         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13287         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13288         (TR0_REG, TR1_REG, TR2_REG): New.
13289         (XD0_REG): Renumber.
13290         (UNSPEC_COMPACT_ARGS): New.
13291         (type): Added pt and ptabs.
13292         (length): Default to 4 on SHmedia.  Default pt length to 12
13293         and     20 on SHmedia32 and SHmedia64, respectively.
13294         (pt): New function unit.
13295         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13296         Add whitespace between operands of SHmedia instructions.
13297         (movdicc): Fix.
13298         (adddi3_media, addsi3_media): Adjust constraints.
13299         (subsi3) [SHmedia]: Force operand 1 into a register.
13300         (udivsi3_i1_media, udivsi3_i4_media): New.
13301         (udivsi3): Support SHmedia.
13302         (divsi3_i1_media, divsi3_i4_media): New.
13303         (divsi3): Support SHmedia.
13304         (anddi3, iordi3, xordi3): Adjust constraints.
13305         (zero_extendhidi2, zero_extendqidi2): New.
13306         (extendsidi2, extendhidi2, extendqidi2): New.
13307         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13308         (pop_e, pop_fpul, pop_4): Likewise.
13309         (movsi_media): Support FP and BT registers.
13310         (movsi_media_nofpu): New.  Adjust splits to DImode.
13311         (lduw, ldub): Renamed to zero_extend* above.
13312         (movqi_media): Fix typo.
13313         (movdi_media): Support FP and BT registers.
13314         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13315         (movdi_const_32bit): New.
13316         (shori_media): Require immediate operand.  Use `u' for output.
13317         (movdf_media, movsf_media): Simplified.
13318         (movdf_media_nofpu, movsf_media_nofpu): New.
13319         (movdf, movsf): Adjust
13320         (movv2sf, movv2sf, movv16sf): New.
13321         (beq_media, beq_media_i): Adjust constraints.  Don't use
13322         scratch BT register.
13323         (bne_media, bne_media_i): Likewise.
13324         (bgt_media, bgt_media_i): Likewise.
13325         (bge_media, bge_media_i): Likewise.
13326         (bgtu_media, bgtu_media_i): Likewise.
13327         (bgeu_media, bgeu_media_i): Likewise.
13328         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13329         bunordered): Emit jump insn.  Force operands to registers when
13330         needed.
13331         (jump_media, jump): Simplify.
13332         (call_compact, call_compact_rettramp): New.
13333         (call_value_compact, call_value_compact_rettramp): New.
13334         (call_media, call_value_media): Simplify.
13335         (sibcall_compact, sibcall_media): New.
13336         (call, call_value): Adjust for SHmedia and SHcompact.
13337         (sibcall, sibcall_value, untyped_call): Likewise.
13338         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13339         (indirect_jump): Adjust for SHmedia.
13340         (casesi_jump_media): New.
13341         (nop): Re-enable for SHmedia.
13342         (call_site): Restrict to SH1.
13343         (casesi): Adjust for SHmedia.
13344         (casesi_shift_media, casesi_load_media): New.
13345         (return): Explicitly use PR register.  Call return trampoline
13346         on SHcompact.
13347         (return_i): Explicitly use PR register.
13348         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13349         (return_media): Adjust.
13350         (shcompact_incoming_args): New.
13351         (epilogue): Adjust.
13352         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13353         (movstrsi): Disable on SH5.
13354         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13355         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13356         (subsf3, subsf3_media): Likewise.
13357         (mulsf3, mulsf3_media, mac_media): Likewise.
13358         (divsf3, divsf3_media): Likewise.
13359         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13360         (floatsisf2, fux_truncsfsi2): Likewise.
13361         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13362         constraints.
13363         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13364         (cmpunsf_media, cmpsf): Likewise.
13365         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13366         (abssf2, abssf2_media): Likewise.
13367         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13368         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13369         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13370         (floatsidf2, fix_truncdfsi2): Likewise.
13371         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13372         constraints.
13373         (cmpeqdf_media, cmpgtdf_media): Likewise.
13374         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13375         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13376         (absdf2, absdf2_media): Likewise.
13377         (extendsfdf2, extendsfdf2_media): Likewise.
13378         (truncsfdf2, truncsfdf2_media): Likewise.
13379         * config/sh/sh64.h: New file.
13380         * config/sh/t-sh64: New file.
13381         * config/sh/shmedia.h: New file.
13382         * config/sh/ushmedia.h: New file.
13383         * config/sh/sshmedia.h: New file.
13384         * configure.in: Added sh64-*-elf.
13385         * configure: Rebuilt.
13386         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13387         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13388         (reg_class_from_letter): Use `b' for TARGET_REGS.
13389         (print_operand): Support `%M', `%m', `AND' and
13390         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13391         (andcosts): Adjust for SHmedia.
13392         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13393         Likewise.
13394         (target_reg_operand): New function.
13395         * config/sh/sh-protos.h (target_reg_operand): Declare.
13396         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13397         FP registers on SH5.
13398         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13399         on SH4.
13400         (TARGET_REGISTER_P): New macro.
13401         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13402         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13403         (EXTRA_CONSTRAINT_S): New macro.
13404         (EXTRA_CONSTRAINT): Adjust.
13405         (FLOAT_TYPE_SIZE): Define to 32.
13406         (Pmode): DImode on SHmedia.
13407         (CONST_COSTS): Adjust for SHmedia literals.
13408         (PREDICATE_CODES): Added target_reg_operand.
13409         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13410         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13411         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13412         (cmpdi): Accept SHmedia.
13413         (movdicc_false, movdicc_true): New insns.
13414         (movdicc): New expand.
13415         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13416         no_new_pseudos.
13417         (addsi3_media): Match `S' constraint.
13418         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13419         (negdi2): Expand for SHmedia.
13420         (one_cmpldi2): New expand.
13421         (zero_extendsidi2): Change from expand to insn.
13422         (extendsidi2): Add constraints.
13423         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13424         LD/ST address.  Fix SI immediate loading split.
13425         (movhi_media, movqi_media, lduw, ldub): New insns.
13426         (movhi, movqi): Accept SHmedia.
13427         (shori_media, movdi_media): Relax input constraints.  Split
13428         symbolic constants.
13429         (movdf_media, movsf_media): New insn.  New split to movdi.
13430         (movdf, movsf): Match on SHmedia.
13431         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13432         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13433         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13434         (bunordered): New expand.
13435         (jump_compact): Renamed from `jump'.
13436         (jump_media): New insn.
13437         (jump): New expand.
13438         (call_media, call_value_media): New insns.
13439         (call, call_value): Adjust.
13440         (indirect_jump_compact): Renamed from `indirect_jump'.
13441         (indirect_jump_media): New insn.
13442         (indirect_jump): New expand.
13443         (untyped_call, return): Accept SHmedia.
13444         (return_media): New insn.
13445         (prologue, epilogue, blockage): Accept SHmedia.
13446         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13447         (sunordered): New expand.
13448         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13449         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13450         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13451         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13452         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13453         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13454         abssf2_media): New insns.
13455         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13456         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13457         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13458         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13459         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13460         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13461         absdf2_media): New insns.
13462         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13463         (extendsfdf2_media, truncdfsf2_media): New insns.
13464         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13465         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13466         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13467         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13468         * config/sh/sh.md (adddi3): New expand.
13469         (adddi3_media, adddi3z_media): New insns.
13470         (adddi3_compact): Renamed from adddi3.
13471         (addsi3_media): Use add.l r63 to add constant zero.
13472         (subdi3): New expand.
13473         (subdi3_media): New insn.
13474         (subdi3_compact): Renamed from subdi3.
13475         (mulsidi3): New expand.
13476         (mulsidi3_media): New insn.
13477         (mulsidi3_compact): Renamed from mulsidi3.
13478         (umulsidi3): New expand.
13479         (umulsidi3_media): New insn.
13480         (umulsidi3_compact): Renamed from umulsidi3.
13481         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13482         (ashlsi3, ashrsi3, lshrsi3): Use them.
13483         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13484         (ashldi3, ashrdi3, lshrdi3): Use them.
13485         (zero_extendsidi2): New expand.
13486         (extendsidi2): New insn.
13487         (movsi_media): New insn.  Split to movdi to load constants.
13488         (movsi): Enable for shmedia.
13489         (movdi_media): New insn.  Use shori_media to load wide constants.
13490         (short_media): New insn.
13491         (movdi): Enable for shmedia.
13492         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13493         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13494         (SUBTARGET_CPP_SPEC): Added `!m5'.
13495         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13496         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13497         to all other SH variants.
13498         (TARGET_DEFAULT): Set to SH1_BIT.
13499         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13500         (BITS_PER_WORD): Raise to 64 on shmedia.
13501         (MAX_BITS_PER_WORD): Change to 64.
13502         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13503         (INT_TYPE_SIZE): Keep as 32.
13504         (UNITS_PER_WORD): Raise to 8 on shmedia.
13505         (MIN_UNITS_PER_WORD): Keep as 4.
13506         (POINTER_SIZE): Raise to 64 on shmedia.
13507         (CONST_OK_FOR_J): New macro.
13508         (CONST_OK_FOR_LETTER_P): Use it.
13509         (processor_type): Add PROCESSOR_SH5.
13510         * config/sh/sh.md: Conditionalize all expands, insns and
13511         splits to TARGET_SH1.
13512         (cpu): Added sh5.
13513         (addsi3_compact): Renamed from...
13514         (addsi3): Now an expand.
13515         (addsi3_media, subsi3_media): New insns.
13516         (subsi3): Don't negate constants with SHmedia.
13518         * hooks.c: New file.
13519         * hooks.h: New file.
13520         * Makefile.in (HOOKS_H): New.
13521         (TARGET_DEF_H): Added $(HOOKS_H).
13522         (OBJS): Added hooks.o.
13523         (cfgcleanup.o, bb-reorder.o): Added target.h.
13524         (hooks.o): Added dependencies.
13525         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13526         (TARGET_INITIALIZER): this.
13527         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13528         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13529         * bb-reorder.c: Include target.h.
13530         (reorder_basic_blocks): Skip if cannot modify jumps.
13531         * cfgcleanup.c: Include target.h.
13532         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13534 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13536         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13537         Protect jump delay slot instructions with .set noreorder and
13538         .set nomacro.
13540 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13542         * config/mips/mips.md (casesi_internal_di): Calculate
13543         the index into the target offset table correctly.
13545 2002-02-08  Richard Henderson  <rth@redhat.com>
13547         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13548         * final.c (output_addr_const): Accept and discard SUBREG.
13549         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13550         mark them unknown instead.
13551         (simplify_subtraction): Handle RTX_UNKNOWN.
13552         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13554 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13556         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13558 2002-02-08  Richard Henderson  <rth@redhat.com>
13560         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13562 2002-02-08  Andreas Jaeger  <aj@suse.de>
13564         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13565         * config/i386/t-linux64: New file.
13567 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13569         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13570         * c-parse.in (compstmt): Clear last_expr_type.
13572 2002-02-07  Richard Henderson  <rth@redhat.com>
13574         * loop.c (strength_reduce): Sink final_value when not
13575         eliminating a biv.
13577 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13579         * config/sparc/freebsd.h: Fix mismatched spec {.
13581 2002-02-07  Richard Henderson  <rth@redhat.com>
13583         * cfgrtl.c: Include recog.h and insn-config.h.
13584         (keep_with_call_p): Fix general_operand invocation.
13585         * Makefile.in (cfgrtl.o): Update dependencies.
13587 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13589         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13590         comment.  Accept HImode only if TARGET_H8300.
13592 2002-02-07  Eric Christopher  <echristo@redhat.com>
13594         * config/mips/crtn.asm: Cleanup #ifdefs.
13596 2002-02-07  Eric Christopher  <echristo@redhat.com>
13598         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13599         register 7 as RA instead of $31.
13600         * config/mips/crtn.asm: Ditto.
13601         * config/mips/mips.c (mips_move_2words): Add case for
13602         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13603         (compute_frame_size): Fix typo.
13604         (save_restore_insns): Ditto.  Make documentation about using
13605         register $7 as return register more precise.
13606         (mips_expand_epilogue): Fix comment. Add code to work around not
13607         being able to add to the stack pointer directly.
13608         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13609         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13610         epilogue.
13612 2002-02-07  Tom Rix  <trix@redhat.com>
13614         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13615         immediates in ldu and stdu DS opcode field.
13616         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13617         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13618         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13620 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13622         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13623         offset for stack bias.
13625 2002-02-07  H.J. Lu <hjl@gnu.org>
13627         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13629 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13631         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13633 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13635         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13636         * i386.c (x86_order_regs_for_local_alloc): New global function.
13637         * i386.h (REG_ALLOC_ORDER): CLeanup.
13638         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13640 2002-02-07  Richard Henderson  <rth@redhat.com>
13642         PR optimization/2463
13643         * alias.c (find_base_value): Recall base values for fixed hard regs.
13644         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13646 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13648         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13649         length.
13651 2002-02-06  Richard Henderson  <rth@redhat.com>
13653         PR c/5609
13654         * stmt.c (resolve_operand_name_1): Take more care with mixed
13655         named and unnamed operands.
13657 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13658             Jan Hubicka  <jh@suse.cz>
13660         * loop.c (remove_constant_addition): Avoid clobbering a shared
13661         CONST expression.
13663 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13665         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13666         * config/s390/t-linux64: New file.
13667         * config/s390/libgcc-glibc.ver: New file.
13669 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13671         * config/s390/linux64.h: Delete file.
13672         * config/s390/s390x.h: New file.
13673         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13674         as target header file.
13675         * config/s390/linux.h (TARGET_VERSION): Define depending on
13676         DEFAULT_TARGET_64BIT.
13677         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13678         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13679         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13680         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13681         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13682         (EXTRA_SPEC): New define.
13683         * config/s390/s390.h (TARGET_VERSION): Define depending on
13684         DEFAULT_TARGET_64BIT.
13685         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13687 2002-02-06  Jason Merrill  <jason@redhat.com>
13689         * c-decl.c (finish_function): Warn about a non-void function with
13690         no return statement and no abnormal exit.
13691         (current_function_returns_abnormally): New variable.
13692         (start_function): Clear it.
13693         (struct c_language_function): Add returns_abnormally.
13694         (push_c_function_context): Save it.
13695         (pop_c_function_context): Restore it.
13696         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13697         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13698         an explicit return type.
13699         * c-tree.h: Declare current_function_returns_abnormally.
13700         (C_FUNCTION_IMPLICIT_INT): New macro.
13701         * c-typeck.c (build_function_call): Set it.
13702         (c_expand_return): Set current_function_returns_value even if the
13703         value is erroneous.
13705 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13707         PR c/5420:
13708         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13709         unsafe for reevaluation.
13711 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13713         PR c/5482:
13714         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13715         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13717 2002-02-06  Richard Henderson  <rth@redhat.com>
13719         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13720         be a general_operand.  Dest for function value must be a pseudo.
13722 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13724         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13725         as SYMBOL_REFs from the constant pool.
13727 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
13729         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13730         passed by invisible reference.
13732 2002-02-05  Richard Henderson  <rth@redhat.com>
13734         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13736 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
13738         Implement using "base addresses" in insn operands as default.
13739         * config/mmix/mmix.c (mmix_conditional_register_usage): if
13740         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13741         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13742         used to read the rtx value.
13743         (mmix_target_asm_function_epilogue): Fix spacing.
13744         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13745         (mmix_legitimate_address): Ditto.
13746         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13747         should be loaded with a GETA insn.  Don't allocate needless extra
13748         char for nul termination and fix misleading comment.
13749         (mmix_print_operand_address): Handle constants if
13750         TARGET_BASE_ADDRESSES.
13751         (mmix_output_register_setting): Use base addressing if
13752         TARGET_BASE_ADDRESSES and the number of insns is 3.
13753         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13754         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13755         to use R as constraint, add LDA to match s.
13756         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13757         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13758         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13759         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13760         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13761         order with other fixed registers.
13762         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13763         other parameter/call-clobbered registers.
13764         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13765         -mbase-addresses, -mno-base-addresses.
13766         (MMIX Options): Ditto.
13768 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13770         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13772 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
13774         * config/rs6000/altivec.h: Change elem to _S_elem.
13776 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13778         * config/netbsd.h (WCHAR_TYPE): Define.
13779         (WCHAR_TYPE_SIZE): Ditto.
13780         (WINT_TYPE): Ditto.
13781         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13782         (WCHAR_UNSIGNED): Ditto.
13783         (WCHAR_TYPE_SIZE): Ditto.
13784         (WINT_TYPE): Ditto.
13785         * config/arm/netbsd.h: Likewise.
13786         * config/i386/netbsd-elf.h: Likewise.
13787         * config/i386/netbsd.h: Likewise.
13788         * config/m68k/netbsd-elf.h: Likewise.
13789         * config/m68k/netbsd.h: Likewise.
13790         * config/ns32k/netbsd.h: Likewise.
13791         * config/sparc/netbsd.h: Likewise.
13792         * config/vax/netbsd.: Likewise.
13794 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
13796         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13797         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
13798         (TARGET_INITIALIZER): this.
13799         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13800         (BITFIELD_NBYTES_LIMITED): Markup fix.
13801         * tree.h (default_ms_bitfield_layout_p): Declare.
13802         (record_layout_info): Added prev_field.
13803         * tree.c (default_ms_bitfield_layout_p): New fn.
13804         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13805         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13806         * stor-layout.c: Include target.h.
13807         (start_record_layout): Initialize prev_field.
13808         (place_field): Handle MS bit-field layout, and disregard
13809         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13810         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
13811         * Makefile.in (stor-layout.o): Adjust dependencies.
13813 2002-02-05  Jason Merrill  <jason@redhat.com>
13815         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13817 2002-02-05  Andreas Jaeger  <aj@suse.de>
13819         * crtstuff.c: Fix comments.
13821 2002-02-05  Richard Henderson  <rth@redhat.com>
13823         PR fortran/3393
13824         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13825         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13827         PR fortran/3392
13828         * config/mips/mips.c (function_arg): Handle TImode.
13829         (function_arg_advance): Likewise.
13831 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13833         * config/rs6000/altivec.h (vec_step_help): Rename to
13834         __vec_step_help.
13836 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13838         * config/rs6000/altivec.h: Fix typos.
13840 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13842         * config/arm/netbsd.h: Correct a comment.
13844 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13846         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13847         building void typed builtins.
13849         * config/rs6000/altivec.h (vec_ld*): Fix typos.
13850         (vec_step): Implement for C++.
13852 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13854         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13856 2002-02-04  Richard Henderson  <rth@redhat.com>
13858         * combine.c (nonzero_bits): Re-introduce special case for
13859         sp/fp/ap wrt REGNO_POINTER_ALIGN.
13861 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13863         * doc/extend.texi: Warn about unsupported usage of altivec
13864         builtins.
13866         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13867         (altivec_predicate_*): New.
13869         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13870         Add C++ version of vec_*() functions.
13872         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13873         (bdesc_2arg): Remove altivec predicates.
13874         (altivec_expand_builtin): Handle predicates.
13875         (altivec_init_builtins): Handle predicates.
13876         (altivec_expand_predicate_builtin): New.
13878 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13880         * pa.c (DO_FRAME_NOTES): Move forward.
13881         (store_reg): Revise handling of frame notes.
13882         (load_reg): Likewise.
13883         (set_reg_plus_d): Likewise.
13884         (hppa_expand_prologue): Likewise.
13885         (hppa_expand_epilogue): Likewise.
13887 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13889         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13891 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13893         PR c/4475, c++/3780:
13894         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13895         * c-common.h (SWITCH_TYPE): Define.
13896         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13897         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13898         Rename spareness variable to sparseness.
13899         (expand_end_case_type): Renamed from expand_end_case, use orig_type
13900         if non-NULL instead of TREE_TYPE (orig_index).
13901         * tree.h (expand_end_case_type): Renamed from expand_end_case.
13902         (expand_end_case): Define using expand_end_case_type.
13903         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13904         to expand_end_case_type.
13905         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13907 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13909         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13910         (BIGGEST_ALIGNMENT): Change to 128.
13912 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13914         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13916 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13918         * pa.md (call_internal_reg_64bit): Remove unused variable.
13920 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
13922         * config/arm/arm.h (machine_function): Add uses_anonymous_args
13923         field.
13924         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13925         * config/arm/arm.c (current_function_anonymous_args): Delete,
13926         replace uses with cfun->machine->uses_anonymous_args.
13927         (arm_reorg): Do not reset uses_anonymous_args.
13929         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13930         any geenral register.
13932 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
13934         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13935         the entry block.
13937 2002-02-04  Richard Henderson  <rth@redhat.com>
13939         * combine.c (force_to_mode): Remove STACK_BIAS code.
13940         (nonzero_bits): Likewise.  Replace sp/fp special case with
13941         REGNO_POINTER_ALIGN.
13943         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13944         (HARD_FRAME_POINTER_REGNUM): New.
13945         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13946         (FIXED_REGS, CALL_USED_REGS): Update.
13947         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13948         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13949         (HARD_REGNO_NREGS): Update for SFP.
13950         (STACK_POINTER_OFFSET): Include bias here ...
13951         (FIRST_PARM_OFFSET): ... not here.
13952         (STACK_BIAS): Remove.
13953         (INIT_EXPANDERS): New.
13954         (STARTING_FRAME_OFFSET): Do not include bias.
13955         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13956         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13957         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13958         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13959         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13960         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13961         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13962         (MUST_SAVE_REGISTER): Likewise.
13963         (sparc_flat_function_prologue): Likewise.
13964         (sparc_flat_function_epilogue): Likewise.
13965         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13966         (sparc_init_modes): SFP is GENERAL_REGS.
13967         (sparc_builtin_saveregs): SFP does not have bias applied.
13969 2002-02-04  Richard Henderson  <rth@redhat.com>
13971         * config/alpha/alpha.c (current_function_is_thunk): Don't check
13972         current_function_is_thunk.
13973         (alpha_sa_mask): Distinguish between current_function_is_thunk
13974         called from ASM_OUTPUT_MI_THUNK and not.
13975         (alpha_does_function_need_gp): Thunks always need gp.
13976         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13977         (alpha_output_mi_thunk_osf): New.
13978         * config/alpha/alpha-protos.h: Update.
13979         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13981 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
13983         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13984         function types, not when they're taken away.
13986 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
13988         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13989         CODE_LABEL and jump table when replacing a table jump with a
13990         simple jump.
13992 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13994         * config/s390/s390-protos.h (legitimize_la_operand,
13995         s390_secondary_input_reload_class, s390_plus_operand,
13996         s390_expand_plus_operand): Add prototypes.
13998         config/s390/s390.c (s390_secondary_input_reload_class,
13999         s390_plus_operand, s390_expand_plus_operand): New functions.
14001         (struct s390_address): New member 'pointer'.
14002         (s390_decompose_address): Compute it.
14003         (legitimate_la_operand_p): Use it.
14004         (legitimize_la_operand): New function.
14005         (movti, movdi, movdf splitters): Call it.
14007         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14008         (PREDICATE_CODES): Add s390_plus_operand.
14010         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14011         (la_ccclobber): Allow GENERAL_REGS as output operand.
14013         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14014         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14015         (*la_64, *la_31, reload_indi, reload_insi): ... these.
14017 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14019         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14020         register names for regular asm () construct.
14022 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14024         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14025         registers.
14027 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14029         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14030         pat for recog.
14032 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
14034         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14035         constant pool to be identical by string address and index.
14037 2002-02-04  Anthony Green  <green@redhat.com>
14039         * output.h (SECTION_OVERRIDE): Define.
14040         * varasm.c (named_section): Obey SECTION_OVERRIDE.
14042 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14044         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14045         by existing arm*-*-netbsd* (a.out) target.
14046         (ns32k-*-netbsdelf*): Likewise.
14047         (sparc-*-netbsdelf*): Likewise.
14048         (vax-*-netbsdelf*): Likewise.
14050 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
14052         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14053         headers and libobjc headers.
14055 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
14057         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14058         (_mingw.h): Remove duplicate include.
14060 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14062         * config.gcc: Set cpu_type to m68k for 68010, as well.
14063         (m68010-*-netbsdelf*): New...
14064         (m68k*-*-netbsdelf*): ...targets.
14065         * config/m68k/netbsd-elf.h: New file.
14067 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14069         * config/h8300/h8300.c (hand_list): Move inside function_arg.
14071 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14073         * config/h8300/h8300.c (h8_push_ops): Move inside
14074         h8300_init_once.
14075         (h8_pop_ops): Likewise.
14076         (h8_move_ops): Likewise.
14078 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14080         * config/h8300/h8300.c (os_task): Make it static.
14081         (monitor): Likewise.
14082         (pragma_saveall): Likewise.
14084 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
14086         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14087         constant is a valid sign-extension for Pmode.
14089 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14091         * config/h8300/h8300.c: Fix formatting.
14093 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14095         * config/h8300/h8300.md: Fix formatting.
14097 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14099         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14100         predicates of operands[1].  Split the patterns for each
14101         processor variant.
14103 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14105         * config/h8300/h8300.md (xor patterns): Tighten the predicates
14106         of operands[1] to register_operand.
14108 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14110         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14111         * cpphash.c (_cpp_init_hashtable): Similarly.
14112         * cppinit.c (cpp_create_reader): Default the signed_char flag.
14113         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14114         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14115         (cpp_handle_option): Handle the new options.
14116         * cpplex.c (cpp_interpret_charconst): Use new flag.
14117         * cpplib.h (struct cpp_options): New member signed_char.
14118         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14119         (cpp_options): Handle -fsigned-char and -funsigned-char.
14120         (static_specs): Remove signed_char_spec.
14121         (do_spec1): Don't handle %c.
14122         * system.h: Poison SIGNED_CHAR_SPEC.
14123         * tradcif.y (yylex): Use flag_signed_char.
14124         * tradcpp.h (flag_signed_char): New.
14125         * tradcpp.c (flag_signed_char): New.
14126         (main): Handle new command-line options.
14127         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14128 config:
14129         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14130         * avr/avr.h: Remove old comments.
14131         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14132         (CC1_SPEC): Pass -fsigned-char if -mic*.
14133         (SIGNED_CHAR_SPEC): Remove.
14134 doc:
14135         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14137 2002-02-01  Eric Christopher  <echristo@redhat.com>
14139         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14140         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14141         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14142         (ASM_OUTPUT_REG_POP): Ditto.
14144 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14146         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14147         patch.
14149 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14151         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14153 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14155         PR c/5304:
14156         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14157         unconditionally.
14159 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14161         * cfganal.c: Include tm_p.h.
14162         (keep_with_call_p): Fix the test that determines if a register holds
14163         the return value of a call.
14165 2002-02-01  DJ Delorie  <dj@redhat.com>
14167         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14168         we are given conflicting registers, switch to the other one we
14169         had allocated for us.
14170         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14171         as TImode so we know when the "other" register is available.
14173 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
14175         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14176         sparc/sparc_bi.h.
14178 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14180         * cfganal.c (keep_with_call_p): New function.
14181         (flow_call_edges_add): Prevent splitting a block between a call and
14182         a single-set instruction that should be kept in the same block.
14184 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14186         * doc/install.texi (avr): Update outdated URL.
14188 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
14190         * config/stormy16/stormy16.md (pushqi): New.
14191         (popqi): New.
14192         (pushhi): New.
14193         (pophi): New.
14194         (movhi): Remove stack operands.
14195         (movqi): Likewise.
14196         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14197         nonimmediate_nonstack_operand.
14198         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14199         New.
14200         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14201         New.
14203 2002-01-31  Jason Merrill  <jason@redhat.com>
14205         * Makefile.in (c-parse.c): Handle .output file.
14206         * objc/Make-lang.in (objc-parse.c): Likewise.
14208 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
14210         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14211         the -me[lb] option is given.  Don't output the default flag
14212         twice.
14214 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
14216         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14217         the primary source file; this has not been done yet.
14218         * c-decl.c (c_expand_body): Reset input_filename from
14219         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14221 2002-01-31  Kazu Hirata  <kazu@hxi.com>
14223         * rtlanal.c (subreg_regno_offset): Do not use
14224         SUBREG_REGNO_OFFSET.
14225         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14226         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14228 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14230         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
14231         version rather than GNATS version in --version output.
14233 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
14235         * ifcvt.c (noce_process_if_block): Make a copy of the destination
14236         when copying back from a temporary.
14238 2002-01-30  Richard Henderson  <rth@redhat.com>
14240         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14241         and new_dest are the same.
14243 2002-01-30  Richard Henderson  <rth@redhat.com>
14245         PR opt/5076
14246         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14247         * rtl.c (note_insn_name): Update.
14248         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14249         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14250         to perform loop rotation.
14251         (expand_exit_loop_top_cond): New.
14252         * tree.h (expand_exit_loop_top_cond): Declare it.
14253         * c-semantics.c (genrtl_while_stmt): Use it.
14254         (genrtl_for_stmt): Likewise.
14256 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14258         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14259         arguments to 64-bit boundaries on 64-bit ABIs.
14261 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14263         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14265 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14267         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14268         invalid type.
14270 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14272         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14273         * config/sparc/sparc_bi.h: Remove file.
14274         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14276 2002-01-30  Richard Henderson  <rth@redhat.com>
14278         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14280 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14282         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14284 2002-01-30  Jason Merrill  <jason@redhat.com>
14286         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14287         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14288         (reg_save): Use DW_CFA_offset_extended_sf instead.
14290         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14292 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14294         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14295         in cselib_lookup.
14297 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14299         * rs6000.md ("*call_value_local32"): Remove constraints.
14300         ("*call_value_local64"): Same.
14301         ("*call_value_indirect_nonlocal_aix32"): Same.
14302         ("*call_value_nonlocal_aix32"): Same.
14303         ("*call_value_indirect_nonlocal_aix64"): Same.
14304         ("*call_value_nonlocal_aix64"): Same.
14305         ("*call_value_nonlocal_sysv"): Same.
14307 2002-01-29  Richard Henderson  <rth@redhat.com>
14309         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14311 2002-01-29  Richard Henderson  <rth@redhat.com>
14313         * expr.c (force_operand): Ignore flag_pic for detecting pic
14314         address loads.
14315         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14316         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14317         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14318         instead of open-coded loop.
14319         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14320         be fixed when in use.
14322 2002-01-29  Richard Henderson  <rth@redhat.com>
14324         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14325         * sched-rgn.c (propagate_deps): Update them.
14326         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14327         clobbers list when either gets too long.
14329 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14331         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14332         and INDEX_REGS the same as GENERAL_REGS.
14333         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14335 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14337         * tree.c (build_nonstandard_integer_type): Correct prototype.
14339 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14341         * config/s390/s390.md (movstrsico, movstrdix_64,
14342         movstrsix_31): Remove, replace by ...
14343         (movstrdi_short, movstrsi_short, movstrdi_long,
14344         movstrsi_long): ... these.  New.
14345         (movstrdi, movstrsi): Adapt.
14347         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14348         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14349         Remove unnecessary CC clobber.
14350         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14351         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14353         (divmoddi4): Don't partially initialize TImode register.
14355 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14357         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14359 2002-01-29  Richard Henderson  <rth@redhat.com>
14361         * flow.c (print_rtl_and_abort): Remove.
14362         (print_rtl_and_abort_fcn): Remove.
14363         (verify_local_live_at_start): Use dump_bb instead.
14364         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14365         (verify_wide_reg_1): Return 2 on mode test failure.
14367 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14369         PR c/3325, c/3326, c/2511, c/3347
14370         * c-decl.c (enum_decl_context): Remove BITFIELD.
14371         (grokdeclarator): Take bitfield width as an input.
14372         Ensure bitfields are given the correct type.  Perform
14373         bitfield width validation with build_bitfield_integer_type
14374         rather than waiting for finish_struct.
14375         (grok_typename, grok_typename_in_parm_context, start_decl,
14376         push_parmdecl, grokfield, start_function): Update calls to
14377         grokdeclarator.
14378         (build_bitfield_integer_type): New function.
14379         (finish_struct): Move bitfield validation to grokdeclarator
14380         and build_bitfield_integer_type.
14381         * tree.c (build_nonstandard_integer_type): New function.
14382         * tree.h (build_nonstandard_integer_type): New prototype.
14383 objc:
14384         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14386 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14388         PR other/1502:
14389         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14390         don't ignore unrecognized -W* options.
14391         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14392         * cpplib.h (cpp_handle_option): Adjust prototype.
14393         * c-decl.c (c_decode_options): Pass 0 as last argument to
14394         cpp_handle_option.
14396         PR c/2896:
14397         * gcc.c (cpp_unique_options): Split from cpp_options.
14398         (cpp_options): Source cpp_unique_options.
14399         (default_compilers): Use cpp_unique_options instead of cpp_options
14400         when used together with cc1_options.
14401         (static_specs): Add cpp_unique_options.
14402         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14403         when used together with cc1_options.
14405 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14407         * config/h8300/h8300-protos.h: Update the prototype of
14408         output_a_shift.
14409         * config/h8300/h8300.c (output_a_shift): Remove an unused
14410         argument 'insn'.  Remove redundant code.
14411         * config/h8300/h8300.md: Adust to the new prototype of
14412         output_a_shift.
14414 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14416         * config/h8300/h8300-protos.h: Update the prototypes of
14417         emit_a_rotate and expand_a_rotate.
14418         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14419         first argument to 'enum rtx_code'.
14420         (expand_a_rotate): Likewise.
14422 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14424         * config/h8300/h8300-protos.h: Update the prototype of
14425         output_simode_bld.
14426         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14427         'log2'.
14428         * config/h8300/h8300.md: Adjust to the new prototype.
14430 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14432         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14433         redundant code.
14435 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14437         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14438         is a fixed register before returning pic_offset_table_rtx.
14439         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14440         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14442 2002-01-28  Jason Merrill  <jason@redhat.com>
14444         * dwarf2.h: Sync with src version.
14446 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14448         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14449         BT_FN_VOID_PTR_VAR.
14450         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14451         * doc/extend.texi (__builtin_prefetch): Update documentation:
14452         first argument is now const void ptr.
14454 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14456         * config/h8300/h8300-protos.h: Remove an unused prototype.
14458 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14460         * toplev.c (lang_independent_init): Round up identifier size.
14462 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14464         * config.gcc: Revert previous change.
14466 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14468         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14470 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14472         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14473         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14474         other non-elf netbsd config frags.
14475         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14476         collect2 will does that.
14477         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14478         shared-lib frobbing will work.
14480 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14482         * config/h8300/h8300.h: Fix formatting.
14483         * config/h8300/h8300.md: Likewise.
14485 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14487         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14488         the old, removed AAA_standards fix.
14489         * fixinc/fixincl.x: Rebuilt.
14491 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14493         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14494         atexit call in crtbegin, hooked in after call to frame_dummy;
14495         register EH before registering __fini__start.
14497 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14499         * config/rs6000/altivec.h: Remove spurious semicolons.
14501 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14503         * config/h8300/h8300.md: Replace dead bit extraction patterns
14504         with ones that work.
14506 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14508         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14509         if not STRICT_ALIGNMENT.
14510         * rtl.h (MEM_ALIGN): Likewise.
14512 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14514         * doc/invoke.texi (-fdump-translation-unit): Revert this
14515         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14517 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14519         * config/h8300/h8300.md (define_constants): New.
14520         (anonymous patterns) Use defined constants appropriately.
14522 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14524         * config/h8300/h8300.c (function_arg): Remove redundant code.
14526 2002-01-26  Richard Henderson  <rth@redhat.com>
14528         * sched-deps.c (reg_pending_uses_head): New.
14529         (reg_pending_barrier): Rename from reg_pending_sets_all.
14530         (find_insn_list): Don't mark inline.
14531         (find_insn_mem_list): Remove.
14532         (add_dependence_list, add_dependence_list_and_free): New.
14533         (flush_pending_lists): Replace only_write param with separate
14534         for_read and for_write parameters.  Update all callers.  Use
14535         add_dependence_list_and_free.
14536         (sched_analyze_1): Do not add reg dependencies here; just set
14537         the pending bits.  Use add_dependence_list.
14538         (sched_analyze_2): Likewise.
14539         (sched_analyze_insn): Replace schedule_barrier_found with
14540         reg_pending_barrier.  Add all dependencies for pending reg
14541         uses, sets, and clobbers.
14542         (sched_analyze): Don't add reg dependencies for calls, just
14543         set pending bits.  Use regs_invalidated_by_call.  Treat
14544         sched_before_next_call as a normal list, not a fake insn.
14545         (init_deps): No funny init for sched_before_next_call.
14546         (free_deps): Free pending mems lists.  Don't zero reg_last.
14547         (init_deps_global): Init reg_pending_uses.
14548         (finish_deps_global): Free it.
14549         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14550         (find_insn_mem_list): Remove.
14551         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14552         (propagate_deps): Use them.  Zero temp mem lists.
14554 2002-01-26  Richard Henderson  <rth@redhat.com>
14556         * Makefile.in (CRTSTUFF_CFLAGS): New.
14557         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14558         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14559         crtstuff.c instead of alpha assembly version.
14560         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14561         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14562         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14563         (__do_global_dtors_aux): Mark used.
14564         (frame_dummy, __do_global_ctors_aux): Mark used.
14565         (fini_dummy, init_dummy): Remove.
14567         * config/alpha/crtbegin.asm: Remove file.
14568         * config/alpha/crtend.asm: Remove file.
14569         * config/alpha/t-crtbe: Remove file.
14570         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14571         (LINK_EH_SPEC): New.
14573         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14574         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14575         calling constructors.
14576         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14578         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14579         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14580         CRT_END_INIT_DUMMY hack.
14581         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14582         FORCE_{INIT,FINI}_SECTION_ALIGN.
14584         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14585         FORCE_{INIT,FINI}_SECTION_ALIGN.
14587         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14588         invocation sequence.
14589         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14591         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14592         (FORCE_CODE_SECTION_ALIGN): New.
14594 2002-01-26  Richard Henderson  <rth@redhat.com>
14596         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14598 2002-01-26  Richard Henderson  <rth@redhat.com>
14600         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14601         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14603 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14605         * config/h8300/h8300.md: Remove bit extraction patterns that
14606         cannot be triggered.
14607         Restrict each bit extraction pattern to a variant on which the
14608         pattern is tested.
14610 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14612         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14614 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14616         * config/h8300/h8300.md: Remove bit test patterns that cannot
14617         be triggered.
14618         Restrict each bit test pattern to a variant on which the
14619         pattern is tested.
14621 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14623         * builtins.c (expand_builtin_strncat): Remove redundant check for
14624         INTEGER_CST.
14626 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14628         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14629         default setting.
14630         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14631         existing setting.
14633 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14635         * dbxout.c (dbxout_init): Use assemble_name rather than just
14636         stripping off the first character.
14637         (dbxout_source_file): Likewise.
14639 2002-01-25  DJ Delorie  <dj@redhat.com>
14641         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14642         using rtx_equal_p, not by comparing pointers.
14644 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14646         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14647         for PIC_OFFSET_TABLE_REGNUM.
14648         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14650 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14652         * config.gcc (x86_64-*-freebsd*): New target.
14653         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14654         value.
14655         (i[34567]86-*-freebsd*): Don't include svr4.h.
14656         * config/i386/freebsd64.h: New file.
14658 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14660         * config/alpha/x-vms (version): Make static.
14662         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14663         in previous checkin.
14665         * Makefile.in (install-headers-cp): New target.
14666         * config.gcc (alpha-dec-*vms*): Install headers with
14667         install-headers-cp
14669 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14671         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14672         avoid it's copies.
14674 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14676         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14677         of compare_tree_int.
14678         (expand_builtin_strncat): Likewise.
14679         * c-decl.c (finish_struct): Use tree_low_cst.
14680         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14681         * tree.c (compare_tree_int): Likewise.
14683 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14685         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14686         adjustments even if they are implemented by more than two insns.
14688 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14690         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14691         * df.h (struct ref): Kill B.
14692         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14694         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14695         * flow.c (propagate_one_insn): Use it.
14696         (mark_used_regs): Handle NIL.
14698 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14700         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14701         to help folding.
14703 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14705         * rs6000.md (prefetch): Make address V4SI mode so that the address
14706         is restricted to legitimate form for instruction.
14708 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14710         * doc/install.texi (xtensa-*-elf): New target.
14711         (xtensa-*-linux*): New target.
14712         * doc/contrib.texi: Add myself.
14714 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14716         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14717         purpose register to hold an SImode (or smaller) value.
14719 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14721         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14722         registry only.
14723         * crtstuff.c: Likewise.
14725 2002-01-25  Kazu Hirata  <kazu@hxi.com>
14727         * config/h8300/h8300.md (negation patterns): Tighten
14728         predicates to register_operand.
14730 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
14732         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14733         mode, not Pmode.
14735         * builtins.c (expand_builtin_prefetch): Same.
14737 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14739         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14740         modes.
14742 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14744         * config/h8300/h8300.c (print_operand): Remove support for
14745         operand character 'A'.
14746         * config/h8300/h8300.md (three anonymous patterns): Replace
14747         operand character 'A' with either 'T' or 'S'.
14749 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14751         * config/h8300/h8300.c (print_operand): Remove support for
14752         operand character 'U'.
14754 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
14756         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14758 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
14760         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14761         values to be assigned to the stack pointer.
14763 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
14765         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14766         to const_double needs to be done right for big-endian systems.
14768 2002-01-24  Jason Merrill  <jason@redhat.com>
14770         PR c++/2432
14771         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14772         to can_throw_internal.
14774 2002-01-23  Richard Henderson  <rth@redhat.com>
14776         * fold-const.c (fold): Change UINT_MAX test to check vs precision
14777         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
14779 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14781         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14782         (symGOT2reg): Use them, then set as GOT value as unchanging.
14783         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
14784         as a temporary, if possible.
14785         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
14786         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14788 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14790         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14791         accept to accept 0x80 as operands[2].
14793 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14795         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14797 2002-01-23  Richard Henderson  <rth@redhat.com>
14799         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14801 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
14803         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14804         (parmlist_or_identifiers_1): Verify that only a parmlist follows
14805         an attribute.
14807 2002-01-23  Richard Henderson  <rth@redhat.com>
14809         * expr.c (move_by_pieces_1): Extend size before negation.
14811         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14812         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14813         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14814         * config/m68k/t-m68kelf: Likewise.
14816 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
14818         * config/xtensa/elf.h: New file.
14819         * config/xtensa/lib1funcs.asm: New file.
14820         * config/xtensa/lib2funcs.S: New file.
14821         * config/xtensa/linux.h: New file.
14822         * config/xtensa/t-xtensa: New file.
14823         * config/xtensa/xtensa-config.h: New file.
14824         * config/xtensa/xtensa-protos.h: New file.
14825         * config/xtensa/xtensa.c: New file.
14826         * config/xtensa/xtensa.h: New file.
14827         * config/xtensa/xtensa.md: New file.
14828         * config.gcc (xtensa-*-elf*): New target.
14829         (xtensa-*-linux*): New target.
14830         * cse.c (canon_hash): Compare rtx pointers instead of register
14831         numbers.  This is required for the Xtensa port.
14832         * integrate.c (copy_insn_list): Handle case where the static
14833         chain is in memory and the memory address has to be copied to
14834         a register.
14835         * doc/invoke.texi (Option Summary): Add Xtensa options.
14836         (Xtensa Options): New node.
14837         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14839 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14841         * diagnostic.c (internal_error): Do ICE suppression only
14842         when ENABLE_CHECKING is not defined.
14844         * c-typeck.c (require_complete_type): Return error_mark_node
14845         if type is error_mark_node.
14847 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
14849         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14850         -Os and issue a warning.
14852 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14854         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14855         current (lack of) need for host configuration by hand.
14857         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14858         references.  Documentation of some target macros moved from
14859         hostconfig.texi to tm.texi.
14861 2002-01-23  Will Cohen  <wcohen@redhat.com>
14863         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14864         defined.
14866 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14868         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14869         operand[3].
14871 2002-01-23  Jason Merrill  <jason@redhat.com>
14873         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14875         * function.c (assign_parms): Don't put args of inline functions
14876         into registers when not optimizing.
14878 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
14880         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14881         (prologue_use): New pattern.
14882         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14883         preference to gen_rtx_USE.
14884         (thumb_expand_prologue): Use gen_prologue_use in preference to
14885         gen_rtx_USE.
14886         (thumb_expand_epilogue): Use gen_prologue_use in preference to
14887         gen_rtx_USE.
14889 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
14891         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14893 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14895         PR c/3504
14896         * doc/extend.texi: Correct documentation of __alignof__.
14898 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
14900         * params.h: Rename arguments of DEFPARAM so that it will be
14901         recognized as a translation keyword.
14903 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14905         * extend.texi: Document altivec functions.
14906         Fix N-bit adjectives in X86 builtin documentation.
14908 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14910         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14911         auto_inc_dec values.
14913 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
14915         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14916         after backslash.
14917         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14919 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14921         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14923 2002-01-22  Richard Henderson  <rth@redhat.com>
14925         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14926         copy_insn not copy_rtx.
14928 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
14930         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14931         "nonzero" as that might add "1" bits.  Ensure "constop" is
14932         properly sign extened.
14933         (force_to_mode): Tweak for sign extended constop.
14935 2002-01-22  Richard Henderson  <rth@redhat.com>
14937         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14938         for_each_rtx instead of assuming we're already looking at the MEM.
14939         (split_small_symbolic_mem_operand): Likewise.
14940         * config/alpha/alpha.h (PREDICATE_CODES): Update.
14941         * config/alpha/alpha.md (small symbolic memory splitters): Update.
14943 2002-01-22  Richard Henderson  <rth@redhat.com>
14945         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14946         sequence number for the literal.
14947         (divmoddi_internal_er): Likewise.
14949 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14951         PR java/4972
14952         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14953         in LIBICONV variable.
14954         * configure: Regenerated.
14956 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
14958         * dependence.c (build_def_use): Remove array_idx.
14960         * dwarfout.c (last_filename): Remove.
14961         (output_compile_unit_die): Remove last_filename.
14963 2002-01-22  Roger Sayle  <roger@eyesopen.com>
14964             Richard Henderson  <rth@redhat.com>
14966         PR opt/3640
14967         * fold-const.c (fold): Optimize unsigned comparisons against
14968         UINT_MAX (and similar unsigned constants).
14970 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
14972         * Makefile.in (loop.o): Depend on OPTABS_H.
14973         * loop.c (emit_prefetch_instructions): Check the prefetch operand
14974         against the predicate.
14976         PR target/5379
14977         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14978         for the address operand.
14980 2002-01-22  Richard Henderson  <rth@redhat.com>
14982         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14984 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14986         PR other/5450
14987         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14988         preprocessor flags.
14990 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
14992         * config.gcc (x86_64-*-netbsd*): New target.
14993         * config/i386/netbsd64.h: New file.
14995 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14997         * regrename.c (kill_value): Fix typo.
14999 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15001         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15003         * config/rs6000/rs6000.h: Same.
15005         * function.c (instantiate_virtual_regs): Remove
15006         STARTING_FRAME_PHASE.
15007         (assign_stack_local_1): Same.
15008         Calculate frame phase.
15010 2002-01-22  Nick Clifton  <nickc@redhat.com>
15012         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15013         variable declaration to outer scope in order to simplify
15014         future extensions.
15015         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15016         arm_hard_regno_mode_ok.
15017         * config/arm/arm-protos.h: Add a prototype for
15018         arm_hard_regno_mode_ok.
15019         * config/arm/arm.c (soft_df_operand): Remove now redundant
15020         check for DImode values using IP_REGNUM.
15021         (nonimmediate_soft_df_operand): Remove now redundant check for
15022         DImode values using IP_REGNUM.
15023         (arm_hard_regno_mode_ok): New function. New check: make sure
15024         that DImode values are not stored in IP_REGNUM.
15026         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15027         note with a USE.
15028         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15030 2002-01-22  Jason Merrill  <jason@redhat.com>
15032         * c-semantics.c (genrtl_compound_stmt): Only check nesting
15033         consistency if this COMPOUND_STMT is scoped.
15035 2002-01-22  Kazu Hirata  <kazu@hxi.com>
15037         * predict.c: Fix formatting.
15038         * print-tree.c: Likewise.
15039         * protoize.c: Likewise.
15040         * real.h: Likewise.
15041         * rtl.h: Likewise.
15042         * sbitmap.h: Likewise.
15043         * scan.c: Likewise.
15044         * sched-deps.c: Likewise.
15045         * sched-vis.c: Likewise.
15046         * sdbout.c: Likewise.
15047         * sibcall.c: Likewise.
15048         * ssa.c: Likewise.
15049         * ssa-ccp.c: Likewise.
15050         * ssa-dce.c: Likewise.
15051         * stmt.c: Likewise.
15052         * stor-layout.c: Likewise.
15053         * system.h: Likewise.
15055 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15057         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15058         if fits in bounds of base type.
15060         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15061         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15062         (add_bound_info, default): If can't find a context, make a
15063         SAVE_EXPR.
15064         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15066 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
15068         * c-typeck.c (parser_build_binary_op): If result from
15069         build_binary_op is ERROR_MARK just return error_mark_node without
15070         further processing.
15072 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
15074         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15075         Split a.out-specific bits into...
15076         * config/netbsd-aout.h: ...this.
15077         * config/netbsd-elf.h: New file.
15078         * config/alpha/netbsd-elf.h: Remove.
15079         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15080         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15081         (STARTFILE_SPEC): Remove redundant definition.
15082         (ENDFILE_SPEC): Likewise.
15083         (LINK_SPEC): Likewise.
15084         (CPP_SPEC): Likewise.
15085         (ASM_SPEC): Likewise.
15086         (LIB_SPEC): Likewise.
15087         (SWITCH_TAKES_ARG): Likewise.
15088         (TARGET_MEM_FUNCTIONS): Likewise.
15089         (CPP_PREDEFINES): Redefine.
15090         (ASM_FINAL_SPEC): Remove redefinition.
15091         (ASM_COMMENT_START): Redefine.
15092         (FUNCTION_PROFILER): Define.
15093         (TARGET_VERSION): Redefine.
15094         Comment and formatting cleanup.
15095         * config/i386/netbsd.h: Include <netbsd-aout.h>.
15096         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15097         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15098         big- or little-endian.
15099         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15100         * config.gcc (*-*-netbsd*): Add definitions common to all
15101         NetBSD configs.
15102         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15103         gnu_ld definitions.  Add netbsd-elf.h to and remove
15104         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
15105         tmake_file, and don't lose previous tmake_file contents.
15106         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15107         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15108         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
15109         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15110         (mipsel-*-netbsd*): Rename this to...
15111         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
15112         mips/little.h to tm_file for mips*el-*.
15113         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15114         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15115         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15117 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15119         * pa-protos.h (reg_before_reload_operand): New function prototype.
15120         * pa.c (reg_before_reload_operand): New function implementation.
15121         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
15122         contraints to "*m".
15124 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15126         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15128 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15130         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15131         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15132         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15133         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15134         (ENDFILE_SPEC): Undefine.
15135         (STARTFILE_SPEC): Redefine for PA.
15137 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15139         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15141 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
15143         * config.gcc: Add entries to supported PowerPC --with-cpu
15144         types.
15146 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
15148         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15149         true for 64-bit mode only SSE registers in 32-bit mode.
15151 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15153         * unwind-dw2.c: Fix formatting.
15154         * unwind-dw2-fde.c: Likewise.
15155         * unwind-dw2-fde.h: Likewise.
15156         * unwind-pe.h: Likewise.
15157         * varasm.c: Likewise.
15158         * varray.h: Likewise.
15160 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
15162         Remove workaround for register stack overwrite bug in mmix.
15163         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15164         support for TARGET_REG_STACK_FILL_BUG.
15165         * config/mmix/mmix.h: Remove member has_call_without_parameters.
15166         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15167         Delete.
15168         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15169         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15170         -mno-reg-stack-fill-bug-workaround.
15171         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15172         machine member has_call_without_parameters.
15173         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15174         -mreg-stack-fill-bug-workaround and
15175         -mno-reg-stack-fill-bug-workaround.
15176         (MMIX Options): Ditto.
15178 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15180         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15181         as appropriate.
15182         Remove redundant code.
15184 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15186         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15187         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15188         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15189         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15190         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15191         out target macro definitions and non-target-specific comments
15192         mostly taken from old versions of the manual.
15194 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15196         * config/h8300/h8300.h: Fix comment formatting.
15197         * config/ia64/aix.h: Likewise.
15198         * config/ia64/ia64-protos.h: Likewise.
15199         * config/ia64/ia64.c: Likewise.
15200         * config/ia64/ia64.h: Likewise.
15201         * config/ia64/ia64intrin.h: Likewise.
15202         * config/ia64/linux.h: Likewise.
15203         * config/ia64/unwind-aix.c: Likewise.
15204         * config/ia64/unwind-ia64.c: Likewise.
15206 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15208         * config/h8300/h8300.c: Revise comments about shift code.
15210 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15212         * config/h8300/h8300.c (function_arg): Update a comment.
15214 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15216         * config/h8300/h8300.md: Update the comments at the beginning
15217         of the file.
15219 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15221         * config/i370/i370.c: Fix comment formatting.
15222         * config/i370/i370.h: Likewise.
15223         * config/i370/i370.md: Likewise.
15224         * config/i370/linux.h: Likewise.
15226 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15228         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15230         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15231         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15232         in incomplete case.
15234 2002-01-20  Graham Stott  <grahams@redhat.com>
15236         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15238 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15240         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15242 2002-01-19  Tom Rix  <trix@redhat.com>
15244         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15246 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15248         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15250         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15251         STARTING_FRAME_PHASE.
15252         (STARTING_FRAME_PHASE): New.
15253         (instantiate_virtual_regs): Check saneness of
15254         STARTING_FRAME_PHASE.
15256         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15258 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15260         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15262 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15264         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15265         be used for bootstrapping GCC 3.0.
15267 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15269         * config/h8300/h8300.md: Fix an insn length.
15271 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15273         * bitmap.h: Fix comment formatting.
15274         * combine.c: Likewise.
15275         * cppfiles.c: Likewise.
15276         * c-pragma.h: Likewise.
15277         * c-typeck.c: Likewise.
15278         * df.c: Likewise.
15279         * dwarf2out.c: Likewise.
15280         * function.c: Likewise.
15281         * gcc.c: Likewise.
15282         * genattrtab.c: Likewise.
15283         * gthr-win32.h: Likewise.
15284         * haifa-sched.c: Likewise.
15285         * predict.c: Likewise.
15286         * rtlanal.c: Likewise.
15287         * rtl.h: Likewise.
15288         * unwind-dw2-fde.h: Likewise.
15289         * unwind-pe.h: Likewise.
15290         * vmsdbgout.c: Likewise.
15292 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15294         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15295         if type_required and passed decl.
15297 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15299         * config.gcc (cpu_type): Include altivec.h in powerpc
15300         extra_headers.
15301         Same for darwin.
15303         * config/rs6000/altivec.h: New.
15305 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15307         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15308         handling information.
15309         * doc/trouble.texi (Interoperation): Add libstdc++ information
15310         for AIX.
15311         (Misunderstandings): Add template instantiation and static template
15312         member information for AIX.
15314 2002-01-17  Jason Merrill  <jason@redhat.com>
15316         * dbxout.c (dbxout_type): Support const and volatile.
15318         * except.c (add_partial_entry): Remove backwards compatibility code.
15319         (end_protect_partials): Likewise.
15321 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15323         * config/ia64/ia64.md (prologue_use): New.
15324         * config/ia64/ia64.c (ia64_expand_prologue): Use
15325         gen_prologue_use instead of gen_rtx_USE.
15326         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15327         as CODE_FOR_pred_rel_mutex.
15328         (ia64_sched_reorder2): Likewise.
15330 2002-01-16  Eric Christopher  <echristo@redhat.com>
15332         * config/mips/r3900.h: Reformat.
15333         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15334         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15335         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15336         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15337         * config/mips/t-elf: Remove mips3 multilib.
15339 2002-01-16  H.J. Lu <hjl@gnu.org>
15341         * config/mips/linux.h: Include "mips/abi64.h".
15343 2002-01-16  H.J. Lu <hjl@gnu.org>
15345         * config/mips/t-linux: New.
15347         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15349         * config/mips/linux.h: Don't include "gofast.h".
15350         (INIT_SUBTARGET_OPTABS): Removed.
15352 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15354         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15355         output_a_shift.
15356         * config/h8300/h8300.c: Likewise.
15357         * config/h8300/h8300.md: Likewise.
15359 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15361         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15362         spaces after an opcode name.
15363         (pushqi1_h8300hs): Likewise.
15364         (pushhi1_h8300hs): Likewise.
15366 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15368         * doc/extend.texi: Replace "option" with "attribute"
15369         appropriately.
15371 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15373         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15374         (and:DI () (const_int -8)).
15375         (split_small_symbolic_mem_operand): Split
15376         (mem (and:DI () (const_int -8)).
15378 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15380         PR target/5309:
15381         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15382         same way as TYPE_IMUL.
15383         (ultrasparc_sched_reorder): Likewise.
15384         * config/sparc/sparc.md (type): Add comment to update
15385         ultrasparc_sched_reorder when making changes.
15387 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15389         * doc/invoke.texi: Change the dump file name of block
15390         reordering pass from 28.bbro to 29.bbro.
15391         Mention -dk option.
15393 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15395         * i386.md (minsf splitter): Fix pasto.
15397 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15399         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15400         to frame pointer initialisation instruction.
15401         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15402         initialisation instruction.
15403         (soft_df_operand): Do not accept the IP register.
15404         (nonimmediate_soft_df_operand): Do not accept the IP register.
15406 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15408         PR target/5357:
15409         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15410         MASK_V8 being both set.
15412 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15414         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15415         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15416         config/s390/s390.md (call, call_value): Add GOT register to
15417         CALL_INSN_FUNCTION_USAGE where needed.
15418         (call_exp, call_value_exp): New.
15420 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15422         * config/arm/arm.c: General formatting tidy up.
15424 2002-01-16  Graham Stott  <grahams@redhat.com>
15426         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15427         cast and when casting an integer literal to "rtx" pointer.
15428         (expand_call): Likewise.
15429         * flow.c (try_pre_increment): Likewise.
15430         (find_use_as_address): Likewise.
15431         * integrate.c (expand_iline_function): Likewise.
15432         * regmove.c (try_auto_increment): Likewise.
15434 2002-01-16  Graham Stott  <grahams@redhat.com>
15436         * sched-rgn.c (passed): Use sbitmap_free.
15437         (header): Likewise.
15438         (inner): Likewise.
15439         (in_queue): Likewise.
15440         (in_stack): Likewise.
15442 2002-01-15  Eric Christopher  <echristo@redhat.com>
15444         * flow.c (propagate_one_insn): Change to use fatal_insn.
15446 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15448         * expmed.c (extract_fixed_bit_field): Remove unused code.
15449         * system.h: Poison SLOW_ZERO_EXTEND.
15450         * doc/tm.texi: Remove.
15451         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15452         * config/arm/arm.h: Likewise.
15453         * config/avr/avr.h: Likewise.
15454         * config/clipper/clipper.h: Likewise.
15455         * config/convex/convex.h: Likewise.
15456         * config/d30v/d30v.h: Likewise.
15457         * config/dsp16xx/dsp16xx.h: Likewise.
15458         * config/elxsi/elxsi.h: Likewise.
15459         * config/fr30/fr30.h: Likewise.
15460         * config/h8300/h8300.h: Likewise.
15461         * config/i370/i370.h: Likewise.
15462         * config/i386/i386.h: Likewise.
15463         * config/m68k/m68k.h: Likewise.
15464         * config/mips/mips.h: Likewise.
15465         * config/ns32k/ns32k.h: Likewise.
15466         * config/pdp11/pdp11.h: Likewise.
15467         * config/pj/pj.h: Likewise.
15468         * config/s390/s390.h: Likewise.
15469         * config/sh/sh.h: Likewise.
15470         * config/stormy16/stormy16.h: Likewise.
15471         * config/v850/v850.h: Likewise.
15472         * config/vax/vax.h: Likewise.
15473         * config/we32k/we32k.h: Likewise.
15475 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15477         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15478         (altivec_lvsl): Change constraint to b.
15479         (altivec_lvsr): Same.
15480         (altivec_lvebx): Same.
15481         (altivec_lvehx): Same.
15482         (altivec_lvewx): Same.
15483         (altivec_lvxl): Same.
15484         (altivec_lvx): Same.
15485         (altivec_stvx): Add parallel.
15486         (altivec_stvxl): Same.
15487         (altivec_stvehx): Same.
15488         (altivec_stvebx): Same.
15489         (altivec_stvebx): Same.
15491 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15493         * config.gcc: Change altivec.h to altivec-defs.h.
15495         * config/rs6000/altivec.h: Delete.
15497         * config/rs6000/altivec-defs.h: Add.
15499 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15501         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15502         and UMOD modes.
15504         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15505         less than or equal to eight bytes.
15507         * vax.md (andsi3): Remove constraints and change SET destination
15508         operand type to nonimmediate_operand.
15509         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15510         when it is a CONST_INT.
15512 2002-01-15  Jason Merrill  <jason@redhat.com>
15514         * c-common.def (FILE_STMT): New code.
15515         * c-common.c (statement_code_p): It's a statement.
15516         * c-common.h (stmt_tree_s): Add x_last_filename.
15517         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15518         (last_expr_filename): New macro.
15519         * c-semantics.c (begin_stmt_tree): Initialize it.
15520         (add_stmt): If the filename changed, also insert a
15521         FILE_STMT.
15522         (expand_stmt): Handle seeing one.
15524 2002-01-15  Eric Christopher  <echristo@redhat.com>
15526         * flow.c (propagate_one_insn): Add error message and print out
15527         insn for debugging.
15529 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15531         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15532         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15533         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15534         TRAMPOLINE_ALIGNMENT.
15535         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15536         to be in bits.
15537         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15538         PCC_BITFIELD_TYPE_MATTERS.
15539         * config/interix.h (STDC_VALUE): Remove.  Use
15540         STDC_0_IN_SYSTEM_HEADERS.
15541         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15542         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15543         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15545 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15547         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15548         not work on this platform currently.
15550 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15552         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15553         readonly_warning in _().
15555 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15557         * gcc.c (delete_if_ordinary): Backout previous change.
15559 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15561         * config/h8300/h8300.c (print_operand): Remove support for
15562         unused operand characters.
15564         * read-rtl.c: Fix formatting.
15565         * real.c: Likewise.
15566         * recog.c: Likewise.
15567         * regclass.c: Likewise.
15568         * regmove.c: Likewise.
15569         * reg-stack.c: Likewise.
15570         * reload1.c: Likewise.
15571         * rtlanal.c: Likewise.
15573 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15575         * config/i386/i386.c: Fix formatting.
15577 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15579         * c-typeck.c (process_init_element): Don't save_expr
15580         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15582 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15584         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15585         emit optional traceback table if optimize_size or TARGET_ELF.
15586         * config/rs6000/rs6000.md (prefetch): New.
15588 2002-01-15  Andreas Jaeger  <aj@suse.de>
15590         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15592 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15594         * mips-tfile.c: Fix formatting.
15596 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15598         * unroll.c (final_reg_note_copy): Fix previous commit.
15600 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15602         * config/h8300/h8300-protos.h: Remove the prototype for
15603         eq_operator.
15604         * config/h8300/h8300.c (eq_operator): Remove.
15606 2002-01-14  Richard Henderson  <rth@redhat.com>
15608         * config/i386/i386.md (prefetch): Tidy.
15609         (prefetch_3dnow): Fix locality operand.
15611 2002-01-14  Richard Henderson  <rth@redhat.com>
15613         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15614         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15616 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15618         * reload1.c (reload_combine): Pass reg_sum replacement through
15619         copy_rtx in loop performing multiple changes.
15621 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15623         * except.c (remove_unreachable_regions): New.
15624         (free_eh_status): Clear exception_handler_labels.
15625         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15626         (find_exception_handler_labels): Don't add the same label more than
15627         once.
15628         (remove_exception_handler_label): Don't die if
15629         find_exception_handler_labels hasn't been called for the current
15630         function yet.
15632 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15634         * toplev.c (rest_of_compilation): Rebuild jump labels after
15635         gcse.
15637 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15639         * doc/extend.texi: Move documentation of X86 built-in functions
15640         here.
15641         * doc/invoke.texi: From here.
15642         * doc/sourcebuild.texi: Document location of documentation for
15643         machine built-in functions.
15645 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15647         * cppfiles.c (TEST_THRESHOLD): New macro.
15648         (SHOULD_MMAP): Ditto.
15649         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15650         be used.
15652 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15654         * unroll.c (final_reg_note_copy): Properly handle
15655         REG_LABEL
15656         (unroll_loops): Fix LOOP_CONDITION heuristics.
15658 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15660         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15661         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15663 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15665         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15666         threaded loop.
15668 2002-01-14  Tom Rix  <trix@redhat.com>
15670         * config/rs6000/rs6000.md: Fix typo with sradi.
15672 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15674         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15675         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15676         (clrstrdi, clrstrsi): Adapt callers.
15678         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15680         (movti splitter): Never use register 0 as base register.
15682 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15684         * combine.c (simplify_shift_const): Always generate new rtx
15685         for shift expression instead of reusing given expression.
15687 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15689         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15690         alpha_legitimize_address unless mode is Pmode.
15692 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15694         * doc/md.texi (Modifiers): Document the '*' constraint for the
15695         user.
15697         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15698         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15699         for xstormy16 too.
15701 2002-01-13  Richard Henderson  <rth@redhat.com>
15703         * reload.c (find_reloads): Use a hard reg destination as reload reg
15704         for an input reload of the source.
15706 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15708         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15709         more generic.
15711 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15713         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15714         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15716         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15718 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15720         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15722 2002-01-12  Tom Rix  <trix@redhat.com>
15724         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15725         TARGET_POWERPC64.
15727 2002-01-12  Richard Henderson  <rth@redhat.com>
15729         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15731         * doc/invoke.texi: Update Alpha options.
15733         * doc/invoke.texi: Update i386 built-in function lists.
15735 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15737         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15738         referencing outside.
15740 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15742         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15743         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15744         offsets, and change line folding.
15745         * optabs.c (expand_binop): Remove warnings.
15746         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15748 2002-01-12  Graham Stott <grahams@redhat.com>
15750         * attribs.c (handle_deprecated_attribute): constify WHAT.
15751         * diagnostic.c (warn_deprecated_use): Add braces, fixes
15752         dangling else warning and constify WHAT.
15753         * except.h (struct function, struct inline_remap): Move
15754         struct tag forward defs before all prototypes.
15755         (duplicate_eh_regions): Whitespace.
15757 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
15759         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15760         MODE_BASE_REG_CLASS.
15761         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15763 2002-01-12  Richard Henderson  <rth@redhat.com>
15765         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15766         (ix86_expand_vector_move): New.
15767         (bdesc_2arg): Remove andps, andnps, orps, xorps.
15768         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
15769         Remove old prefetch builtins.  Special case the logicals removed above.
15770         (ix86_expand_builtin): Likewise.
15771         (safe_vector_operand): Use V4SFmode, not TImode.
15772         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
15773         (ix86_expand_timode_binop_builtin): New.
15774         * config/i386/i386-protos.h: Update.
15775         * config/i386/i386.h (enum ix86_builtins): Update.
15776         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15777         Use ix86_expand_vector_move in vector move expanders.
15778         (movti_internal, movti_rex64): Add xorps alternative.
15779         (sse_clrv4sf): Rename and adjust from sse_clrti.
15780         (prefetch): Don't work so hard.
15781         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15782         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15783         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15785 2002-01-11  Richard Henderson  <rth@redhat.com>
15787         * config/i386/mmintrin.h: New file.
15788         * config/i386/xmmintrin.h: New file.
15789         * config.gcc (i?86-*-*): Add extra_headers.
15790         * simplify-rtx.c (simplify_unary_operation): Handle saturating
15791         truncation codes.
15792         (simplify_binary_operation): Handle saturating arithmetic codes.
15793         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15794         not the lowpart subreg.
15795         (ix86_expand_builtin): Return a TImode dummy register instead of 0
15796         on error.
15797         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15799 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15801         * conflict.c (conflict_graph_compute): Free regsets when finished.
15802         * ssa.c (compute_coalesced_reg_partition): Likewise.
15804 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15806         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15807         every where we allocate a register.
15809 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15811         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15812         * lcm.c (compute_earliest, compute_farthest): Likewise.
15814 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15816         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15818 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15820         * doc/rtl.texi (Insns): Fix 2 typos.
15822 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
15824         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
15825         options.  Use @table @gcctabopt for MMIX options.  Add index
15826         entries for MMIX options.  Start new paragraph with first
15827         heading of the machine-dependent options.
15829 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15831         PR other/5299
15832         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15833         * combine.c (force_to_mode): Same.
15834         * reload1.c (clear_reload_reg_in_use): Same.
15836 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
15838         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15839         and 'subtargets'.
15841 2002-01-11  Andreas Jaeger  <aj@suse.de>,
15842             Brad Lucier <lucier@math.purdue.edu>
15844         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15845         mcpu.
15847 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
15849         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15850         Protect with IN_LIBGCC.
15851         (LINK_EH_SPEC): Add required trailing space.
15853 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15855         * c-tree.h: Move function declarations so that they are listed
15856         under the filename which contains them.
15857         (check_identifier, finish_decl_top_level,
15858         lookup_name_current_level_global, shadow_record_fields): Remove.
15860 2002-01-11  Andreas Jaeger  <aj@suse.de>
15862         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15863         march.
15865 2002-01-10  Richard Henderson  <rth@redhat.com>
15867         * config/alpha/alpha.c (print_operand): Add 'J'.
15868         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15869         new operand with the sequence number for the lituse.  When splitting
15870         the insns, use gen_movdi_er_high_g and generate a sequence number.
15871         (gen_movdi_er_high_g): Print the sequence number if non-zero.
15873 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
15875         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15876         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15877         stvxl.
15878         (altivec_expand_builtin): Same.
15879         (altivec_expand_stv_builtin): New.
15881         * config/rs6000/rs6000.h (rs6000_builtins): Same.
15883         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15884         ("altivec_lvehx"): New.
15885         ("altivec_lvewx"): New.
15886         ("altivec_lvxl"): New.
15887         ("altivec_lvx"): New.
15888         ("altivec_stvx"): New.
15889         ("altivec_stvebx"): New.
15890         ("altivec_stvehx"): New.
15891         ("altivec_stvewx"): New.
15892         ("altivec_stvxl"): New.
15894 2002-01-10  Richard Henderson  <rth@redhat.com>
15896         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15897         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
15898         care not to delete instructions twice.
15900 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15902         * toplev.c: Don't declare environ (it's not used anywhere).
15903         * configure.in: Don't check for declaration of environ.
15904         * config/i386/xm-mingw32.h: Don't #define environ.
15905         * config.in, configure: Regenerate.
15907 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15909         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15910         * configure: Regenerate.
15912         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15913         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15914         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15915         alpha/xm-vms.h.
15916         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15917         LIMITS_H_TEST here, not in m68k/x-next.
15918         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15919         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15921         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15922         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15923         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
15925         * config/i386/x-djgpp: Renamed i386/t-djgpp.
15926         * config/m88k/x-dolph: Renamed m88k/t-dolph.
15927         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15928         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
15929         replacement of quadlib.asm with quadlib.c.
15931         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15932         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15933         config/rs6000/xm-beos.h: Delete file.
15935         * config.gcc: Update to match above changes.
15937 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15939         * config/h8300/h8300.h: Fix comment typos.
15940         * config/h8300/h8300.md: Likewise.
15941         * config/h8300/lib1funcs.asm: Likewise.
15943 2002-01-10  Dale Johannesen  <dalej@apple.com>
15945         PR optimization/5269
15946         * unroll.c (precondition_loop_p): Make *increment be the correct
15947         sign when n_iterations known, to avoid confusing caller.
15949 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15951         * doc/extend.texi (deprecated): Fix a typo.
15953 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
15955         * basic-block.h (update_br_prob_note): Declare.
15956         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15957         (try_forward_edges): Care negative frequencies and update note.
15958         (outgoing_edges_match): Tweek conditional merging heuristics.
15959         (try_crossjump_to_edge): use update_br_prob_note.
15960         * cfglayout.c (fixup_reorder_chain): Likewise.
15961         * cfrtl.c (update_br_prob_note): New.
15962         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15964         * i386.c (ix86_decompose_address): Return -1 if address contains
15965         shift.
15966         (legitimate_address_p): Require ix86_decompose_address to return 1.
15968         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15969         (cprop_insn): Likewise.
15971 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15973         * toplev.c: Fix formatting.
15974         * tree.c: Likewise.
15975         * tree-dump.c: Likewise.
15976         * unroll.c: Likewise.
15977         * unwind-dw2.c: Likewise.
15978         * unwind-dw2-fde.c: Likewise.
15979         * unwind-dw2-fde-glibc.c: Likewise.
15980         * unwind-sjlj.c: Likewise.
15982 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15984         * doc/invoke.texi: Document PDP-11 options.
15986 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15988         * config/h8300/h8300.h: Fix formatting.
15990 2002-01-10  Ira Ruben   <ira@apple.com>
15992         Add __attribute__ ((deprecated)).
15993         * extend.texi: Document __attribute__ ((deprecated)).
15994         * invoke.texi: Document -Wno-deprecated-declarations.
15995         * testsuite/g++.dg/other/deprecated.C: New C++ test.
15996         * testsuite/gcc.dg/deprecated.c: New C test.
15997         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15998         (c_common_attribute_table): Add "deprecated" entry.
15999         (handle_deprecated_attribute): New function.
16000         * c-decl.c (deprecated_states): New enum.
16001         deprecated_state: State of "deprecated" handling.
16002         (start_decl): Set deprecated_state based on attributes.
16003         (grokdeclarator): Test for deprecated uses, propagate attribute.
16004         * c-typeck.c (build_component_ref): Test for deprecated fields.
16005         (build_external_ref): Test for deprecated primaries.
16006         * diagnostic.c (warn_deprecated_use) New function to issue
16007         warnings about __attribute__ ((depricated)) references.
16008         * flags.h (warn_deprecated_decl): Extern declared for
16009         -W[no-]deprecated-declarations option.
16010         * print-tree.c (print_node): Show deprecated flag status.
16011         * toplev.c (warn_deprecated_decl): Defined.
16012         (W_options): Added "deprecated-declaration".
16013         * toplev.h (warn_deprecated_use): Extern declared.
16014         * tree.h (struct tree_common): Define deprecated_flag.
16015         (TREE_DEPRECATED): New macro to access flag.
16016         * cp/call.c (build_call): Test for deprecated calls.
16017         * cp/class.c (add_implicitly_declared_members): Set global
16018         flag to tell grokdeclarator to not issue deprecated warnings.
16019         * cp/cp-tree.h: Add extern for adding_implicit_members.
16020         * cp/decl.c (deprecated_states): New enum.
16021         (start_decl): Set deprecated_state based on attributes.
16022         (grokdeclarator): Test for deprecated uses, propagate attribute.
16023         * cp/lex.c (do_identifier): Test for deprecated primaries.
16024         * cp/typeck.c (build_component_ref): Test for deprecated fields.
16026 2002-01-10  Ira Ruben   <ira@apple.com>
16028         Fix to assign attributes to inline member functions.
16029         * cp/decl.c (start_method): Handle attrlist.
16031 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16033         * combine.c (expand_field_assignment): Use subreg_lsb().
16035 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
16037         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16038         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16039         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16040         Recurse for any operand of AND as long as constant is non-zero.
16042 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16044         * config/h8300/h8300.md: Remove constraints from expanders.
16046 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16048         * varasm.c: Fix formatting.
16049         * varray.c: Likewise.
16050         * vmsdbgout.c: Likewise.
16051         * xcoffout.c: Likewise.
16053 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
16055         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16056         update edge probabilities to match.
16058 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16060         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16061         dependencies.
16062         * doc/languages.texi, doc/sourcebuild.texi: New files.
16063         * doc/configfiles.texi: Make a subsubsection.  Update.
16064         * doc/configterms.texi: Add @node.  Remove warning that this isn't
16065         instructions for building GCC.
16066         * doc/makefile.texi: Make a subsection.
16067         * doc/gccint.texi: Update.
16069 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
16071         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16073 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16075         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16077 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
16079         * optabs.c (expand_fix): Look for wider integer modes first.
16081         * i386.md (mov?f): Avoid the fake const double trick for medium
16082         memory model.
16083         (min?f*/max?f*): Prohibit memory operands for i387 variant.
16084         (fop_df_4): Disable for SSE compilation.
16086 2002-01-10  Graham Stott  <grahams@redhat.com>
16088         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16089         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16091 2002-01-10  Richard Henderson  <rth@redhat.com>
16093         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16095 2002-01-10  Richard Henderson  <rth@redhat.com>
16097         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16098         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
16100 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16102         * combine.c (can_combine_p): Fix a comment typo.
16104 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
16106         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16107         empty list correctly.  Change loop index $t to $f for
16108         consistency with rest of Makefile.
16110 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
16112         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16113         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16115         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16116         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16117         (altivec_init_builtins): Same.
16118         (altivec_expand_unop_builtin): Return NULL_RTX on error.
16119         (altivec_expand_binop_builtin): Same.
16120         (altivec_expand_ternop_builtin): Same.
16121         (bdesc_dst): New.
16123         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16124         ("altivec_vctuxs"): Fix typo.
16125         ("altivec_vnmsubfp"): Same.
16126         ("altivec_dssall"): New.
16127         ("altivec_mfvscr"): New.
16128         ("altivec_dss"): New.
16129         ("altivec_lvsl"): New.
16130         ("altivec_lvsr"): New.
16131         ("altivec_dstt"): New.
16132         ("altivec_dstst"): New.
16133         ("altivec_dststt"): New.
16134         ("altivec_dst"): New.
16136         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16137         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16139 2002-01-09  Richard Henderson  <rth@redhat.com>
16141         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16143 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
16145         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16146         function.
16147         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16148         prototype.
16149         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16151 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16153         * read-rtl.c: Fix formatting.
16154         * real.c: Likewise.
16155         * regclass.c: Likewise.
16156         * regrename.c: Likewise.
16157         * reg-stack.c: Likewise.
16158         * reload1.c: Likewise.
16159         * reload.c: Likewise.
16160         * rtl.c: Likewise.
16162 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16164         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16165         to extract items in the expr_list chain.
16167 2002-01-09  Richard Henderson  <rth@redhat.com>
16169         * config/vax/vax.c (vax_rtx_cost): Never abort.
16171         * config/vax/vax.h (REAL_ARITHMETIC): Define.
16173 2002-01-09  Jan Hubicka  <jh@suse.cz>
16175         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16177 2002-01-09  Richard Henderson  <rth@redhat.com>
16179         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16180         Unify code from various alternatives.
16182 2002-01-09  Richard Henderson  <rth@redhat.com>
16184         * regrename.c (copy_value): Ignore the copy if the source register
16185         is present in the value chain with a narrower mode.
16187 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
16189         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16190         for the c4x target. Also improve layout.
16192 2002-01-09  Richard Henderson  <rth@redhat.com>
16194         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16195         * config/m32r/m32r.md (and ior xor splitters): Swap operands
16196         to match insn patterns.
16198 2002-01-09  Richard Henderson  <rth@redhat.com>
16200         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16201         (copyprop_hardreg_forward_1): Likewise.
16203 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16205         * pa.md (decrement_and_branch_until_zero): Change predicate for
16206         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16208 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16210         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16211         gets undefined. For Darwin.
16213 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16215         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16217 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16219         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16221 2002-01-08  Richard Henderson  <rth@redhat.com>
16223         * regrename.c (copy_value): Ignore overlapping copies.
16225 2002-01-08  Richard Henderson  <rth@redhat.com>
16227         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16228         as needed to avoid shared structure.
16230 2002-01-08  Kazu Hirata  <kazu@hxi.com>
16232         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16233         H8/300H and H8/S.
16235 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16237         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16238         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16239         documentation of obsolete macros.
16240         * system.h: Poison these macros.
16241         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16242         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16243         config/c4x/c4x.h, config/clipper/clipper.h,
16244         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16245         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16246         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16247         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16248         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16249         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16250         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16251         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16252         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16253         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16254         config/sparc/sparc.h, config/stormy16/stormy16.h,
16255         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16256         definitions and commented out definitions of obsolete macros.
16257         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16258         of MAX_INT_TYPE_SIZE.
16260 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16262         * config/s390/s390.c (s390_preferred_reload_class): Never
16263         return ADDR_REGS if it isn't a subset of the given class.
16264         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16265         FP_REGS, but all superclasses as well.
16267         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16269         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16270         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16271         must not be a const_int.
16273 2002-01-08  Richard Henderson  <rth@redhat.com>
16275         * Makefile.in (toplev.o): Depend on options.h.
16276         (gcc.o): Depend on specs.h.
16278 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16280         * expr.c (store_expr): Convert VOIDmode constants back to target's
16281         mode.
16283 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16285         * doc/invoke.texi: Markup gcc as @command.  Refer to
16286         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16287         of http://gcc.gnu.org/thanks.html.
16289 2002-01-08  Dale Johannesen  <dalej@apple.com>
16291         * config/rs6000/rs6000.md: Add missing int register
16292         target case to movdf_low.
16294 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16296         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16297         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16298         (cppinit.o): Depend on except.h.
16299         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16300         s-specs): New rules.
16302         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16303         Don't create specs.h/options.h/gencheck.h here.  Remove
16304         unnecessary variable settings from last argument of AC_OUTPUT.
16305         * config.in, configure: Regenerate.
16306         * intl.c: Hardcode package name as "gcc".
16308         * cppinit.c: Include except.h.
16309         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16310         appropriate.
16311         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16312         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16313         (!)USING_SJLJ_EXCEPTIONS.
16314         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16316 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16318         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16319         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16320         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16321         documentation of obsolete macros.
16322         * system.h: Poison these macros.
16323         * config/d30v/d30v.h, config/ns32k/encore.h,
16324         config/stormy16/stormy16.h: Remove definitions and commented out
16325         definitions of obsolete macros.
16327 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16329         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16330         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16331         warnings.
16333 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16335         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16336         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16337         to insn adjusting stack/frame pointer.
16338         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16339         accept operands that cause the insn to be non-splittable.
16341 2002-01-08  Graham Stott  <grahams@redhat.com>
16343         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16344         (C_TYPE_FIELDS_VOLATILE): Likewise.
16345         (C_TYPE_BEING_DEFINED): Likewise.
16346         (C_IS_RESERVED_WORD): Likewise.
16347         (C_TYPE_VARIABLE_SIZE): Likewise.
16348         (C_DECL_VARIABLE_SIZE): Likewise.
16349         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16350         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16351         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16352         parenthesis.
16353         (C_DECL_ANTICIPATED): Likewise.
16354         (c_build_type_variant): Add parenthesis.
16356 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16358         * gcc.c (option_map): Remove --version.
16359         (process_command): Handle -fversion following the GNU Coding
16360         Standards.  Partially addresses PR other/704.
16362 2002-01-08  Graham Stott  <grahams@redhat.com>
16364         * combine.c (combine_instructions): Fix typo.
16366 2002-01-08  Graham Stott  <grahams@redhat.com>
16368         * debug.h: Use "tree" and "rtx" throughout.
16370         * debug.c: Likewise.
16372 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16374         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16375         constant pool, use the pool's version of the symbol instead.
16377 2002-01-07  Richard Henderson  <rth@redhat.com>
16379         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16380         the original register was copied in a mode with a fewer number of
16381         hard registers than the desired mode.
16382         (copyprop_hardreg_forward_1): Likewise.
16383         (debug_value_data): Fix loop test.
16384         * toplev.c (parse_options_and_default_flags): Reenable
16385         -fcprop-registers at -O1.
16387 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16389         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16390         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16392         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16393         predicates.
16395         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16397 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16399         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16400         (pa_output_function_prologue): Output local label at the beginning of
16401         the prologue when profiling.
16402         (hppa_profile_hook): Use the local label rather than the function label.
16403         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16405 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16407         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16408         (altivec_expand_unop_builtin): Fix thinko.
16409         (altivec_expand_binop_builtin): Same.
16410         (altivec_expand_ternop_builtin): Same.
16411         (altivec_expand_builtin): Same.
16413 2002-01-07  Richard Henderson  <rth@redhat.com>
16415         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16417 2002-01-07  Jason Merrill  <jason@redhat.com>
16419         * unwind-dw2.c (execute_cfa_program): Use < again.
16421 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16423         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16425 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16427         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16428         Don't allow -1 - x -> ~x simplifications in the first pass.
16430 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16432         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16433         arguments.
16434         (altivec_expand_binop_builtin): Same.
16435         (altivec_expand_unop_builtin): Same.
16436         (print_operand): Fix typo.
16437         (bdesc_1arg): Add vupk* variants.
16439         * rs6000.h (rs6000_builtins): Add vupk* enums.
16441         * rs6000.md: Add altivec_vupk* variants.
16443 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16445         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16446         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16447         and last update dates.
16449 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16451         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16453 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16455         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16456         * config/avr/avr.h (CPP_SPEC): Likewise.
16457         (LINK_SPEC): Likewise.
16458         (CRT_BINUTILS_SPECS): Likewise.
16459         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16460         * doc/invoke.texi (AVR Options): Document them.
16462 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16464         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16465         LABEL_NUSES.
16467 2002-01-07  Graham Stott  <grahams@redhat.com>
16469         * config/i386/i386.h: Update copyright date.
16470         (HALF_PIC_PTR): Add parenthesis.
16471         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16472         (CONSTANT_ALIGNMENT): Add parenthesis.
16473         (DATA_ALIGNMENT): Likewise.
16474         (LOCAL_ALIGNMENT): Likewise.
16475         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16476         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16477         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16478         (HARD_REGNO_NREGS): Add paranethesis.
16479         (VALID_SSE_REG_MODE): Whitespace.
16480         (VALID_MMX_REG_MODE): Whitespace.
16481         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16482         (ix86_hard_regno_mode_ok): Add parenthesis.
16483         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16484         (RETURN_IN_MEMORY): Whitespace.
16485         (N_REG_CLASSES): Add parenthesis.
16486         (INTEGER_CLASS_P): Add parenthesis and wrap.
16487         (FLOAT_CLASS_P): Likewise.
16488         (SSE_CLASS_P): Likewise.
16489         (MMX_CLASS_P): Likewise.
16490         (MAYBE_INTEGER_CLASS_P): Likewise.
16491         (MAYBE_FLOAT_CLASS_P): Likewise.
16492         (MAYBE_SSE_CLASS_P): Likewise.
16493         (MAYBE_MMX_CLASS_P): Likewise.
16494         (Q_CLASS_P): Likewise.
16495         (GENERAL_REGNO_P): Uppercase macro parameter.
16496         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16497         (FP_REGNO_P): Likewise.
16498         (ANY_FP_REGNO_P): Uppercase macro parameter.
16499         (SSE_REGNO_P): Likewise.
16500         (SSE_REGNO): Likewise.
16501         (SSE_REG_P): Likewise.
16502         (SSE_FLOAT_MODE_P): Likewise.
16503         (MMX_REGNO_P): Likewise.
16504         (MMX_REG_P):Likewise.
16505         (STACK_REG_P): Likewise.
16506         (NON_STACK_REG_P): Likewise.
16507         (STACK_TOP_P): Likewise.
16508         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16509         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16510         (SECONDARY_MEMORY_NEEDED): Likewise.
16511         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16512         (MD_ASM_CLOBBERS): Whitespace and wrap.
16513         (MUST_PASS_IN_STACK): Whitespace and wrap.
16514         (RETURN_POPS_ARGS): Add parenthesis.
16515         (INIT_CUMULATIVE_ARGS): Likewise.
16516         (FUNCTION_ARG): Likewise.
16517         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16518         (SETUP_INCOMING_VARARGS): Likewise.
16519         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16520         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16521         parenthsis.
16522         (EXPAND_BUILTIN_VA_ARG): Likewise.
16523         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16524         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16525         (INITIAL_ELIMINATION_OFFSET): Likewise.
16526         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16527         (REGNO_OK_FOR_BASE_P): Likewise.
16528         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16529         (REGNO_OK_FOR_DIREG_P): Likewise.
16530         (REG_OK_FOR_INDEX_P): Whitespace.
16531         (REG_OK_FOR_BASE_P): Whitespace.
16532         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16533         parenthesis.
16534         (FIND_BASE_TERM): Fix typo.
16535         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16536         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16537         (SYMBOLIC_CONST; Whitespace.
16538         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16539         (ENCODE_SECTION_INFO): Whitespace.
16540         (FINALIZE_PIC): Remove do { ... } while (0).
16541         (PROMOTE_MODE): Wrap in do { ... } while (0).
16542         (CONST_COSTS): Whitespace.
16543         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16544         (REGISTER_MOVE_COST): Add parenthesis.
16545         (MEMORY_MOVE_COST): Likewise.
16546         (EXTRA_CC_MODES): Whitespace.
16547         (SELECT_CC_MODE): Add parenthesis and whitespace.
16548         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16549         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16550         (ASM_OUTPUT_LABEL): Add paramethesis.
16551         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16552         (ASM_OUTPUT_REG_POP): Likewise.
16553         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16554         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16556         * config/i386/i386.c: Update copyright.
16557         (CHECK_STACK_LIMIT): Add parenthesis.
16558         (AT_BP): Uppercase macro parameter.
16559         (x86_64_int_parameter_registers): Constify.
16560         (x86_64_int_return_registers): Likewise.
16561         (ix86_compare_op0): Use rtx.
16562         (construct_container): Constify INTREG parameter.
16563         (function_arg): Use rtx.
16565         * diagnostic.h: Update copyright date.
16566         (output_buffer_state): Add parenthesis.
16567         (output_buffer_format_args): Likewise.
16569         * combine.c (combine_instructions): Replace XEXP (links, 0)
16570         with link.
16572 2002-01-06  H.J. Lu <hjl@gnu.org>
16574         * cfgcleanup.c (thread_jump): Fix 2 typos.
16576 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16578         * config.gcc: Add support for --enable-altivec.
16580 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16582         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16584 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16586         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16587         __objc_class_name_*.
16589 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16591         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16593 2002-01-06  Richard Henderson  <rth@redhat.com>
16595         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16596         nop them out.  Increment label reference count for REG_LABEL.
16597         (fill_slots_from_thread): Frob label reference count around
16598         delete_related_insns.
16600 2002-01-05  Richard Henderson  <rth@redhat.com>
16602         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16603         jump threading.
16605 2002-01-05  Richard Henderson  <rth@redhat.com>
16607         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16608         * integrate.c (output_inline_function): Likewise.
16609         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16610         to remove_unnecessary_notes after emitting abstract instance.
16611         Force an emitted nested function to have its parent emited as well.
16612         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16613         for null.
16614         (rtl_for_decl_location): Do not look at reload data structures
16615         before reload has run.
16617 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16619         * cse.c: Fix formatting.
16620         * dwarf2asm.c: Likewise.
16621         * dwarf2out.c: Likewise.
16622         * explow.c: Likewise.
16623         * expmed.c: Likewise.
16624         * function.c: Likewise.
16625         * gcov.c: Likewise.
16626         * gencheck.c: Likewise.
16627         * genrecog.c: Likewise.
16628         * ggc-common.c: Likewise.
16629         * ggc-page.c: Likewise.
16630         * global.c: Likewise.
16632 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16634         * combine.c: Fix formatting.
16636 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16638         PR middle-end/1557
16639         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16641 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16643         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16644         as 1 for __powerpc64__ as well.
16646         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16648         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16649         return it.
16651 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16653         * lcm.c: Revert change, due to performance regression it causes on
16654         SPEC because it's slightly more conservative (sigh, I hate
16655         edge-based LCM).
16657 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16659         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16661 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16663         * doc/cppinternals.texi: Update.
16665 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16667         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16668         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16669         negatives.
16670         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16671         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16672         kludge for pre-october-14th mmix versions to handle new-found bug
16673         with PUSHJ/PUSHGO and the register stack.
16674         * config/mmix/mmix.h (struct machine_function): Rename member
16675         has_call_value_without_parameters to has_call_without_parameters.
16676         All referers changed.
16677         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16678         TARGET_MASK_BRANCH_PREDICT): New macros.
16679         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16680         -mno-reg-stack-fill-bug-workaround.
16681         * config/mmix/mmix.md ("call"): Set struct machine member
16682         has_call_without_parameters.
16684 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16686         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16688 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16690         * cfgcleanup.c: Include tm_p.h
16691         (mark_effect): Fix handling of hard register; fix handling of SET
16693 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16695         * config/h8300/h8300.md (anonymous patterns): Check that
16696         operands are registers before using REGNO on them.
16698 2002-01-03  Roland McGrath  <roland@frob.com>
16700         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16702 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16704         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16705         * c-common.h (genrtl_expr_stmt_value): Likewise.
16706         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16707         (expand_expr_stmt_value): Add maybe_last argument.
16708         Don't warn about statement with no effect if it is the last statement
16709         in expression statement.
16710         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16711         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16712         expand_expr_stmt_value.
16713         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16714         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16715         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16716         as maybe_last to expand_expr_stmt_value.
16718 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16720         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16721         be passed in, do not build it.
16722         (c_begin_if_stmt): New function.
16723         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16724         * c-common.h (c_expand_start_cond): Update prototype.
16725         (c_begin_if_stmt): Prototype new function.
16726         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16727         * c-parse.in (if_prefix): Use c_begin_if_stmt,
16728         c_begin_while_stmt and c_finish_while_stmt_cond.
16730 2002-01-04  William Cohen  <wcohen@redhat.com>
16732         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16733         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16734         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16735         * config/pa/som.h (ASM_FILE_START): Likewise.
16737 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
16739         * lcm.c: Include df.h.
16740         Add available_transfer_function prototype.
16741         (compute_available): Rework to use iterative dataflow framework.
16742         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16743         with bb_info in df.h
16744         (available_transfer_function): New function.
16746         * Makefile.in (lcm.o): add df.h to dependencies.
16748 2002-01-04  Richard Henderson  <rth@redhat.com>
16750         * config/alpha/alpha.c (some_operand): Accept HIGH.
16751         (input_operand): Likewise; accept simple references to globals.
16752         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16753         (alpha_const_double_ok_for_letter_p): Likewise.
16754         (alpha_extra_constraint): Likewise.
16755         (alpha_preferred_reload_class): Likewise.  Do not force
16756         symbolic constants to memory.
16757         (alpha_legitimate_address_p): Accept simple references
16758         to small_symbolic_operand.
16759         (alpha_legitimize_address): New arg scratch.  Be prepared to be
16760         called when no_new_pseudos.  Emit simple symbolic references.
16761         Split integers into low, high, and rest.
16762         (alpha_expand_mov): Use alpha_legitimize_address.
16763         (some_small_symbolic_mem_operand): New.
16764         (split_small_symbolic_mem_operand): New.
16765         * config/alpha/alpha-protos.h: Update.
16766         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16767         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16768         (EXTRA_CONSTRAINT): Likewise.
16769         (PREFERRED_RELOAD_CLASS): Likewise.
16770         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16771         (PREDICATE_CODES): Update.
16772         * config/alpha/alpha.md: New post-reload splitters to convert
16773         simplfied symbolic operands to the form that references $29.
16774         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16775         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16777 2002-01-03  Richard Henderson  <rth@redhat.com>
16779         * local-alloc.c (function_invariant_p): Update commentary.
16781 2002-01-04  H.J. Lu <hjl@gnu.org>
16783         * toplev.c (rest_of_compilation): Fix a typo when calling
16784         cleanup_cfg.
16786 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16788         * c-common.c: Fix formatting.
16789         * diagnostic.c: Likewise.
16790         * doloop.c: Likewise.
16791         * dwarf2out.c: Likewise.
16793 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16795         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16796         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16798 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16800         * cpperror.c: Update comments and copyright.
16801         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16802         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16804 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16806         * collect2.c (main): Use strcmp when testing for "-shared".
16808 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16810         * cppmacro.c: Don't include intl.h.  Update comments.
16811         (new_number_token): Allocate enough buffer for 64-bit unsigned
16812         integers; update prototype.
16813         * cppmain.c: Update comments.
16815 2002-01-03  William Cohen  <wcohen@redhat.com>
16817         * function.h (struct function): Add profile.
16818         (current_function_profile): New.
16819         doc/extend.texi: Update documentation.
16820         * final.c (final_start_function): Use current_function_profile
16821         instead of profile_flag.
16822         (profile_after_prologue): Likewise.
16823         * function.c (expand_function_start): Likewise.
16824         (expand_function_start): Likewise.
16825         * config/alpha/alpha.c (direct_call_operand):
16826         (alpha_does_function_need_gp): Likewise.
16827         (alpha_expand_prologue): Likewise.
16828         * config/arm/arm.c (arm_expand_prologue): Likewise.
16829         thumb_expand_prologue: Likewise.
16830         * config/d30v/d30v.c (d30v_stack_info): Likewise.
16831         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16832         (fr30_expand_prologue): Likewise.
16833         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16834         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16835         * config/i386/i386.h (FINALIZE_PIC): Likewise.
16836         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16837         * config/i960/i960.c (i960_output_function_prologue): Likewise.
16838         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16839         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16840         (m32r_expand_prologue): Likewise.
16841         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16842         (m88k_expand_prologue): Likewise.
16843         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16844         * config/mips/mips.c (compute_frame_size): Likewise.
16845         (mips_expand_prologue): Likewise.
16846         (mips_can_use_return_insn): Likewise.
16847         * config/pa/elf.h (ASM_FILE_START): Likewise.
16848         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16849         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16850         * config/pa/som.h (ASM_FILE_START): Likewise.
16851         * config/romp/romp.c (romp_using_r14): Likewise.
16852         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16853         (rs6000_stack_info): Likewise.
16854         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16855         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16856         * config/v850/v850.c (compute_register_save_size): Likewise.
16858 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
16860         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16861         gen_lowpart_common fails, use gen_lowpart_SUBREG.
16863 2002-01-03  Turly O'Connor  <turly@apple.com>
16865         * darwin.c (machopic_output_possible_stub_label): Don't generate
16866         stub routines for pseudo-stubs which we've just defined.
16868 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16870         * builtins.c: Fix formatting.
16871         * c-typeck.c: Likewise.
16872         * combine.c: Likewise.
16873         * expr.c: Likewise.
16874         * loop.c: Likewise.
16876 2002-01-03  Andreas Schwab  <schwab@suse.de>
16878         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16879         and return true if _cpp_push_next_buffer pushed a new include
16880         file.
16881         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16882         _cpp_pop_file_buffer did not push a new file.
16883         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16885 2002-01-02  Eric Christopher  <echristo@redhat.com>
16887         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16888         FIND_REG_INC_NOTE call. Update copyright.
16889         * loop.c (canonicalize_condition): Ditto.
16890         * reorg.c (delete_scheduled_jump): Ditto.
16892 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16894         * gcse.c: Fix formatting.
16896 2002-01-03  Graham Stott  <grahams@redhat.com>
16898         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16899         forward defs for struct tags rtx_def, union_tree, rtvec_def
16900         also output corresponding typedefs for rtx, tree, and rtvec.
16902         * system.h: Move forward defs for struct tags rtx_def, union_tree,
16903         rtvec_def along with corresponding typedefs for rtx, tree, and
16904         rtvec to config.h, hconfig.h, tconfig.h.
16906 2002-01-03  Graham Stott  <grahams@redhat.com>
16908         * tree.h: Update copyright date.
16909         (IS_EXPR_CODE_CLASS): Add parenthesis.
16910         (TREE_SET_CODE): Add whitespace.
16911         (TREE_CHECK): Add parenthesis.
16912         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16913         (CST_OR_CONSTRUCTOR_CHECK):
16914         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16915         (TREE_SYMBOL_REFERENCED): Whitespace.
16916         (INT_CST_LT): Likewise.
16917         (INT_CST_LT_UNSIGNED): Likewise.
16918         (tree_real_cst): Unwrap comment.
16919         (tree_string): Likewise.
16920         (tree_complex): Likewise.
16921         (IDENTIFIER_POINTER): correct cast.
16922         (SAVE_EXPR_CONTEXT): Whitespace.
16923         (EXPR_WFL_FILENAME_NODE): Likewise.
16924         (EXPR_WFL_FILENAME): Remove parenthesis.
16925         (DECL_ORIGIN): Add parenthesis.
16926         (DECL_FROM_INLINE): Use NULL_TREE.
16927         (build_int_2): Whitespace.
16928         (build_type_variant): Add parenthesis.
16930         * gcc/jcf-parse.c: Update copyright date.
16931         (yyparse): Constify resource_filename.
16933 2002-01-03  Graham Stott  <grahams@redhat.com>
16935         * rtl.h: Update copyright date.
16936         (RTL_CHECK1): Wrap long line.
16937         (RTL_CHECK2): Likewise.
16938         (RTL_CHECKC1): Wrap long line and whitespace.
16939         (RTL_CHECKC2): Likewise.
16940         (XWINT): Whitespace.
16941         (XINT): Likewise.
16942         (XSTR): Likewise.
16943         (XEXP): Likewise.
16944         (XVEC): Likewise.
16945         (XMODE): Likewise.
16946         (XBITMAP): Likewise.
16947         (XTREE): Likewise.
16948         (XBBDEF): Likewise.
16949         (XTMPL): Likewise.
16950         (X0WINT): Likewise.
16951         (X0INT):Likewise.
16952         (X0UINT): Likewise.
16953         (X0STR): Likewise.
16954         (X0EXP): Likewise.
16955         (X0VEC): Likewise.
16956         (X0MODE): Likewise.
16957         (X0BITMAP): Likewise.
16958         (X0TREE): Likewise.
16959         (X0BBDEF): Likewise.
16960         (X0ADVFLAGS): Likewise.
16961         (X0CSELIB): Likewise.
16962         (X0MEMATTR): Likewise.
16963         (XCWINT): Likewise.
16964         (XCINT): Likewise.
16965         (XCUINT): Likewise.
16966         (XCSTR): Likewise.
16967         (XCEXP): Likewise.
16968         (XCVEC): Likewise.
16969         (XCMODE): Likewise.
16970         (XCBITMAP): Likewise.
16971         (XCTREE): Likewise.
16972         (XCBBDEF): Likewise.
16973         (XCADVFLAGS): Likewise.
16974         (XCCSELIB): Likewise.
16975         (XC2EXP): Likewise.
16976         (INSN_UID): Likewise.
16977         (PREV_INSN): Likewise.
16978         (PATTERN): Likewise.
16979         (INSN_CODE): Likewise.
16980         (PUT_REG_NOTE_KIND): Likewise.
16981         (CODE_LABEL_NUMBER): Likewise.
16982         (NOTE_SOURCE_FILE): Likewise.
16983         (NOTE_BLOCK): Likewise.
16984         (NOTE_EH_HANDLER): Likewise.
16985         (NOTE_RANGE_INFO): Likewise.
16986         (NOTE_LIVE_INFO): Likewise.
16987         (NOTE_BASIC_BLOCK): Likewise.
16988         (NOTE_EXPECTED_VALUE): Likewise.
16989         (NOTE_LINE_NUMBER): Likewise.
16990         (LABEL_NAME): Likewise.
16991         (LABEL_NUSES): Likewise.
16992         (LABEL_ALTERNATE_NAME): Likewise.
16993         (ADDRESSOF_DECL): Likewise.
16994         (JUMP_LABEL): Likewise.
16995         (LABEL_NEXTREF): Likewise.
16996         (REGNO): Likewise.
16997         (ORIGINAL_REGNO: Likewise.
16998         (HARD_REGISTER_NUM_P): Add parenthesis.
16999         (SUBREG_REG): Whitespace.
17000         (SUBREG_BYTE): Likewise.
17001         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17002         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17003         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17004         (ASM_OPERANDS_INPUT_VEC): Likewise.
17005         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17006         (ASM_OPERANDS_INPUT): Likewise.
17007         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17008         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17009         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17010         (ASM_OPERANDS_INPUT_MODE): Likewise.
17011         (ASM_OPERANDS_SOURCE_FILE): Likewise.
17012         (ASM_OPERANDS_SOURCE_LINE): Likewise.
17013         (MEM_SET_IN_STRUCT_P): Minor reformat.
17014         (TRAP_CONDITION): Whitespace.
17015         (TRAP_CODE): Likewise.
17016         (COND_EXEC_TEST): Likewise.
17017         (COND_EXEC_CODE): Likewise.
17018         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17019         (PHI_NODE_P): Add parenthesis.
17020         (plus_constant): Whitespace and add parenthesis.
17022 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17024         * config/avr/avr.c: Fix comment typos.
17025         * config/c4x/c4x.md: Likewise.
17026         * config/dsp16xx/dsp16xx.h: Likewise.
17027         * config/dsp16xx/dsp16xx.md: Likewise.
17028         * config/i386/i386.md: Likewise.
17029         * config/ia64/ia64.c: Likewise.
17030         * config/m32r/m32r.h: Likewise.
17031         * config/m68hc11/m68hc11.md: Likewise.
17032         * config/mmix/mmix.c: Likewise.
17033         * config/mn10200/mn10200.c: Likewise.
17034         * config/romp/romp.c: Likewise.
17035         * config/sh/sh.c: Likewise.
17036         * config/stormy16/stormy16.c: Likewise.
17037         * config/stormy16/stormy16.h: Likewise.
17038         * config/stormy16/stormy16.md: Likewise.
17040 2002-01-03  Graham Stott  <grahams@redhat.com>
17042         * loop.h: Update copyright date.
17043         (LOOP_MOVABLES): Fix typo.
17044         (LOOP_REGS): Likewise.
17045         (LOOP_IVS): Likewise.
17047 2002-01-03  Graham Stott  <grahams@redhat.com>
17049         * cppinit.c: Update copyright date.
17050         Don't include output.h
17051         * Makefile.in: Update copyright date.
17052         Update dependency.
17054 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17056         PR c/5226
17057         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17058         (-pthread) Add to RS/6000 options.
17060 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17062         * except.c: Fix comment typos.
17063         * loop.c: Likewise.
17064         * varasm.c: Likewise.
17065         * doc/tm.texi: Fix a typo.
17067 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
17069         * c-typeck.c (output_init_element): Allow initializing static storage
17070         duration objects with compound literals.
17072 2002-01-02  Richard Henderson  <rth@redhat.com>
17074         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17075         after abusing it.
17077 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17079         * gcc.c (default_compilers): Const-ify.
17080         * mips-tdump.c (stab_names): Likewise.
17081         * mips-tfile.c (map_coff_types, map_coff_storage,
17082         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17083         pseudo_ops_t, pseudo_ops): Likewise.
17084         * protoize.c (default_include): Likewise
17086         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17087         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17088         Add array size in declaration.
17089         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17090         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17091         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17092         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17093         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17094         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17095         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17096         emtens, make_nan): Const-ify.
17097         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17098         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17100 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
17102         * config.gcc (ia64-*-*): Set extra_headers.
17103         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
17104         * config/alpha/t-osf: Remove.
17105         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17107 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
17109         * config/rs6000/t-aix43: Revert previous change.
17111 2002-01-02  Jason Merrill  <jason@redhat.com>
17113         * c-decl.c (c_expand_body): Call outlining_inline_function when
17114         emitting an inline function out of line.
17116 2002-01-02  Richard Henderson  <rth@redhat.com>
17118         * dwarf2out.c (limbo_die_node): Add created_for member.
17119         (new_die): New argument created_for.  Update all callers.
17120         (mark_limbo_die_list): New.
17121         (dwarf2out_init): Register limbo_die_list as a root.
17122         (dwarf2out_finish): Force insert limbo dies into their function
17123         context.
17125 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
17127         PR c++/5089
17128         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17130 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17132         * config/h8300/fixunssfsi.c: Update copyright.
17133         Fix comment typos.
17134         Fix formatting.
17135         * config/h8300/h8300.c: Update copyright.
17136         Eliminate warnings.
17138 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17140         * config/romp/romp.c: Fix comment formatting.
17141         * config/romp/romp.h: Likewise.
17142         * config/romp/romp.md: Likewise.
17143         * config/s390/s390.c: Likewise.
17144         * config/stormy16/stormy16.c: Likewise.
17145         * config/stormy16/stormy16.h: Likewise.
17147 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
17149         * c-common.h (genrtl_expr_stmt_value): Declare.
17150         * c-semantics.c (genrtl_goto_stmt): Redirect to...
17151         (genrtl_goto_stmt_value): ... this new function.  Pass new
17152         argument down to expand_expr_stmt_value, taking
17153         TREE_ADDRESSABLE into account.
17154         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17155         STMT_EXPR as addressable, i.e., one whose result we want.
17156         * expr.c (expand_expr): Don't save expression statement value
17157         of labeled_blocks or loop_exprs.
17158         * stmt.c (expand_expr_stmt): Redirect to...
17159         (expand_expr_stmt_value): ... this new function.  Use new
17160         argument to tell whether to save expression value.
17161         (expand_end_stmt_expr): Reset last_expr_type and
17162         last_expr_value if we don't have either.
17163         * tree-inline.c (declare_return_variable): Mark its use
17164         statement as addressable.
17165         * tree.h: Document new use of TREE_ADDRESSABLE.
17166         (expand_expr_stmt_value): Declare.
17168 2002-01-01  Tom Rix  <trix@redhat.com>
17170         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17171         rs6000_emit_allocate_stack.
17173 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
17175         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17176         ${srcdir}/ginclude/ to every entry in extra_headers.
17177         * configure: Regenerate.
17178         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17179         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17180         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17181         * ginclude/proto.h: Rename to config/convex/proto.h.
17183 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17185         * attribs.c (handle_vector_size_attribute): Use host_integerp
17186         and tree_int_cst; remove warnings.
17187         * caller-save.c (insert_restore): Add cast to get rid of warning.
17188         (insert_save): Likewise.
17189         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17190         * regmove.c (find_matches): Add temporary var to kill a warning.
17192 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
17194         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17195         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17196         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17197         (vms-dwarf2eh.o): Add Makefile rule.
17198         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17199         * config/alpha/vms-dwarf2eh.asm: New file.
17201         * gcc.c (delete_if_ordinary): Delete all versions.
17203 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
17205         * config/mmix/mmix.md: Update FIXME to not mention
17206         define_constants.
17207         (MMIX_rJ_REGNUM): New define_constants constant.
17208         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17209         "*movdicc_real"): Adjust contraints formatting.
17210         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17211         for branch prediction.
17212         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17213         output template.
17214         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17215         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17216         number.  Delete related FIXMEs.
17217         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17218         from number to MMIX_rJ_REGNUM.
17219         (TARGET_MASK_BRANCH_PREDICT): New.
17220         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17221         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
17222         value.  Add -mbranch-predict and -mno-branch-predict.
17223         (TARGET_VERSION): Drop date.
17224         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17225         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17226         for finding out global symbols.
17227         (mmix_asm_output_labelref): Revert condition for global symbol.
17228         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17229         (mmix_print_operand_punct_valid_p): A '+' is valid.
17231 See ChangeLog.6 for earlier changes.