Check in file mistakenly omitted when sh*-*-netbsdelf*
[official-gcc.git] / gcc / ChangeLog
blob4d6fc6b131522c9d78a8794bdad185c9e993f1c5
1 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
3         * config/ns32k/netbsd.h: Update copyright years.
4         (TARGET_OS_CPP_BUILTINS): Define.
5         (CPP_PREDEFINES): Remove.
6         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
7         (TARGET_CPU_CPP_BUILTINS): Define.
9 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
11         * emit-rtl.c: Likewise.
12         * errors.h: Likewise.
13         * except.c: Likewise.
14         * explow.c: Likewise.
15         * expmed.c: Likewise.
16         * expr.c: Likewise.
17         * expr.h: Likewise.
19 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
21         * config/h8300/elf.h: Fix formatting.
22         * config/h8300/rtems.h: Likewise.
24 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
26         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
28 2002-06-02  Tom Tromey  <tromey@redhat.com>
30         * fixinc/fixincl.x: Rebuilt.
31         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
33 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
35 config/i370:
36         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
37         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
38         * mvs.h: Similarly.
39         * oe.h: Similarly.
41 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
43         * final.c (final):  Allow notes to not have computed addresses;
44         kill no longer needed STACK_REGS ifdef.
46 2002-06-02  Richard Henderson  <rth@redhat.com>
48         * gcse.c (bypass_conditional_jumps): Fix typo last change.
50 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
52         * loop.c (emit_prefetch_instructions): Properly place the address
53         computation.
55 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
57         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
58         (set_block_for_insn): Turn into macro.
59         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
60         * cfglayout.c (insn_scopes): Kill.
61         (scope_to_insns_initialize): Do not use insn_scopes.
62         (scope_to_insns_finalize): Likewise.
63         (duplicate_insn_chain): Likewise.
64         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
65         * cfgrtl.c (basic_block_for_insn): Kill.
66         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
67         (create_basic_block_structure): Use reorder_insns.
68         (compute_bb_for_insn): Do not use basic_block_for_insn.
69         (merge_blocks_nomove): Likewise.
70         (update_bb_for_insn): Likewise.
71         (verify_flow_info): Likewise.
72         (set_block_for_insn): Kill.
73         * combine.c (try_combine): Update gen_rtx_INSN call.
74         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
75         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
76         scopes and BBs.
77         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
78         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
79         Clear BB.
80         (emit_insns_after): Simplify.
81         (emit_copy_of_insn_after): Copy scope.
82         * final.c (final_start_function): Lower scopes.
83         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
84         * integrate.c (copy_insn_list): Cope scopes.
85         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
86         * loop.c (loop_optimize): Do not care block notes.
87         * print-rtl.c (print_rtx): Print BB.
88         * recog.c (apply_change_group): Simplify.
89         * rtl.c (copy_rtx): Handle 'B'.
90         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
91         * rtl.h (Field accessors): Update indexes.
92         * sched-ebb.c (schedule_ebbs): Do not lower notes.
93         * sched-rgn.c (schedule_insns): Likewise.
94         * toplev.c (rest_of_compilation): Lower notes.
95         * unroll.c (unroll_loop): Do not care scoping notes.
96         (copy_loop_body): Copy scopes.
98 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
100 config/h8300:
101         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
102         SUBTARGET_SPEC.
103         * rtems.h: Similarly.
104         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
105         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
106         (TARGET_CPU_CPP_BUILTINS): Use.
108 2002-06-02  Richard Henderson  <rth@redhat.com>
110         * alias.c: Include target.h.
111         (mark_constant_function): Use targetm.binds_local_p instead
112         of checking TREE_PUBLIC ourselves.
113         * Makefile.in (alias.o): Add TARGET_H.
115 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
117         * c-lex.c: Update copyright and file description.
119 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
121         * config/fr30/fr30.h: Update to new CPP macros.
123 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
125         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
127 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
128             Zack Weinberg <zack@codesourcery.com>
130         * c-common.c (c_common_init): Override cpplib's default
131         warn_long_long setting.
132         * c-lex.c (lex_number): Replace with interpret_integer,
133         interpret_float, narrowest_unsigned_type and
134         narrowest_signed_type, taking advantage of the new
135         cpplib functionality.
136         * cpperror.c (_cpp_begin_message): If a warning is turned
137         into an error, avoid printing "warning:".
138         * cppexp.c (cpp_num_sign_extend): New.
139         * cppinit.c: Update comment.
140         * cpplib.h (cpp_num_sign_extend): New.
141         * tree.h: Update comment.
143 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
145         * diagnostic.h (struct diagnostic_context):  Add new member
146         internal_error. 
147         (internal_error_function): Remove declaration.
148         * diagnostic.c (internal_error_function): Remove definition..
149         (internal_error): Adjust use.
151 2002-06-02  Richard Henderson  <rth@redhat.com>
153         * rtl.h (CC0_P): New.
154         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
155         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
156         (bypass_block): Save old dest block for dump text.
157         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
158         Allow only true SET insns, not single_set.
160 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
162         * diagnostic.c (diagnostic_finish): Rename to output_flush.
163         (clear_disgnostic_info): Rename to output_clear_data.  Use false
164         instead of 0 for boolean value.
165         Adjust function call throughout.
167 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
169         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
170         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
172 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
174         * d30v.h (CPP_PREDEFINES): Replace with
175         (TARGET_CPU_CPP_BUILTINS): New.
177 2002-06-02  Roger Sayle  <roger@eyesopen.com>
179         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
181 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
183         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
185 2002-06-02  Richard Henderson  <rth@redhat.com>
187         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
189 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
191         Support for C++ constructors/destructors.
192         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
193         instead of looping if main() returns.
194         (asm_file_start): Output global symbols that cause .data and .bss
195         initialization code to be linked in, unconditionally for now.
196         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
197         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
198         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
199         (LIBSTDCXX): New.
200         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
201         (__tablejump__): New.
202         (__do_copy_data, __do_clear_bss): New.
203         (__do_global_ctors, __do_global_dtors): New.
204         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
205         _ctors, _dtors.
207 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
209         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
210         (CPP_SPEC, CPP_PREDEFINES): Kill.
211         * c4x/rtems.h (CPP_PREDEFINES): Kill.
212         (TARGET_OS_CPP_BUILTINS): New.
214 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
216         * Makefile.in (tracer.o): New.
217         * params.def (TRACER_*): New options.
218         * rtl.h (tracer): Declare.
219         * timevar.def (TV_TRACER): New.
220         * toplev.c (dump_file_index): Add DFI_tracer.
221         (dump_file_info): Add tracer.
222         (flag_tracer): New.
223         (lang_indepdenent_options): Add tracer.
224         (rest_of_compilation): Call tracer.
225         * tracer.c: New file.
226         * invoke.texi (-ftracer): Document.
227         (--param tracer-*): Document.
229 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
231         * tree-inline.c (expand_call_inline): Make the statement
232         expression we generate have a COMPOUND_STMT.    
234 2002-06-01  Roger Sayle  <roger@eyesopen.com>
236         * gcse.c (cprop_cc0_jump): Function deleted.
237         (cprop_jump): Take an additional argument which is the possibly
238         NULL cc setting insn immediately before the conditional jump.
239         When a MODE_CC set is present, substitute it into the JUMP_INSN
240         before attempting the constant propagation.
241         (cprop_insn):  Recognize cc setters followed by conditional jumps
242         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
243         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
244         (find_bypass_set): New function based upon find_avail_set used by
245         cprop, but finds constant expressions available at the end of
246         basic blocks.
247         (bypass_block): New function.  Given a basic block that begins
248         with a conditional jump and multiple incoming edges, perform
249         the jump bypass optimization.
250         (bypass_conditional_jumps): New function.  Call bypass_block with
251         each suitable basic block in the CFG using a simple single pass.
253 2002-06-01  Roger Sayle  <roger@eyesopen.com>
255         * tree.c (real_minus_onep): New function to test for -1.0.
256         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
258 2002-06-01  Roger Sayle  <roger@eyesopen.com>
260         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
261         and "!p && !q" into "(p|q) == 0" under suitable conditions.
263 2002-06-01  Andreas Jaeger  <aj@suse.de>
265         * cppexp.c (cpp_classify_number): Cast precission to int for
266         correct printf format.
268 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
270         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
271         expected, but don't really exist: atmega83, atmega85, attiny10.
272         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
273         emulations for all devices.
274         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
275         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
277 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
279         * config/h8300/h8300-protos.h: Add a prototype for
280         h8300_shift_needs_scratch_p.
281         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
282         * config/h8300/h8300.h (OK_FOR_R): New.
283         (OK_FOR_S): Likewise.
284         (OK_FOR_T): Likewise.
285         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
286         * config/h8300/h8300.md (anonymous shift patterns): Use
287         constraints R, S, and T.
289 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
291         * basic-block.h (struct basic_block_def): New field loop_father.
292         (BB_VISITED): New flag.
293         (struct loop): New field pred, removed field shared.
294         (struct loops): New field parray.
295         (LOOP_EXITS_DOMS): Removed.
296         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
297         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
298         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
299         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
300         verify_loop_structure): Declare.
301         * cfg.c (entry_exit_blocks): Initialize loop_father field.
302         * cfganal.c (dfs_enumerate_from): New function.
303         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
304         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
305         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
306         flow_loop_dump, flow_loops_dump, flow_loops_free,
307         flow_loop_tree_node_add, flow_loop_level_compute,
308         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
309         flow_loop_outside_edge_p): Modified for new infrastructure.
310         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
311         redirect_edge_with_latch_update, flow_loop_free): New static functions.
312         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
313         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
314         find_common_loop, verify_loop_structure, loop_latch_edge,
315         loop_preheader_edge): New functions.
316         (flow_loops_cfg_dump): Do not show dominators, as this information
317         does not remain up to date long.
318         (flow_loops_find): Store results in new format.
319         * predict.c (propagate_freq, estimate_probability,
320         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
321         infrastructure.
323 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
325         * except.c (nothrow_function_p): Walk epilogue delay list
326         checking the insn, not the chain for potential throws.
328 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
330         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
331         (install): Refer to install-cpp directly.
332         (uninstall-cpp): Folded into uninstall rule.
333         * configure.in: Delete all code relating to --disable-cpp.
334         * configure: Regenerate.
335         * config/t-install-cpp: Delete.
337 2002-05-31  Richard Henderson  <rth@redhat.com>
339         * configure.in (HAVE_AS_TLS): Add alpha tests.
340         * configure: Rebuild.
341         * config/alpha/alpha.c (TARGET_AS_TLS): New.
342         (alpha_tls_size, alpha_tls_size_string): New.
343         (overide_options): Set it.  Always install machine_status hooks.
344         (input_operand): Accept got tls predicates.
345         (local_symbol_p): Merge into ...
346         (local_symbolic_operand): ... here.  Reject tls symbols.
347         (global_symbolic_operand): Likewise.
348         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
349         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
350         (tp16_symbolic_operand, tp32_symbolic_operand): New.
351         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
352         (alpha_encode_section_info): Handle TLS symbols.
353         (alpha_strip_name_encoding): Likewise.
354         (alpha_legitimate_address_p): Likewise.
355         (alpha_legitimize_address): Likewise.
356         (alpha_expand_mov): Early exit to avoid nop moves.
357         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
358         (alpha_init_machine_status, alpha_mark_machine_status,
359         alpha_free_machine_status): Always define.
360         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
361         (print_operand, print_operand_address): Add TLS relocs.
362         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
363         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
364         (TARGET_SWITCHES): Add -mtls-kernel.
365         (alpha_tls_size, alpha_tls_size_string): New.
366         (TARGET_OPTIONS): Add -mtls-size=.
367         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
368         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
369         (ASM_OUTPUT_LABELREF): Skip %.
370         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
371         (PREDICATE_CODES): Update.
372         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
373         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
374         UNSPEC_TP, UNSPECV_SET_TP): New.
375         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
376         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
377         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
378         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
379         (call_value_osf_2_er): Accept anything as op4.
380         * config/alpha/alpha-protos.h: Update.
381         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
383 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
385         * cppinit.c (append_include_chain): Always pay attention to
386         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
387         marker on argument.
389 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
391         * target.h: Fix formatting.
392         * timevar.h: Likewise.
393         * tlink.c: Likewise.
394         * toplev.c: Likewise.
395         * toplev.h: Likewise.
396         * tree.c: Likewise.
397         * tree-dump.h: Likewise.
398         * tree.h: Likewise.
399         * tree-inline.h: Likewise.
400         * unroll.c: Likewise.
401         * unwind-dw2.c: Likewise.
402         * unwind-dw2-fde.c: Likewise.
403         * unwind-dw2-fde-glibc.c: Likewise.
404         * unwind-dw2-fde.h: Likewise.
405         * unwind.h: Likewise.
406         * unwind-sjlj.c: Likewise.
407         * varasm.c: Likewise.
408         * varray.h: Likewise.
409         * vmsdbg.h: Likewise.
410         * vmsdbgout.c: Likewise.
411         * xcoffout.h: Likewise.
413 2002-05-31  Igor Shevlyakov <igor@microunity.com>
415         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
416         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
418 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
420         * gcc.c (cpp_unique_options): Remove "-d" options.
421         (cpp_debug_options): New spec string.
422         (default_compilers): Use it.
423         * objc/lang-specs.h: Likewise.
425 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
427         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
428         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
429         * gcc/mklibgcc.in: Likewise.
430         * gcc/config/arc/t-arc: Likewise.
431         * gcc/configure.in: Likewise.
432         * gcc/configure: Regenerate.
434 2002-05-31  Stan Shebs  <shebs@apple.com>
435             Turly O'Connor  <turly@apple.com>
437         * c-decl.c (struct binding_level): Change int field n_incomplete
438         to tree list incomplete_list.
439         (clear_binding_level): Init field with NULL.
440         (pushdecl): Add incomplete type to list.
441         (mark_binding_level): Mark the incomplete list.
442         (finish_struct): Scan the incomplete list for types instead
443         of all decls in the current binding level.
445 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
447         * pa.c (output_millicode_call): Add missing '%' characters.
448         (output_call): Likewise.
450 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
452         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
453         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
455 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
457         * varasm.c (mark_constant_pool): Walk epilogue delay list
458         checking the insn, not the chain for potential constants.
460 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
462         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
464 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
466         * i386.c (classify_argument): Properly handle base types.
468         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
469         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
470         registers.
472 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
474         * gcse.c (gcse_emit_move_after): New.
475         (pre_delete, hoist_store): Use it.
477         * reload1.c (emit_input_reload_insns): Use constrain_operands
478         instead of constraint_accepts_reg_p to verify optimization.
479         (constraint_accepts_reg_p): Kill
481         * reload1.c (reload_cse_delete_noop_set): Kill.
482         (reload_cse_simplify): use delte_insn_and_edges.
484 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
486         * cfgloop.c (flow_loops_find): Initialize first and last fields
487         correctly.
489 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
491         * c-common.c (builtin_define_std): Correct logic.
493 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
495         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
496         (output_call): Likewise.
498 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
500         * pa.c: Move output.h include after tree.h include.
501         (pa_asm_output_mi_thunk): Constify identifier lab.
503 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
505         * config/ns32k/ns32k.h: Define named constants for the
506         bits in target_flags and use them.
507         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
509 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
511         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
512         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
513         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
514         default scheduling model.
515         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
516         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
517         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
518         * doc/install.texi (hppa*-*-*): Document default scheduling.
520 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
522         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
524 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
526         * config.gcc (ns32k-*-netbsd*): Set tm_file to
527         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
528         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
529         netbsd.h, or netbsd-aout.h.
531 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
533         * longlong.h (count_trailing_zeros): Add missing \, and clean up
534         whitespace in __ns32000__ case.
536 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
538         * expr.c (expand_expr): Output partially zeroed out vectors with
539         output_constant_def.
541 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
543         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
544         (sh-*-netbsdelf*)
545         (shl*-*-netbsdelf*): New targets.
546         * config/sh/netbsd-elf.h: New file.
547         * config/sh/t-netbsd.h: New file.
549 2002-05-30  Richard Henderson  <rth@redhat.com>
550             Eric Botcazou  <ebotcazou@multimania.com>
552         PR optimization/6822
553         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
554         to unsigned int for op1 comparisons.  Use gen_int_mode.
556 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
558         * expmed.c (const_mult_add_overflow_p): New.
559         * expr.h: Declare it.
560         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
561         Don't eliminate the biv if the giv has a constant multiplier and
562         the rhs argument of the comparison does satisfy the predicate.
563         Use expand_mult_add to compute the replacement constant.
565 2002-05-30  Osku Salerma  <osku@iki.fi>
567         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
568         (c_common_get_alias_set): Handle it.
569         * doc/extend.texi: Document it.
571 2002-05-30  Richard Henderson  <rth@redhat.com>
573         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
574         * toplev.c (process_options): Don't check it.
575         * doc/tm.texi: Don't document it.
576         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
577         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
578         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
579         frame pointer optimization if current_function_profile.
581 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
583         * langhooks.c: Fix formatting.
584         * langhooks.h: Likewise.
585         * lcm.c: Likewise.
586         * libgcc2.c: Likewise.
587         * lists.c: Likewise.
588         * local-alloc.c: Likewise.
589         * loop.c: Likewise.
590         * loop.h: Likewise.
592 2002-05-30  Marc Espie <espie@openbsd.org>
594         * config.gcc (sparc64-*-openbsd*): New.
595         * config/sparc/openbsd1-64.h: New.
596         * config/sparc/openbsd64.h: New.
598 2002-05-30  Jeff Law <law@redhat.com>
600         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
601         a dead insn with a REG_RETVAL note when the entire libcall is not
602         dead and remove the associated REG_LIBCALL note at the same time.
604 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
606         * lcm.c (output.h): #include.
607         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
608         as an ordinary block.
609         (optimize_mode_switching): Don't pretend that the exit block is
610         an ordinary block, or handle sucessors of entry block specially.
611         Instead, split edges from entry block and to exit block, and
612         put a computing definition on the thus gained post-entry-block,
613         and a need on the pre-exit-block.
615 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
617         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
618         * rtl.texi: Document 'B'
620 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
622         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
623         at run-time.
624         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
626 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
628         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
629         const0_rtx instead of NULL_RTX when in error.
630         (altivec_expand_abs_builtin): Same.
631         (rs6000_expand_binop_builtin): Same.
632         (altivec_expand_predicate_builtin): Same.
633         (altivec_expand_stv_builtin): Same.
634         (rs6000_expand_ternop_builtin): Same.
635         (altivec_expand_builtin): Same.
637 2002-05-29  David S. Miller  <davem@redhat.com>
639         * rtl.h (clear_emit_caches): Delete.
640         * integrate.c (output_inline_function): Don't call it.
641         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
642         (clear_emit_caches): Delete definition.
643         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
645 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
647         * config/mmix/mmix.c: Include real.h.
648         (mmix_constant_address_p): Remove redundant test before switch.
650 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
652         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
653         only if not already defined.
655 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
657         * config/h8300/h8300-protos.h: Remove prototypes for
658         ok_for_bclr and small_power_of_two.
659         * config/h8300/h8300.c (small_power_of_two): Remove.
660         (ok_for_blcr): Likewise.
661         (fix_bit_operand): Make WHAT deal with an integer instead of a
662         constraint character.
663         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
664         (CONST_OK_FOR_P): Likewise.
665         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
666         CONST_OK_FOR_P any more.
667         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
668         of fix_bit_operand.
669         (iorqi3): Likewise.
670         (xorqi3): Likewise.
672 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
674         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
675         (CPP_PREDEFINES): Make sure this is undefined.
676         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
677         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
678         or -U__MIPSEB__ before defining one or the other.  Instead,
679         use %(subtarget_endian_default) if neither -EB nor -EL are
680         specified.
681         (SUBTARGET_EXTRA_SPECS): Define.
682         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
683         %(netbsd_cpp_spec).
685 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
687         * doc/md.texi (Patterns): Note pattern condition pitfall
688         for unnamed insn.
690 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
692         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
693         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
694         ternary operations from here...
695         (rs6000_expand_builtin): ...to here.
696         New argument expandedp.
697         Change all instances of altivec_expand_binop_builtin to
698         rs6000_expand_binop_builtin.
699         (altivec_expand_unop_builtin): Rename to
700         rs6000_expand_unop_builtin.
701         (altivec_expand_binop_builtin): Rename to
702         rs6000_expand_binop_builtin.
703         (altivec_expand_ternop_builtin): Rename to
704         rs6000_expand_ternop_builtin.
706 2002-05-29  Richard Henderson  <rth@redhat.com>
708         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
709         (TARGET_BI_ARCH): Likewise.
710         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
711         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
712         (TARGET_64BIT_DEFAULT): Default to 0.
713         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
715 2002-05-29  Richard Henderson  <rth@redhat.com>
717         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
718         (get_pc_thunk_name): New.
719         (output_set_got): Use it.
720         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
721         into linkonce sections.
723 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
725         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
726         (CPP_PREDEFINES): Make sure this is undefined.
727         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
728         (CPP_SUBTARGET_SPEC): Don't provide different versions for
729         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
730         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
731         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
732         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
733         (CPP_PREDEFINES): Make sure this is undefined.
734         (SUBTARGET_EXTRA_SPECS): Define.
735         (CPP_SPEC): Use %(netbsd_cpp_spec).
737 2002-05-29  Jeff Law <law@redhat.com>
739         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
741         * flow.c (propagate_one_insn): Do not remove a dead insn if it
742         contains a REG_RETVAL note.
744         * haifa-sched (sched_analyze): Remove another useless clearing
745         of SCHED_GROUP_P I missed yesterday.
747         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
748         * pa.c (pa_asm_output_mi_thunk): New function.
749         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
751 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
752             Marek Michalkiewicz  <marekm@amelek.gda.pl>
754         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
755         (avr_asm_only_p): Make non-static.
756         (enum avr_arch): Remove.
757         (avr_arch_types): New.
758         (avr_mcu_types): Update.
759         (avr_override_options): Use avr_arch_types table instead of switch.
760         * avr.h (CPP_PREDEFINES): Die.
761         (avr_base_arch_macro, avr_extra_arch_macro): New.
762         (TARGET_CPU_CPP_BUILTINS): New.
763         (CPP_SPEC, EXTRA_SPECS): Simplify.
764         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
765         CPP_AVR5_SPEC): Die.
767 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
769         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
770         NETBSD_OS_CPP_BUILTINS_AOUT.
771         (SUBTARGET_EXTRA_SPECS): Define.
772         (CPP_SPEC): Use %(netbsd_cpp_spec).
774 2002-05-29  Richard Henderson  <rth@redhat.com>
776         * config/i386/i386.c (ix86_output_function_epilogue): New.
777         (TARGET_ASM_FUNCTION_EPILOGUE): New.
778         (pic_label_name): Remove.
779         (pic_labels_used): New.
780         (ix86_asm_file_end): Emit one pc load stub for each register used.
781         (output_set_got): Generate deep pc load to any register.
782         (ix86_select_alt_pic_regnum): New.
783         (ix86_save_reg): Don't save pic register if we can find a valid
784         call-clobbered replacement.
785         (ix86_expand_prologue): If we found a valid replacement, renumber
786         pic_offset_table_rtx.
787         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
788         pic_offset_table_rtx after reload.
789         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
790         * config/i386/i386.md (set_got): Make insn, not expander.
791         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
793 2002-05-29  Richard Henderson  <rth@redhat.com>
795         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
796         alignment for alloca.
798 2002-05-29  Richard Henderson  <rth@redhat.com>
800         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
801         (print_operand_address): Only add rip for symbolic addresses
802         for which we do not have another relocation type.
804 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
806         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
807         (EXTRA_SPECS): Add netbsd_cpp_spec.
808         (CPP_SPEC): Use %(netbsd_cpp_spec).
809         (CPP_PREDEFINES): Remove.
810         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
811         (EXTRA_SPECS): Define.
812         (CPP_SPEC): Use %(netbsd_cpp_spec).
813         (CPP_PREDEFINES): Remove.
815 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
817         PR preprocessor/6844
818         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
819         NUL.
821 2002-05-29  Eric Christopher  <echristo@redhat.com>
823         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
824         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
826 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
828         * config/fr30/fr30.md: Remove previous restriction on splits.
829         Enforce conformance through gen_lowpart and cont_int_operand.
830         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
831         as the assembler does not support ".bss".
833 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
835         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
836         (CPP_PREDEFINES): Remove.
837         (SUBTARGET_EXTRA_SPECS): Define.
838         (CPP_SPEC): Use %(netbsd_cpp_spec).
839         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
840         (CPP_PREDEFINES): Remove.
841         (SUBTARGET_EXTRA_SPECS): Define.
842         (CPP_SPEC): Use %(netbsd_cpp_spec).
843         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
844         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
845         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
846         Add netbsd_cpp_spec.
847         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
849 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
850             Zack Weinberg <zack@codesourcery.com>
852         * cppexp.c (cpp_num): Move to cpplib.h.
853         (CPP_ERROR): Remove.
854         (interpret_float_suffix, interpret_int_suffix): New.
855         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
856         (cpp_classify_number, cpp_interpret_integer): New.
857         (interpret_number): Remove.
858         (eval_token): Update to use new routines.
859         * cpphash.h (cpp_num_part): Move to cpplib.h.
860         * cppinit.c (cpp_post_options): Set warn_long_long.
861         * cpplib.h (struct cpp_options): Add warn_long_long.
862         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
863         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
864         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
865         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
866         cpp_interpret_integer): New.
868 2002-05-29  Joel Sherrill <joel@OARcorp.com>
870         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
872 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
874         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
875         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
876         (CPP_SUBTARGET_SPEC): Define.
877         (SUBTARGET_EXTRA_SPECS): Define.
878         (CPP_SPEC): Remove.
880 2002-05-29  Chris Lattner  <sabre@nondot.org>
882         * ssa.c (rename_insn_1): Rename uses of undefined registers to
883         prevent confusion if/when the register is defined.
885 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
887         PR target/6838
888         * config/cris/cris.md: Fix typos and thinkos in comments.
889         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
890         second alternative.
891         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
892         ("*mov_sideqi_mem"): Similar, but for operand 3.
893         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
894         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
895         Remove spurious mode specifier on operand 2.
897 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
899         * config/h8300/h8300-protos.h: Remove the prototype for
900         o_operand.
901         Add prototypes for single_one_operand and single_zero_operand.
902         * config/h8300/h8300.c (o_operand): Remove.
903         (single_one_operand): New.
904         (single_zero_operand): Likewise.
905         (print_operand): For 'V' operand, and the operand with 0xff.
906         For 'V' and 'W' operands, do not and the bit position with 7.
907         * config/h8300/h8300.md (various anonymous patterns): Replace
908         use of exact_log2 with single_one_operand/single_zero_operand.
910 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
912         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
914 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
916         * config/s390/s390.c (legitimate_pic_operand_p): Do not
917         accept symbolic LARL operands.
918         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
919         epilogue insns.
921 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
923         * config/s390/s390.md (cmpstr_64/31): Mark whole
924         input registers as used.
926 2002-05-28  Richard Henderson  <rth@redhat.com>
928         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
929         not current_function_uses_pic_offset_table and
930         current_function_uses_const_pool; examine current_function_profile.
931         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
932         input to blockage if needed.
933         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
934         (legitimize_pic_address): Likewise.  Set regs_ever_live for
935         pic_offset_table_rtx when invoked during reload.
936         * config/i386/i386.h (FINALIZE_PIC): Remove.
937         * config/i386/i386.md (tablejump): Reformat.  Do not set
938         current_function_uses_pic_offset_table.
939         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
940         (blockage): Accept anything as operand 0.
942 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
944         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
945         common CPP built-ins for all NetBSD a.out targets.
946         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
947         common CPP built-ins for all NetBSD ELF targets.
948         * config/netbsd.h: Add missing notice.
949         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
950         for all NetBSD targets.
951         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
952         for all NetBSD targets using an LP64 code model.
953         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
954         NetBSD targets.
956 2002-05-28  Richard Henderson  <rth@redhat.com>
958         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
959         update if UPDATE_LIFE_LOCAL.
961 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
963         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
965 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
966                           Jason R. Thorpe <thorpej@wasabisystems.com>
968         config/sh reorganization to factor out endianness and coff:
970         * config/sh/little.h: New file.
971         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
972         defined, define to 0 to select big-endian.
973         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
974         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
975         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
976         * config/sh/t-be: New file.
977         * config/sh/t-le: New file.
979         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
980         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
981         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
982         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
983         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
984         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
985         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
986         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
987         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
988         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
989         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
990         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
991         (LINK_SPEC): Define to SH_LINK_SPEC.
992         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
993         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
994         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
995         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
996         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
997         * config/sh/coff.h: New file.
998         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
999         (TARGET_OBJFMT_CPP_BUILTINS): Define.
1000         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
1001         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
1002         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
1003         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
1004         (PTRDIFF_TYPE): Likewise.
1005         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
1006         (CPP_PREDEFINES): Don't define.
1007         (TARGET_OBJFMT_CPP_BUILTINS): Define.
1008         (LINK_SPEC): Define to SH_LINK_SPEC.
1009         (LINK_EMUL_PREFIX): Redefine.
1010         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
1011         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
1012         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
1013         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
1014         (TARGET_OS_CPP_BUILTINS): Define.
1015         (TARGET_DEFAULT): Redefine.
1016         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
1017         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
1018         (LINK_SPEC): Don't redefine.
1019         (LINK_DEFAULT_CPU_EMUL): Redefine.
1020         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
1021         * sh.c (sh_asm_named_section): Don't declare / define.
1022         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
1023         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
1024         (sh64-*-elf* tm_file): Likewise.
1025         (sh-*-rtemself* tm_file): Likewise.
1026         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
1027         (sh-*-linux* tmake_file): Add sh/t-le.
1028         (sh-*-rtems* tm_file): Add sh/coff.h
1029         (sh-*-* tm_file): Likewise.
1031 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
1033         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
1034         CONSTANT_POOL_ADDRESS_P.
1036         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
1038 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
1039             Jeff Law <law@redhat.com>
1041         * optabs.c (expand_binop): Fix nwords sign warnings.
1042         generate pseudo for add_optab.
1044         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
1045         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
1047 2002-05-28      Marc Espie <espie@openbsd.org>
1049         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
1050         inherited from gas.h.
1051         (ASM_QUAD):  Undef.  OpenBSD does not support it.
1053 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
1055         * doc/install.texi (binaries): Change mingw binaries
1056         link to www.mingw.org.
1058 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1060         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
1062 2002-05-28  Richard Henderson  <rth@redhat.com>
1064         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
1065         bottom alignment for leaf functions.
1067 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
1069         * config/pa/milli32.S, config/pa/lib1funcs.asm,
1070         config/sparc/sol2-g1.asm: Delete unused files.
1072 2002-05-28  Richard Henderson  <rth@redhat.com>
1074         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
1076         * flow.c (calculate_global_regs_live): Rename call_used to
1077         invalidated_by_call.  Initialize from regs_invalidated_by_call
1078         instead of call_used_regs.
1080         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
1081         DECL_EXTERNAL.
1083 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
1085         * tree.h: Don't include real.h.
1086         Forward-declare struct realvaluetype.
1087         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
1088         contain it.
1089         (TREE_REAL_CST_PTR): New accessor.
1090         (TREE_REAL_CST): Update.
1091         * real.h: Include machmode.h.
1092         (realvaluetype): Make it struct realvaluetype, not a typedef.
1093         (build_real): Prototype here.
1095         * tree.c: Include real.h.
1096         (build_real): Allocate the REAL_VALUE_TYPE as a separate
1097         object in GC memory, set TREE_REAL_CST_PTR to point to it.
1098         (build_real_from_int_cst): Use build_real.
1099         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
1100         REAL_CST.
1102         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
1103         fold-const.c, print-tree.c, real.c: Include real.h.
1104         * Makefile.in: Update dependency lists.
1106 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1108         * basic-block.h (last_basic_block): Declare.
1109         (expunge_block_nocompact): Declaration removed.
1110         (compact_blocks): Declare.
1111         * cfg.c (last_basic_block): New variable.
1112         (expunge_block_nocompact): Removed.
1113         (expunge_block): Do not compact basic blocks.
1114         (compact_blocks): New.
1115         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
1116         longer change.
1117         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
1118         last_basic_block.
1119         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
1120         real positions of blocks.
1121         (delete_unreachable_blocks): Simplified -- quadratic behavior now
1122         cannot occur.
1123         (cleanup_cfg): Compact blocks.
1124         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
1125         basic_block_info varray.
1126         (flow_delete_block): Comment update.
1127         (back_edge_of_syntactic_loop_p): Modify position check code.
1128         (verify_flow_info): Update checking.
1129         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
1130         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1131         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
1132         indices no longer change.
1133         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
1134         last_basic_block.
1135         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
1136         * profile.c (branch_prob): Compact blocks.
1137         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
1138         last_basic_block.
1140 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
1142         * config/h8300/h8300.md (two anonymous patterns): New.
1144 2002-05-28  David S. Miller  <davem@redhat.com>
1146         * config/sparc/sparc.md (cpu): Tidy.
1147         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
1148         'trap'.
1149         (in_call_delay): Delete reference to 'return' type.
1150         (eligible_for_return_delay, in_return_delay, define_delay
1151         referencing those): Delete.
1152         (rest of file): Use new type attributes as appropriate.
1153         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
1154         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
1155         * config/sparc/ultra1_2.md (us1_single): New reservation.
1156         (us1_ialuX): Likewise.
1157         * config/sparc/ultra3.md (us3_single): Likewise.
1158         (us3_ialuX): Likewise.
1159         (us3_imul, us3_idiv): Tweak.
1161 2002-05-28  Richard Henderson  <rth@redhat.com>
1163         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
1164         STRING_CST.
1166 2002-05-28  Richard Henderson  <rth@redhat.com>
1168         * config.gcc: Obsolete mn10200.
1170 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1172         * cppexp.c (interpret_number): Optimize for single-digit
1173         and less-than-half-precision cases.
1174         (num_trim, num_positive, num_div_op): Cast constants.
1176 2002-05-27  Bo Thorsen  <bo@suse.de>
1178         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
1179         3.1 branch. The file was made by Jakub Jelinek.
1180         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1181         support so multilib doesn't break. And don't define this at all
1182         when -Dinhibit_libc is used.
1183         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
1184         * config/i386/t-linux64: Implement full multilib support. Patch
1185         originally done by Andreas Jaeger and Jakub Jelinek.
1187 2002-05-27  Roger Sayle  <roger@eyesopen.com>
1189         * c-common.c: Add support for __attribute__((nothrow)) to specify
1190         that a function cannot throw an exception (using TREE_NOTHROW).
1191         (handle_nothrow_attribute): New function to process this attribute.
1193         * doc/extend.texi: Document the new nothrow function attribute.
1195 2002-05-27  H.J. Lu  (hjl@gnu.org)
1197         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
1198         (num_positive): Likewise.
1199         (num_div_op): Likewise.
1201 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1203         * c-common.c (c_common_init): Always use intmax_t.
1205 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1207         * c-common.c (c_common_init): Use intmax_t for now.
1209 2002-05-24  Andrew Haley  <aph@redhat.com>
1211         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
1212         if T is a boolean type.
1214 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1216         * basic-block.h (last_basic_block): Defined as synonym for
1217         n_basic_blocks.
1218         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1219         flow_depth_first_order_compute, flow_preorder_transversal_compute,
1220         flow_dfs_compute_reverse_init): Replaced relevant occurences of
1221         n_basic_blocks with last_basic_block.
1222         * cfgbuild.c (make_edges): Likewise.
1223         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1224         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1225         * combine.c (combine_instructions): Likewise.
1226         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1227         iterative_dataflow_bitmap): Likewise.
1228         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1229         calc_idoms, idoms_to_doms): Likewise.
1230         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1231         Likewise.
1232         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1233         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1234         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1235         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1236         delete_null_pointer_checks, compute_code_hoist_vbeinout,
1237         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1238         compute_store_table, build_store_vectors): Likewise.
1239         * haifa-sched.c (sched_init): Likewise.
1240         * ifcvt.c (if_convert): Likewise.
1241         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1242         pre_edge_lcm, compute_available, compute_nearerout,
1243         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1244         Likewise.
1245         * predict.c (estimate_probability, process_note_prediction,
1246         note_prediction_to_br_prob): Likewise.
1247         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1248         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1249         * regrename.c (copyprop_hardreg_forward): Likewise.
1250         * resource.c (init_resource_info): Likewise.
1251         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1252         init_regions, schedule_insns): Likewise.
1253         * ssa-ccp.c (ssa_const_prop): Likewise.
1254         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1255         * ssa.c (compute_dominance_frontiers,
1256         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1258         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1259         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1260         sizes consistently.
1262 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1264         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1265         new.
1266         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1267         hoist_insn_after, hoist_insn_to_edge): New.
1269 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
1271         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1272         (PROP_FINAL): Include.
1273         * flow.c (life_analysis, update_life_info,
1274         init_propagate_block_info, mark_set_1, mark_used_rgs):
1275         Support SCAN_DEAD_STORE.
1277 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1279         * c-common.c (c_common_init): Set CPP arithmetic precision.
1280         * cppexp.c (cpp_num_part): Move typedef ...
1281         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1282         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1283         (sanity_checks): Update.
1285 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
1287         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1288         (mkheaders): New rule.
1289         (install-mkheaders): New rule.
1290         * configure.in (all_outputs): Add mkheaders.
1291         * configure: Regenerate.
1292         * mkheaders.in: New file.
1294 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
1296         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1298 2002-05-26  Andreas Jaeger  <aj@suse.de>
1300         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1302 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1304         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1305         right_shift): Remove.
1306         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1307         HIGH_PART): New.
1308         (struct op): Use cpp_num.
1309         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1310         num_part_mul, num_unary_op, num_binary_op, num_negate,
1311         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1312         num_div_op, num_lshift, num_rshift, append_digit): New.
1313         (interpret_number, parse_defined, eval_token, reduce): Update
1314         for two-integer arithmetic.
1315         (binary_handler): New typedef.
1316         (optab): Update.
1317         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1318         (_cpp_parse_expr, reduce): Update to handle two-integers.
1319         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1321 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1323         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1324         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1325         branch insn into account, do not assume 1.
1326         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
1327         over single word insn.  Handle upper half of I/O space too.
1328         * config/avr/avr.md (*sbrx_branch): Use it.
1329         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1330         (*sbix_branch, *sbix_branch_bit7): Likewise.
1331         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1332         Use RTL peepholes to optimize register operand sign tests.
1334 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1336         * config/avr/avr.c (avr_asm_only_p): New variable.
1337         (avr_override_options): Set it here if AVR1.
1338         (asm_file_start): Test it here, report an error if set.
1340 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
1342         * alias.c: Fix formatting.
1343         * attribs.c: Likewise.
1344         * bb-reorder.c: Likewise.
1345         * bitmap.c: Likewise.
1346         * bitmap.h: Likewise.
1347         * builtins.c: Likewise.
1349 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
1351         * reload.c (find_valid_class): Accept new argument DEST,
1352         choose class accordingly.
1353         (push_reload): Update callers.
1355 2002-05-26  Andreas Jaeger  <aj@suse.de>
1357         * combine.c (combine_instructions): Do not indent #if for
1358         traditional C.
1360 2002-05-25  Richard Henderson  <rth@redhat.com>
1362         * c-pragma.c (apply_pragma_weak): Convert value identifier to
1363         string for decl_attributes.
1364         (handle_pragma_weak): Call assemble_alias if we're modifying
1365         an existing decl.
1367 2002-05-25  Richard Henderson  <rth@redhat.com>
1369         PR target/6788
1370         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1371         using rtl instead of fprintf.
1372         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1373         * config/sparc/sparc-protos.h: Update.
1375 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1377         * Makefile.in (C_COMMON_H): Fix.
1378         Update other targets.
1379         * c-common.c: Don't include c-lex.h.
1380         (builtin_define_with_value): Make static and prototype.
1381         (builtin_define_std): Move from c-lex.h.
1382         * c-common.h (init_c_lex): Move from c-lex.h.
1383         * c-decl.c: Don't include c-lex.h.
1384         (make_pointer_declarator): Move from c-parse.in.
1385         * c-lex.c: Don't include c-lex.h.
1386         * c-lex.h: Remove.
1387         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1388         (make_pointer_declarator): Move to c-decl.c.
1389         * c-pragma.c: Don't include c-lex.h.
1390         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1391         * c-tree.h (make_pointer_declarator): New.
1392 doc:
1393         * passes.texi, tm.texi: Update.
1394 objc:
1395         * Make-lang.in: Update and correct.
1396         * objc-act.c: Don't include c-lex.h or cpplib.h.
1397 treelang:
1398         * treetree.c: Don't include c-lex.h.
1399 config:
1400         * darwin-c.c: Don't include c-lex.h.
1401         * c4x/c4x-c.c: Don't include c-lex.h.
1402         * c4x/t-c4x: Update.
1403         * i370/i370-c.c: Don't include c-lex.h.
1404         * i370/t-i370: Update.
1405         * i960/i960-c.c: Don't include c-lex.h.
1406         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1407         * i960/t-960bare: Update.
1408         * i960/t-vxworks: Update.
1409         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1410         * rs6000/t-darwin: Update.
1411         * rs6000/t-rs6000-c-rule: Update.
1412         * v850/v850-c.c: Don't include c-lex.h.
1413         * v850/v850.c: Don't include c-lex.h or cpplib.h.
1416 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1418         * tree.def: Fix typos.
1419         * doc/install.texi: Likewise.
1421 2002-05-25  Richard Henderson  <rth@redhat.com>
1423         * configure.in (HAVE_AS_TLS): Add ia64 test.
1424         * configure: Rebuild.
1425         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1426         (override_options): Set it.
1427         (TARGET_HAVE_TLS): New.
1428         (sdata_symbolic_operand): Look for 's'.
1429         (tls_symbolic_operand): New.
1430         (ia64_expand_load_address): Abort for tls symbols.
1431         (gen_tls_get_addr): New.
1432         (gen_thread_pointer): New.
1433         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
1434         (rtx_needs_barrier): Add new unspecs.
1435         (ia64_encode_section_info): Handle tls symbols.
1436         (ia64_strip_name_encoding): Strip two encoding chars.
1437         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1438         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1439         (TARGET_OPTIONS): Add tls-size.
1440         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1441         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1442         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1443         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1444         (movsf, movdf): Likewise.
1445         (movdi_symbolic): Use match_scratch.  Don't split if we won't
1446         have a scratch availiable.
1447         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1448         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1449         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1450         * config/ia64/ia64-protos.h: Update.
1451         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1452         sdata_symbolic_operand.
1453         (ASM_OUTPUT_LABELREF): Strip two characters.
1455 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1457         * combine.c (simplify_set): Remove an unnecessary subreg.
1459 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1461         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1463         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1465 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1467         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
1469 2002-05-25  Roger Sayle  <roger@eyesopen.com>
1471         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1472         (cond (compare x y) 0) into the equivalent (cond x y).
1474 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1476         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
1478 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
1480         * config.gcc: Remove all stanzas for previously obsoleted
1481         systems.  Where necessary, add explicit error stanzas to
1482         prevent removed systems from being misidentified as something
1483         else.  Begin a fresh obsoletions list, with the systems that
1484         were reprieved last round.
1485         * doc/install.texi: Remove all mention of dead targets.
1486         * fixinc/mkfixinc.sh: Likewise.
1488         * config/arm/arm.h: Bit 31 of target_flags is no longer
1489         reserved.
1491         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1492         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1493         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1494         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1495         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1496         config/alpha/osf12.h, config/alpha/osf2or3.h,
1497         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1498         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1499         config/clipper/clipper-protos.h, config/clipper/clipper.c,
1500         config/clipper/clipper.h, config/clipper/clipper.md,
1501         config/clipper/clix.h, config/convex/convex-protos.h,
1502         config/convex/convex.c, config/convex/convex.h,
1503         config/convex/convex.md, config/convex/fixinc.convex,
1504         config/convex/proto.h, config/elxsi/elxsi-protos.h,
1505         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1506         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1507         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1508         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1509         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1510         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1511         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1512         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1513         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1514         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1515         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1516         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1517         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1518         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1519         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1520         config/m68k/altos3068.h, config/m68k/apollo68.h,
1521         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1522         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1523         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1524         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1525         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1526         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1527         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1528         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1529         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1530         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1531         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1532         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1533         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1534         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1535         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1536         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1537         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1538         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1539         config/mips/dec-osf1.h, config/mips/elflorion.h,
1540         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1541         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1542         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1543         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1544         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1545         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1546         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1547         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1548         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1549         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1550         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1551         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1552         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1553         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1554         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1555         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1556         Delete file.
1558 2002-05-24  Richard Henderson  <rth@redhat.com>
1560         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1561         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1562         * config/i386/i386.c (tls_model_chars): Add leading space.
1563         (tls_symbolic_operand): Don't bias by 1.
1564         (legitimize_address): Don't unbias by 1.
1566 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1568         * lcm.c (optimize_mode_switching): Change bb used as indices
1569         to bb->index.
1571 2002-05-24  Richard Henderson  <rth@redhat.com>
1573         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1574         of update_life_info_in_dirty_blocks.
1576 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1578         PR other/6782
1579         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1581 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1583         PR preprocessor/6780
1584         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1586 2002-05-24  Jim Blandy  <jimb@redhat.com>
1588         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1589         entry with a type code of zero, marking the end of the compilation
1590         unit's macro info.
1592 2002-05-24  Richard Henderson  <rth@redhat.com>
1594         * varasm.c (asm_output_bss): Always output one byte.
1595         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1597 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1599         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1600         namespace.
1602 2002-05-24  Andreas Jaeger  <aj@suse.de>
1604         * ggc-page.c (alloc_page): Cast variables of type size_t to
1605         unsigned long, adjust printf format string.
1606         (ggc_alloc): Likewise.
1607         (ggc_print_statistics): Likewise.
1608         (ggc_print_statistics): Correct printf format string for SCALE to
1609         use unsigned long.
1611 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1613         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1615 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1616             Zack Weinberg     <zack@codesourcery.com>
1618         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1619         quoted strings.
1620         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1621         directive in assembly file.
1622         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1623         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1624         * config/pj/pj.h (ASM_FILE_START): Likewise.
1625         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1626         * config/avr/avr.c (asm_file_end): Likewise.
1627         * toplev.c (output_quoted_string): Handle possibly signed plain
1628         char.
1629         * toplev.h (output_clean_symbol_name): Declare
1630         * toplev.c (output_clean_symbol_name): Define.
1631         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1632         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1634 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1636         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1638 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1640         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1641         of size of unsigned.
1643 2002-05-23  Richard Henderson  <rth@redhat.com>
1645         * configure.in (HAVE_AS_TLS): New test.
1646         * config.in, configure: Rebuild.
1647         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1648         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1649         (override_options): Set it.
1650         (tls_model_chars, tls_symbolic_operand): New.
1651         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1652         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1653         (local_exec_symbolic_operand): New.
1654         (get_pic_label_name): Merge into output_set_got.
1655         (ix86_asm_file_end): Emit pic_label_name if defined.
1656         (legitimate_constant_p, constant_address_p): New.
1657         (legitimate_pic_operand_p): New.
1658         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1659         (legitimate_address_p): Likewise.
1660         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1661         (ix86_strip_name_encoding): New.
1662         (get_thread_pointer): New.
1663         (legitimize_address): Handle tls symbols.
1664         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1665         Remove UNSPEC_PLT.
1666         (struct machine_function): Add some_ld_name.
1667         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1668         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1669         (output_addr_const_extra): New.
1670         (maybe_get_pool_constant): New.
1671         (ix86_split_to_parts): Use it.
1672         (ix86_expand_move): Handle tls symbols.
1673         (ix86_tls_get_addr): New.
1674         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1675         (TARGET_OPTIONS): Add tls-dialect.
1676         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1677         (LEGITIMATE_CONSTANT_P): Likewise.
1678         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1679         (TARGET_STRIP_NAME_ENCODING): New.
1680         (ASM_OUTPUT_LABELREF): New.
1681         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1682         (OUTPUT_ADDR_CONST_EXTRA): New.
1683         (PREDICATE_CODES): Update.
1684         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1685         * config/i386/i386.md: Regroup and renumber unspec constants.
1686         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1687         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1688         (tls_global_dynamic, tls_local_dynamic_base): New.
1689         (tls_local_dynamic_once): New.
1690         * config/i386/i386-protos.h: Update.
1692 2002-05-23  Richard Henderson  <rth@redhat.com>
1694         * genemit.c (gen_insn): Print file:lineno comment before function.
1695         (main): likewise.
1696         * gensupport.c (struct queue_elem): Add filename member.
1697         (queue_pattern): Initialize it; update all callers.
1698         (process_include): Don't free filename.
1699         (read_md_rtx): Set read_rtx_filename.
1701 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1703         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1705 2002-05-23  Richard Henderson  <rth@redhat.com>
1707         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1709 2002-05-23  Richard Henderson  <rth@redhat.com>
1711         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1712         commentary from Mark.
1714 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1716         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1717         Use FOR_EACH_BB macros to iterate over basic block chain.
1718         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1719         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1720         Likewise.
1721         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1722         find_unreachable_blocks, create_edge_list, verify_edge_list,
1723         remove_fake_edges, add_noreturn_fake_exit_edges,
1724         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1725         Likewise.
1726         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1727         find_sub_basic_blocks): Likewise.
1728         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1729         Likewise.
1730         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1731         Likewise.
1732         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1733         Likewise.
1734         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1735         commit_edge_insertions, commit_edge_insertions_watch_calls,
1736         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1737         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1738         * conflict.c (conflict_graph_compute): Likewise.
1739         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1740         df_modified_p, df_refs_unlink, df_dump): Likewise.
1741         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1742         * final.c (compute_alignments): Likewise.
1743         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1744         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1745         count_or_remove_death_notes): Likewise.
1746         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1747         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1748         classic_gcse, compute_transp, cprop, compute_pre_data,
1749         compute_transpout, invalidate_nonnull_info,
1750         delete_null_pointer_checks_1, delete_null_pointer_checks,
1751         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1752         compute_store_table, build_store_vectors, store_motion): Likewise.
1753         * global.c (global_conflicts, mark_elimination): Likewise.
1754         * graph.c (print_rtl_graph_with_bb): Likewise.
1755         * haifa-sched.c (sched_init): Likewise.
1756         * ifcvt.c (if_convert): Likewise.
1757         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1758         compute_available, compute_nearerout, compute_rev_insert_delete,
1759         optimize_mode_switching): Likewise.
1760         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1761         * predict.c (estimate_probability, note_prediction_to_br_prob,
1762         propagate_freq, counts_to_freqs, expensive_function_p,
1763         estimate_bb_frequencies): Likewise.
1764         * profile.c (instrument_edges, get_exec_counts,
1765         compute_branch_probabilities, compute_checksum, branch_prob,
1766         find_spanning_tree): Likewise.
1767         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1768         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1769         Likewise.
1770         * regclass.c (scan_one_insn, regclass): Likewise.
1771         * regmove.c (mark_flags_life_zones, regmove_optimize,
1772         record_stack_memrefs): Likewise.
1773         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1774         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1775         * resource.c (find_basic_block): Likewise.
1776         * sched-ebb.c (schedule_ebbs): Likewise.
1777         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1778         find_single_block_region, find_rgns, schedule_insns)
1779         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1780         * ssa-ccp.c (optimize_unexecutable_edges,
1781         ssa_ccp_df_delete_unreachable_insns): Likewise.
1782         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1783         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1784         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1785         compute_coalesced_reg_partition, rename_equivalent_regs,
1786         convert_from_ssa): Likewise.
1787         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1788         process_for_unwind_directive): Likewise.
1790         * df.c (FOR_ALL_BBS): Removed.
1791         * gcse.c (struct null_pointer_info): Type of current_block field
1792         changed.
1793         (struct reg_avail_info): Type of last_bb field changed.
1794         * config/ia64/ia64.c (block_num): Removed.
1795         (need_copy_state): Type changed.
1796         (last_block): New.
1798 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1800         * cppinit.c (mark_named_operators): Split out from init_builtins.
1801         (cpp_finish_options): Call it from here instead.
1803 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1805         * builtin-attrs.def: Update copyright years.
1806         (ATTR_NONNULL): New attribute identifier.
1807         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1808         attribute tree lists.
1809         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1810         format operand.
1811         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1812         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1813         attribute lists.  Chain the appropriate nonnull attribute.
1814         * c-format.c (check_format_arg): Remove null format string
1815         warning.
1816         * testsuite/gcc.dg/format/null-1.c: New test.
1818 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1820         * Makefile.in (ADAC): Define.
1821         (SYSLIBS): Define.
1822         (.SUFFIXES): Move before language makefile fragments.
1823         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1825 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1827         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1828         placed in common.
1830 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1832         * cfg.c (dump_flow_info): Print results of
1833         maybe_hot/probably_never_executed predicates.
1834         * toplev.c (open_dump_file): Print function frequency.
1836 2002-05-23  David S. Miller  <davem@redhat.com>
1838         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1839         regsets.
1841 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1843         * c-common.c (warn_nonnull): Declare.
1844         (c_common_attribute_table): Add "nonnull" attribute.
1845         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1846         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1847         check_function_arguments_recurse): New functions.
1848         * c-common.h (warn_nonnull): Declare extern.
1849         (check_function_arguments, check_function_arguments_recurse): New
1850         prototypes.
1851         * c-decl.c (c_decode_option): Add -Wnonnull option.
1852         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1853         format checking.
1854         (format_check_context): New structure.
1855         (check_format_info_recurse): Remove recursion and rename to...
1856         (check_format_arg): ...this.  Update comment.
1857         (check_format_info): Use check_function_arguments_recurse.
1858         * c-typeck.c (build_function_call): Call check_function_arguments
1859         instead of check_function_format.
1860         * doc/extend.texi: Document "nonnull" attribute.
1861         * doc/invoke.texi: Docuemnt -Wnonnull option.
1862         * testsuite/gcc.dg/nonnull-1.c: New test.
1863         * testsuite/gcc.dg/nonnull-2.c: New test.
1865 2002-05-23  David S. Miller  <davem@redhat.com>
1867         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1868         * cfgcleanup.c (cleanup_cfg): If it is set do not
1869         attempt to delete trivially dead insns.
1870         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1871         * toplev.c (rest_of_compilation): Document non-trivial aspect
1872         the RTL before optimize_save_area_alloca is run.
1874 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1876         * c-lex.c (indent_level): Remove.
1877         (cb_file_change, c_lex): Remove indent level handling.
1878         * c-lex.h (indent_level): Remove.
1879         * input.h (struct file_stack): Remove indent_level.
1880         * toplev.c (push_srcloc): Remove indent_level handling.
1882 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1884         PR target/6753
1885         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1886         of x in constraints for clarity.
1887         (sse_mov?fcc split): abort if op2 == op3.
1888         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1889         sse_movsfcc_const0_4): Add earlyclobber.
1890         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1891         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1892         Use Y instead of x in constraints.
1894 2002-05-23  Richard Henderson  <rth@redhat.com>
1896         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1897         (C++98 Thread-Local Edits): New subsection.
1899         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1900         (ix86_arch): Set type to enum processor_type.
1902         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1903         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1905 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1907         * configure.in: Fix as version test for binutils 2.12.1 releases
1908         (without dates).
1909         * configure: Rebuilt.
1911 2002-05-23  Richard Henderson  <rth@redhat.com>
1913         * config/i386/i386.c (get_pic_label_name): New.
1914         (load_pic_register): Remove.
1915         (output_set_got): New.
1916         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1917         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1918         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1919         (prologue_set_got, prologue_get_pc): Remove.
1920         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1921         (builtin_setjmp_receiver): Use gen_set_got.
1922         * config/i386/i386-protos.h: Update.
1924 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1926         * gcse.c (hash_expr): Do not use alias set for hashing.
1928 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1930         * dbxout.c (dbxout_class_name_qualifiers): New function.
1931         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1933 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1935         * cpperror.c (_cpp_begin_message): No special casing
1936         of CPP_FATAL_LIMIT.
1937         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1938         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1939         * cpplib.c (do_include_common): Use DL_ERROR.
1940         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1941         (DL_ICE): Renumber.
1942         * fix-header.c (read_scan_file): Update.
1944 2002-05-22  Richard Henderson  <rth@redhat.com>
1946         * config/i386/i386.c (ix86_expand_call): New function, extracted
1947         from md call patterns.  Add pic_offset_table_rtx to
1948         CALL_INSN_FUNCTION_USAGE when needed.
1949         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1950         (call_value_pop, call_value, untyped_call): Likewise.
1951         (call_exp, call_value_exp): Remove.
1952         * config/i386/i386-protos.h: Update.
1954 2002-05-22  Richard Henderson  <rth@redhat.com>
1956         * varasm.c (default_section_type_flags): Check for VAR_DECL
1957         before using DECL_THREAD_LOCAL.
1959 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1961         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1962         (STARTFILE_SPEC): Delete PE crt0.o.
1963         * config/rs6000/aix51.h: Same.
1964         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1965         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1966         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1967         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1968         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1970 2002-05-22  Richard Henderson  <rth@redhat.com>
1972         * varasm.c (default_section_type_flags): Handle tls data and
1973         default sections.
1974         (default_unique_section): Handle tls sections.
1976 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1978         * configure.in (CROSS): Define NATIVE_CROSS.
1979         * configure: Regenerate.
1980         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1981         (startfile_prefix_spec): New var.
1982         (static_specs): Add startfile_prefix_spec.
1983         (do_spec_2): Split out from..
1984         (do_spec): ..here.
1985         (main): Process startfile_prefix_spec.
1986         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1987         dynamic linker.
1988         (STARTFILE_PREFIX_SPEC): Define.
1989         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1990         absolute paths.
1992 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1994         * cpperror.c: Fix formatting.
1995         * cppexp.c: Likewise.
1996         * cppfiles.c: Likewise.
1997         * cpphash.c: Likewise.
1998         * cpphash.h: Likewise.
1999         * cppinit.c: Likewise.
2000         * cpplex.c: Likewise.
2001         * cpplib.c: Likewise.
2002         * cppmacro.c: Likewise.
2003         * cppmain.c: Likewise.
2004         * cppspec.c: Likewise.
2006 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
2008         * combine.c (force_to_mode): Use gen_int_mode.
2009         Don't clear CONST_INT bits outside of mode.
2011 2002-05-22  Richard Henderson  <rth@redhat.com>
2013         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
2014         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2016 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
2018         PR c/6643
2019         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
2020         if DECL_SIZE_UNIT is INTEGER_CST.
2022 2002-05-22  Richard Henderson  <rth@redhat.com>
2024         * flow.c (life_analysis): Delete broken reg_label check.
2026 2002-05-22  Richard Henderson  <rth@redhat.com>
2028         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
2029         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2031 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2033         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
2034         (embed-bb.c): New rule.
2035         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
2036         * config/sh/embed_bb.c: Delete.
2038 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
2040         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
2042 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
2044         * config/h8300/h8300.md (*andorqi3): New.
2046 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2048         PR preprocessor/6517
2049         * Makefile.in: Update.
2050         * c-common.c (c_common_post_options): Add preprocessor
2051         errors to the error count.
2052         * c-lang.c (c_post_options): Kill.
2053         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2054         * hooks.h: Add header guards.
2055         * langhooks-def.h: Include hooks.h.
2056         (LANG_HOOKS_POST_OPTIONS): Update.
2057         * langhooks.h (struct lang_hooks): Update post_options.
2058         * toplev.c (parse_options_and_default_flags): Update.
2059 objc:
2060         * objc-lang.c (objc_post_options): Kill.
2061         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2063 2002-05-21  Bruce Korb  <bkorb@gnu.org>
2065         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
2066         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
2067         * fixinc/fixincl.x: regen.
2069 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
2071         * cfgbuild.c: Fix formatting.
2072         * cfg.c: Likewise.
2073         * cfgcleanup.c: Likewise.
2074         * cfglayout.c: Likewise.
2075         * cfgloop.c: Likewise.
2076         * cfgrtl.c: Likewise.
2078 2002-05-21  Richard Henderson  <rth@redhat.com>
2080         * c-common.h (enum rid): Add RID_THREAD.
2081         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
2082         (grokdeclarator): Grok __thread.
2083         * c-parse.in (reswords): Add __thread.
2084         (rid_to_yy): Add RID_THREAD.
2086         * tree.h (DECL_THREAD_LOCAL): New.
2087         (struct tree_decl): Add thread_local_flag.
2088         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
2089         * tree.c (staticp): TLS variables are not static.
2091         * target-def.h (TARGET_HAVE_TLS): New.
2092         * target.h (have_tls): New.
2093         * output.h (SECTION_TLS): New.
2094         * varasm.c (assemble_variable): TLS variables can't be common for now.
2095         (default_section_type_flags): Handle .tdata and .tbss.
2096         (default_elf_asm_named_section): Handle SECTION_TLS.
2097         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
2099         * flags.h (flag_tls_default): Declare.
2100         * toplev.c (flag_tls_default): Define.
2101         (display_help): Display help for it.
2102         (decode_f_option): Set it.
2104         * doc/extend.texi (Thread-Local): New node describing language-level
2105         thread-local storage.
2106         * doc/invoke.texi (-ftls-model): Document.
2108         * fixinc/inclhack.def (thread_keyword): New.
2109         * fixinc/fixincl.x: Rebuild.
2111 2002-05-21  Jeffrey A Law  <law@redhat.com>
2113         * optabs.c (expand_binop): For double-word integer multiplies,
2114         do not compute intermediate results into something that is
2115         not a register (such as a SUBREG or MEM).
2117         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
2118         (ix86_sched_reorder): Make sure to initialize scheduling
2119         data even when there's only one insn in the ready queue.
2121 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
2123         * genautomata.c (reserv_sets_hash_value): Fix a typo.
2125 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
2127         * genautomata.c (reserv_sets_hash_value): Define hash_value as
2128         set_el_t.  Transform the hash value into unsigned.
2129         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
2130         (transform_3): Add code to process `(A,B)+(D,E)'.
2132 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
2134         * reload1.c (do_output_reload): Run delete_output_reload
2135         only if optimizing.
2137 2002-05-21  Roger Sayle  <roger@eyesopen.com>
2139         PR middle-end/6600
2140         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
2141         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
2142         (can_store_by_pieces): ... and here to limit the largest mode used.
2143         Add a comment to document this function.
2145 2002-05-21  Richard Henderson  <rth@redhat.com>
2147         * flow.c (life_analysis): Fix test for deleted label.
2149 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2151         * doc/tm.texi: Fix typo.
2153 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
2155         * c-common.c (c_common_init): Set options->unsigned_char from
2156         flag_signed_char.
2157         (cb_register_builtins): Define __STRICT_ANSI__ and
2158         __CHAR_UNSIGNED__ here...
2159         * cppinit.c (init_builtins): Not here.
2160         (cpp_create_reader): unsigned_char option defaults to 0, not
2161         !DEFAULT_SIGNED_CHAR.
2162         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
2163         and -funsigned-char.
2165         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
2166         * cpphash.c (_cpp_init_hashtable): Don't set it.
2167         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
2168         directly.  Clarify comment.
2170 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2172         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
2173         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
2174         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
2175         BASIC_BLOCK (n_basic_blocks - 1).
2176         * cfganal.c (can_fallthru, flow_call_edges_add,
2177         flow_preorder_transversal_compute): Too.
2178         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
2179         find_sub_basic_blocks): Too.
2180         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
2181         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
2182         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
2183         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
2184         * combine.c (this_basic_block): Type changed to basic_block.
2185         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
2186         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2187         get_last_value, distribute_notes, distribute_links): Too.
2188         * final.c (compute_alignments): Too.
2189         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
2190         * function.c (thread_prologue_and_epilogue_insns): Too.
2191         * gcse.c (compute_code_hoist_vbeinout): Too.
2192         * global.c (build_insn_chain): Too.
2193         * ifcvt.c (find_if_block, find_cond_trap): Too.
2194         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
2195         * regmove.c (regmove_optimize): Too.
2196         * resource.c (find_basic_block): Too.
2197         * sched-ebb.c (schedule_ebbs): Too.
2198         * ssa-dce.c (find_control_dependence, find_pdom): Too.
2200 2002-05-21  Andreas Jaeger  <aj@suse.de>
2202         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
2204 2002-05-21  Richard Henderson  <rth@redhat.com>
2206         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
2207         unspec names, not numbers.
2209 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2211         * doc/sourcebuild.texi: Mention snapshot-README and
2212         snapshot-index.html as needing updating for new front ends.
2214 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2216         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2217         disabling checking, and avoid multiple evaluation of RTX.
2219 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
2221         * bitmap.c (bitmap_find_bit): Return early if we have the correct
2222         element cached.
2224 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2226         * profile.c (gen_edge_profiler):  Set alias set before the memory is
2227         used.
2229 2002-05-20  David S. Miller  <davem@redhat.com>
2231         * cselib.c (max_value_regs): New.
2232         (cselib_lookup, cselib_invalidate_regno): Initialize it when
2233         adding new entries to the REG_VALUES table and we are dealing with
2234         a hard register.
2235         (clear_table): Initialize it.
2236         (cselib_invalidate_regno): Use it to determine which hard
2237         registers to scan when mode is not VOIDmode.
2239 2002-05-20  Duraid Madina   <duraid@fl.net.au>
2241         * tradcpp.c (fixup_newlines): Use old-style function header.
2243 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
2245         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2247 2002-05-20  H.J. Lu  (hjl@gnu.org)
2249         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2251         * config/mips/mips.h (DFMODE_NAN): Defined.
2252         (SFMODE_NAN): Likewise.
2254 2002-05-20  Dale Johannesen  <dalej@apple.com>
2256         * combine.c (cant_combine_insn_p):  Back out my
2257         previous patch.
2259 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
2261         * params.c: Fix formatting.
2262         * params.h: Likewise.
2263         * predict.c: Likewise.
2264         * prefix.c: Likewise.
2265         * print-rtl.c: Likewise.
2266         * print-tree.c: Likewise.
2267         * profile.c: Likewise.
2269 2002-05-20  H.J. Lu  (hjl@gnu.org)
2271         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2273 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
2275         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2276         switches straight on to the assembler, do not abbreviate them.
2277         * config/arm/elf.h (ASM_SPEC): As above.
2278         * config/arm/semi.h (ASM_SPEC): As above.
2279         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2280         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2281         -mcpu=xscale on to the assembler by default.
2282         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2284 2002-05-20  Richard Henderson  <rth@redhat.com>
2286         * cse.c (canon_hash): Reorder do_not_record test.  Always
2287         allow pic_offset_table_rtx.
2289 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
2291         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2292         (expand_binop): Ditto (3 times).
2294 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
2296         * Makefile.in (distclean): Remove QMTest stuff.
2297         (QMTEST_PATH): New variable.
2298         (QMTESTFLAGS): Likewise.
2299         (QMTESTRUNFLAGS): Likewise.
2300         (QMTEST): Likewise.
2301         (QMTEST_GPP_TESTS): Likewise.
2302         (QMTEST_DIR): Likewise.
2303         (QMTEST_DIR/context): New target.
2304         (qmtest-g++): Likeise.
2305         (qmtest-gui): Likewise.
2306         (QMTEST_DIR/gpp-expected.qmr): Likewise.
2308 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
2310         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2311         an altivec register if TARGET_ALTIVEC.
2313         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2314         to ALTIVEC_VECTOR_MODE.
2315         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2316         (rs6000_va_arg): Vectors may go in registers if they are not
2317         altivec vectors.
2319 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
2321         * protoize.c: Fix formatting.
2323 2002-05-19  Richard Henderson  <rth@redhat.com>
2325         * gensupport.c (init_include_reader): Merge into ...
2326         (process_include): ... here.  Simplify composite path creation.
2327         Plug memory leaks.  Fix file/line number tracking.  Do not
2328         process_define_cond_exec.  Return void.
2329         (process_rtx): Don't check process_include return value.
2331 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2333         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2334         fields.
2335         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2336         traversing basic block chain.
2337         (create_basic_block_structure, create_basic_block): Declaration changed.
2338         (link_block, unlink_block): Declare.
2339         * cfg.c (entry_exit_blocks): Initialize new fields.
2340         (link_block, unlink_block): New.
2341         (expunge_block_nocompact): Unlink basic block.
2342         (dump_flow_info): Print prev_bb/next_bb fields.
2343         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2344         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2345         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2346         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2347         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2348         (verify_flow_info): Check that list agrees with numbering.
2350 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2352         * c-common.c (preprocessing_asm): New macro.
2353         * c-lex.h (builtin_define, builtin_assert): Use pfile.
2354 doc:
2355         * tm.texi: Update.
2356 config/alpha:
2357         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2358         (CPP_SPEC): Simplify.
2359         (TARGET_CPU_CPP_BUILTINS): Update.
2360         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2361         (CPP_SPEC): Simplify.
2362         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2363         (TARGET_OS_CPP_BUILTINS): Update.
2364         * osf.h (CPP_XFLOAT_SPEC): Kill.
2365         (TARGET_OS_CPP_BUILTINS): Update.
2366         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2367         * osf5.h (CPP_XFLOAT_SPEC): Kill.
2368         * vms.h (CPP_SUBTARGET_SPEC): Kill.
2369         (TARGET_OS_CPP_BUILTINS): Update.
2371 2002-05-19  Richard Henderson  <rth@redhat.com>
2373         * varasm.c (default_binds_local_p): Fix typo.
2375 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2377         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2378         CONST_INT operand to the correct mode after adding 1 to it.
2380 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
2382         * config.gcc (powerpc-wrs-windiss*): New target.
2384 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2386         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2387         (ashrdi3): Use it.
2389 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
2391         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2392         alphasort.
2393         * config.in: Regenerated.
2394         * configure: Regenerated.
2396 2002-05-19  Richard Henderson  <rth@redhat.com>
2398         * target-def.h (TARGET_BINDS_LOCAL_P): New.
2399         * target.h (struct gcc_target): Move boolean fields to the end.
2400         Add binds_local_p.
2401         * varasm.c (default_binds_local_p): New.
2402         * output.h: Declare it.
2404         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2405         * config/cris/cris.c (cris_encode_section_info): Likewise.
2406         * config/i386/i386.c (i386_encode_section_info): Likewise.
2407         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2408         * config/sh/sh.c (sh_encode_section_info): Likewise.
2410         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2411         (TARGET_BINDS_LOCAL_P): New.
2413 2002-05-19  Richard Henderson  <rth@redhat.com>
2415         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2416         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2417         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2419         * toplev.c (display_help): Kill -a -ax help.
2421         * config/1750a/1750a.h, config/alpha/alpha.h,
2422         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2423         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2424         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2425         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2427         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2428         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2430         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2431         (ix86_output_function_block_profiler): Kill.
2432         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2433         (m68hc11_function_block_profiler): Kill.
2434         * config/m68hc11/m68hc11-protos.h: Update.
2435         * config/m88k/m88k.c (output_block_profiler): Kill.
2436         (output_function_block_profiler): Kill.
2437         * config/m88k/m88k-protos.h: Update.
2439 2002-05-19  Richard Henderson  <rth@redhat.com>
2441         * system.h (STRIP_NAME_ENCODING): Poison it.
2442         * output.h (STRIP_NAME_ENCODING): Remove.
2443         (default_strip_name_encoding): Declare.
2444         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2445         * target.h (strip_name_encoding): New.
2446         * varasm.c (default_strip_name_encoding): New.
2448         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2449         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2450         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2451         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2452         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2453         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2454         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2455         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2456         config/v850/v850.h: Use the hook, not the macro.
2458         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2459         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2460         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2461         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2462         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2463         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2464         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2465         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2466         config/v850/v850.c, config/v850/v850.h:
2467         Move STRIP_NAME_ENCODING to out-of-line function and add
2468         TARGET_STRIP_NAME_ENCODING.
2470         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2471         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2472         with TARGET_STRIP_NAME_ENCODING referencing existing function;
2473         make function static.
2475         * xcoffout.c: Include target.h
2476         * Makefile.in (xcoffout.o): Update.
2478         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2479         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2480         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2481         reloc argument unused.
2482         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2484         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2485         STRIP_NAME_ENCODING docs.
2487 2002-05-19  Andreas Jaeger  <aj@suse.de>
2489         * gengenrtl.c: Add prototype for excluded_rtx.
2491         * real.h: Add prototype for exact_real_truncate.
2493 2002-05-18  Richard Henderson  <rth@redhat.com>
2495         * system.h (ENCODE_SECTION_INFO): Poison it.
2496         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2497         * target.h (encode_section_info): New.
2498         * varasm.c (make_decl_rtl, output_constant_def): Use it.
2499         * hooks.c (hook_tree_int_void): New.
2500         * hooks.h: Declare it.
2502         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2503         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2504         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2505         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2506         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2507         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2508         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2509         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2510         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2511         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2512         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2513         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2514         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2515         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2516         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2517         referencing existing function.  Make function static.
2519         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2520         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2521         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2522         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2523         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2524         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2525         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2526         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2527         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2528         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2529         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2530         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2531         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2532         Move ENCODE_SECTION_INFO to out-of-line function and add
2533         TARGET_ENCODE_SECTION_INFO.
2535         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2536         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2538         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2539         from SUBTARGET_*
2540         (switch_to_section): Replace in_rdata case with in_readonly_data.
2542         * config/h8300/h8300.c (h8300_encode_label): Make static.
2543         * config/h8300/h8300-protos.h: Update.
2545         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2546         from rs6000_encode_section_info; make static.
2547         (rs6000_xcoff_encode_section_info): New.
2549         * config/v850/v850.c (v850_encode_data_area): Make static.
2550         * config/v850/v850-protos.h: Update.
2552         * config/vax/vax.c: Include flags.h.
2553         (vms_select_section): Fix typo.
2555         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2556         ENCODE_SECTION_INFO docs.
2558 2002-05-18  Richard Henderson  <rth@redhat.com>
2560         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2561         REGISTER_TARGET_PRAGMAS.
2562         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2564         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2566 2002-05-18  Richard Henderson  <rth@redhat.com>
2568         * system.h (SELECT_RTX_SECTION): Poison.
2569         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2570         * target.h (select_rtx_section): New.
2571         * varasm.c (output_constant_pool): Use it.
2572         (default_select_rtx_section, default_elf_select_rtx_section): New.
2573         * output.h: Declare them.
2575         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2576         * config/darwin.c (machopic_select_rtx_section): ... here.
2577         * config/darwin-protos.h: Update.
2579         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2580         * config/nextstep.c (machopic_select_rtx_section): ... here.
2581         (nextstep_select_section): Rename variable to avoid macro clash.
2582         * config/nextstep-protos.h: Update.
2584         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2585         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2586         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2587         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2588         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2589         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2590         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2591         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2592         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2593         (SELECT_RTX_SECTION): Remove.
2595         * config/darwin.h, config/elfos.h, config/nextstep.h,
2596         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2597         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2598         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2599         config/sparc/lynx.h, config/xtensa/xtensa.c
2600         (TARGET_ASM_SELECT_RTX_SECTION): New.
2602         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2603         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2604         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2605         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2606         (ia64_aix_select_rtx_section): New.
2607         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2608         redefining.
2609         * config/mips/mips.c (mips_select_rtx_section): Make static.
2610         Support ELF SHF_MERGE features.
2611         * config/mips/mips-protos.h: Update.
2612         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2613         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2614         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2615         make static, fall back to default_elf_select_rtx_section.
2616         * config/rs6000/rs6000-protos.h: Update.
2617         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2618         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2619         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2620         * config/romp/romp.c (romp_select_rtx_section): New.
2621         * config/s390/s390.c (s390_select_rtx_section): New.
2622         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2623         declarations before target macro definition.
2624         (xtensa_emit_call): Use static buffer.
2625         (xtensa_select_rtx_section): New.
2626         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2627         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2628         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2630         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2631         SELECT_RTX_SECTION docs.
2633 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2635         * i386.md (movsi/movdi): Fix template.
2636         (sse2 patterns): Set attributes consistently.
2638         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2640 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2642         * optabs.c (complex_part_zero_p): New.
2643         * (expand_cmplxdiv_straight): Use it.
2644         * (expand_cmplxdiv_wide): Ditto.
2645         * (expand_binop): Ditto.
2647 2002-05-18  Richard Henderson  <rth@redhat.com>
2649         * final.c (HAVE_READONLY_DATA_SECTION): New.
2650         (shorten_branches): Use it instead of ifdefs.
2651         * varasm.c (enum in_section): Add in_readonly_data.
2652         (text_section, data_section): Tidy.
2653         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2655         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2656         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2657         (READONLY_DATA_SECTION): Don't undef.
2659         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2660         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2661         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2663         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2664         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2665         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2666         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2668         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2669         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2670         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2671         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2672         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2673         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2674         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2675         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2676         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2678         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2679         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2680         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2681         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2682         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2683         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2685         * config/elfos.h, config/netware.h, config/svr3.h,
2686         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2687         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2688         config/h8300/h8300.h, config/i386/i386-interix.h,
2689         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2690         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2692         * config/elfos.h, config/netware.h, config/svr3.h,
2693         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2694         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2695         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2696         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2698         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2699         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2700         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2701         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2702         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2703         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2704         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2705         config/rs6000/sysv4.h, config/v850/v850.h
2706         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2707         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2709         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2710         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2711         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2712         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2713         * config/alpha/alpha.c (alpha_start_function): Likewise.
2714         (alpha_write_linkage): Likewise.
2715         * config/m32r/m32r.c (m32r_select_section): Likewise.
2716         * config/m88k/m88k.c (m88k_select_section): Likewise.
2717         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2718         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2719         (rs6000_elf_select_section): Likewise.
2720         * config/v850/v850.c (v850_select_section): Likewise.
2722         * config/1750a/1750a.h, config/i860/sysv3.h
2723         (READONLY_DATA_SECTION_ASM_OP): New.
2724         READONLY_DATA_SECTION_ASM_OP.
2725         * config/i386/interix.c, config/i386/winnt.c
2726         (i386_pe_unique_section): Always use .rdata prefix.
2727         * config/pa/som.h (readonly_data): Always switch to read-only section.
2728         (READONLY_DATA_SECTION): Predicate on flag_pic.
2729         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2730         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2731         (READONLY_DATA_SECTION): Update.
2733 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2735         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2736         is used without -Wformat.
2737         * c-common.h (warn_format_zero_length): Declare extern.
2738         * c-decl.c (warn_options): Add "format-zero-length".
2739         * c-format.c (warn_format_zero_length): Declare.
2740         (set_Wformat): Set warn_format_zero_length for -Wformat.
2741         (check_format_info): Only warn about zero-length formats if
2742         warn_format_zero_length is true.  Include the format type
2743         name in the warning message.
2744         * doc/invoke.texi: Document -Wformat-zero-length.
2745         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2747 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2749         * timevar.c: Fix formatting.
2750         * tlink.c: Likewise.
2751         * toplev.c: Likewise.
2752         * tree-dump.c: Likewise.
2753         * tree-inline.c: Likewise.
2755 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2757         * cppinit.c (cpp_post_options): If preprocessed, turn off
2758         traditional.  If traditional, turn off column numbers.
2759         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2760         * cpptrad.c (handle_newline): Update line_base.
2761         (skip_comment): Handle -Wcomment.
2763 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2765         * cppinit.c (struct builtin): Remove unused fields.
2766         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2767         (operator_array): New - was second half of builtin_array.
2768         (init_builtins): Simplify loop over builtin_array/operator_array.
2770 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2772         * defaults.h (UNIQUE_SECTION): Remove.
2773         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2775 2002-05-17  Richard Henderson  <rth@redhat.com>
2777         * expr.c (init_expr_once): Don't use start/end_sequence.
2778         Use rtx_alloc instead of emit_insn.
2779         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2780         (lang_independent_init): ... not here.
2782 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2784         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2786 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2788         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2789         for fixed registers, possibly used for global register variables.
2790         (initial_elimination_offset, avr_output_function_prologue,
2791         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2793 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2795         * Makefile.in: Update for cpptrad.c.
2796         * cpphash.h (struct cpp_buffer): New members for buffer
2797         overlays.
2798         (struct cpp_reader): New members for traditional output.
2799         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2800         * cppinit.c (cpp_create_reader): Set trad_line.
2801         (cpp_destroy): Free trad_out_base if used.
2802         (cpp_read_main_file): Overlay an empty buffer if traditional.
2803         (cpp_finish_options): Don't do builtins.
2804         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2805         (cpp_handle_option): Handle it.
2806         * cpplex.c (continue_after_nul): New.
2807         (_cpp_lex_direct): Use handle_nul.
2808         * cpplib.h (struct cpp_options): New traditional option.
2809         * cpptrad.c: New file.
2811 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2813         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2814         and set the options flag.
2815         * cppinit.c (lang_flags): Remove objc.
2816         (lang_defaults): Remove OBJC and OBJCXX.
2817         (set_lang): Update.
2818         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2819         (cpp_handle_option): Remove -+ and -lang-objc++.
2820         For ObjC, just set a flag.
2821         (print_help): Update.
2822         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2824 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2826         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2827         bootstrap with -mips3.
2829 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2831         * final.c: Fix formatting.
2832         * fix-header.c: Likewise.
2833         * flow.c: Likewise.
2834         * fold-const.c: Likewise.
2835         * function.c: Likewise.
2837 2002-05-17  David S. Miller  <davem@redhat.com>
2839         PR c/6689, PR optimization/6615
2840         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2841         and make it a pointer to rtx.  Update comments.
2842         (update_equiv_regs): When scanning for equivalences, record
2843         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2844         it while making the equiv replacements.
2846 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2848         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2850 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2852         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2853         when encoding visibility into SYMBOL_REF_FLAG.
2855 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2857         * expr.c (force_operand): Fix reversed move.
2859 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2861         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2862         that can be ignored.
2864 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2866         * doc/install.texi (Final install): Recommend to install into a
2867         "clean" target directory.
2869 2002-05-17  Richard Henderson  <rth@redhat.com>
2871         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2872         for code blocks.  Tidy whitespace.
2874 2002-05-17  Richard Henderson  <rth@redhat.com>
2876         * hooks.c (hook_tree_bool_false): New.
2877         * hooks.h: Declare it.
2878         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2879         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2880         * target.h (select_section, unique_section): New.
2881         (in_small_data_p): New.
2882         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2883         (variable_section, output_constant_def_contents): Likewise.
2884         (default_select_section, default_unique_section): New.
2885         (categorize_decl_for_section, default_elf_select_section): New.
2886         * output.h: Declare them.
2888         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2889         (TARGET_ASM_SELECT_SECTION): New.
2890         (SELECT_SECTION): Move ...
2891         * config/darwin.c (machopic_select_section): ... here.
2892         * config/darwin-protos.h: Update.
2894         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2895         (SELECT_SECTION): Move ...
2896         * config/nextstep.c (nextstep_select_section): ... here.
2897         * config/nextstep-protos.h: Update.
2899         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2900         (TARGET_ASM_SELECT_SECTION): New.
2901         * config/svr3.h (SELECT_SECTION): Remove.
2903         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2904         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2905         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2906         (alpha_encode_section_info): Use it.
2907         * config/alpha/alpha-protos.h: Update.
2908         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2909         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2910         (TARGET_ASM_SELECT_SECTION): New.
2911         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2913         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2914         (TARGET_ASM_UNIQUE_SECTION): New.
2916         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2917         (avr_unique_section): Rename from unique_section; make static.
2918         * config/avr/avr-protos.h: Update.
2919         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2921         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2923         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2924         (TARGET_ASM_UNIQUE_SECTION): New.
2925         * config/i386/i386-interix.h: Likewise.
2926         * config/i386/win32.h: Likewise.
2927         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2928         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2929         * config/i386/sco5.h (SELECT_SECTION): Remove.
2930         (TARGET_ASM_SELECT_SECTION): New.
2931         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2933         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2934         instead of SELECT_SECTION.
2935         * config/m68k/dpx2.h: Likewise.
2936         * config/rs6000/lynx.h: Likewise.
2938         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2939         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2940         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2941         (ia64_in_small_data_p): New.
2942         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2943         (ia64_aix_select_section, ia64_aix_unique_section): New.
2944         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2945         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2947         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2948         (TARGET_ASM_SELECT_SECTION): New.
2949         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2950         * config/m32r/m32r-protos.h: Update.
2952         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2953         (SELECT_SECTION): Move ...
2954         * config/m88k/m88k.c (m88k_select_section): ... here.
2956         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2957         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2958         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2959         (mcore_unique_section): Make static.
2960         * config/mcore/mcore-protos.h: Update.
2962         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2963         (TARGET_ASM_UNIQUE_SECTION): New.
2964         * config/mips/elf64.h: Likewise.
2965         * config/mips/iris6gld.h: Likewise.
2966         * config/mips/linux.h: Likewise.
2967         * config/mips/mips-protos.h: Update.
2968         * config/mips/mips.c (mips_select_section): Add align argument.
2969         * config/mips/mips.h (SELECT_SECTION): Remove.
2970         (TARGET_ASM_SELECT_SECTION): New.
2972         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2973         * config/mmix/mmix.c (mmix_select_section): Remove.
2974         (mmix_unique_section): Remove.
2975         * config/mmix/mmix-protos.h: Update.
2977         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2978         (SELECT_SECTION): Move ...
2979         * config/pa/pa.c (pa_select_section): ... here.
2980         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2982         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2983         from rs6000_select_section and make static.
2984         (rs6000_elf_unique_section): Similarly.
2985         (rs6000_xcoff_select_section): From xcoff.h.
2986         (rs6000_xcoff_unique_section): Likewise.
2987         * config/rs6000/rs6000-protos.h: Update.
2988         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2989         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2990         * config/rs6000/xcoff.h: Likewise.
2992         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2993         (SELECT_SECTION): Move ...
2994         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2996         * config/v850/v850.h (SELECT_SECTION): Move ...
2997         * config/v850/v850.c (v850_select_section): ... here.
2998         (TARGET_ASM_SELECT_SECTION): New.
3000         * config/vax/vms.h (SELECT_SECTION): Move ...
3001         * config/vax/vax.c (vms_select_section): ... here.
3002         (TARGET_ASM_SELECT_SECTION): New.
3004         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
3005         for the target hooks.
3007 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
3009         * config/arm/arm.c (emit_multi_reg_push): Do not set
3010         RTX_FRAME_RELATED_P on the SEQUENCE.
3012 2002-05-16  Richard Henderson  <rth@redhat.com>
3014         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
3015         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
3017 2002-05-16  Richard Henderson  <rth@redhat.com>
3019         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
3021         * config/ia64/ia64.c (saveable_obstack): Do not declare.
3023 2002-05-16  Richard Henderson  <rth@redhat.com>
3025         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
3026         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
3027         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
3028         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
3029         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
3030         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
3031         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
3032         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
3033         Revert "Basic block renumbering removal", and two followup patches.
3035 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
3037         * lcm.c (optimize_mode_switching): Revert previous change.
3039 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3041         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
3042         with only extant block numbers.
3044 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
3046         * lcm.c (optimize_mode_switching): Fix typo.
3048 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3050         * flow.c (calculate_global_regs_live): Queue blocks in program order.
3052 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3054         * doc/install.texi (Configuration): Document PWDCMD.
3056 2002-05-16  Dale Johannesen  <dalej@apple.com>
3058         * combine.c (cant_combine_insn_p):  Reenable combinations
3059         involving hard regs unless CLASS_LIKELY_SPILLED_P.
3061 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3063         * c-common.c (cb_register_builtins): Handle more built-ins
3064         here rather than in gcc.c specs.
3065         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
3066         (cpp_options): Pass -O flags even when only preprocessing.
3067         * toplev.c (set_fast_math_flags): New prototype.
3068         (fast_math_flags_set_p): New.
3069         (set_no_fast_math_flags): Remove.
3070         (decode_f_option): Update.
3071         * toplev.h (set_fast_math_flags): Update.
3072         (fast_math_flags_set_p): New.
3073         (set_no_fast_math_flags): Remove.
3074 config:
3075         * c4x/c4x.c (c4x_override_options): Update.
3077 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
3079         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
3080         Default-define here.
3081         (builtin_define_with_value): Can now wrap the expansion in
3082         quotation marks if such is wanted.
3083         (cb_register_builtins): Update calls to builtin_define_with_value.
3084         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
3085         here.
3086         (c_common_init): Set options->stdc_0_in_system_headers.
3087         * c-lex.h: Update prototype of builtin_define_with_value.
3088         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
3089         and REGISTER_PREFIX.
3091         * cppinit.c (VERS, ULP, C, X): Kill.
3092         (builtin_array): Remove entries for __VERSION__,
3093         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
3094         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
3095         a constant.
3096         (init_builtins): Kill off a bunch of now-dead code.
3097         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
3098         -fno-leading-underscore.
3099         (cpp_handle_option): Remove code to set user_label_prefix.
3100         (cpp_post_options): Likewise.
3102         * cpplib.h (struct cpp_options): Remove user_label_prefix.
3103         (stdc_0_in_system_headers): New.
3104         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
3105         stdc_0_in_system_headers) too to decide the value of __STDC__.
3107         * tradcpp.c (user_label_prefix): Kill.
3108         (main): Remove code handling -f(no-)leading-underscore.
3109         (initialize_builtins): Don't define __REGISTER_PREFIX__
3110         or __USER_LABEL_PREFIX__.
3111         (install_value): Wrap compound statement in dummy loop so the
3112         macro works properly in an if statement.
3115 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
3117         * loop.h (struct loop_info): Add member has_prefetch.
3118         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
3119         (prescan_loop): Initialize has_prefetch.
3120         (struct prefetch_info): Change prefetch_in_loop and
3121         prefetch_before_loop from bit fields to ints.
3122         (emit_prefetch_instructions): Several small fixes.
3123         (check_dbra_loop): Don't reverse loop that uses prefetch.
3125 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3127         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
3128         * configure.in: Likewise.
3129         * fixinc/check.tpl: Likewise.
3130         * fixinc/fixinc.dgux: Likewise.
3131         * fixinc/fixinc.svr4: Likewise.
3132         * fixinc/fixinc.winnt: Likewise.
3133         * fixinc/fixincl.sh: Likewise.
3134         * fixproto: Likewise.
3135         * configure: Regenerate.
3137 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3139         Basic block renumbering removal:
3140         * basic_block.h (struct basic_block_def): Renamed index to sindex,
3141         added prev_bb and next_bb fields.
3142         (n_basic_blocks): Renamed to num_basic_blocks.
3143         (last_basic_block): New, index of last basic block.
3144         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3145         traversing basic block chain.
3146         (BLOCK_NUM): index -> sindex.
3147         (create_basic_block_structure, create_basic_block): Declaration changed.
3148         (debug_num2bb): Declare.
3149         (expunge_block_nocompact): Declaration removed.
3150         (link_block, unlink_block, compact_blocks): Declare.
3151         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
3152         * cfg.c (entry_exit_blocks): Initialize new fields.
3153         (clear_edges, alloc_block, expunge_block, cached_make_edge,
3154         redirect_edge_pred, dump_flow_info, dump_edge_info,
3155         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
3156         free_aux_for_edges): Modified.
3157         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
3158         (expunge_block_nocompact): Removed.
3159         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
3160         find_unreachable_blocks, create_edge_list, print_edge_list,
3161         verify_edge_list, flow_edge_list_print, remove_fake_successors,
3162         remove_fake_edges, flow_reverse_top_sort_order_compute,
3163         flow_depth_first_order_compute, flow_preorder_transversal_compute,
3164         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
3165         flow_dfs_compute_reverse_execute): Modified.
3166         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
3167         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
3168         Modified.
3169         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3170         merge_blocks_move_predecessor_nojumps,
3171         merge_blocks_move_successor_nojumps, merge_blocks,
3172         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
3173         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
3174         * cfglayout.c (skip_insns_after_block, label_for_bb,
3175         record_effective_endpoints, scope_to_insns_finalize,
3176         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
3177         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
3178         cfg_layout_duplicate_bb): Modified.
3179         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
3180         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3181         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
3182         flow_loops_find, flow_loop_outside_edge_p): Modified.
3183         * cfgrtl.c (create_basic_block_structure, create_basic_block,
3184         flow_delete_block, compute_bb_for_insn, split_block,
3185         try_redirect_by_replacing_jump, redirect_edge_and_branch,
3186         force_nonfallthru_and_redirect, tidy_fallthru_edge,
3187         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
3188         commit_edge_insertions, commit_edge_insertions_watch_calls,
3189         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3190         purge_all_dead_edges): Modified.
3191         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
3192         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3193         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
3194         Modified.
3195         * conflict.c (conflict_graph_compute): Modified.
3196         * df.c (FOR_ALL_BBS): Removed.
3197         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3198         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
3199         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
3200         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
3201         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3202         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
3203         * final.c (compute_alignments, final_scan_insn): Modified.
3204         * flow.c (verify_local_live_at_start, update_life_info,
3205         update_life_info_in_dirty_blocks, free_basic_block_vars,
3206         delete_noop_moves, calculate_global_regs_live,
3207         initialize_uninitialized_subregs, allocate_bb_life_data,
3208         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
3209         mark_used_reg, count_or_remove_death_notes): Modified.
3210         * function.c (thread_prologue_and_epilogue_insns): Modified.
3211         * gcse.c (struct null_pointer_info): Change typo of current_block
3212         to basic_block.
3213         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3214         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3215         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3216         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3217         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3218         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3219         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3220         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3221         pre_delete, one_pre_gcse_pass, compute_transpout,
3222         invalidate_nonnull_info, delete_null_pointer_checks_1,
3223         free_code_hoist_mem, compute_code_hoist_vbeinout,
3224         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3225         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3226         compute_store_table, build_store_vectors, insert_insn_start_bb,
3227         insert_store, replace_store_insn, free_store_memory, store_motion):
3228         Modified.
3229         * global.c (global_alloc, global_conflicts, mark_elimination,
3230         build_insn_chain): Modified.
3231         * graph.c (print_rtl_graph_with_bb): Modified.
3232         * haifa-sched.c (sched_init): Modified.
3233         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3234         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3235         if_convert): Modified.
3236         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3237         compute_insert_delete, pre_edge_lcm, compute_available,
3238         compute_farthest, compute_nearerout, compute_rev_insert_delete,
3239         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3240         Modified.
3241         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3242         * loop.c (loop_dump_aux): Modified.
3243         * predict.c (combine_predictions_for_insn, estimate_probability,
3244         last_basic_block_p, process_note_prediction, process_note_predictions,
3245         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3246         expensive_function_p, estimate_bb_frequencies,
3247         compute_function_frequency): Modified.
3248         * print-rtl.c (print_rtx): Modified.
3249         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3250         get_exec_counts, compute_branch_probabilities, compute_checksum,
3251         branch_prob, find_spanning_tree): Modified.
3252         * recog.c (split_all_insns, peephole2_optimize): Modified.
3253         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3254         convert_regs_1, convert_regs_2, convert_regs): Modified.
3255         * regclass.c (scan_one_insn, regclass): Modified.
3256         * regmove.c (mark_flags_life_zones, regmove_optimize,
3257         combine_stack_adjustments): Modified.
3258         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3259         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3260         * reorg.c (dbr_schedule): Modified.
3261         * resource.c (find_basic_block, init_resource_info): Modified.
3262         * sbitmap.c (sbitmap_intersection_of_succs,
3263         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3264         sbitmap_union_of_preds): Modified.
3265         * sched-deps.c (init_dependency_caches): Modified.
3266         * sched-ebb.c (schedule_ebbs): Modified.
3267         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3268         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3269         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3270         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3271         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3272         ssa_const_prop): Modified.
3273         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3274         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3275         * ssa.c (remove_phi_alternative, find_evaluations,
3276         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3277         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3278         make_regs_equivalent_over_bad_edges,
3279         make_equivalent_phi_alternatives_equival,
3280         compute_conservative_reg_partition,
3281         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3282         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3283         Modified.
3285 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
3287         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3289 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
3291         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3292         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3293         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3294         calling CONSTANT_POOL_ADDRESS_P.
3295         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3296         to decide whether to define __arm__ or __thumb.
3297         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3298         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3300 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3302         * config/arc/arc.h (CPP_PREDEFINES): Remove.
3303         (CPP_SPEC): Update.
3304         (TARGET_CPU_CPP_BUILTINS): New.
3306 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3308         * cpphash.h (cpp_macro): Move here, and make expansion a union.
3309         * cppmacro.c (cpp_macro): Remove.
3310         (enter_macro_context, replace_args, warn_of_redefinition,
3311         _cpp_create_definition, cpp_macro_definition): Update.
3313 2002-05-16  Jason Merrill  <jason@redhat.com>
3315         * config/mips/mips.c (mips_output_external): Don't do sdata
3316         optimization for a variable with DECL_COMDAT set.
3318 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3320         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3321         Cleanups for accepting modifiers on pointers.
3322         Fix predicate typos.
3323         Allow long pointers as well as int pointers.
3325 2002-05-15  Richard Henderson  <rth@redhat.com>
3327         * varasm.c (merge_weak): Remove special case for extern and common.
3329 2002-05-15  Matt Hiller  <hiller@redhat.com>
3331         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3332         XFAILing.
3333         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3334         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3335         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3336         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3337         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3338         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3340 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3342         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3344 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3346         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3347         ("altivec_mfvscr"): Read from VSCR.
3349         Add vscr sets for the following insns: altivec_vctuxs,
3350         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3351         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3352         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3353         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3354         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3355         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3356         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3357         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3358         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3359         altivec_vsum2sws, altivec_vsumsws.
3361         * config/rs6000/rs6000.h: Add VSCR fixed register.
3362         (CALL_REALLY_USED_REGISTERS): Add vscr.
3363         (CALL_USED_REGISTERS): Same.
3364         (FIXED_REGISTERS): Same.
3365         (REG_ALLOC_ORDER): Same.
3366         (reg_class): Add VSCR_REGS.
3367         (REG_CLASS_NAMES): Same.
3368         (REG_CLASS_CONTENTS): Same.
3369         (VSCR_REGNO): New.
3370         (REGISTER_NAMES): Add vscr.
3371         (DEBUG_REGISTER_NAMES): Same.
3372         (ADDITIONAL_REGISTER_NAMES): Same.
3373         (FIRST_PSEUDO_REGISTER): Increment.
3374         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3376 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
3378         * fold-const.c (fold): Fix a typo.
3380 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
3382         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3383         comparison against the highest or lowest integer value before
3384         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3385         transformation and that of an unsigned comparison against 0
3386         right after.
3388 2002-05-15  Richard Henderson  <rth@redhat.com>
3390         * varasm.c (merge_weak): Error for any weakening after definition.
3391         Adjust weakening after use warning to catch more cases.
3392         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3393         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3395 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
3397         * invoke.texi (-malign-double): Re-add lost warning.
3399         * i386-protos.h (x86_output_mi_thunk): Declare.
3400         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3401         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3403         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3404         when flag_asynchronous_unwind_tables is set.
3406         * flags.h (flag_reorder_functions): Declare.
3407         * function.c (prepare_function_start): Initialize frequnecy.
3408         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3409         * Makefile.in (predict.o): Add dependency on target.h and params.h
3410         * defaults.h (HOT_TEXT_SECTION_NAME,
3411         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3412         * predict.c (choose_function_section): New function.
3413         (estimate_bb_frequencies): Use it.
3414         * toplev.c (flag_reorder_functions): New global variable.
3415         (lang_independent_options): New.
3416         (parse_options_and_default_flags): Set.
3417         * varasm.c (assemble_start_function): Bypass functdion alignment
3418         for never executed functions.
3419         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3420         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3421         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3422         Document.
3424         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3426         * predict.c: Inlude profile.h
3427         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3428         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3429         Use the information about maximal counter in the program.
3431         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3433         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3434         probably_never_executed_bb_p): New functions.
3435         * cfgcleanup.c (outgoing_edges_match): Use them.
3436         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3437         (maybe_hot_bb_p, probably_cold_bb_p,
3438         probably_never_executed_bb_p): New functions.
3440         * function.h (function): Add new field function_frequency.
3441         * predict.c (compute_function_frequency): New function.
3442         (estimate_probability): Call it.
3444 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3446         PR optimization/5172, optimization/5200
3447         * gcse.c (gcse_main): Disable store_motion.
3449 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
3451         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3452         (c_common_nodes_and_builtins): Use it.
3453         (builtin_define_with_value): New function.
3454         (cb_register_builtins): Define __SIZE_TYPE__,
3455         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3456         using builtin_define_with_value.  Use consistent notation when
3457         defining __GXX_WEAK__.
3458         (WCHAR_TYPE_SIZE): Don't redefine.
3459         (combine_strings): Don't use WCHAR_TYPE_SIZE.
3461         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3462         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3463         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3464         * tradcpp.c (initialize_builtins): Likewise.
3465         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3467         * c-lex.h (builtin_define_with_value): Prototype.
3468         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3469         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3470         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3472         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3473         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3474         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3475         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3476         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3477         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3478         config/sparc/sol2-bi.h, config/sparc/sparc.h:
3479         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
3480         to __SIZE_TYPE__ etc from all spec strings. When this makes
3481         extra specs empty, delete them.
3483 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3485         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3486         for PA8000 or generating dwarf2 call frame information.
3487         (output_call): Remove DO_FRAME_NOTES check from return pointer
3488         optimization.
3489         (following_call): Return 0 when scheduling for PA8000 or generating
3490         dwarf2 call frame information.  Revise comment.
3492 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3494 config/alpha:
3495         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3496         and __IEEE_FP_INEXACT as appropriate.
3497         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3498         (CPP_SPEC): Remove ieee defines.
3499         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3501 2002-05-14  Richard Henderson  <rth@redhat.com>
3503         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3504         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3506 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3508         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3509         (CPP_SPEC): Update.
3510         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3511         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3512         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3513         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3514         (EXTRA_SPECS): Update.
3515         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3516         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3517         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3518         define TARGET_OS_CPP_BUILTINS if necessary.
3520 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3522         * gcc.c (cpp_options): Must pass -m* and -f* options
3523         to the front end even when only preprocessing.
3524         (cc1_options): Remove redundant -lang-c.
3525         * tradcpp.c (main): Ignore -m options.
3526 objc:
3527         * lang-specs.h: Similarly.
3529 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3531         * genautomata.c (transform_3): Add code for transformation
3532         `(A,B,...)+C -> A+C,B,...'.
3534 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3536         * final.c (end_final): Do not output profile_arcs constructor, when
3537         no functions are instrumented.
3539 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3541         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3543 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3545         * doc/install.texi: Remove special markup originally required for
3546         HTML generation with texi2html.
3548 2002-05-14  Andreas Schwab  <schwab@suse.de>
3550         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3551         SELECT_SECTION.
3552         (UNIQUE_SECTION): Define to get small data correctly.
3554         * varasm.c (resolve_unique_section): Add third parameter
3555         flag_function_or_data_sections and use it instead of
3556         flag_function_sections.
3557         (assemble_start_function): Pass flag_function_sections.
3558         (asm_emit_uninitialised): Pass flag_data_sections.
3559         (assemble_variable): Likewise.
3561 2002-05-14  Richard Henderson  <rth@redhat.com>
3563         * config/i386/i386.md: Use define_constants for unspec numbers.
3564         * config/i386/i386.c: Likewise.
3566 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3568         * doc/contrib.texi: Update my entry.
3570 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3572         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3573         * fixinc/fixincl.x: Regenerated.
3574         * fixinc/tests/base/math.h: Update.
3575         * fixinc/tests/base/testing.h: Likewise.
3577 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3579         * genattr.c (gen_attr): Don't emit a comma after the last
3580         enumerator.
3582 2002-05-13  Richard Henderson  <rth@redhat.com>
3584         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3585         by non-local gotos.
3586         * recog.c (peephole2_optimize): Likewise.
3588 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3590         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3591         input to O_BINARY.
3593 2002-05-13  Jeffrey A Law  (law@redhat.com)
3595         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3596         Update prototype and callers.
3597         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3598         the mem_set_list which reference the stack pointer, as do
3599         calls to constant functions as they may clobber outgoing
3600         argument space.
3602         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3604         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3605         (ia32_multipass_dfa_lookahead): New function.
3607 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3609         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3610         (translate_options): Remove 'V'.
3611         (process_command): Similarly.
3612 doc:
3613         * invoke.texi: Remove documentation of 'V'.
3615 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3617         * config/s390/linux.h: Revert 2002-04-22 changes.
3619 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3621         * config/fr30/fr30.md: Only allow splits of immediate loads
3622         if the destination is a register.
3624 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3626         * Makefile.in (c-common.o, cppinit.o): Update.
3627         * c-common.c: Include except.h.
3628         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3629         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3630         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3631         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3632         CPP_PREDEFINES): Handle here.
3633 config:
3634         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3635         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3636         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3637         TARGET_OS_CPP_BUILTINS.
3638         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3639         (CPP_SPEC, EXTRA_SPECS): Update.
3640         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3641         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3642         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3643         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3644         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3645 doc:
3646         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3647         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3649 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3651         * emit-rtl.c (global_rtl): Update comment.
3652         (const_double_htab, const_double_htab_hash,
3653         const_double_htab_hash, lookup_const_double): New.
3654         (const_int_htab_hash, const_int_htab_eq): Remove const
3655         qualifiers, which cause tons of warnings with RTL checking on.
3656         (gen_rtx_CONST_DOUBLE): Deleted.
3657         (const_double_from_real_value): New function - bears some
3658         resemblance to the former immed_real_const_1.
3659         (immed_double_const): Moved here from varasm.c and
3660         simplified.
3661         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3662         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3663         (gen_rtx): Use immed_double_const.
3664         (init_emit_once): Initialize the const_double_htab.  Use
3665         REAL_VALUE_FROM_INT where possible.  Can now use
3666         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3667         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3668         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3669         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3670         (init_varasm_status, mark_varasm_status): Don't touch
3671         x_const_double_chain.
3673         * output.h: Delete prototype for clear_const_double_mem.
3674         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3675         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3676         const_double_from_real_value, not immed_real_const_1, and use
3677         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3678         CONST_DOUBLE_ATOF.
3679         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3680         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3681         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3682         (gen_rtx_REG): Second arg is unsigned.
3684         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3685         (excluded_rtx): New, return true for CONST_DOUBLE.
3686         (genmacro): Write nothing for excluded codes.
3687         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3688         * expr.c (expand_expr): Likewise.
3689         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3690         CONST_DOUBLE_CHAIN.
3691         * toplev.c (rest_of_compilation): Don't call
3692         clear_const_double_mem.
3694         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3695         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3696         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3697         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3698         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3699         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3700         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3701         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3703 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3705         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3707 2002-05-12  Tom Tromey  <tromey@redhat.com>
3709         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3711 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3713         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3714         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3715         * gensupport.h: Prototype new routines.
3716         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3717         use of printf.
3718         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3719         (next_comma_elt): Use scan_comma_elt.
3721         * config/i386/i386.md: Use new attribute notation to break up
3722         long lines in define_attr forms.
3724 2002-05-12  Richard Henderson  <rth@redhat.com>
3726         * expr.c (compress_float_constant): New.
3727         (emit_move_insn): Use it.
3728         (float_extend_from_mem): New.
3729         (init_expr_once): Initialize it.
3730         * real.c (exact_real_truncate): New.
3732         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3733         dropped into memory; penalize for size.
3734         (RTX_COSTS): FLOAT_EXTEND is free.
3735         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3736         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3738 2002-05-12  Richard Henderson  <rth@redhat.com>
3740         * profile.h (profile_info): Add missing extern to declaration.
3741         * profile.c (profile_info): Define it.
3743 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3745         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3746         used for DImode and TImode.
3748 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3750         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3751         fake a newline.
3753 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3755         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3756         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3757         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3758         (rs6000_override_options): Handle -m(no-)longcall.
3759         (init_cumulative_args, output_mi_thunk): Check for both
3760         longcall and shortcall attributes on the function.
3761         (rs6000_attribute_table): Add "shortcall".
3762         (rs6000_handle_longcall_attribute): Update comment.
3763         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3764         altivec_expand_ternop_builtin): Add default clauses to switches
3765         to silence warnings.
3767         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3768         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3769         (TARGET_OPTIONS): Add longcall and no-longcall.
3771         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3772         call_value_nonlocal_sysv): Split by alternatives.  One pair
3773         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3774         the call cookie.  The other pair accepts only LR/CTR and has
3775         no restriction.
3777         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3778         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3779         tmake_file.
3780         * config/rs6000/rs6000-c.c: New file.
3781         * config/rs6000/t-rs6000-c-rule: New file.
3782         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3783         Prototype rs6000_pragma_longcall.
3785         * doc/extend.texi: Document shortcall attribute.
3786         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3788 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3790         * reorg.c (dbr_schedule): Remove unnecessary test.
3792 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3794         * i386.md (testsi to testqi spliters): New.
3796         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3798         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3800         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3802         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3803         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3804         that can be made fallthru.
3806         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3808         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3809         (cfg_layout_initialize): Use it.
3811 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3813         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3814         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3815         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3817 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3819         * dbxout.c: Fix formatting.
3820         * dependence.c: Likewise.
3821         * df.c: Likewise.
3822         * diagnostic.c: Likewise.
3823         * doloop.c: Likewise.
3824         * dominance.c: Likewise.
3825         * doschk.c: Likewise.
3826         * dwarf2asm.c: Likewise.
3827         * dwarf2out.c: Likewise.
3828         * dwarfout.c: Likewise.
3830 2002-05-10  Richard Henderson  <rth@redhat.com>
3832         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3833         Convert integers constants as needed.  Replace "nwords" field with
3834         "sizeof_bb".
3835         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3836         * function.h: Fix typo in comment.
3837         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3839 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3841         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3842         into the equivalent (signed char)c > 0.
3844 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3846         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3847         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3848         (struct prefetch_info): Fix spelling of member bytes_accessed.
3849         (emit_prefetch_instructions): Make dump messages more regular;
3850         restructure code to add more dump messages; use new macros for
3851         heuristics. (There are no code generation changes in any of this).
3853 2002-05-10  David S. Miller  <davem@redhat.com>
3855         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3856         (struct rtx_def): Update unchanging flag comment.
3857         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3858         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3859         to be handled to INSN too.
3860         (dbr_schedule): Likewise.
3861         * resource.c (next_insn_no_annul): Likewise.
3863         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3864         casing.
3866 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3868         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3869         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3870         (possibly) work around broken /bin/sh.
3872 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3874         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3875         . as N64/N32 libgcc_s.so subdirs.
3877 2002-05-10  David S. Miller  <davem@redhat.com>
3879         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3881         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3882         more accurately.
3883         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3884         comment.
3885         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3886         * doc/rtl.texi: Document these macros more accurately.
3887         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3888         JUMP_INSNs and CALL_INSNs.
3889         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3890         or INSN_FROM_TARGET_P if the code is appropriate.
3892 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3894         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3895         before using SYMBOL_REF_FLAG (addr).
3897         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3898         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3899         Make non-static.  Update all callers.
3900         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3901         New insns to clear/set/test a single bit in I/O address space.
3903 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3905         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3907 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3909         * Makefile.in: Update.
3910         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3911         builtin_define_std): New.
3912         (c_common_init): Register CPP builtins callback.
3913         * c-common.h (flag_iso, flag_undef): New.
3914         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3915         * c-lex.c: Don't include target.h.
3916         (cb_register_builtins): Move to c-common.c.
3917         (init_c_lex): Don't register hook here.
3918         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3919         (cpp_define, cpp_assert): Remove.
3920         * gcc.c (cc1_options): Pass -undef to front end.
3921         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3922         (TARGET_INITIALIZER): Update.
3923         * target.h (struct cpp_reader): Don't predeclare.
3924         (struct gcc_target): Remove cpp builtin hook.
3925         * tree.c (default_register_cpp_builtins): Remove.
3926 doc:
3927         * tm.texi: Update.
3929 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3931         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3933 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3935         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3936         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3938 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3940         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3941         * config/sparc/libgcc-sparc-glibc.ver: New file.
3942         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3943         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3945 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3947         PR target/6429
3948         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3949         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3950         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3951         base multilibs.
3952         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3953         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3954         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3955         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3957 2002-05-09  Richard Henderson  <rth@redhat.com>
3959         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3960         * config/ia64/ia64.c: Likewise.
3962 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3964         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3965         (save_restore_insns): Likewise.
3966         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3967         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3969 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3971         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3972         * i386.md: Move scheduling information into new files.
3974         * i386.md (type attribute): Add "rotate" for rotate insns.
3975         (rotate insns): Set type to "rotate".
3976         (various attributes and function units): Treat rotate like shift.
3977         (pent_pair attribute): Only rotates by one bit position are
3978         pairable.
3979         (sbb insns): Explicitly set pent_pair attribute on a couple
3980         that were missing it.
3982 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3984         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3985         make sure that buffer starts on odd word address.
3986         (sh_va_arg): Skip odd fp registers when reading a double precision
3987         value.
3989 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3991         * tree.h (preserve_data, object_permanent_p, type_precision):
3992         Remove.
3994 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3996         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3997         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3998 doc:
3999         * cpp.texi: Update for removal of obsolete features.
4001 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
4002                           Jeffrey A Law  (law@redhat.com)
4004         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
4005         the DFA interface for Pentium processors.
4006         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
4007         (attr_pent_pair, ix86_pent_find_pair): Remove.
4008         (ix86_sched_reorder_pentium): Remove.
4009         (ix86_sched_reorder): Remove reordering for Pentium.
4010         * i386.md (Pentium scheduling): Rewrite using DFA description.
4012 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
4014         * cfganal.c (can_fallthru): Fix fast path.
4015         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
4016         with edges to the next block.
4018 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
4019                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
4021         * final.c (end_final): Use C trees to output data structures for profiling.
4023         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
4024         (profile.o): New dependency profile.h
4025         (final.o): New dependency profile.h
4026         * profile.h: New file. New global structure profile_info.
4027         * final.h (count_edges_instrumented_now): Declare.
4028         (current_function_cfg_checksum): Declare.
4029         (function_list): New structure.
4030         (functions_head, functions_tail): New static variables.
4031         (end_final): Emits more data, removed some -ax stuff.
4032         (final): Stores function names and chcksums.
4033         * gcov-io.h (__write_gcov_string): New function.
4034         (__read_gcov_string): New function.
4035         * gcov.c (read_profile): New function.
4036         (create_program_flow_graph): Uses read_profile instead of reading
4037         da_file.
4038         (read_files): Removed da_file checking, it's done by read_profile now.
4039         * libgcc2.c (bb_function_info): New structure.
4040         (bb): New field in structure, removed some -ax stuff.
4041         (__bb_exit_func): Changed structure of da_file.
4042         * profile.c (count_edges_instrumented_now): New global variable.
4043         (current_function_cfg_checksum): New global variable.
4044         (max_counter_in_program): New global variable.
4045         (get_exec_counts): New function.
4046         (compute_checksum): New function.
4047         (instrument_edges): Sets count_edges_instrumented_now.
4048         (compute_branch_probabilities): Uses get_exec_counts instead of
4049         reading da_file.
4050         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
4051         (init_branch_prob): Removed da_file checking, done in get_exec_counts
4052         now.
4053         (end_branch_prob): Removed da_file checking, done in get_exec_counts
4054         now.
4055         * gcov.texi: Updated information about gcov file format.
4057 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
4059         * sbitmap.c: Fix formatting.
4060         * scan.c: Likewise.
4061         * scan-decls.c: Likewise.
4062         * sched-deps.c: Likewise.
4063         * sched-ebb.c: Likewise.
4064         * sched-rgn.c: Likewise.
4065         * sched-vis.c: Likewise.
4066         * sdbout.c: Likewise.
4067         * sibcall.c: Likewise.
4068         * simplify-rtx.c: Likewise.
4069         * ssa.c: Likewise.
4070         * ssa-ccp.c: Likewise.
4071         * ssa-dce.c: Likewise.
4072         * stmt.c: Likewise.
4073         * stor-layout.c: Likewise.
4074         * stringpool.c: Likewise.
4076 2002-05-09  David S. Miller  <davem@redhat.com>
4078         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
4080 2002-05-07  David S. Miller  <davem@redhat.com>
4082         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
4083         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
4084         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
4085         library implementation clobbers the output before the inputs
4086         are fully consumed, use stack temporary for the output.
4088 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
4090         * config/netbsd.h (CPP_SPEC): Remove.
4091         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
4092         * config/i386/netbsd.h (CPP_SPEC): Define.
4093         * config/ns32k/netbsd.h (CPP_SPEC): Define.
4094         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
4095         * config/sparc/netbsd.h (CPP_SPEC): Define.
4096         * config/vax/netbsd.h (CPP_SPEC): Define.
4098 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
4100         * read-rtl.c: Fix formatting.
4101         * real.c: Likewise.
4102         * recog.c: Likewise.
4103         * regclass.c: Likewise.
4104         * regmove.c: Likewise.
4105         * reg-stack.c: Likewise.
4106         * reload1.c: Likewise.
4107         * reload.c: Likewise.
4108         * resource.c: Likewise.
4109         * rtlanal.c: Likewise.
4110         * rtl.c: Likewise.
4111         * rtl-error.c: Likewise.
4113 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4115         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
4116         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
4118 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
4120         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
4121         use __SSE2__ macro instead.
4122         * config/i386/xmmintrin.h: Likewise.
4124 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
4126         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
4127         and use it in all invocations of these macros.  Clean up comments.
4128         * rtl.c (rtl_check_failed_flag): Add an argument for the name
4129         of the flag access macro whose check failed.
4130         * doc/rtl.texi (Flags): Document additional flag uses.
4132 2002-05-08  Robert Spier <rspier@pobox.com>
4133             Neil Booth  <neil@daikokuya.demon.co.uk>
4135         PR preprocessor/6521
4136         * cppfiles.c (handle_missing_header): Don't do anything
4137         different for <> includes.
4138 doc:
4139         * cppopts.texi: Update documentation for -MG.
4141 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4143         * cpplex.c (cpp_interpret_charconst): Truncate as well as
4144         sign-extend.
4145 doc:
4146         * cpp.texi: Clarify multichar charconst valuation.
4148 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4150         * doc/invoke.texi: Document -mwindiss option.
4152 2002-05-08  Jason Merrill  <jason@redhat.com>
4154         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
4156         * dwarf2out.c (gen_type_die): Abort on broken recursion.
4158         PR c++/6381
4159         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
4160         REAL_CST.
4162 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
4164         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
4165         little-endian multilibs to override arm/thumb multilibs.
4166         Do not build hardware floating point multilibs, nor apcs-26
4167         multilibs for the Thumb.
4169 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4171         PR c/6569.
4172         * varasm.c (mark_weak): New function.
4173         (merge_weak): Use it.  Do not call declare_weak.
4174         (declare_weak): Use merge_weak.
4176 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4178         * cse.c (dead_libcall_p): Update counts.
4179         (delete_trivially_dead_insns): Update call of dead_libcall_p.
4181 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
4183         * cfglayout.c (function_tail_eff_head): Rename to ...
4184         (function_footer): ... this one.
4185         (unlink_insn_chain): New functions.
4186         (label_for_bb): Only call block_label and emit debug message.
4187         (record_effective_endpoints): Actually unlink the headers and footers.
4188         (fixup_reorder_cahin): Re-insert the unlinked sequences.
4189         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
4190         * cfglayout.h (struct reorder_block_def): New fields footer/header;
4191         remove eff_head/eff_end.
4192         * rtl.h (set_first_insn): Declare.
4193         * emit-rtl.c (set_first_insn): New function.
4195         * cfglayout.c (fixup_reorder_chain): Dump duplicated
4196         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4197         cfg_layout_duplicate_bb): New global function.
4198         (duplicate_insn_chain): New static function.
4199         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4200         cfg_layout_duplicate_bb): Declare.
4201         (struct reorder_block_def): Add "original" field.
4202         * emit-rtl.c (emit_copy_of_insn_after): New function.
4203         * rtl.h (emit_copy_of_insn_after): Declare.
4205         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
4206         (fixup_reorder_chain): properly handle edges to exit block.
4208 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4209                                Jan Hubicka  <jh@suse.cz>
4211         * basic-block.h (note_prediction_to_br_prob): declare.
4212         * c-semantics.c: Inlucde predit.h
4213         (expand_stmt): predict GOTO_STMT as not taken.
4214         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4215         (cleanup_cfg): Do not free tail_recursion_list.
4216         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4217         (flow_delete_block): Kill predictions past end of basic block.
4218         * output.h (delete_unreachable_blocks): Declare.
4219         * predict.c (predicted_by_p, process_note_predictions,
4220         process_note_prediction, last_block_p): New function.
4221         (estimate_probability): Bypass loop on PRED_CONTINUE;
4222         do not handle noreturn heuristics; kill PRED_RETURN; add
4223         PRED_EARLY_RETURN.
4224         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4225         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4226         * predict.h (IS_TAKEN): New constant.
4227         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4228         * rtl.c (NOTE_INSN_PREDICTION): New.
4229         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4230         New macro.
4231         (insn_note): add NOTE_INSN_PREDICTION.
4232         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4233         CFG; free tail_recursion_label_list.
4234         * stmt.c: Include predict.h;
4235         (return_prediction): New.
4236         (expand_value_return): Use it.
4237         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4239 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
4241         * config/mips/mips.md: Name the unspecs with define_constant.
4242         (*HILO_delay): Rename to 'hilo_delay' (no star).
4243         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4244         (reload_outdi, reload_outsi): Likewise.
4246 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
4248         * toplev.c: Fix formatting.
4250 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
4252         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4253         * configure.in (ac_rtlflag_checking): New.
4254         * doc/install.texi (--enable-checking): Document RTL flag checking.
4256 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4258         * c-common.c (c_common_init): Set options->unsigned_wchar.
4259         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4260         group target dependencies.
4261         (init_builtins, cpp_handle_option): Update.
4262         * cpplex.c (cpp_interpret_charconst): Update.
4263         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4264         signed_char to unsigned_char, group target dependencies.
4265         * defaults.h (WCHAR_UNSIGNED): Remove.
4266         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4267 config:
4268         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4269         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4270         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4271         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4272         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4273 doc:
4274         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4276 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4278         * fixinc/inclhack.def (windiss_math1): New fix.
4279         (windiss_math2): Likewise.
4280         (windiss_valist): Likewise.
4281         * fixinc/fixincl.x: Regenerated.
4283 2002-05-07  Andreas Jaeger  <aj@suse.de>
4285         * genautomata.c (output_internal_min_issue_delay_func): Add
4286         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4287         (output_internal_trans_func): Likewise.
4289 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
4291         * pa.c (hppa_profile_hook): Use force_reg to get the address
4292         of the profile hook into an appropriate pseudo register.
4294 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4296         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4297         (LINK_START_SPEC): Handle it.
4298         (LINK_OS_SPEC): Likewise.
4299         (CPP_SPEC): Likewise.
4300         (STARTFILE_SPEC): Likewise.
4301         (LIB_SPEC): Likewise.
4302         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
4303         all platforms.
4304         (CRTSAVRES_DEFAULT_SPEC): New macro.
4305         (LIB_WINDISS_SPEC): New macro.
4306         (CPP_OS_WINDISS_SPEC): Likewise.
4307         (STARTFILE_WINDISS_SPEC): Likewise.
4308         (ENDFILE_WINDISS_SPEC): Likewise.
4309         (LINK_START_WINDISS_SPEC): Likewise.
4310         (LINK_OS_WINDISS_SPEC): Likewise.
4311         * config/rs6000/windiss.h: New file.
4313 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
4315         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4317 2002-05-06  David S. Miller  <davem@redhat.com>
4319         * config/sparc/sparc.md (shift insns): Do not mask off
4320         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4321         take care of it.
4323 2002-05-06  Richard Henderson  <rth@redhat.com>
4325         PR c++/6212
4326         * expr.c (highest_pow2_factor_for_type): New.
4327         (expand_assignment): Use it.
4329 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
4331         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4332         unspec_volatile.
4333         ("altivec_mfvscr"): Same.
4335 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4337         * rtl.h (struct rtx_def): Update comments.
4338         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
4339         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
4340         RTL_FLAG_CHECK macros with list of expected RTL codes.
4341         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4342         (rtl_check_failed_flag): New.
4343         * reload1.c (reload): Use REG macro before changing rtx to MEM.
4344         (reload_cse_noop_set_p): Check rtx code before using access macro.
4345         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4346         before using access macro.
4348 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4350         * doc/rtl.texi (Flags): Update to reflect current usage.
4352 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4354         PR opt/3995
4355         * fold-const.c (sign_bit_p): New function.
4356         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4357         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4358         Reapply fold when converting (A & C) == C into (A & C) != 0.
4359         (fold_binary_op_with_conditional_arg): Fix typo in comment.
4361 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4363         * c-common.c (warn_multichar): New.
4364         (c_common_init): Set CPP's warn_multichar.
4365         * c-common.h (warn_multichar): New.
4366         * c-decl.c (warn_multichar): Remove.
4367         * c-lex.c (lex_charconst): Update.
4368         * c-tree.h (warn_multichar): Remove.
4369         * cppexp.c (eval_token): Sign-extend charconst value.
4370         * cppinit.c (cpp_create_reader): Set warn_multichar.
4371         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4372         each character.  Update prototype.  Sign-extend the result.
4373         * cpplib.h: Fix conditions.
4374         (struct cpp_options): Add new warning flag.
4375         (cpp_interpret_charconst): Update prototype.
4376 doc:
4377         * cpp.texi: Update documentation.
4379 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
4381         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4382         Fix typo in usage of allof instead of unit.
4384 2002-05-06  Richard Henderson  <rth@redhat.com>
4386         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4387         and any jump or call for IN.
4389 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
4391         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4392         -msse2.
4393         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4395 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4397         * fold-const.c (lshift-double): Cast the high word to an unsigned
4398         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4399         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4400         avoid compiler warning.  (fold): Remove redundant code from
4401         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4403 2002-05-06  Jeff Law  <law@redhat.com>
4405         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4406         * pa.c (pa_adjust_cost): Remove all true dependency cost
4407         adjustments.  Also remove support for non-DFA scheduling.
4408         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4409         to adjust true dependency costs.  Update various comments.
4410         (7100lc, 7200, 7300 scheduling): Simplify by combining the
4411         FP ALU & MPY units into a single unit.
4413 2002-05-06  Catherine Moore  <clm@redhat.com>
4415         * config/v850/v850.c (compute_register_save_size): Make sure
4416         to count all of the registers that will be saved.
4418 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4420         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4422 2002-05-06  David S. Miller  <davem@redhat.com>
4424         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4425         allow result to overlap input operands in memory.
4427 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4429 doc:
4430         * cpp.texi: Update multichar charconst docs.
4432 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4434         * cpplex.c (cpp_interpret_charconst): Sign-extend each
4435         character.  Don't ignore excess characters.  Treat
4436         multicharacter character constants as signed.
4437         (cpp_parse_escape): Clarify diagnostic.
4439 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4441         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4442         use add instead of shift.
4443         (ashldi3_sp64): Likewise.
4444         (ashlsi3_const1, ashldi3_const1): Remove.
4445         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4446         * config/sparc/sparc.c (const1_operand): New.
4448 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
4450         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4452 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4454         PR target/6561
4455         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4457 2002-05-05  Richard Henderson  <rth@redhat.com>
4459         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4460         memory latency adjustments.
4461         (alpha_variable_issue): Remove.
4462         (alpha_use_dfa_pipeline_interface): New.
4463         (alpha_multipass_dfa_lookahead): New.
4464         * config/alpha/alpha.md: Remove define_function_unit scheduling;
4465         include new dfa scheduling.
4466         (attr type): Add none.
4467         (blockage): Use it.
4468         * config/alpha/ev4.md: New.
4469         * config/alpha/ev5.md: New.
4470         * config/alpha/ev6.md: New.
4472 2002-05-05  David S. Miller  <davem@redhat.com>
4474         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4476 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
4478         * cse.c: Fix formatting.
4479         * emit-rtl.c: Likewise.
4481 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4483         * genautomata.c (initiate_states): Add additional guard to
4484         initialize `units_array'.
4486 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4488         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4489         process_unit_to_form_the_same_automaton_unit_lists,
4490         form_the_same_automaton_unit_lists
4491         check_unit_distributions_to_automata): New prototypes and
4492         functions.
4493         (check_automata): Rename it into `check_automata_insn_issues'.
4494         (unit_decl): New fields `the_same_automaton_unit' and
4495         `the_same_automaton_message_reported_p'.
4496         (unit_decl_t): New typedef.
4497         (the_same_automaton_lists): New gloval variable.
4498         (unit_regexp, unit_set_el, units_array, units_cmp,
4499         output_get_cpu_unit_code_func): Use the typedef.
4500         (evaluate_max_reserv_cycles): Increment
4501         `description->max_insn_reserv_cycles'.
4502         (initiate_states): Don't increment `max_cycles_num'.
4503         (transform_insn_regexps): Move code around transformation of
4504         regexps from `generate'.
4505         (generate): Remove call of `transform_insn_regexps'.
4506         (expand_automata): Call `transform_insn_regexps' and
4507         `check_unit_distributions_to_automata'.  Check errors before
4508         `generate'.
4510         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4511         automaton `ultrasparc3_1'.
4513 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4515         * c-common.c (c_common_init): Set up CPP arithmetic.
4516         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4517         something reasonable for the host.
4518         (sanity_checks): Add checks.
4519         (cpp_read_main_file): Call sanity_checks() from here...
4520         (cpp_post_options): ... not here.
4521         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4522         * cpplib.h (struct cpp_options): New member int_precision.
4524 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4526         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4528 2002-05-04  David S. Miller  <davem@redhat.com>
4530         * config/sparc/linux.h, config/sparc/linux64.h
4531         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4533         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4534         more RTX codes.
4535         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4537         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4538         of SETs.
4540 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4542         * treelang; New directory for new sample language treelang.
4544 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4546         * Makefile.in (c-lex.o): Update.
4547         * c-lex.c: Include target.h.
4548         (cb_register_builtins): New.
4549         (init_c_lex): Set builtins callback.
4550         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4551         * cppinit.c (init_builtins): Use callback, including for
4552         GXX_WEAK.
4553         * cpplib.h (struct cpp_callbacks): New member.
4554         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4555         (TARGET_INITIALIZER): Update.
4556         * target.h (struct gcc_target): New hook.
4557         * tree.c (default_register_cpp_builtins): New.
4558         * tree.h (default_register_cpp_builtins): New.
4559 doc:
4560         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4562 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4564         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4565         (cpp_post_options): Move sanity checks to...
4566         (sanity_checks): New.
4567         * cpplex.c (maybe_read_ucs): Fix prototype.
4568         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4569         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4570         if necessary.
4572 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4574         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4575         builtins.  Use V2DI patterns instead of TI for logical operations.
4576         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4577         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4578         (ix86_expand_builtins): Change the pattern used for movntdq.
4579         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4580         sse2_nandv2di3): New patterns.
4581         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4582         on operands.
4583         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4584         (cvtdq2pd): Correct mode on operand 1.
4585         (sse2_umulsidi3): Describe without unspec.
4586         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4587         machine modes.
4588         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4589         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4590         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4591         ashlv4si3, ashlv2di3): Use SImode for shift count.
4592         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4593         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4594         New patterns.
4595         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4596         New typedefs.
4597         (__m128i, __m128d): New macros.
4598         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4599         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4600         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4601         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4602         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4603         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4604         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4605         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4606         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4607         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4608         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4609         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4610         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4611         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4612         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4613         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4614         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4615         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4616         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4617         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4618         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4619         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4620         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4621         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4622         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4623         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4624         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4625         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4626         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4627         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4628         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4629         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4630         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4631         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4632         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4633         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4634         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4635         functions.
4636         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4637         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4639 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4641         * dwarf2out.c: Fix formatting.
4642         * varasm.c: Likewise.
4644 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4646         PR c/6543
4647         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4648         clobber and use result as temporary value.
4650 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4652         * expr.c (force_operand): Use expand_simple_* to handle more
4653         cases.
4655 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4657         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4658         and sign-extension.
4659         (lex_charconst): Update for change in prototype of
4660         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4661         appropriately.
4662         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4663         * cppinit.c (cpp_create_reader): Initialize them for no
4664         change in semantics.
4665         (cpp_post_options): Add sanity checks.
4666         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4667         and truncation issues.  Calculate in type cppchar_t.
4668         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4669         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4670         run-time dependent precision correctly.  Return whether the
4671         result is signed or not.
4672         * cpplib.c (dequote_string): Use cppchar_t; update.
4673         * cpplib.h (cppchar_signed_t): New.
4674         struct cpp_options): New precision members.
4675         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4676         * cppexp.c (eval_token): Update.
4678 2002-05-03  David S. Miller  <davem@redhat.com>
4680         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4681         * config/sparc/sparc.c (sparc_rtx_costs): New function
4682         implementing RTX_COSTS and CONST_COSTS.
4683         * config/sparc/sparc.h (CONST_COSTS): Delete.
4684         (RTX_COSTS_CASES): Define.
4685         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4686         the work.
4688         * config/sparc/sparc.md (DFA schedulers): Split out...
4689         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4690         config/sparc/sparclet.md, config/sparc/supersparc.md,
4691         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4693         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4694         checks on it, always defined for Sparc.
4696         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4697         Tweak, and add more detailed comments.
4699 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4701         * Re-apply patch accidentally reverted with
4702         DFA scheduler merge: remove all rules and variables to slurp
4703         source files out of libiberty and rebuild them with HOST_CC.
4704         ($(HOST_PREFIX_1)varray.o): New rule.
4705         (genattrtab rule): Word wrap.
4707 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4709         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4710         (CPP_SUBTARGET_SPEC): Define.
4711         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4712         cpp_subtarget specs.
4713         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4715 2002-05-03  David S. Miller  <davem@redhat.com>
4717         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4718         * target.h (struct gcc_target): Delete cycle_display member.
4720         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4721         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4722         (ia64_sched_reorder2): Mention need for cycle display handling
4723         once such notes exist.
4725 2002-05-03  Richard Henderson  <rth@redhat.com>
4727         * real.c (etoasc): Strip most trailing zeros for clarity.
4728         * sched-vis.c: Include real.h.
4729         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4730         * Makefile.in (sched-vis.o): Add real.h.
4732 2002-05-03  David S. Miller  <davem@redhat.com>
4734         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4735         no longer needed.
4737 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4739         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4740         when we get an out of range literal.
4741         (altivec_expand_ternop_builtin): Same.
4742         (altivec_expand_unop_builtin): Same.
4743         (altivec_expand_builtin): Same, for dss.
4744         (altivec_expand_builtin): Use trees instead of rtl when
4745         determining literal argument validity.
4747 2002-05-03  David S. Miller  <davem@redhat.com>
4749         Delete cycle display scheduling hook.
4750         * config/ia64/ia64.c (ia64_cycle_display,
4751         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4752         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4753         and use emit_insn_before instead of ia64_emit_insn_before.
4754         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4755         (cycle_display): Delete insn pattern.
4756         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4757         (cycle_display): Delete insn pattern.
4758         * config/sparc/sparc.c (sparc_cycle_display,
4759         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4760         * doc/md.texi (cycle_display): Don't mention.
4761         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4763 2002-05-03  Richard Henderson  <rth@redhat.com>
4765         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4766         * recog.h: Declare them.
4768         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4769         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4770         * config/sparc/sparc-protos.h: Update.
4772 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4774         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4775         -D__arch64__.  Add -D_LP64.
4776         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4777         from sparc.h.
4778         (CPP_ARCH64_SPEC): Likewise.
4779         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4780         (NO_BUILTIN_SIZE_TYPE): Undef.
4782 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4784         * genautomata.c (min_issue_delay_pass_states): Change return type
4785         in the prototype.
4786         (min_issue_delay_pass_states): Change the algorithm.
4787         (min_issue_delay): Set up min_insn_issue_delay for the state.
4788         (output_min_issue_delay_table): Interchange the nested loops and
4789         and initiate min_insn_issue_delay for states.
4791 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4793         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4794         jump is simplejump.
4796 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4798         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4799         sequence.
4801 2002-05-03  Richard Henderson  <rth@redhat.com>
4803         PR opt/6534
4804         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4805         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4806         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4807         code before JUMP, not EARLIEST.
4809 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4811         * c-format.c (check_format_info_main): Don't check for presence of
4812         parameter for * width until after operand number has been read,
4813         and only check for it if format parameters are available.
4814         Fixes PR c/6547.
4816 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4818         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4819         (LINK_SPEC): Undef before defining.
4821 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4823         PR preprocessor/6489
4824         * tradcpp.c (fixup_newlines): New.
4825         (main, finclude): Use it.
4827 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4829         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4830         * config/mips/mips.c (mips_unique_section): Strip encoding from
4831         decl name.
4833 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4835         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4836         mode.
4838 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4840         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4841         (Specific): Removed buildstats references.
4842         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4843         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4844         Accomodate Solaris versions beyond 8.
4845         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4846         (Specific, *-*-solaris2.8): Removed, obsolete.
4848 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4850         PR target/6542
4851         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4852         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4853         fill leaf_reg_remap with identity.
4854         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4856 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4858         * config/h8300/crti.asm: Remove trailing spaces.
4859         * config/h8300/h8300.c: Likewise.
4860         * config/h8300/lib1funcs.asm: Likewise.
4862 2002-05-02  Jason Merrill  <jason@redhat.com>
4864         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4865         * c-decl.c (c_init_decl_processing): Use it.
4866         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4867         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4868         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4870 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4872         * regrename.c: Fix formatting.
4873         * tree.c: Likewise.
4875 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4877         * i386.md (attribute memory): Handle compares properly.
4879 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4881         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4882         to none.
4884 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4886         * function.c: Fix formatting.
4888 2002-05-02  Jan Hubicka  <jh@suse.cz>
4890         * haifa-sched.c (schedule_insn): Print table of instructions and
4891         reservations.
4892         (sched_block): Do not print ready list at verbosity level 1.
4893         * sched-vis.c (print_insn): Make global.
4894         * sched-ebb.c (ebb_print_insn): Rename from...
4895         (print_insn): ... this one.
4896         * sched-int.h (print_insn): Declare
4898 2002-05-02  Richard Henderson  <rth@redhat.com>
4900         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4901         emitted by cycle_display.
4903 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4905         * doc/install.texi (*-*-freebsd*): Update to latest status.
4907 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4909         PR target/6540
4910         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4911         * config/float-sparc.h: Assume 128-bit long double if
4912         __LONG_DOUBLE_128__ is defined.
4914 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4916         * genattrtab.c (write_function_unit_info): Add a dummy element
4917         when num_units == 0.
4919 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4921         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4922         TYPE_MODE (double_type_node) instead of DFmode.
4924 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4926         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4927         jumps post reload.
4928         * toplev.c (rest_of_compilation): Revert Richard's patch.
4930 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4932         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4934 2002-05-02  Catherine Moore  <clm@redhat.com>
4936         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4938 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4940         * combine.c: Fix comment typos.
4941         * expr.c: Likewise.
4942         * genautomata.c: Likewise.
4943         * stmt.c: Likewise.
4944         * tree.h: Likewise.
4946 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4948         * doc/install.texi: State GNAT version requirements.
4950 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4952         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4953         of the frame pointer or arg pointer register which strict register
4954         checking is not enabled.
4956 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4958         * gcc.dg/altivec-8.c: New.
4960         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4961         PRE_INC and PRE_DEC for altivec modes.
4963 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4965         * fixinc/check.tpl(set-writable): make sure the function exists first
4966         * fixinc/inclhack.def(alpha_assert): fix test_text
4967         * fixinc/tests/base/assert.h: add in missing result
4969 2002-05-01  Jeff Law  <law@redhat.com>
4971         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4972         'T' constraint.
4974 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4976         * dbxout.c (dbxout_type): Emit size information for range types,
4977         as well, but only when using GDB extensions.
4979 2002-05-01  Richard Henderson  <rth@redhat.com>
4981         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4982         target-independent gnu binutils date test.
4984 2002-05-01  Richard Henderson  <rth@redhat.com>
4986         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4987         info before expunging the block.
4989 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4991         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4992         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4993         -M -or -MM is in effect.
4995 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4997         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4998         A29k configurations.
4999         * doc/install.texi: Update to match.
5001 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5003         PR bootstrap/6514
5004         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
5005         for duplicates. Always loop over whole list.
5007 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5009         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
5011 2002-05-01      Joel Sherrill <joel@OARcorp.com>
5013         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
5014         support routines.
5016 2002-05-01      Joel Sherrill <joel@OARcorp.com>
5018         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
5020 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
5022         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
5023         (nabs_nopower): Same.
5024         (floatdisf2): New pattern.
5025         (absdi2): Convert to define_insn_and_split.
5026         (nabsdi2): Same.
5027         (trunctfsf2): Same.
5028         (floatditf2): Same.
5029         (floatsitf2): Same.
5030         (fix_trunctfdi2): Same.
5031         (fix_trunctfsi2): Same.
5033 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
5035         * doc/install.texi: Update Texinfo version requirement
5036         documentation.
5038 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
5040         PR target/6512, PR target/5628
5041         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
5042         when memory is not aligned.
5043         (movdf_insn_v9only_vis): Likewise.
5044         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
5045         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
5046         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
5048 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
5050         * gcc.dg/altivec-7.c: New.
5052         * config/rs6000/altivec.h: Cleanup.
5054 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
5056         * doc/invoke.texi (Option Summary): Add -mvrsave=.
5057         (RS/6000 and PowerPC Options): Document -mvrsave=.
5059         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
5060         (rs6000_altivec_vrsave_string): Same.
5061         (rs6000_override_options): Call rs6000_parse_vrsave_option.
5062         (rs6000_parse_vrsave_option): New.
5063         (rs6000_stack_info): Only generate vrsave instructions when
5064         TARGET_ALTIVEC_VRSAVE.
5066         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
5067         (rs6000_altivec_vrsave_string): Define extern.
5068         (rs6000_altivec_vrsave): Same.
5069         (TARGET_ALTIVEC_VRSAVE): New.
5071 2002-04-30  Richard Henderson  <rth@redhat.com>
5073         PR opt/6516
5074         * toplev.c (rest_of_compilation): Don't run cross-jump before
5075         bb-reorder.
5077 2002-04-30  Tom Rix  <trix@redhat.com>
5079         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
5080         check which_alternative.
5082 2002-04-30  Kazu Hirata  <kazu@hxi.com>
5084         * cpplex.c: Fix comment formatting.
5085         * function.c: Likewise.
5086         * integrate.c: Likewise.
5087         * regrename.c: Likewise.
5088         * sibcall.c: Likewise.
5089         * simplify-rtx.c: Likewise.
5090         * tree-inline.c: Likewise.
5092 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5094         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
5095         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
5096         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
5097         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
5098         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
5099         * pa/x-ada: New file.  Define ADA_CFLAGS.
5101 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
5103         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
5104         from MMIX_LAST_REGISTER_FILE_REGNUM.
5105         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
5106         (struct machine_function): New member highest_saved_stack_register
5107         previously static variable in mmix.c.
5108         (MACHINE_DEPENDENT_REORG): Define.
5109         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
5110         (MMIX_OUTPUT_REGNO): New.
5111         (mmix_target_asm_function_prologue): Move calculation of last used
5112         saved-stack-register into...
5113         (mmix_machine_dependent_reorg): New function.  Update to also handle
5114         !TARGET_ABI_GNU.
5115         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
5116         register names, simplify somewhat by new variable regno.
5117         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
5118         register.
5119         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
5120         emitting register names.
5121         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
5122         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
5123         Remove fixed FIXME.
5124         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
5125         Declare.
5127         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
5129 2002-04-30  Richard Henderson  <rth@redhat.com>
5131         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5132         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
5133         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
5134         emit_tfmode_cvt): New.
5135         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
5136         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
5137         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
5138         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
5139         * config/sparc/sparc-protos.h: Update.
5141 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
5143         * install.texi (Final install): Add to the list of info to include
5144         in a report of a successful bootstrap, and add link to 3.1 list.
5146 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
5148         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
5149         (mode): Add vector modes
5150         (i387): Kill attribute.
5151         (unit): New attribute.
5152         (length_immediate): Grok new types.
5153         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
5154         (modrm): Use "unit".
5155         (memory): Handle MMX/SSE properly.
5156         (scheduling descriptions): Kill uses of fop1.
5157         (sse, mmx, fp patterns): Set type and mode properly.
5159 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
5161         * pa.c (override_options): Default to PA8000 scheduling.
5162         * doc/invoke.texi (HP-PA options): Mention newly added 7300
5163         scheduling parameter.
5165         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
5166         handling of double precision multiplies.
5168         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
5169         fpdiv and fpsqrt instructions.
5170         (7200 & 7300 scheduling): Fix typo in handling of
5171         store-load and store-store penalties.
5173 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5175         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
5176         mips.  Add two missing commas.
5178 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
5180         * doc/contrib.texi (Contributors): Update Paolo Carlini's
5181         and Benjamin Kosnik's entries.
5183 2002-04-29  David S. Miller  <davem@redhat.com>
5185         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
5186         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5187         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
5188         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5190 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5192         * combine.c (find_split_point): Use gen_int_mode.
5194 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5196         Merging code from dfa-branch:
5198         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5200         * genautomata.c (output_reserv_sets): Fix typo.
5202         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
5204         * genautomata.c (output_reserv_sets): Remove
5205         next_cycle_output_flag.
5207         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
5209         * sched-rgn.c (init_ready_list): Make the DFA code handle
5210         USE/CLOBBER insns in the same way as the traditional
5211         scheduler.
5212         (new_ready): Similarly..
5214         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
5216         * haifa-sched.c (schedule_block): Change the DFA state only after
5217         issuing insn.
5219         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
5221         * pa.c (hppa_use_dfa_pipeline_interface): New function.
5222         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5223         (override_options): Add PA7300 scheduling support.
5224         (pa_adjust_cost): Update various comments.  Properly
5225         handle anti and output dependencies when using the
5226         DFA scheduler.
5227         (pa_issue_rate): Add PA7300 scheduling support.
5228         (pa_can_combine_p): Call extract_insn before calling
5229         constrain_operands (taken from mainline tree).
5230         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5231         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
5232         descriptions using DFA descriptions.  Add PA7300
5233         scheduling support.
5235         2002-03-30  David S. Miller  <davem@redhat.com>
5237         Add UltraSPARC-III DFA scheduling support.
5238         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5239         Update FP conditional move on register insn patterns to use it, as
5240         appropriate.
5241         (define_attr cpu): Add ultrasparc3.
5242         (define_attr us3load_type): New, update integer load patterns to
5243         set it, as appropriate.
5244         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5245         (rest): Add UltraSPARC3 scheduling description.
5246         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5247         (PROCESSOR_ULTRASPARC3): New.
5248         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5249         ({ASM,CPP}_CPU_SPEC): Likewise.
5250         (REGISTER_MOVE_COST): Likewise.
5251         (RTX_COSTS): Likewise.
5252         * config/sparc/sparc.c (sparc_override_options,
5253         sparc_initialize_trampoline, sparc64_initialize_trampoline,
5254         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5255         sparc_issue_rate): Likewise.
5256         * config/sparc/sol2.h: Likewise.
5257         * config/sparc/sol2-sld-64.h: Likewise.
5258         * config/sparc/linux64.h: Likewise.
5260         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
5262         * doc/md.texi: Add comments about usage the latency time for the
5263         different dependencies and about case when two or more conditions
5264         in different define_insn_reservations returns TRUE for an insn.
5266         * doc/md.texi: Add reference for automaton based pipeline
5267         description.
5269         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
5271         * doc/passes.texi: Add missed information about genattrtab.
5273         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
5275         * genautomata.c (output_automata_list_transition_code): Check
5276         automata_list on NULL.
5278         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
5280         * genautomata.c (output_insn_code_cases,
5281         output_automata_list_min_issue_delay_code,
5282         output_automata_list_transition_code,
5283         output_automata_list_state_alts_code): Comment the functions.
5285         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
5287         * genautomata.c (automata_list_el_t): New typedef.
5288         (get_free_automata_list_el,free_automata_list_el,
5289         free_automata_list, automata_list_hash, automata_list_eq_p,
5290         initiate_automata_lists, automata_list_start, automata_list_add,
5291         automata_list_finish, finish_automata_lists,
5292         output_insn_code_cases, output_automata_list_min_issue_delay_code,
5293         output_automata_list_transition_code,
5294         output_automata_list_state_alts_code, add_automaton_state,
5295         form_important_insn_automata_lists): New functions and prototypes.
5296         (insn_reserv_decl): Add members important_automata_list and
5297         processed_p.
5298         (ainsn): Add members important_p.
5299         (automata_list_el): New structure.
5300         (first_free_automata_list_el, current_automata_list,
5301         automata_list_table): New global variables.
5302         (create_ainsns): Initiate member important_p.
5303         (output_internal_min_issue_delay_func): Generate the switch and
5304         call output_insn_code_cases.
5305         (output_internal_trans_func, output_internal_state_alts_func):
5306         Ditto.
5307         (generate): Call initiate_automata_lists.
5308         (automaton_states): New global variable.
5309         (expand_automata): Call form_important_insn_automata_lists.
5310         (write_automata): Call finish_automata_lists.
5312         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
5314         * genautomata.c (add_excls, add_presence_absence): Check that
5315         cpu units in the sets belong the same automaton.
5317         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5318         about that cpu units in the sets belong the same automaton.
5320         * doc/md.texi: Ditto.
5322         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
5323                     Nitin Gupta  <niting@noida.hcltech.com>
5325         * config/sh/sh.c (sh_use_dfa_interface): New function.
5327         (sh_issue_rate): New Function.
5328         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5329         TARGET_SCHED_ISSUE_RATE: define.
5331         * config/sh/sh.md: Add DFA based pipeline description for SH4.
5333         (define_attr insn_class): New attribute used for DFA
5334          scheduling.
5335         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5336         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5337          cmpeqdi_t): Likewise.
5339         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5340          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5341          ex_group.
5342         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5344         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5346         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5347         break.
5349         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5351         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5352         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5353         necessary.
5354         (output_dfa_start_func): Initiate new variable insn_codes_length,
5355         (write_automata): Output definition of the new variable.
5357         2001-10-02  David S. Miller  <davem@redhat.com>
5359         * haifa-sched.c (advance_one_cycle): New function.
5360         (schedule_block): Use it.
5361         (queue_to_ready): Use it, and also make sure to advance the DFA
5362         state on all stall cycles, not just those where insn_queue links
5363         are found.
5365         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
5367         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
5368         non-zero if the highest-priority instruction could be scheduled.
5369         (choose_ready): Remove last argument from max_issue call.
5371         2001-09-28  David S. Miller  <davem@redhat.com>
5373         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5374         ultrasparc and 3 for other multi-issue sparcs.
5376         2001-09-27  David S. Miller  <davem@redhat.com>
5378         * config/sparc/sparc.md (cycle_display): New pattern.
5379         * config/sparc/sparc.c (sparc_cycle_display): New.
5380         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5382         2001-09-25  David S. Miller  <davem@redhat.com>
5384         Convert all of Sparc scheduling to DFA
5385         * config/sparc/sparc.md: Kill all define_function_unit
5386         directives and replace with DFA equivalent.
5387         * config/sparc/sparc.c (ultrasparc_adjust_cost,
5388         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5389         ultra_fpmode_conflict_exists, ultra_find_type,
5390         ultra_build_types_avail, ultra_flush_pipeline,
5391         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5392         ultrasparc_variable_issue, ultrasparc_sched_init,
5393         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5394         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5395         ultra_cur_hist, ultra_cycles_elapsed): Kill.
5396         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5397         ultrasparc_store_bypass_p): New.
5398         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5399         Declare.
5401         2001-09-24  David S. Miller  <davem@redhat.com>
5403         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5404         ready->vec[foo] not ready[foo].
5406         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5408         * doc/md.texi: Correct examples for define_insn_reservations
5409         `mult' and `div'.
5411         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5413         * genautomata.c (create_automata): Print message about creation of
5414         each automaton.
5415         (generate): Remove printing meease about creation of
5416         automata.
5418         2001-09-05  David S. Miller  <davem@redhat.com>
5420         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5421         * config/sparc/linux64.h: Likewise.
5423         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
5425         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5426         schedule_block, sched_init, sched_finish): Add missed calls of
5427         use_dfa_pipeline_interface.
5429         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5430         Ditto.
5432         * sched-vis.c (get_visual_tbl_length): Ditto.
5434         2001-08-27  Richard Henderson  <rth@redhat.com>
5436         * genattr.c (main): Emit state_t even when not doing scheduling.
5438         2001-08-27  Richard Henderson  <rth@redhat.com>
5440         * genautomata.c (expand_automata): Always create a description.
5442         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5444         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5445         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5446         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5447         RTL constructions.
5449         * genattr.c (main): New variable num_insn_reservations.  Increase
5450         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5451         pipeline hazard recognizer interface.
5453         * genattrtab.h: New file.
5455         * genattrtab.c: Include genattrtab.h.
5456         (attr_printf, check_attr_test, make_internal_attr,
5457         make_numeric_value): Move protypes into genattrtab.h.  Define them
5458         as external.
5459         (num_dfa_decls): New global variable.
5460         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5461         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5462         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5463         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5465         * genautomata.c: New file.
5467         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5469         * sched-int.h: (curr_state): Add the external definition for
5470         automaton pipeline interface.
5471         (haifa_insn_data): Add comments for members blockage and units.
5473         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5474         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5475         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5476         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5477         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5478         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5479         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5480         macros.
5481         (TARGET_SCHED): Use the new macros.
5483         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5484         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5485         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5486         dfa_bubble): New members in gcc_target.sched.
5488         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5489         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5490         (insn_queue): Redefine it as pointer to array.
5491         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5492         INSN_QUEUE_SIZE.
5493         (max_insn_queue_index_macro_value): New variable.
5494         (curr_state, dfa_state_size, ready_try): New varaibles for
5495         automaton interface.
5496         (ready_element, ready_remove, max_issue): New function prototypes
5497         for automaton interface.
5498         (choose_ready): New function prototype.
5499         (insn_unit, blockage_range): Add comments.
5500         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5501         FUNCTION_UNITS_SIZE == 0.
5502         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5503         actual_hazard, potential_hazard): Add comments.
5504         (insn_cost): Use cost -1 as undefined value.  Remove
5505         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5506         pipeline interface.
5507         (ready_element, ready_remove): New functions for automaton
5508         interface.
5509         (schedule_insn): Add new code for automaton pipeline interface.
5510         (queue_to_ready): Add new code for automaton pipeline interface.
5511         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5512         (debug_ready_list): Print newline when the queue is empty.
5513         (max_issue): New function for automaton pipeline interface.
5514         (choose_ready): New function.
5515         (schedule_block): Add new code for automaton pipeline interface.
5516         Print ready list before scheduling each insn.
5517         (sched_init): Add new code for automaton pipeline interface.
5518         Initiate insn cost by -1.
5519         (sched_finish): Free the current automaton state and finalize
5520         automaton pipeline interface.
5522         * sched-rgn.c: Include target.h.
5523         (init_ready_list, new_ready, debug_dependencies): Add new code for
5524         automaton pipeline interface.
5526         * sched-vis.c: Include target.h.
5527         (get_visual_tbl_length): Add code for automaton interface.
5528         (target_units, print_block_visualization):  Add comments.
5530         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5531         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5532         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5533         (getruntime.o, genautomata.o): New entries.
5534         (genattrtab.o): Add new dependency file genattrtab.h.
5535         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5536         (getruntime.o, hashtab.o): New entries for canadian cross.
5538         * doc/md.texi: Description of automaton based model.
5540         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5541         Add comments.
5542         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5543         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5544         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5545         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5546         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5547         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5548         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5549         hook descriptions.
5550         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5551         MAX_DFA_ISSUE_RATE): New macro descriptions.
5553         * doc/contrib.texi: Add dfa based scheduler contribution.
5555         * doc/gcc.texi: Add more information about genattrtab.
5557 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5559         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5560         adjust_address_nv call.
5562 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5564         * doc/install.texi (Testing): Provide additional information, and
5565         a stronger encouragement, for running the testsuites.
5567 2002-04-29  DJ Delorie  <dj@redhat.com>
5569         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5570         given in upper case.
5572 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5574         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5575         Solaris 2 <widec.h> if missing.
5576         * fixinc/fixincl.x: Regenerate.
5577         * fixinc/tests/base/widec.h: New file.
5579 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5581         * toplev.c (f_options): Add "profile" switch so that
5582         -fno-profile can be used to disable -p.
5584 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5586         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5587         UV2DImode.
5588         * tree.c (build_common_tree_nodes_2): Likewise.
5589         * tree.h (enum tree_index): Likewise.
5590         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5592         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5593         entries.
5594         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5595         (ix86_expand_builtin): Add support for SSE2 builtins.
5596         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5597         (VALID_SSE_REG_MODE): Use it.
5598         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5599         (enum ix86_builtins): Add SSE2 builtins.
5600         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5601         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5602         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5603         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5604         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5605         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5606         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5607         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5608         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5609         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5610         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5611         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5612         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5613         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5614         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5615         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5616         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5617         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5618         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5619         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5620         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5621         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5622         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5623         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5624         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5625         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5626         lfence_insn): New patterns.
5627         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5628         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5630 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5632         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5634 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5636         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5637         Janis Johnson.
5638         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5639         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5640         and CPU instead of cpu.
5642 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5644         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5645         variables.
5646         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5647         (rest_of_compilation): Do if conversion only when asked for.
5648         (parse_options_and_default_flags): Set new variables to 1 for -O1
5649         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5651 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5653         * i386.c (dbx64_register_map): Fix typo.
5655 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5657         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5658         real_one_half, real_bb_freq_max): New static variables.
5659         (debug_profile_bbauxs): Kill.
5660         (process_note_predictions): Kill unused variable.
5661         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5662         volatile double.
5663         (propagate_freq): Use REAL_ARITHMETICS.
5664         (estimate_bb_frequencies): Likevise; init new static variables.
5665         * Makefile.in (predict.o): Add dependency on real.h
5667 2002-04-28  David S. Miller  <davem@redhat.com>
5669         PR target/6500
5670         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5671         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5672         several {reads,writes} instead.
5673         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5674         Define.
5676 2002-04-27  David S. Miller  <davem@redhat.com>
5678         PR target/6494
5679         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5680         of the stack bias.
5682         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5683         including signal.h and sys/ucontext.h, not needed.
5685 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5687         * varasm.c (output_constant_def): Correct test for not calling
5688         ENCODE_SECTION_INFO for INTEGER_CST.
5690 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5692         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5693         keep most cases as function eval_token.
5694         (eval_token): New function.
5695         (_cpp_parse_expr): Read token here for improved diagnostics.
5696         Don't use op_as_text.  Detect bad ':' here.
5697         (reduce): Don't detect bad ':' here.
5698         (op_as_text): Remove.
5699         * cpphash.h (_cpp_test_assertion): Change prototype.
5700         * cpplib.c (_cpp_test_assertion): Change prototype.
5702 2002-04-28  Richard Henderson  <rth@redhat.com>
5704         PR c/5154
5705         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5706         (ggc_mark_rtx_children): New.
5708 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5710         PR target/6496
5711         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5712         after call peepholes for UltraSPARC.
5713         (call + jump 64-bit peepholes): Remove.
5715 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5717         PR c/6497
5718         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5719         result as temporary value.
5721 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5723         PR c++/6396
5724         * toplev.c (rest_of_compilation): Only run regrename and copy
5725         propagation if optimizing.
5727 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5729         PR optimization/6475
5730         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5731         register of REGNO_DECL (i).
5732         * Makefile.in (reload1.o): Add $(TREE_H).
5734 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5736         * cppexp.c (lex): Update to use state.skip_eval.
5737         (struct op): Remove prio and flags members.
5738         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5739         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5740         (LEFT_ASSOC): New macro.
5741         (optab): New table of operator priorities and flags.
5742         (SHIFT): Update.
5743         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5744         malloc-ed parser stack.
5745         (reduce): New; reduce the operator stack.
5746         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5747         * cpphash.h (struct op): Predeclare.
5748         (struct cpp_reader): New members op_stack, op_limit.
5749         (struct lexer_state): New member skip_eval.
5750         (_cpp_parse_expr): Update.
5751         (_cpp_expand_op_stack): New.
5752         * cpplib.c (do_if): Update.
5753         * cppinit.c (cpp_create_reader): Create op stack.
5754         (cpp_destroy): And destroy it.
5755         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5756         (TTYPE_TABLE): Correct.
5758 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5760         PR c/6343
5761         * c-decl.c (duplicate_decls): Call merge_weak.
5762         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5763         * output.h (merge_weak): Prototype merge_weak.
5764         * varasm.c (merge_weak): New function.
5765         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5766         Mark RTL with SYMBOL_REF_WEAK.
5768 2002-04-27  Kurt Garloff <garloff@suse.de>
5770         * tree-inline.c (inlinable_function_p): Improve heuristics
5771         by using a smoother function to cut down allowable inlinable size.
5772         * param.def: Add parameters max-inline-insns-single,
5773         max-inline-slope, min-inline-insns that determine the exact
5774         shape of the above function.
5775         * param.h: Likewise.
5777 2002-04-26  Richard Henderson  <rth@redhat.com>
5779         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5780         (yyoverflow): Re-add.  Set them.
5781         (free_parser_stacks): New.
5782         * c-common.h: Declare it.
5783         * c-lex.c (c_common_parse_file): Call it.
5785 2002-04-26  Richard Henderson  <rth@redhat.com>
5787         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5788         for fallthru search.
5790 2002-04-26  Eric Christopher  <echristo@redhat.com>
5792         PR optimization/3700
5793         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5794         (TARGET_SCHED_ISSUE_RATE): Use.
5796 2002-04-25  David S. Miller  <davem@redhat.com>
5798         PR target/6422
5799         * reorg.c (optimize_skip): Do not allow exception causing
5800         instructions to be considered for delay slots.
5801         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5802         (relax_delay_slots): Do not try to consider exception causing
5803         instructions as redundant.
5805 2002-04-26  Richard Henderson  <rth@redhat.com>
5807         PR c/5225
5808         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5810 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5812         PR bootstrap/6445
5813         * config/i386/i386.md (untyped_call): Return the value in a float
5814         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5815         TARGET_80387.
5817 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5819         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5820         in unsigned-ness correctly.
5822 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5824         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5825         portable runtime model.
5827 2002-04-26  Richard Henderson  <rth@redhat.com>
5829         * c-parse.in (yyoverflow): Revert.
5831 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5832             Richard Henderson  <rth@redhat.com>
5834         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5835         result as temporary value.
5837 2002-04-26  Richard Henderson  <rth@redhat.com>
5839         PR c/3581
5840         * c-common.c (fix_string_type): Split out of ...
5841         (combine_strings): ... here.  Take a varray, not a tree list.
5842         (c_expand_builtin_printf): Use fix_string_type.
5843         * c-common.h: Update decls.
5844         * c-parse.in (string): Remove.  Update all uses to use STRING
5845         instead, and not call combine_strings.
5846         (yylexstring): New.
5847         (_yylex): Use it.
5848         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5849         (build_asm_stmt): Likewise.
5850         * objc/objc-act.c (my_build_string): Use fix_string_type.
5851         (build_objc_string_object): Build varray for combine_strings.
5853 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5855         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5856         x86-64.
5858 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5860         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5861         (HAVE_NO_R_OPERAND): Remove.
5862         (HAVE_VALUE): Remove.
5863         (op_to_prio): Update.
5864         (UNARY): Don't alter flags.
5865         (_cpp_parse_expr): want_value used to indicate whether
5866         a number or unary operator is expected next.  Distinguish
5867         unary and binary +/-.
5868         (op_as_text): Update for unary operators.
5870 2002-04-25  Richard Henderson  <rth@redhat.com>
5872         PR c/2161
5873         * c-parse.in (yyoverflow): New.
5875 2002-04-25  Richard Henderson  <rth@redhat.com>
5877         PR c/2098
5878         * c-common.c (shorten_compare): Simplfy conditions leading to
5879         the generation of a warning.
5881 2002-04-25  Richard Henderson  <rth@redhat.com>
5883         PR c/2035
5884         * expmed.c (extract_bit_field): Fall through to generic code rather
5885         than aborting on subreg special case.
5887 2002-04-25  David S. Miller  <davem@redhat.com>
5889         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5890         for DECL being NULL.
5892 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5894         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5896 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5898         * c-decl.c (grokdeclarator): Remove outdated ??? note
5899         on invalid declaration of flexible array members.
5901 2002-04-25  Richard Henderson  <rth@redhat.com>
5903         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5905 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5907         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5908         needed by the compiler, even if they are used as global regs.
5910 2002-04-25  Matt Hiller  <hiller@redhat.com>
5912         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5913         functions.
5914         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5915         of the corresponding functions.
5916         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5917         New prototypes.
5919 2002-04-25  Matt Hiller  <hiller@redhat.com>
5921         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5923         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5924         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5925         registers, adjust comment accordingly.
5926         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5927         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5928         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5929         for coprocessor registers.
5930         (ADDITIONAL_REGISTER_NAMES): Include
5931         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5933         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5934         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5935         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5936         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5937         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5939         (mips_char_to_class): Adjust comment to include coprocessor
5940         constraint letters.
5942         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5943         New functions.
5944         (mips_reg_names, mips_regno_to_class): Include coprocessor
5945         information.
5946         (mips_sw_reg_names): Ditto, make non-static.
5947         (mips_move_1word): Handle moves to and from coprocessor registers.
5948         (mips_move_2words): Handle moves to and from coprocessor
5949         registers.
5950         (mips_class_max_nregs, mips_register_move_cost): Handle
5951         coprocessor register classes.
5952         (override_options): Initialize mips_char_to_class and
5953         mips_hard_regno_mode_ok properly for coprocessor registers.
5955         * config/mips/mips.md (movdi_internal, movdi_internal2,
5956         movsi_internal1, movsi_internal2): Add constraint-sets for
5957         coprocessor registers.
5958         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5959         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5960         isn't mips.
5961         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5962         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5963         isn't mips.
5964         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5965         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5966         isn't mips.
5967         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5968         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5969         isn't mips.
5971         * doc/tm.texi: Document feature.
5973 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5975         * integrate.c (function_attribute_inlinable_p): Simplify.
5976         Check the table pointer is not NULL.
5978 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5980         * doc/c-tree.texi: Fix typo in introduction.
5982 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5984         * c-common.h (c_common_parse_file): Update.
5985         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5986         * c-lex.c (YYDEBUG): Get from c-lex.h.
5987         (c_common_parse_file): Update.
5988         * c-lex.h (YYDEBUG, yydebug): New.
5989         * c-parse.in (YYDEBUG): Get from c-lex.h.
5990         (c_set_yydebug): Remove.
5991         * c-tree.h (c_set_yydebug): Remove.
5992         * langhooks-def.h (lhd_do_nothing_i): New.
5993         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5994         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5995         * langhooks.c  (lhd_do_nothing_i): New.
5996         (lhd_set_yydebug): Remove.
5997         * langhooks.h (struct lang_hooks): Update.
5998         * toplev.c (set_yydebug): New.
5999         (compile_file): Update call to parse_file hook.
6000         (decode_d_option): Update.
6001 objc:
6002         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
6004 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
6006         * loop.c (load_mems): Don't change the interface of called functions.
6008         * calls.c (expand_call): Take current_function_pretend_args_size
6009         into account when setting argblock for sibcalls.
6011 2002-04-24  Matt Hiller  <hiller@redhat.com>
6013         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
6014         * c-lex.c: Ditto.
6016         * cpplex.c (skip_line_comment): Process comment one multibyte
6017         character at a time rather than one char at a time, if
6018         appropriate.
6019         (parse_string): Process string one multibyte character at a time
6020         rather than one char at a time, if appropriate.
6021         * c-lex.c (lex_string): Lex and copy multibyte strings
6022         appropriately.
6023         * cpplib.h (cppchar_t): Change to unsigned.
6025 2002-04-24  Richard Henderson  <rth@redhat.com>
6027         PR c/3467
6028         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
6029         for c99.
6031 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
6033         * sh.c (sh_va_arg): If argument was passed by reference,
6034         dereference the pointer.
6036         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6038         * sh.md (divsi3_i4_media): Use match_operand for input values
6039         rather than hard registers.
6040         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
6041         unnecessarily through hard registers.  Keep copies of pseudo
6042         registers outside of the libcall sequence.
6044         * sh.md (casesi_shift_media): Add modes.
6046         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
6047         values in memory.
6049 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6051         * attribs.c (c_common_attribute_table): Move table and handlers
6052         to c-common.c.
6053         (format_attribute_table, lang_attribute_table,
6054         lang_attribute_common): Remove.
6055         (init_attributes): Replace NULL pointers with pointers to the
6056         empty table.
6057         (handle_packed_attribute, handle_nocommon_attribute,
6058         handle_common_attribute, handle_noreturn_attribute,
6059         handle_noinline_attribute, handle_always_inline_attribute,
6060         handle_used_attribute, handle_unused_attribute,
6061         handle_const_attribute, handle_transparent_union_attribute,
6062         handle_constructor_attribute, handle_destructor_attribute,
6063         handle_mode_attribute, handle_section_attribute,
6064         handle_aligned_attribute, handle_weak_attribute,
6065         handle_alias_attribute, handle_visibility_attribute,
6066         handle_no_instrument_function_attribute, handle_malloc_attribute,
6067         handle_no_limit_stack_attribute, handle_pure_attribute,
6068         handle_deprecated_attribute, handle_vector_size_attribute,
6069         vector_size_helper): Move to c-common.c.
6070         * c-common.c (c_common_attribute_table,
6071         handle_packed_attribute, handle_nocommon_attribute,
6072         handle_common_attribute, handle_noreturn_attribute,
6073         handle_noinline_attribute, handle_always_inline_attribute,
6074         handle_used_attribute, handle_unused_attribute,
6075         handle_const_attribute, handle_transparent_union_attribute,
6076         handle_constructor_attribute, handle_destructor_attribute,
6077         handle_mode_attribute, handle_section_attribute,
6078         handle_aligned_attribute, handle_weak_attribute,
6079         handle_alias_attribute, handle_visibility_attribute,
6080         handle_no_instrument_function_attribute, handle_malloc_attribute,
6081         handle_no_limit_stack_attribute, handle_pure_attribute,
6082         handle_deprecated_attribute, handle_vector_size_attribute,
6083         vector_size_helper): Move from attribs.c.
6084         * c-common.h (c_common_attribute_table,
6085         c_common_format_attribute_table): New.
6086         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6087         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6088         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
6089         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
6090         (LANG_HOOKS_INITIALIZER): Update.
6091         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
6092         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
6093         * target.h: Update comment.
6094         * tree.c (default_target_attribute_table): Remove.
6095         * tree.h (default_target_attribute_table, format_attribute_table,
6096         lang_attribute_table, lang_attribute_common): Remove.
6097 objc:
6098         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6099         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6101 2002-04-24  Jason Merrill  <jason@redhat.com>
6103         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
6104         * dwarf2out.c (dwarf_attr_name): Support it.
6105         (gen_array_type_die): Emit it.
6106         (lookup_type_die): No special handling for VECTOR_TYPE.
6107         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
6109 2002-04-24  Richard Henderson  <rth@redhat.com>
6111         * config/mips/mips.md (movdi_usd): Renumber.
6113 2002-04-24  David S. Miller  <davem@redhat.com>
6115         PR target/6420
6116         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
6117         32-bit Sparc and current_function_returns_struct is true.
6119 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6121         * loop.c (canonicalize_condition): Use gen_int_mode.
6123 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
6125         * config/rs6000/altivec.h: Cleanup file.  Add non individual
6126         variants.
6127         (vec_vaddubm): New.
6128         (vec_vadduhm): New.
6129         (vec_vadduwm): New.
6130         (vec_vaddfp): New.
6131         (vec_vaddcuw): New.
6132         (vec_vaddubs): New.
6133         (vec_vaddsbs): New.
6134         (vec_vadduhs): New.
6135         (vec_vadduws): New.
6136         (vec_vaddsws): New.
6137         (vec_vand): New.
6138         (vec_vandc): New.
6139         (vec_vavgub): New.
6140         (vec_vavgsb): New.
6141         (vec_vavguh): New.
6142         (vec_vavgsh): New.
6143         (vec_vavguw): New.
6144         (vec_vavgsw): New.
6145         (vec_vrfip): New.
6146         (vec_vcmpbfp): New.
6147         (vec_vcmpequb): New.
6148         (vec_vcmpequh): New.
6149         (vec_vcmpequw): New.
6150         (vec_vcmpeqfp): New.
6151         (vec_vcmpgefp): New.
6152         (vec_vcmpgtub): New.
6153         (vec_vcmpgtsb): New.
6154         (vec_vcmpgtuh): New.
6155         (vec_vcmpgtsh): New.
6156         (vec_vcmpgtuw): New.
6157         (vec_vcmpgtsw): New.
6158         (vec_vcmpgtfp): New.
6159         (vec_vcmpgefp): New.
6160         (vec_vcfux): New.
6161         (vec_vcfsx): New.
6162         (vec_vctsxs): New.
6163         (vec_vctuxs): New.
6164         (vec_vexptefp): New.
6165         (vec_vrfim): New.
6166         (vec_lvx): New.
6167         (vec_lvebx): New.
6168         (vec_lvehx): New.
6169         (vec_lde): Add vector float variant.
6170         (vec_lvewx): New.
6171         (vec_lvxl): New.
6172         (vec_vlogefp): New.
6173         (vec_vmaddfp): New.
6174         (vec_vmhaddshs): New.
6175         (vec_vmaxub): New.
6176         (vec_vmaxsb): New.
6177         (vec_vmaxuh): New.
6178         (vec_vmaxsh): New.
6179         (vec_vmaxuw): New.
6180         (vec_vmaxsw): New.
6181         (vec_vmaxsw): New.
6182         (vec_vmaxfp): New.
6183         (vec_vmrghb): New.
6184         (vec_vmrghh): New.
6185         (vec_vmrghw): New.
6186         (vec_vmrglb): New.
6187         (vec_vmrglh): New.
6188         (vec_vmrglw): New.
6189         (vec_vminub): New.
6190         (vec_vminsb): New.
6191         (vec_vminuh): New.
6192         (vec_vminsh): New.
6193         (vec_vminuw): New.
6194         (vec_vminsw): New.
6195         (vec_vminfp): New.
6196         (vec_vmladduhm): New.
6197         (vec_vmhraddshs): New.
6198         (vec_msumubm): New.
6199         (vec_vmsummbm): New.
6200         (vec_vmsumuhm): New.
6201         (vec_vmsumshm): New.
6202         (vec_vmsumuhs): New.
6203         (vec_vmsumshs): New.
6204         (vec_vmuleub): New.
6205         (vec_vmulesb): New.
6206         (vec_vmuleuh): New.
6207         (vec_vmulesh): New.
6208         (vec_vmuloub): New.
6209         (vec_mulosb): New.
6210         (vec_vmulouh): New.
6211         (vec_vmulosh): New.
6212         (vec_vnmsubfp): New.
6213         (vec_vnor): New.
6214         (vec_vor): New.
6215         (vec_vpkuhum): New.
6216         (vec_vpkuwum): New.
6217         (vec_vpkpx): New.
6218         (vec_vpkuhus): New.
6219         (vec_vpkshss): New.
6220         (vec_vpkuwus): New.
6221         (vec_vpkswss): New.
6222         (vec_vpkshus): New.
6223         (vec_vpkswus): New.
6224         (vec_vperm): New.
6225         (vec_vrefp): New.
6226         (vec_vrlb): New.
6227         (vec_vrlh): New.
6228         (vec_vrlw): New.
6229         (vec_vrfin): New.
6230         (vec_vrsqrtefp): New.
6231         (vec_vsel): New.
6232         (vec_vslb): New.
6233         (vec_vslh): New.
6234         (vec_vslw): New.
6235         (vec_vsldoi): New.
6236         (vec_vsl): New.
6237         (vec_vslo): New.
6238         (vec_vspltb): New.
6239         (vec_vsplth): New.
6240         (vec_vspltw): New.
6241         (vec_vspltisb): New.
6242         (vec_vspltish): New.
6243         (vec_vspltisw): New.
6244         (vec_vsrb): New.
6245         (vec_vsrh): New.
6246         (vec_vsrw): New.
6247         (vec_vsrab): New.
6248         (vec_vsrah): New.
6249         (vec_vsraw): New.
6250         (vec_vsr): New.
6251         (vec_vsro): New.
6252         (vec_stvx): New.
6253         (vec_stvebx): New.
6254         (vec_stvehx): New.
6255         (vec_stvewx): New.
6256         (vec_stvxl): New.
6257         (vec_vsububm): New.
6258         (vec_vsubuhm): New.
6259         (vec_vsubuwm): New.
6260         (vec_vsubfp): New.
6261         (vec_vsubcuw): New.
6262         (vec_vsububs): New.
6263         (vec_vsubsbs): New.
6264         (vec_vsubuhs): New.
6265         (vec_vsubshs): New.
6266         (vec_vsubuws): New.
6267         (vec_vsubsws): New.
6268         (vec_vsum4ubs): New.
6269         (vec_vsum4sbs): New.
6270         (vec_vsum4shs): New.
6271         (vec_vsum2sws): New.
6272         (vec_vsumsws): New.
6273         (vec_vrfiz): New.
6274         (vec_vupkhsb): New.
6275         (vec_vupkhpx): New.
6276         (vec_vupkhsh): New.
6277         (vec_vupklsb): New.
6278         (vec_vupklpx): New.
6279         (vec_vupklsh): New.
6280         (vec_vxor): New.
6282 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
6284         PR c/5430
6285         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6286         added literals from substracted literals.
6287         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6288         (fold) [associate]: Preserve MINUS_EXPR if needed.
6290 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
6292         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6293         are obsoleted.
6295 2002-04-23  Tom Tromey  <tromey@redhat.com>
6297         * gcc.c: Added --resource.  For PR java/6314.
6299 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6301         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6302         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6303         these libraries.
6305 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6307         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6309 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6311         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6312         workaround.
6313         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6314         (ix86_expand_clrstr): Fix typo.
6315         * loop.c (gen_load_of_final_value): New.
6316         (loop_givs_rescan, strength_reduce, check_dbra_loop):
6317         Use it.
6319 2002-04-23  Roger Sayle  <roger@eyesopen.com>
6321         * builtins.c (builtin_memset_gen_str): New function.
6322         (expand_builtin_memset): Optimize the case of constant length, but
6323         unknown value.
6325 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
6327         * config/rs6000/altivec.h (vec_step): Remove extraneous
6328         parentheses.
6329         (vec_ctu): Cast return.
6331 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
6333         PR target/6413
6334         * function.h: (struct function): Add profile_label_no field.
6335         (current_function_profile_label_no): Define.
6336         * function.c: (profile_label_no): New static var.
6337         (expand_function_start): Increment it, and copy to
6338         current_function_profile_label_no.
6339         * output.h (profile_label_no): Delete.
6340         * final.c (profile_label_no): Delete.
6341         (profile_function): Use current_function_profile_label_no.
6342         (final_end_function): Don't increment profile_label_no here.
6343         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6344         profile_label_no with current_function_profile_label_no.
6345         * config/pa/pa.c (current_function_number): Delete.
6346         (pa_output_function_prologue): Don't output profile label here.
6347         (hppa_profile_hook): Use label_no param rather than
6348         current_function_number.
6349         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6350         * config/pa/pa.h: .. here.
6351         (FUNCTION_PROFILER): Output profile label here.
6353 2002-04-22  Eric Christopher  <echristo@redhat.com>
6355         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6356         patch of 2002-04-09 due to binutils issues.
6357         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6359 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6361         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6362         constraint to 'o' for m=r and r=m alternatives.
6363         ("*movv8hi_internal1"): Same.
6364         ("*movv16qi_internal1"): Same.
6365         ("*movv4sf_internal1"): Same.
6367 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
6369         * rtl.h (RTX_FLAG): New macro.
6370         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6371         * final.c (alter_subreg): Use macro to access rtx flag.
6372         * integrate.c (copy_rtx_and_substitute): Use new access macro.
6373         * print-rtl.c (print_rtx): Use new access macro.
6375         * cse.c (insert): Check rtx code before accessing flag.
6377         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6378         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6379         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6380         convert_const_symbol_ref, make_canonical, make_alternative_compare,
6381         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6382         simplify_test_exp, optimize_attrs, simplify_by_exploding,
6383         find_and_mark_used_attributes, unmark_used_attributes,
6384         add_values_to_cover, simplify_with_current_value,
6385         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6386         copy_rtx_unchanging, main): Use new access macros.
6388 2002-04-22  Tom Rix  <trix@redhat.com>
6390         * expmed.c (init_expmed): Generate shifted constant once.
6392 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
6394         * c-lex.c (lex_charconst): Call convert to get constant in
6395         proper type; don't just smash the type field.
6396         Fixes PR c/6300.
6398         * config.gcc: Add list of obsolete configurations.  Disallow
6399         building these without --enable-obsolete.
6400         * doc/install.texi: Document --enable-obsolete and obsoletion
6401         policy.  Mention obsoletion of individual targets in
6402         appropriate places.
6404 2002-04-22  Richard Henderson  <rth@redhat.com>
6406         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6408 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
6410         PR f/6138.
6411         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6412         (walk_fixup_memory_subreg): Likewise.
6413         (fixup_var_refs_insn): Adjust accordingly.
6414         (fixup_var_refs_1): Likewise.
6416 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
6418         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6419         LIBPATH_ARCH64_SPEC): Define.
6420         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6421         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6422         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6423         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6425 2002-04-22      Joel Sherrill <joel@OARcorp.com>
6427         * gthr-rtems.h: Correct prototypes to remove warnings.
6429 2002-04-22  Richard Henderson  <rth@redhat.com>
6431         PR c/6344
6432         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6434         * gcse.c (free_insn_expr_list_list): New.
6435         (clear_modify_mem_tables): Use it.  Fix bit set usage.
6436         (canon_list_insert): Use EXPR_LISTs for expressions.
6437         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6439 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6441         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
6442         file change and include code to _cpp_pop_buffer.
6443         * cpphash.h (struct pending_option): Predeclare.
6444         (struct cpp_reader): New member next_include_file.
6445         (_cpp_pop_file_buffer): Update.
6446         (_cpp_push_next_buffer): Update, rename.
6447         * cppinit.c (cpp_destroy): Free include chain and pending here.
6448         (cpp_finish_options): Simplify.
6449         (_cpp_push_next_buffer): Rename and clean up.
6450         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6451         Clarify.
6452         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6454 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6456         * config/rs6000/altivec.h (vec_xor): Add variant for both args
6457         being vector signed int.
6458         (vec_andc): Same.
6459         (vec_xor): Add variant for both args being vector signed char.
6460         Remove redundant variant.
6461         (vec_andc): Same.
6463 2002-04-21  David S. Miller  <davem@redhat.com>
6465         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6466         compare mode in output RTL.
6468 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
6470         * config/rs6000/rs6000.c (rs6000_override_options): Correct
6471         style and formatting of previous patch.
6473 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
6475         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6476         flag_pic for ABI_AIX.
6478 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6480         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6481         * cppfiles.c (read_include_file): Similarly.
6482         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6483         uxstrdup ustrchr, ufputs): Similarly.
6484         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6485         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6486         cpp_ideq, parse_identifier, parse_number): Similarly.
6487         * cpplib.c (struct directive, dequote_string, D, run_directive,
6488         cpp_push_buffer): Similarly.
6489         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6490         _cpp_create_definition, check_trad_stringification,
6491         cpp_macro_definition): Similarly.
6493 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6495         * cppmacro.c (funlike_invocation_p): Don't step back
6496         over CPP_EOF.
6498 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
6500         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6501         labelno.
6503 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6505         * doc/invoke.texi: Remove Chill references.
6506         * doc/gcc.texi: Update last modified date.
6508 2002-04-20  Kazu Hirata  <kazu@hxi.com>
6510         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6511         push and pop.  Replace add.l with add.w.
6513 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6515         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6516         multiply instructions for H8/300H case.
6518 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6520         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6521         Bum three instructions from each routine.
6523 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6525         * Makefile.in: Update.
6526         * decl.c (push_c_function_context, pop_c_function_context,
6527         mark_c_function_context): Rename for consistency.
6528         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6529         * c-tree.h (push_c_function_context, pop_c_function_context,
6530         mark_c_function_context): Rename for consistency.
6531         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6532         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6533         * function.c (init_lang_status, save_lang_status,
6534         restore_lang_status, mark_lang_status, free_lang_status):
6535         Move to langhooks.h.
6536         (push_function_context_to, pop_function_context_from,
6537         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6538         Update.
6539         * function.h (init_lang_status, save_lang_status,
6540         restore_lang_status, mark_lang_status, free_lang_status):
6541         Move to langhooks.h.
6542         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6543         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6544         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6545         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6546         (LANG_HOOKS_INITIALIZER): Update.
6547         (lhd_do_nothing_f): New.
6548         * langhooks.h (struct lang_hooks_for_functions): New.
6549         (struct lang_hooks): New hooks.
6550         * langhooks.c (lhd_do_nothing_f): New.
6551 objc:
6552         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6553         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6555 2002-04-19  David S. Miller  <davem@redhat.com>
6557         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6558         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6560 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6562         PR optimization/3756
6563         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6564         x = ((int) y < 0) ? cst1 : cst2.
6566 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6568         PR c/6358
6569         * function.c: Reapply patch for c/6358.
6570         (expand_function_end): Copy decl_rtl's mode, not
6571         current_function_return_rtx mode.
6573 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6575         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6576         targets.
6578 2002-04-19  Tom Tromey  <tromey@redhat.com>
6580         * doc/install.texi (Specific): Update status of Solaris 2.8.
6581         For PR libgcj/6158.
6583 2002-04-19  Andreas Schwab  <schwab@suse.de>
6585         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6586         (PUT_REAL): Restore old definition.
6588 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6589             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6591         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6592         binutils 2.11.2 and higher generate smaller binaries than Sun's
6593         native tools.
6595 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6597         PR c++/6352
6598         * toplev.c (rest_of_compilation): Do not defer functions for which
6599         TREE_SYMBOL_REFERENCED has already been set.
6601 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6603         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6604         alternative.
6606 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6608         * builtins.c: Include langhooks.h.
6609         (lang_type_promotes_to): Remove.
6610         (expand_builtin_va_arg): Use new hook.
6611         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6612         (simple_type_promotes_to): Move to c-typeck.c.
6613         * c-common.h (simple_type_promotes_to): Remove.
6614         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6615         * c-format.c: Include langhooks.h.
6616         (check_format_types): Update.
6617         * c-tree.h (c_type_promotes_to): New.
6618         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6619         (type_lists_compatible_p): Update.
6620         * langhooks-def.h (lhd_type_promotes_to): New.
6621         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6622         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6623         * langhooks.c (lhd_type_promotes_to): New.
6624         * langhooks.h (struct lang_hooks_for_types): New hook.
6625         * tree.h (lang_type_promotes_to): Remove.
6626 objc:
6627         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6629 2002-04-18  Richard Henderson  <rth@redhat.com>
6631         * function.c: Revert patch for c/6358.
6633 2002-04-18  Richard Henderson  <rth@redhat.com>
6635         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6636         blocks.  Handle multiple references to the TRAP block.  Handle
6637         non-adjacent THEN and OTHER blocks.
6639 2002-04-18  Richard Henderson  <rth@redhat.com>
6641         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6642         crash with no type for by-mode libcalls.
6644         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6646 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6648         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6649         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6650         the register windows.
6652 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6654         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6655         appropriate.  Document need for extended precision even when
6656         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6657         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6658         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6659         instead of relying on later syntax error when REAL_WIDTH > 5.
6660         * real.c: Define NE based only on whether or not we have a
6661         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6662         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6663         define GET_REAL and PUT_REAL as simple memcpy operations; no
6664         need to byteswap or round.
6665         Use #error instead of #ifdef-ing out the entire file, for
6666         prompt error detection.
6668         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6670 2002-04-18  David S. Miller  <davem@redhat.com>
6672         * config/sparc/sparc.h (BRANCH_COST): Define.
6674         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6675         does it.
6677 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6679         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6680         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6681         propagate_block calls after relaxation loop using new variable
6682         stabilized_prop_flags.
6684 2002-04-18  Richard Henderson  <rth@redhat.com>
6686         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6687         (ia64_va_arg): Expect variable sized types by reference.
6688         * config/ia64/ia64-protos.h: Update.
6689         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6690         ia64_function_arg_pass_by_reference.
6692 2002-04-18  Richard Henderson  <rth@redhat.com>
6694         * ifcvt.c: Include except.h.
6695         (block_has_only_trap): Break out from find_cond_trap.
6696         (find_cond_trap): Use it.  Always delete the trap block.
6697         (merge_if_block): Allow then block null.  Be less simplistic about
6698         what insns can end a block.
6699         * Makefile.in (ifcvt.o): Depend on except.h.
6701         * config/ia64/ia64.md (trap, conditional_trap): New.
6703 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6705         PR c/6358
6706         * function.c (assign_parms): Assign hard current_function_return_rtx
6707         register here...
6708         (expand_function_end): ...not here.
6710 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6712         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6713         * c-tree.h (c_incomplete_type_error): New.
6714         * c-typeck.c (require_complete_type, build_component_ref): Update.
6715         (incomplete_type_error): Rename.
6716         * langhooks-def.h (lhd_incomplete_type_error): New.
6717         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6718         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6719         * langhooks.c (lhd_incomplete_type_error): New.
6720         * langhooks.h (struct lang_hooks_for_types): New hook.
6721         * tree.c (size_in_bytes): Use new hook.
6722         * tree.h (incomplete_type_error): Remove.
6723 objc:
6724         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6726 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6728         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6729         TARGET_FLOAT_FORMAT blocks.
6731 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6733         * doc/install.texi (Downloading the source): Do not mention Chill
6734         any longer, but mention Ada.
6735         (Configuration): Do not mention Chill any longer.
6737 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6739         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6741 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6743         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6744         in last patch.
6746 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6748         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6749         instead of unsigned_type.
6751 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6753         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6754         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6755         later.
6757 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6759         * attribs.c (vector_type_node_list): New static variable.
6760         (handle_vector_size_attribute): Use it to avoid generating a
6761         new type node each time we are called.
6763         * combine.c (subst): Avoid trying to make a vector mode subreg of
6764         an integer constant.
6765         (gen_lowpart_for_combine): Likewise.
6767 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6768             Jakub Jelinek  <jakub@redhat.com>
6770         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6771         for integer constant c (if x has unsigned type or sign bit is not
6772         set in c).  This folds the zero/sign extension into the bit-wise and
6773         operation.
6775 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6777         PR middle-end/6205
6778         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6779         otherwise xorps.
6781 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6783         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6785 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6787         * gcc.c (read_specs): Detect and fail if an attempt is made to
6788         rename a spec string to an already existing string.
6790 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6792         * config/s390/s390.c (legitimize_pic_address): Do not generate
6793         illegal address constant without CONST.
6795 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6797         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6798         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6800 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6802         PR optimization/6305
6803         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6804         to make sure previous reloads are taken into account.  Generate
6805         better code if one operand is an in-range immediate constant.
6807 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6809         * doc/install.texi (Building): libgcj requires GNU make.
6811 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6813         PR bootstrap/6315
6814         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6815         even if hard quad and register is not floating.
6816         (movtf reg<-mem split): Disallow splitting if hard quad and
6817         register is floating.
6818         (movtf mem<-reg split): Likewise.
6819         * config/sparc/sparc.c (fp_register_operand): New predicate.
6820         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6822 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6824         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6825         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6826         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6827         UNPROTOIZE on command line.
6828         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6829         (in_system_include_dir): Use cpp_include_defaults (defined in
6830         cppdefault.o).
6831         * unprotoize.c: Delete file.
6833 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6835         * config/rs6000/altivec.h (vec_ld): Add array variants.
6836         (vec_lde): Same.
6837         (vec_ldl): Same.
6839 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6840             Aldy Hernandez <aldyh@redhat.com>
6842         * config/rs6000/altivec.h: Define __ALTIVEC__.
6843         (bool): New.
6844         (__pixel): New.
6845         (pixel): New.
6846         (vec_cfux): New.
6847         (vec_vmaddfp): New.
6848         (vec_vsldoi): New.
6849         Add parentheses to all macro arguments.
6851 2002-04-16  Richard Henderson  <rth@redhat.com>
6853         PR c++/6320
6854         * except.c (remove_eh_handler): Insert inner regions at beginning
6855         of sibling chain.  Refactor expressions.
6857 2002-04-16  Richard Henderson  <rth@redhat.com>
6859         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6860         * config/sparc/sol2-gas-bi.h: New file.
6861         * config.gcc (sparc*-solaris): Add it as needed.
6862         * configure.in (AS_SPARC64_FLAG): Remove check.
6863         * config.in, configure: Regenerate.
6865         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6867 2002-04-16  Richard Henderson  <rth@redhat.com>
6869         * config/mips/mips.c (override_options): Don't override N32 for
6870         a 64-bit ISA.
6872         PR 6202
6873         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6874         (HILO_delay): Set can_delay false.
6876 2002-04-16  Dale Johannesen <dalej@apple.com>
6878         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6879         instruction addresses.
6880         (rs6000_output_function_epilogue): Likewise.
6882 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6884         * c-parse.in (poplevel, compstmt_start,
6885         compstmt_primary_start): Add ending ';', in accordance
6886         with POSIX.
6888 2002-04-16  Richard Henderson  <rth@redhat.com>
6890         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6891         Adjust tm_file order to get TARGET_DEFAULT set properly.
6892         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6893         * doc/install.texi (sparc-solaris): Update.
6895 2002-04-16  Dale Johannesen <dalej@apple.com>
6897         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6898         comparison operands do not match each other or if modes of
6899         conditions do not match result.
6901 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6903         PR target/6305
6904         * config/s390/s390.md (mulsidi3): Set both subregs of the
6905         multiword register.
6907 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6909         * config/rs6000/altivec.h (vec_addc): Type check.
6911 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6913         PR middle-end/6279
6914         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6916         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6918 2002-04-15  Richard Henderson  <rth@redhat.com>
6920         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6921         call_really_used_regs too.
6923 2002-04-15  Richard Henderson  <rth@redhat.com>
6925         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6927 2002-04-15  David S. Miller  <davem@redhat.com>
6929         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6930         as being CLOBBERed.
6932 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6934         PR c/6290
6935         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6936         CONST_VECTOR is { 0, ... 0 }.
6938 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6940         * doc/install.texi (Installing GCC: Configuration): Clarify
6941         the only supported ways to configure gcc.
6943 2002-04-15  Roland McGrath  <roland@frob.com>
6945         * config.gcc (alpha*-*-gnu*): New target configuration.
6946         * config/alpha/gnu.h: New file for it.
6947         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6949 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6951         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6952         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6953         * tree.h (expand_start_stmt_expr): Update prototype.
6954         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6955         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6956         on the STMT_EXPR created for the inline function.
6958 2002-04-15  Richard Henderson  <rth@redhat.com>
6960         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6961         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6962         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6963         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6964         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6965         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6966         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6967         Define __gnu_linux__, not gnu_linux.
6968         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6970 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6972         Remove Chill front end.
6973         * gcc.c (default_compilers): Remove Chill entries.
6974         * ch: Remove directory.
6975         * doc/frontends.texi: Remove information about Chill.
6976         * doc/sourcebuild.texi: Likewise.
6977         * doc/standards.texi: Likewise.
6979 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6981         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6982         (LONGLONG_STANDALONE): Define.
6984 2002-04-15  David S. Miller  <davem@redhat.com>
6986         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6987         Call emit_library_call with LCT_NORMAL.
6988         (sparc_initialize_trampoline): Use LCT_foo instead of
6989         magic constant in emit_library_call invocations.
6990         (sparc64_initialize_trampoline): Likewise.
6991         (sparc_profile_hook): Likewise.
6992         * config/sparc/sparc.md: Likewise.
6994         * config/sparc/sparc.c (sparc_extra_constraint_check):
6995         Fix type of argument 'c'.
6996         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6997         Likewise.
6999 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
7001         * diagnostic.h (output_buffer_state): Redefine.
7002         (output_format_decoder): New macro.
7003         (output_prefixing_rule): Likewise.
7004         (output_line_cutoff): Likewise.
7005         (diagnostic_format_decoder): Adjust.
7006         (diagnostic_prefixing_rule): Likewise.
7007         (diagnostic_line_cutoff): Likewise.
7008         (diagnostic_state): Likewise.
7009         (diagnostic_kind_count): Likewise.
7010         (diagnostic_buffer): Now a macro.
7012         * diagnostic.c (diagnostic_buffer): Remove definition.
7013         (output_is_line_wrapping): Adjust.
7014         (set_real_maximum_length): Likewise.
7015         (output_set_maximum_length): Likewise.
7016         (init_output_buffer): Likewise.
7017         (lhd_print_error_function): Likewise.
7018         (output_do_verbatim): Likewise.
7020 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7022         * cpperror.c (print_location): Don't print include chain
7023         if line == 0.
7024         (cpp_begin_message): Update to use DL_ macros.
7025         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7026         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7027         cpp_notice, cpp_notice_from_errno): Remove.
7028         (cpp_error, cpp_error_with_line): Update to take a diagnostic
7029         level.
7030         (cpp_errno): New.
7031         * cppexp.c (CPP_ICE): Remove.
7032         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
7033         lex, integer_overflow, _cpp_parse_expr): Update.
7034         * cppfiles.c (read_include_file, find_include_file,
7035         handle_missing_header, _cpp_read_file, remap_filename): Update.
7036         * cpphash.h (enum error_type): Remove.
7037         (_cpp_begin_message): Update.
7038         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
7039         cpp_handle_option, cpp_post_options): Update.
7040         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
7041         skip_whitespace, parse_identifier, parse_slow, parse_string,
7042         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
7043         cpp_interpret_charconst): Update.
7044         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
7045         lex_macro_node, do_undef, glue_header_name, parse_include,
7046         do_include_common, read_flag, do_line, do_linemarker, do_ident,
7047         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
7048         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
7049         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
7050         _cpp_pop_buffer, do_diagnostic): Update.
7051         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
7052         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
7053         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7054         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7055         cpp_notice, cpp_notice_from_errno): Remove.
7056         (cpp_error, cpp_error_with_line): Update to take a diagnostic
7057         level.
7058         (cpp_errno): New.
7059         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
7060         collect_args, enter_macro_context, save_parameter, parse_params,
7061         _cpp_create_definition, check_trad_stringification,
7062         cpp_macro_definition): Update.
7063         * cppmain.c (cpp_preprocess_file): Update.
7064         * fix-header.c (read_scan_file): Update.
7066 2002-04-14  Andreas Schwab  <schwab@suse.de>
7068         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
7070 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7072         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
7074 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
7076         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
7077         not gnu_hurd.
7079 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
7081         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
7083 2002-04-13      Joel Sherrill <joel@OARcorp.com>
7085         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
7086         sparc-elf and sparc-rtems targets.
7088 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
7090         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
7091         defined, and __gnu_hurd__ wherever __GNU__ is defined.
7092         * arm/linux-elf.h: Likewise.
7093         * cris/aout.h: Likewise.
7094         * cris/linux.h: Likewise.
7095         * i370/linux.h: Likewise.
7096         * i386/gnu.h: Likewise.
7097         * i386/linux-aout.h: Likewise.
7098         * i386/linux-oldld.h: Likewise.
7099         * i386/linux.h: Likewise.
7100         * i386/linux64.h: Likewise.
7101         * ia64/linux.h: Likewise.
7102         * m68k/linux-aout.h: Likewise.
7103         * m68k/linux.h: Likewise.
7104         * mips/linux.h: Likewise.
7105         * pa/pa-linux.h: Likewise.
7106         * pj/linux.h: Likewise.
7107         * rs6000/sysv4.h: Likewise.
7108         * s390/linux.h: Likewise.
7109         * sh/linux.h: Likewise.
7110         * sparc/linux-aout.h: Likewise.
7111         * sparc/linux.h: Likewise.
7112         * sparc/linux64.h: Likewise.
7113         * xtensa/linux.h: Likewise.
7115 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
7117         * stmt.c (check_unique_operand_names): Expect operand names to
7118         be strings rather than identifiers.  Use simple_cst_equal to
7119         compare them.
7120         (resolve_operand_name_1): Make same identifier to string change here.
7121         * c-parse.in (asm_operand): Convert a named operand into a string.
7122         * cp/parse.y (asm_operand): Likewise.
7124 2002-04-13  Andreas Schwab  <schwab@suse.de>
7126         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
7128 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
7130         Revert these changes:
7132         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7134         PR c++/5571
7135         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7137 2002-04-12  Richard Henderson  <rth@redhat.com>
7139         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
7140         (sparc*-*-solaris): Clean up header files.
7141         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
7142         and plan on generating 64-bit code.
7143         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
7144         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
7145         * config/sparc/sol2-sld-64.h: Rename ...
7146         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
7147         for AS_SPARC64_FLAG not defined.
7148         * config/sparc/sol2-gld-bi.h: New.
7149         * config/sparc/sol2-sld.h: Remove.
7150         * config/sparc/sol26-sld.h: New.
7151         * config/sparc/sol2.h: Tidy comments.
7152         * doc/install.texi: Document sparc-solaris configury changes.
7154 2002-04-12  Richard Henderson  <rth@redhat.com>
7156         * recog.c (offsettable_address_p): Match the logic in adjust_address.
7158         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
7159         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
7161 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7163         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
7165 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
7167         * pa.c (pa_can_combine_p): Call extract_insn before calling
7168         constrain_operands.
7170 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
7172         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
7173         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
7174         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7175         (CPP_PREDEFINES): Handle __declspec.
7176         * config/i386/t-interix (USER_H): Remove.
7178 2002-04-12  DJ Delorie  <dj@redhat.com>
7180         * integrate.c (compare_blocks): Make comparisons safe for when
7181         sizeof(int) < sizeof(char *).
7182         (find_block): Likewise.
7184 2002-04-12  Jan Hubicka  <jh@suse.cz>
7185             David Edelsohn  <edelsohn@gnu.org>
7187         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
7188         registers.
7189         (symbol_ref_operand): New.
7190         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
7191         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
7193 2002-04-12  Andreas Schwab  <schwab@suse.de>
7195         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
7196         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
7197         overrides the definition in config/svr4.h.
7199 2002-04-12      Eric Norum <eric.norum@usask.ca>
7201         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
7202         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
7203         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
7204         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
7205         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
7206         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
7207         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
7208         definitions to config/rtems.h and make the targets more similar.
7210 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7212         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7213         POINTERS_EXTEND_UNSIGNED.
7214         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7215         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7217         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7218         not specified.
7220 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
7222         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7223         depends on TARGET_SHMEDIA, not TARGET_SH5.
7225 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
7227         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7228         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7230 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
7232         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7233         no r0 clobber.
7235 2002-04-12  Andreas Schwab  <schwab@suse.de>
7237         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7239 2002-04-12  Richard Henderson  <rth@redhat.com>
7241         PR bootstrap/4191
7242         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7244         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7245         modes spanning multiple hard regs.
7247         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7249 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7251         * pa.c (pa_output_function_prologue): Don't accumulate the total
7252         number of code bytes when using TARGET_64BIT, or gas, SOM and not
7253         the portable runtime.
7254         (output_deferred_plabels): Handle 64bit plabels.
7255         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7256         generating pic code using the GAS assembler for object formats that
7257         are not SOM (ie., ELF32 and ELF64).
7258         (output_millicode_call): Check attribute type if attribute length is 28.
7259         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
7260         dbr_sequence_length once.
7261         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7262         dbr_sequence_length once.
7263         * pa.h (TARGET_SOM): Define if not defined.
7264         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7265         with GAS and not SOM.
7266         (jump, call_internal_reg, call_value_internal_reg): Likewise.
7267         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
7269 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7271         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7272         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7273         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7274         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7275         elfos.h and dbxelf.h values are fine now.
7276         * config/i386/freebsd.h, config/alpha/freebsd.h
7277         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7279 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7281         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7282         or set Acpu or Amachine.  Reformat.
7283         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7284         define.
7285         (LINK_SPEC): Do not need to undef.
7286         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7287         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7288         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7289         define.
7290         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7291         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7292         (LINK_SPEC): Do not need to undef.
7293         (DONT_USE_BUILTIN_SETJMP): Do not define.
7294         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7295         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
7296         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7297         Remove trailing spaces.
7298         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7299         __ELF__, or set Acpu or Amachine.  Reformat.
7300         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7301         define.
7303 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7305         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7306         all other *-*-freebsd* targets.
7308 2002-04-11  Richard Henderson  <rth@redhat.com>
7310         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7312 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7314         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7315         Include {cpu}/{cpu}.h thru tm_file.
7316         (alpha*-*-linux*ecoff): Remove target.
7317         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7318         (LINK_SPEC): Remove, is not OS independent.
7319         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7320         (LINK_SPEC): Do not need to #undef any longer.
7321         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7322         any longer.
7323         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7324         __ELF__.
7325         (LINK_SPEC): Moved here from alpha/elf.h.
7326         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7327         SUB_CPP_PREDEFINES.
7328         * config/alpha/linux-ecoff.h: Remove.
7329         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7330         (CPP_SPEC): Define _POSIX_SOURCE as needed.
7331         (CPP_SUBTARGET_SPEC): Do not define.
7332         (LINK_SPEC): Do not need to #undef any longer.
7333         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7334         * config/alpha/vms.h: Likewise.
7336 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
7338         * doc/extend.texi: Remove old claim that typedefs cannot have
7339         an alignment attribute.
7341 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7343         PR optimization/6177
7344         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7345         bitpos is 0 and bitsize CONCAT size.
7347 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7349         PR c/6223
7350         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7352 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
7354         * config/alpha/freebsd.h: Minor reformatting.
7355         (CPP_SPEC): Define ELF and add cpp_subtarget.
7356         (ASM_SPEC): No longer needed.
7358 2002-04-11  Richard Henderson  <rth@redhat.com>
7360         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7361         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
7362         (dimode mem/zero splitter): New.
7364 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
7366         * config/cris/cris.c (cris_override_options): Tweak error message
7367         for PIC not implemented.
7369         * config/cris/cris.h: Tweak comments related to parameter-passing.
7371         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7373 2002-04-10  Richard Henderson  <rth@redhat.com>
7375         * except.c (add_ehl_entry): Allow duplicates after landing pad
7376         creation.
7378 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
7380         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7382 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
7384         * c-decl.c (c_init_decl_processing): Move generation of
7385         decls for g77_integer_type_node and friends from here ...
7386         * c-common.c (c_common_nodes_and_builtins): ... to here.
7388 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
7390         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7391         is only used as frame pointer when frame_pointer_needed is true.
7393 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
7395         PR target/817
7396         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7397         for the fact that the pool entry uses two words.
7398         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
7399         1k bytes.
7400         (movdf_soft_insn): Similarly.
7401         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7402         for the fact that the pool entry uses three words.
7404 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
7406         * config/mips/mips.c (mips_va_arg): When using the struct version
7407         of the EABI va_list, allow arguments in the register save area to
7408         take up less room than a stack argument.
7410 2002-04-10  Richard Henderson  <rth@redhat.com>
7412         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7413         if EXPAND_INITIALIZER.
7415 2002-04-09  Richard Henderson  <rth@redhat.com>
7417         * config/alpha/alpha.md (movdi_er_maybe_g): New.
7418         * config/alpha/alpha.c (alpha_expand_mov): Use it.
7420 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
7422         PR optimization/6233
7423         * rtlanal.c (pure_call_p): New function.
7424         * rtl.h (pure_call_p): Declare.
7425         * loop.c (prescan_loop): Use it to set has_nonconst_call.
7426         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7428 2002-04-09  Eric Christopher  <echristo@redhat.com>
7430         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7431         information to .comm directive.
7433 2002-04-09  Richard Henderson  <rth@redhat.com>
7435         PR c/5078
7436         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7438 2002-04-09  Richard Henderson  <rth@redhat.com>
7440         * basic-block.h (flow_delete_block_noexpunge): Declare.
7441         (expunge_block_nocompact): Declare.
7442         * cfg.c (expunge_block_nocompact): Split out from ...
7443         (expunge_block): ... here.
7444         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7445         (flow_delete_block_noexpunge): Split out from ...
7446         (flow_delete_block): ... here.
7447         * cfgcleanup.c (delete_unreachable_blocks): Compact while
7448         removing dead blocks.
7449         * except.c (exception_handler_labels): Remove.
7450         (exception_handler_label_map): New.
7451         (struct eh_region): Add aka member.
7452         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7453         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7454         (for_each_eh_label, for_each_eh_label_1): New.
7455         (init_eh): Register exception_handler_label_map.
7456         (free_eh_status): Use free_region.
7457         (find_exception_handler_labels): Use the map, not the list.
7458         (remove_exception_handler_label): Likewise.
7459         (maybe_remove_eh_handler): Likewise.
7460         (remove_eh_handler): Use the region aka bitmap.
7461         * except.h (exception_handler_labels): Remove.
7462         (for_each_eh_label): Declare.
7463         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7464         * loop.c (invalidate_loops_containing_label): New.
7465         (find_and_verify_loops): Use it.  Use for_each_eh_label.
7466         * sched-rgn.c (is_cfg_nonregular): Use
7467         current_function_has_exception_handlers.
7469 2002-04-09  Richard Henderson  <rth@redhat.com>
7471         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7472         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7473         Do not return changed status.
7474         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7475         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7476         New functions that do return changed status.
7477         * sbitmap.h: Update decls.
7478         * gcse.c, lcm.c: Use _cg functions as needed.
7480 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7482         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7483         (sh64-*-elf*, sh-*-rtemself*): Likewise.
7484         * config/sh/embed_bb.c: New file.
7485         * config/sh/embed-elf.h: New file.
7486         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7487         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
7488         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7489         __PTRDIFF_TYPE__ .
7490         (SUBTARGET_CPP_PTR_SPEC): Don't define.
7491         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7492         Add subtarget_asm_endian_spec.
7493         (ASM_SPEC): Use subtarget_asm_endian_spec.
7494         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7495         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7496         (WCHAR_UNSIGNED): Define.
7497         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7498         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7499         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7500         Fix value.
7501         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7502         (sh_adjust_cost): Likewise.
7503         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7504         __PTRDIFF_TYPE__ .
7505         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7506         (WCHAR_TYPE_SIZE): Likewise.
7507         (ASM_SPEC): Use subtarget_asm_endian_spec.
7508         (SH_ELF_WCHAR_TYPE): #undef/ #define.
7509         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7510         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7511         (MAX_WCHAR_TYPE_SIZE): Don't #define .
7512         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7513         (USER_LABEL_PREFIX): Don't #undef /#define .
7514         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7515         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7516         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7517         (ASM_SPEC): Likewise.
7518         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7519         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7520         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7521         (LIB2FUNCS_EXTRA): Define.
7522         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7523         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7524         (LIB1ASMFUNCS_CACHE): Define.
7525         (LIB2FUNCS_EXTRA): Redefine empty.
7527 2002-04-08  Richard Henderson  <rth@redhat.com>
7529         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7531 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7533         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7534         and optimize for size.
7535         (__do_global_ctors): Fix pointer comparison.
7536         (__do_global_dtors): Likewise.
7538 2002-04-09  David S. Miller  <davem@redhat.com>
7540         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7541         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7542         allow reloading pseudos.
7543         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7544         * config/sparc/sparc-protos.h: Declare it.
7546         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7547         unsigned comparison warning.
7548         (output_restore_regs): Mark leaf_function as unused.
7550 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7552         * expr.c (is_aligning_offset): New function.
7553         (expand_expr, case COMPONENT_EXPR): Call it.
7555 2002-04-08  David S. Miller  <davem@redhat.com>
7557         PR target/6082
7558         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7560         Make init_priority work on Sparc when using GNU ld.
7561         * config/sparc/linux.h, config/sparc/linux64.h,
7562         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7563         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7564         * config/sparc/sol2-gld.h: New file to do the same.
7565         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7566         sparc/sol2-gld.h to tm_file.
7568         PR optimization/4328
7569         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7570         * doc/md.texi: Document it.
7571         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7572         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7573         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7574         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7575         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7577 2002-04-08  Andreas Jaeger  <aj@suse.de>
7579         * stmt.c (expand_asm_operands): Revert last patch from Richard
7580         Henderson.
7582 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7584         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7585         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7587 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7589         * doc/contrib.texi (Contributors): Add David O'Brien.
7591 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7593         * configure.in (auto-build.h): Use target_alias and build_alias
7594         when running configure.
7595         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7596         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7597         * configure: Regenerate.
7599 2002-04-07  David S. Miller  <davem@redhat.com>
7601         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7603 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7605         PR 5933
7606         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7607         generating 32-bit pic code.
7609 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7611         * cppinit.c (cpp_create_reader): Initialize
7612         discard_comments_in_macro_exp.
7613         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7614         (cpp_handle_option): Handle "-CC" option.
7615         * cpplex.c (save_comment): If saving a C++ comment in
7616         a directive, convert it to a C comment.
7617         (_cpp_lex_direct): Pass second comment start character to
7618         save_comment to indicate comment type.
7619         * cpplib.c (_cpp_handle_directive): If processing
7620         a "#define" directive and discard_comments_in_macro_exp
7621         is false,  re-enable saving of comments.
7622         (lex_macro_node): If discard_comments_in_macro_exp is false,
7623         discard any comments before the macro identifier.
7624         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7625         member.
7626         * cppmacro.c (cpp_get_token): If expanding a macro while
7627         processing a directive, discard any comments we might encounter.
7628         (parse_params): If discard_comments_in_macro_exp is false,
7629         ignore comments in the macro parameter list.
7630         * gcc.c (cpp_unique_options): Add "-CC" option.
7631         (option_map): Map "--comments-in-macros" to "-CC".
7632         * doc/cppopts.texi: Document "-CC" option.
7633         * f/lang-specs.h: Add "-CC" option.
7634         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7635         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7636         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7637         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7638         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7639         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7641 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7643         PR middle-end/6180
7644         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7646 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7648         PR c++/5571
7649         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7651         PR opt/5120
7652         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7653         RTX_UNCHANGING_P for the functions arguments when a tail call
7654         is made.
7656 2002-04-06  Jason Merrill  <jason@redhat.com>
7658         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7659         (parse_options_and_default_flags): Set them appropriately.
7660         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7662 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7664         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7665         here.
7667         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7668         semicolon.
7670         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7671         types come in by-reference.  Fix typo in comment.
7673 2002-04-05  David S. Miller  <davem@redhat.com>
7675         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7676         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7677         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7678         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7680 2002-04-05  David S. Miller  <davem@redhat.com>
7682         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7683         are not going to emit return instructions, emit at least a nop
7684         for the sake of sane backtraces.
7686 2002-04-05  Richard Henderson  <rth@redhat.com>
7688         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7690 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7692         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7694 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7696         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7697         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7698         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7700 2002-04-05  Andreas Schwab  <schwab@suse.de>
7702         * c-convert.c: Include c-common.h.
7703         * Makefile.in (c-convert.o): Updated.
7705 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7707         * mklibgcc.in: Use separate libgcc.map for each multilib.
7708         * Makefile.in (distclean): Don't remove libgcc.map here.
7710 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7712         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7713         genmultilib invocation.
7715 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7717         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7718         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7719         to num_gprs for symmetry.
7720         * config/mips/mips.c: Adjust accordingly.
7722 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7724         * c-common.c (truthvalue_conversion): Rename, update.
7725         * c-common.h (c_common_truthvalue_conversion): New.
7726         * c-convert.c (convert): Update.
7727         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7728         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7729         * c-typeck.c (build_binary_op, build_unary_op,
7730         build_conditional_expr): Update.
7731         * fold-const.c (constant_boolean_node, fold): Use langhook.
7732         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7733         * langhooks.h (struct lang_hooks): New hook.
7734         * stmt.c (expand_decl_cleanup): Use langhook.
7735         * tree.h (truthvalue_conversion): Remove.
7736 objc:
7737         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7739 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7741         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7742         Add rules to make null object file.
7744 2002-04-04  Jim Blandy  <jimb@redhat.com>
7746         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7747         macro formal parameter names.
7749 2002-04-04  David S. Miller  <davem@redhat.com>
7751         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7753 2002-04-04  Richard Henderson  <rth@redhat.com>
7755         PR middle-end/5099
7756         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7757         Support copies into and out of memory.  Don't accept allows_reg
7758         and allows_mem as gospel.
7760 2002-04-04  Richard Henderson  <rth@redhat.com>
7762         PR opt/6165
7763         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7764         (write_dependence_p): Likewise.
7766 2002-04-04  Richard Henderson  <rth@redhat.com>
7768         * predict.c (estimate_bb_frequencies): Do frequency calculation
7769         with a volatile temporary.
7771 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7773         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7775 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7777         PR c++/6119
7778         * final.c (final_start_function): Don't bump profile_label_no here...
7779         (final_end_function): ...but here.
7781 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7783         * config/sparc/sparc.md (pic): New attribute.
7784         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7785         into stack slots.
7786         (split after do_builtin_setjmp_setup): New.
7788 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7790         PR fortran/6106
7791         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7792         change.
7794 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7796         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7797         UNITS_PER_WORD for zero sized aggregates.
7799 2002-04-03  David S. Miller  <davem@redhat.com>
7801         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7802         one-character spec for this, just use %(link_gcc_c_sequence).
7804 2002-04-03  David S. Miller  <davem@redhat.com>
7806         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7807         handling.
7809 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7811         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7812         (DWARF_FRAME_RETURN_COLUMN): Move.
7813         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7814         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7815         * pa.c (except.h, predict.h): Include.
7816         (FRP): Delete.
7817         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7818         (output_ascii): Add cast.
7819         (store_reg_modify): Revise to add frame notes.
7820         (set_reg_plus_d): Likewise.
7821         (compute_frame_size): Include space for eh data registers in frame if
7822         the current function calls eh_return.
7823         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7824         function calls eh_return.  Save eh data registers if the current
7825         function calls eh_return.  Fix code to add frame notes.  Emit
7826         blockage to prevent insns with frame notes being scheduled in the
7827         delay slot of calls.
7828         (hppa_expand_epilogue): Restore eh data registers and do final stack
7829         adjustment if the current function calls eh_return.  Don't add frame
7830         notes.
7831         (output_call): Revise for change in length of call insn.  Don't do
7832         return pointer adjustment for an unconditional jump in the delay slot
7833         of a call when using frame notes.
7834         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7835         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7836         (ARG_POINTER_CFA_OFFSET): Define.
7837         * pa.md (return_external_pic): New pattern.
7838         (prologue): Correct formatting.  Use return_external_pic if current
7839         function calls eh_return.
7840         (call_internal_symref, call_value_internal_symref,
7841         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7842         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7843         respectively.
7844         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7846         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7847         list of targets to check using "nop" insn.
7848         * configure: Rebuilt.
7850 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7852         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7854 2002-04-03  David S. Miller  <davem@redhat.com>
7856         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7857         library sequence passed to the linker.
7858         (LINK_COMMAND_SPEC): Use it.
7859         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7860         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7861         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7863 2002-04-03  Jason Merrill  <jason@redhat.com>
7865         * except.c (struct eh_status): Remove protect_list.
7866         (begin_protect_partials, end_protect_partials): Remove.
7867         (add_partial_entry): Remove.
7868         * except.h: Remove prototypes.
7870         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7871         expand_decl_cleanup_eh.
7873         PR c++/5636
7874         * tree.h (CLEANUP_EH_ONLY): New macro.
7875         * stmt.c (expand_decl_cleanup_eh): New fn.
7876         (expand_cleanups): Check CLEANUP_EH_ONLY.
7877         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7878         Use expand_decl_cleanup_eh.
7879         (expand_stmt): Adjust.
7880         * c-common.h: Adjust prototype.
7882 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7884         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7885         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7886         (cris_target_asm_function_epilogue): Ditto.
7887         (cris_initial_frame_pointer_offset): Ditto.
7888         (cris_simple_epilogue): Ditto.
7889         (cris_expand_builtin_va_arg): Variable-size types come in
7890         by-reference.
7892 2002-04-03  David S. Miller  <davem@redhat.com>
7894         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7895         little-endian.
7896         (set_fast_math): Correct 'fsr' type.
7898 2002-04-03  Richard Henderson  <rth@redhat.com>
7900         PR opt/3569
7901         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7902         * toplev.c (check_global_declarations): Use it.
7903         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7904         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7905         (LANG_HOOKS_DECLS): Add it.
7906         * langhooks.c (lhd_warn_unused_global_decl): New.
7907         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7908         * c-objc-common.c (c_warn_unused_global_decl): New.
7909         * c-tree.h (c_warn_unused_global_decl): Declare.
7910         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7912 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7914         * langhooks-def.h (lhd_set_decl_assembler_name,
7915         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7916         (LANG_HOOKS_INITIALIZER): Update.
7917         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7918         * langhooks.h (struct lang_hooks): New hook.
7919         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7920         (lang_set_decl_assembler_name): Remove.
7921         (init_obstacks): Don't set hook.
7922         (decl_assembler_name): New function.
7923         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7924         (decl_assembler_name): New.
7925         (lang_set_decl_assembler_name): Remove.
7927 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7929         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7930         works properly with .hidden symbols.
7931         * configure: Rebuilt.
7932         * config.in: Rebuilt.
7933         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7934         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7935         properly with .hidden symbols.
7937 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7939         PR middle-end/6102
7940         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7941         USE argument.
7943 2002-04-03  Richard Henderson  <rth@redhat.com>
7945         PR opt/4120
7946         * sched-rgn.c (sets_likely_spilled): New.
7947         (sets_likely_spilled_1): New.
7948         (add_branch_dependences): Use it.
7950 2002-04-02  Richard Henderson  <rth@redhat.com>
7952         PR opt/4311
7953         * loop.h (LOOP_FIRST_PASS): New.
7954         * loop.c (strength_reduce): Mind it when deciding to unroll.
7955         * toplev.c (rest_of_compilation): Set it.
7957 2002-04-02  David S. Miller  <davem@redhat.com>
7959         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7960         mems_ok_for_ldd_peep when the order of the loads being examined
7961         is reversed.
7962         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7963         existing comment to increase comprehension of this situation.
7965 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7967         * config/sh/sh.md: Don't use union real_extract.
7969 2002-04-02  Richard Henderson  <rth@redhat.com>
7971         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7973 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7975         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7976         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7977         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7978         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7979         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7980         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7981         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7982         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7983         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7984         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7985         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7986         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7987         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7988         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7989         Include as many configury headers via tm_file as possible.  This
7990         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7991         * config/openbsd-oldgas.h: New file.
7992         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7993         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7994         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7995         config/i386/i386-coff.h, config/i386/i386-interix.h,
7996         config/i386/iscdbx.h, config/i386/linux-aout.h,
7997         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7998         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7999         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
8000         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
8001         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
8002         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
8003         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
8004         config/i386/vxi386.h: Do not directly include configury headers.
8005         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
8006         Directly include configury headers that are no longer automatically
8007         included by the above headers.
8008         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
8009         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
8010         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
8011         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
8012         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
8013         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
8014         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
8015         (TARGET_VERSION): Define.
8016         * config/i386/beos-elf.h, config/i386/freebsd.h,
8017         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
8018         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
8019         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
8020         config/i386/sco5.h, config/i386/sysv4.h
8021         (TARGET_VERSION): Do not need to protect.
8022         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
8023         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
8024         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
8025         config/i386/i386-interix.h, config/i386/linux-aout.h,
8026         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
8027         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
8028         (YES_UNDERSCORES): Do not define - not needed.
8029         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
8030         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8031         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
8032         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
8033         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8034         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
8035         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
8036         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
8038 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
8039             Richard Henderson  <rth@redhat.com>
8041         PR c/5484
8042         * function.c (assign_temp): Accept either type or decl argument.
8043         Detect variables whose size is too large to fit into an integer.
8044         * stmt.c (expand_decl): Pass the decl, not the type.
8046 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
8048         * protoize.c: Match include directory usage with cppdefault.c.
8050 2002-04-03  Jeffrey A Law  (law@redhat.com)
8051             Hans-Peter Nilsson  <hp@bitrange.com>
8053         * combine.c (simplify_comparison): Avoid narrowing a comparison
8054         with a paradoxical subreg when doing so would drop signficant bits.
8056 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
8058         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
8059         if POINTERS_EXTEND_UNSIGNED is defined.
8061 2002-04-02  Richard Henderson  <rth@redhat.com>
8063         PR opt/3967
8064         * local-alloc.c (contains_replace_regs): LO_SUM may contain
8065         replace regs.
8067 2002-04-02  Richard Henderson  <rth@redhat.com>
8069         * doc/standards.texi: Document required freestanding libc entry points.
8071 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
8073         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
8074         associated splitter.  Remove MQ constraint.
8075         (ctrdi_internal4): Correct CCmode clobber.
8077 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8079         * milli64.S ($$dyncall): New function.
8080         * t-linux (LIB1ASMFUNCS): Revise module list.
8081         (LIB1ASMSRC): Use pa/milli64.S.
8083 2002-04-02  Richard Henderson  <rth@redhat.com>
8085         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
8086         rename solaris_sys_varargs_h.
8088 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8090         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
8091         the same mode as its component.
8093 2002-04-02  Richard Henderson  <rth@redhat.com>
8095         PR opt/190
8096         * final.c (this_is_asm_operands): Export.
8097         * output.h (this_is_asm_operands): Declare.
8098         * config/i386/i386.c (print_operand): Error odd asm operands.
8100 2002-04-02  Richard Henderson  <rth@redhat.com>
8102         PR opt/420
8103         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
8105 2002-04-01  Richard Henderson  <rth@redhat.com>
8107         PR target/1538
8108         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
8109         * fixinc/fixincl.x: Rebuild.
8111 2002-04-01  Richard Henderson  <rth@redhat.com>
8113         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
8114         (atomic_alloc, atomic_free): New.
8115         (SIZE, MASK_FOR, PTR_IN): New.
8116         (emergency_reg_state, emergency_reg_state_free): New.
8117         (emergency_labeled_state, emergency_labeled_state_free): New.
8118         (reg_state_alloced, labeled_state_alloced): New.
8119         (alloc_reg_state, free_reg_state): New.
8120         (alloc_label_state, free_label_state, free_label_states): New.
8121         (push, pop, dup_state_stack, free_state_stack): Use them.
8122         (desc_label_state): Likewise.
8123         (uw_frame_state_for): Free label states and state stack.
8124         (uw_update_reg_address): Eliminate warnings.
8126 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
8128         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
8129         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
8131 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8133         * c-decl.c (grokdeclarator): Update.
8134         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8135         * c-tree.h (c_mark_addressable): New.
8136         * c-typeck.c (default_function_array_conversion, build_unary_op,
8137         build_array_ref, convert_for_assignment): Update.
8138         (mark_addressable): Rename.
8139         * calls.c (try_to_integrate, expand_call): Use langhook.
8140         * expr.c (expand_expr): Use langhook.
8141         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
8142         * langhooks.h (struct lang_hooks): New hook.
8143         * stmt.c (expand_asm_operands): Use langhook.
8144         * tree.h (mark_addressable): Remove.
8145 objc:
8146         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8148 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
8150         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
8151         in previous change.
8153 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
8155         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
8156         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
8158 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8160         * c-common.c (unsigned_conversion_warning, convert_and_check,
8161         unsigned_type, signed_type, shorten_compare,
8162         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
8163         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
8164         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
8165         New.
8166         * c-decl.c (grokdeclarator): Update.
8167         * c-format.c (check_format_types): Update.
8168         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8169         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8170         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
8171         * convert.c (convert_to_integer): Use new hooks.
8172         * expmed.c (make_tree): Use new hooks.
8173         * expr.c (store_expr): Use new hooks.
8174         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
8175         all_ones_mask_p, unextend, fold): Use new hooks.
8176         * langhooks.h (struct lang_hooks_for_types): New hooks.
8177         * tree.h (signed_or_unsigned_type, signed_type,
8178         unsigned_type): Remove.
8179 objc:
8180         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8181         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8183 2002-03-31  Richard Henderson  <rth@redhat.com>
8185         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
8186         (desc_frgr_mem): Fix reference to f16-f31.
8188 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8190         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
8191         RTVEC_ELT): Const-ify.
8192         * varray.h (VARRAY_CHECK): Const-ify.
8193         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
8194         ggc_mark_rtvec, ggc_mark): Const-ify.
8196 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8198         * diagnostic.c: Include langhooks-def.h.
8199         * Makefile.in (diagnostic.o): Update.
8201 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8203         * c-common.c (c_unsafe_for_reeval): Rename.
8204         * c-common.h (c_unsafe_for_reeval): Rename.
8205         * c-decl.c (finish_incomplete_decl): Rename.
8206         (c_init_decl_processing): Don't set langhook.
8207         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8208         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8209         * c-objc-common.c (c_objc_common_init): Don't set langhook.
8210         * c-tree.h (finish_incomplete_decl): Rename.
8211         * langhooks-def.h (lhd_unsafe_for_reeval): New.
8212         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8213         (LANG_HOOKS_INITIALIZER): Update.
8214         * langhooks.c (lhd_unsafe_For_reeval): New.
8215         * langhooks.h (struct langhooks): New hooks.
8216         * toplev.c (incomplete_decl_finalize_hook): Remove.
8217         (wrapup_global_declarations): Update.
8218         * tree.c (lang_unsafe_for_reeval): Remove.
8219         (unsafe_for_reeval): Update.
8220         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8221         Remove.
8222 objc:
8223         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8224         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8226 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8228         * diagnostic.c (print_error_function): Remove.
8229         (default_print_error_function): Rename.
8230         (report_error_function): Update.
8231         * diagnostic.h (print_error_function): Remove.
8232         (default_print_error_function): Remove.
8233         * langhooks-def.h (struct diagnostic_context): Predeclare.
8234         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8235         (LANG_HOOKS_INITIALIZER): Update.
8236         * langhooks.h (struct diagnostic context): Predeclare.
8237         (struct lang_hooks): New hook.
8239 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8241         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8242         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8243         !flag_pic.
8244         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8245         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8246         of PIC_OFFSET_TABLE_REGNUM thruout.
8247         * config/rs6000/rs6000.md: Likewise.
8248         * config/rs6000/darwin.h: Likewise.
8250 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8252         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8253         unsigned HOST_WIDE_INT, not unsigned int.
8255 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8257         PR middle-end/6096, middle-end/6098, middle-end/6099
8258         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8259         CODE_LABELs.
8260         (fill_slots_from_thread): Likewise.
8262 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8264         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8265         floating fields in float regs.
8266         (function_arg_record_value_2): Likewise.
8268 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8270         * config/mmix/mmix.md (define_constants): Remove misleading
8271         FIXME.  Add MMIX_fp_rO_OFFSET.
8272         ("nonlocal_goto_receiver"): Don't have stack-frame address of
8273         saved rO as part of the pattern.  Remove FIXME.
8274         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
8275         here, at output-time.
8277 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8279         PR middle-end/6100
8280         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8281         REG_BR_PRED.
8282         (output_v9branch): Likewise.
8284 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8286         * gcc.c: Revert previous patch for now.
8287         * config/i386/djgpp.h: Likewise.
8289 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8291         * config/mmix/crti.asm (_init): Register _fini with atexit.
8292         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8294 2002-03-31  Richard Henderson  <rth@redhat.com>
8296         PR target/3997
8297         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8298         (ASM_OUTPUT_DEF_FROM_DECLS): New.
8300 2002-03-31  Richard Henderson  <rth@redhat.com>
8302         * libgcc2.c (__bb_exit_func): Make static.
8304         * config/alpha/alpha.md (trap): New.
8306 2002-03-31  Richard Henderson  <rth@redhat.com>
8308         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8309         promoted argument types; build trap.
8310         (expand_builtin_trap): New.
8311         (expand_builtin): Use it.
8312         * stmt.c (expand_nl_goto_receivers): Likewise.
8313         * expr.h (expand_builtin_trap): Declare.
8314         * libfuncs.h (LTI_abort, abort_libfunc): New.
8315         * optabs.c (init_optabs): Init abort_libfunc.
8317 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8319         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8320         (LINK_COMMAND_SPEC): ... from here.
8321         (init_gcc_specs): Duplicate it here too, omitting
8322         shared_name in the second copy.
8323         (init_spec): Test for duplicate
8324         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8326 2002-03-30  David S. Miller  <davem@redhat.com>
8328         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8329         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8331 2002-03-30  Roger Sayle <roger@eyesopen.com>
8332             Richard Henderson  <rth@redhat.com>
8334         * regmove.c (combine_stack_adjustments_for_block): Avoid
8335         emitting a stack adjustment of zero bytes.  Let delete_insn
8336         update bb->head.
8338 2002-03-30  Richard Henderson  <rth@redhat.com>
8340         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8341         (sparc_emitting_epilogue): New.
8342         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8343         * config/sparc/sparc-protos.h: Update.
8344         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8345         (TARGET_SWITCHES): Update.
8346         * config/sparc/sparc.md (return): Remove.
8347         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8348         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8349         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8350         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8351         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8352         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8353         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8354         Remove MASK_EPILOGUE.
8355         * doc/invoke.texi: Update.
8357 2002-03-30  Daniel Berlin  <dan@dberlin.org>
8359         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8360         CPP will start the file for us.
8362 2002-03-30  Richard Henderson  <rth@redhat.com>
8364         PR target/5446
8365         * config/ia64/ia64.c (group_barrier_needed_p): Special case
8366         prologue_allocate_stack.
8367         (ia64_single_set): Use insn codes for recognition of special
8368         cases, not rtl matching.
8369         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8371 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
8373         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8375 2002-03-30  Richard Henderson  <rth@redhat.com>
8377         PR target/6032
8378         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8379         or -fomit-frame-pointer with profiling.
8380         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8381         (FUNCTION_PROFILER): Do nothing.
8382         (PROFILE_HOOK): New.
8383         * config/sparc/sparc.c (sparc_override_options): Don't check
8384         code models for profiling.
8385         (sparc_function_profiler): Remove.
8386         (sparc_profile_hook): New.
8387         * config/sparc/sparc-protos.h: Update.
8389 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8391         PR optimization/6086
8392         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8393         of SUBREG of volatile MEM or because the MEM was mode dependent,
8394         return CLOBBER instead of unmodified SUBREG.
8396 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
8398         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8399         when not optimizing.
8401         * toplev.c (rest_of_compilation): Cann mark_constant_function
8402         only when optimizing.
8404         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8405         are NULL.
8407         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8408         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8409         (try_optimize_cfg): clear all AUX fields.
8411         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8412         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8413         (ix86_address_cost): Be prepared for SUBREGed registers.
8414         (legitimate_address_p): Accept SUBREGed registers.
8416 2002-03-29  Richard Henderson  <rth@redhat.com>
8418         PR target/5672
8419         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8421 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8423         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8424         for aggregate and TFmode types.
8426 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8428         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8430 2002-03-29  Richard Henderson  <rth@redhat.com>
8432         PR target/5886
8433         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8434         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8436 2002-03-29  Richard Henderson  <rth@redhat.com>
8438         PR target/6041
8439         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8440         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8441         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8442         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8443         conditional.
8444         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8446 2002-03-29  Dale Johannesen <dalej@apple.com>
8448         * loop.c (combine_movables): Do allow combination of pseudos.
8450 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
8452         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8453         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8454         No functional change except ...
8455         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
8456         * doc/install.texi (*-*-freebsd*): Document port configuration.
8458 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8460         * Makefile.in (convert.o, calls.o, expmed.o): Update.
8461         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8462         Use new hooks.
8463         * builtin-types.def (BT_PTRMODE): Update.
8464         * c-common.c (type_for_size): Rename c_common_type_for_size.
8465         (type_for_mode): Similarly.
8466         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8467         Use new hook.
8468         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8469         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8470         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8471         Redefine.
8472         * c-typeck.c (common_type, comptypes, default_conversion):
8473         Use new hooks.
8474         * calls.c: Include langhooks.h.
8475         (emit_library_call_value_1): Use new hooks.  Avoid redundant
8476         calls.
8477         * convert.c: Include langhooks.h
8478         (convert_to_pointer, convert_to_integer): Use new hooks.
8479         * except.c (init_eh): Similarly.
8480         * expmed.c: Include langhooks.h.
8481         (expand_mult_add): Use new hooks.
8482         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8483         try_casesi): Similarly.
8484         * fold-const.c (optimize_bit_field_compare, make_range,
8485         decode_field_reference, fold_truthop, fold): Similarly.
8486         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8487         put_var_into_stack): Similarly.
8488         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8489         LANG_HOOKS_TYPE_FOR_SIZE): New.
8490         (LANG_HOOKS_TYPES_INITIALIZER): Update.
8491         * langhooks.h (lang_hooks_for_types): New hooks.
8492         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8493         * tree.c (get_unwidened, get_narrower): Similarly.
8494         * tree.h (type_for_mode, type_for_size): Remove.
8495         * varasm.c (force_const_mem): Use new hooks.
8496         * utils2.c (nonbinary_modular_operation): Update.
8497 objc:
8498         * objc-act.c (handle_impent): Update.
8499         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8500         Redefine.
8502 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
8504         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8505         * config/ia64/ia64.c (basereg_operand): New.
8506         * config/ia64/ia64-protos.h (basereg_operand): Declare.
8507         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8509 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8511         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8512         unwind information when frame_pointer_needed.
8513         (mmix_assemble_integer): Tweak wording in comment.
8515 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8517         * Makefile.in (except.o): Update.
8518         * except.c: Include langhooks.h.
8519         (init_eh): Use langhook.
8520         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8521         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8522         (LANG_HOOKS_INITIALIZER): Update.
8523         * langhooks.h (lang_hooks_for_types): New.
8524         (struct lang_hooks): Add it.
8525         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8526         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8527 config:
8528         * alpha/alpha.c: Include langhooks.h.
8529         (alpha_build_va_list): Use langhook.
8530         * d30v/d30v.c: Include langhooks.h.
8531         (d30v_build_va_list): Use langhook.
8532         * i386/i386.c: Include langhooks.h.
8533         (ix86_build_va_list): Use langhook.
8534         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8535         * s390/s390.c: Include langhooks.h.
8536         (s390_build_va_list): Use langhook.
8537         * stormy16/stormy16.c: Include langhooks.h.
8538         (stormy16_build_va_list): Use langhook.
8540 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8542         PR c++/5964
8543         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8544         attributes.
8545         (length): Compute variable length for branches/calls/jumps here.
8546         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8547         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8548         define branch_type attribute.
8549         (divsi3_sp32): Maximum length is 6 not 7.
8550         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8551         call_address_untyped_struct_value_sp32,
8552         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8553         * config/sparc/sparc.c (empty_delay_slot): New function.
8554         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8555         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8557 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8559         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8560         nonzero_bits if not needed.
8561         (nonzero_bits) [XOR]: Likewise.
8562         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8563         reg_last_set_mode and mode are both MODE_INT, but not equal.
8564         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8565         in nonzero_bits_mode for MODE_INT modes.
8567 2002-03-28  Richard Henderson  <rth@redhat.com>
8569         PR target/5715
8570         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8571         to GAS.  Correct drift between alternatives.
8573 2002-03-28  Richard Henderson  <rth@redhat.com>
8575         PR target/6087
8576         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8578 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8580         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8581         emulation to the linker.
8583 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8585         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8586         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8588 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8590         * combine.c (simplify_and_const_int): Make sure to apply mask
8591         when force_to_mode returns a constant integer.  PR3311.
8593 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8595         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8597 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8599         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8600         and Objective-C Dialect Options.
8602 2002-03-28  Richard Henderson  <rth@redhat.com>
8604         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8605         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8607 2002-03-28  Richard Henderson  <rth@redhat.com>
8609         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8610         on to c_expand_body.
8611         * c-tree.h (finish_function): Update decl.
8612         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8614 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8616         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8618 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8620         * rtlanal.c: Include flags.h
8621         (may_trap_p): Do not mark FP operations if trapping
8622         if !flag_trapping_math
8623         * Makefile.in (rtlanal.o): Add dependency on flag.h
8624         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8626 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8628         * mips.md: Use dconst1, not 1.0, as first argument of
8629         REAL_VALUE_LDEXP.  Don't use union real_extract.
8631 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8633         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8634         rather than $target.  Heed program_prefix and
8635         program_transform_name.  Search for gas in cross-compiler case too.
8636         "test -x" rather than "test -f".
8637         (gcc_cv_ld): Likewise.
8638         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8639         (gcc_cv_objdump): Likewise.
8640         * configure: Regenerate.
8642 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8644         * Makefile.in (attribs.o): Update.
8645         * attribs.c: Include langhooks.h.
8646         (decl_attributes): Use langhook.
8647         * c-decl.c (insert_default_attributes): Rename.
8648         * c-tree.h (c_insert_default_attributes): New.
8649         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8650         (LANG_HOOKS_INITIALIZER): Update.
8651         * langhooks.h (struct lang_hooks): New hook.
8652         * tree.h (insert_default_attributes): Remove.
8653 objc:
8654         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8656 2002-03-27  Andreas Schwab  <schwab@suse.de>
8658         * config/i386/i386.c (classify_argument): Also check for
8659         QUAL_UNION_TYPE.
8661 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8663         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8664         any more.
8666 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8668         * i960.md (ret): Set PC.
8669         (nonlocal_goto): Fix expander.
8670         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8671         some jump or call.
8673 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8675         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8676         of libcall regions.
8678 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8680         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8681         assigning to BLOCK_FOR_INSN directly.
8683 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8685         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8687 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8689         * c-common.c (c_expand_expr): Fix prototype.
8690         * c-common.h (c_expand_expr): Always declare, update.
8691         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8692         * c-objc-common.c (c_objc_common_init): No global hook.
8693         * expr.c (expand_expr): Use langhook.
8694         * expr.h (enum expand_modifier): Conditionally declare.
8695         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8696         (LANG_HOOKS_INITIALIZER): Update.
8697         * langhooks.c (lhd_expand_expr): New.
8698         * langhooks.h (struct lang_hooks): New hook.
8699         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8700         (lang_independent_init): Don't default hook.
8701 objc:
8702         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8704 2002-03-27  Richard Henderson  <rth@redhat.com>
8706         PR target/6054
8707         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8708         TARGET_CONST_GP.  Simplify conditions.
8710 2002-03-27  Richard Henderson  <rth@redhat.com>
8712         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8713         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8714         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8716 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8718         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8719         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8720         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8721         Remove unnecessary masks.
8722         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8723         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8724         -mwindows, -mdll switches and their negations.
8726 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8728         * gcc-common.c (lang_mark_false_label_stack): Remove.
8729         * ggc.h (lang_mark_false_label_stack): Similarly.
8731 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8733         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8735         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8736         or __rtems_ is defined.
8738 2002-03-26  Richard Henderson  <rth@redhat.com>
8740         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8741         if a non-trivial load was emitted.
8742         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8743         in high+extra+low case.
8745 2002-03-26  Richard Henderson  <rth@redhat.com>
8747         * config.gcc (sparc*-solaris): Use float_format=sparc.
8749 2002-03-26  Richard Henderson  <rth@redhat.com>
8751         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8752         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8753         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8754         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8755         (WINT_TYPE_SIZE): Fix at 32.
8757 2002-03-26  Richard Henderson  <rth@redhat.com>
8759         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8760         until after eh landing pad generation.
8761         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8762         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8764 2002-03-26  Richard Henderson  <rth@redhat.com>
8766         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8768 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8770         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8771         and warning switches.
8772         (cc1_options):  Likewise.
8774 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8776         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8777         Restore more of the signal context.  Set no_reg_stack_frame.
8778         * config/ia64/unwind-ia64.c (unw_state_record):
8779         Add no_reg_stack_frame, comments.
8780         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8781         (uw_update_context): Adjust bsp when unwinding from leaf,
8782         but not signal frame.
8784 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8786         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8788 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8790         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8792 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8794         PR target/5621
8795         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8796         "Add a pool_range attribute", which was lost during the ARM/Thumb
8797         merge.
8799 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8801         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8802         a register into the MAC16 accumulator.
8804 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8806         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8807         (Warning Options): Document -Wswitch-enum.
8808         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8809         -Wswitch.
8810         (warn_switch_enum): Define variables.
8811         * flags.h (warn_switch_enum): Declare variables.
8812         * stmt.c (expand_end_case_type): When warn_switch_enum /
8813         -Wswitch-enum, perform switch checks.
8814         Fix PR c/5044.
8816 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8818         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8819         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8820         (reload_muladdsi_compare0_scratch): Delete.
8822 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8824         * doc/install.texi (*-*-freebsd*): Update.
8826 2002-03-26  Richard Henderson  <rth@redhat.com>
8828         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8829         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8831         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8832         types from the normal argument frame.
8834         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8835         variable sized objects by reference.
8836         (sparc_va_arg): Receive them by reference too.
8838 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8840         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8841         code to not restoring global registers.
8843 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8845         * Makefile.in (ggc-common.o): Update.
8846         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8847         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8848         * c-tree.h (c_mark_tree): New.
8849         * ggc-common.c: Include langhooks.h.
8850         (gcc_mark_trees): Use new langhook.
8851         * ggc-callbacks.c: Delete file.
8852         * ggc.h (lang_mark_tree): Remove.
8853         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8854         (LANG_HOOKS_INITIALIZER): Update.
8855         * langhooks.h (struct lang_hooks): New hook.
8856 objc:
8857         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8859 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8861         * doc/cpp.texi: Exclude entire Top node from printed manual.
8862         Move option index after directive index.  Insert page breaks
8863         before GFDL and concept index.  Index environment variables
8864         with command line options.
8865         * doc/cppenv.texi: Use @vtable for environment variable list.
8866         Add paragraph explaining semantics of empty elements in path
8867         variables.  Exclude a cross-reference to Fishkill from the
8868         manpage.  Remove an unnecessary cross-reference of the entry
8869         right above the referer.  Don't use @anchor in text that goes
8870         into manpage.
8871         * doc/cppopts.texi: Cross-reference the environment variables
8872         section, not the specific environment variable, for consistency.
8874 2002-03-25  Richard Henderson  <rth@redhat.com>
8876         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8877         anywhere in the block.  Don't refer to insns that have been
8878         removed from the chain.  Iterate backward through the new insns.
8879         Don't refer to edges that have been removed.
8881 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8883         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8884         test for overflow of constant.
8886 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8888         PR target/2623
8889         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8890         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8891         these patterns on arm_archv4.
8893 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8895         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8896         int".
8898 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8900         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8901         float_handled, float_handler, float_signal, set_float_handler,
8902         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8903         * toplev.h: Don't prototype do_float_handler.
8905         * c-lex.c: Fold parse_float into lex_number.  Make warning
8906         about portability of hex float constants more informative, and
8907         don't issue it on top of a syntax error.
8908         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8909         their callers.
8910         * real.h: Define REAL_VALUE_ABS here...
8911         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8912         simplify_unary_real, simplify_binary_real, and
8913         simplify_binary_is2orm1 into their callers.
8914         * tree.c: Fold build_real_from_int_cst_1 into caller.
8916         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8918         * tsystem.h: Include float.h here...
8919         * libgcc2.c: ... not here.
8921 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8923         Fixes for: PR bootstrap/3591, target/5676
8924         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8925         defined.  Do not disable exceptions or rtti.
8926         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8927         mcore.h.  Disable exceptions and rtti, since they are not
8928         supported by EPOC.
8930 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8932         * c-decl.c (maybe_build_cleanup): Remove.
8933         * expr.c (expand_expr): Use langhook.
8934         * langhooks-def.h (lhd_return_null_tree,
8935         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8936         (LANGHOOKS_INITIALIZER): Update.
8937         * langhooks.c (lhd_return_null_tree): New.
8938         * langhooks.h (struct lang_hooks): New hook.
8939         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8940         * tree.h (maybe_build_cleanup): Remove.
8942 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8944         * regrename.c (build_def_use): Move recog_memoized
8945         before extract_insn.
8947 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8949         PR target/6043
8950         * expr.c (emit_group_store): Handle storing into CONCAT.
8952 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8954         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8955         corresponding MATCH_DUP.
8957 2002-03-24  Richard Henderson  <rth@redhat.com>
8959         * unroll.c (unroll_loop): Zero label_map.
8961         * gcse.c: Include except.h.
8962         * Makefile.in (gcse.o): Update.
8964 2002-03-24  Richard Henderson  <rth@redhat.com>
8966         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8967         Do resolve_unique_section before shared data clause.
8969 2002-03-24  Richard Henderson  <rth@redhat.com>
8971         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8973 2002-03-24  Richard Henderson  <rth@redhat.com>
8975         * recog.c (peephole2_optimize): Split blocks when EH insns are
8976         generated in the middle of a block.  Do global life update if
8977         zapped EH edges.
8979 2002-03-24  Richard Henderson  <rth@redhat.com>
8981         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8983 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8985         preprocessor/3951
8986         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8987         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8988         (init_dependency_output): Don't make no_output decision here.
8990 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8992         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8993         warn_switch.  Update description.
8994         (expand_end_case_type): Call check_for_full_enumeration_handling
8995         when warn_switch.
8997 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8999         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
9000         (m68hc11_split_move): Call it to see if the source and destination
9001         operands use the same direction auto inc/dec mode, otherwise make the
9002         source an offsetable memory operand and generate an add.
9004 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9006         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
9007         register for operand 2.
9008         ("*subsi3_zero_extendqi"): Likewise.
9009         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
9010         bits so that it is compatible with a pop.
9011         ("*andhi3_gen"): Likewise.
9012         ("xorhi3"): Likewise.
9014 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9016         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
9017         -pedantic here...
9018         (cpp_post_options): ... not here.
9020 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9021             Aldy Hernandez  <aldyh@redhat.com>
9023         Removal of separate preprocessor cpp0.
9025         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
9026         cpp0, install-common): Update.
9027         * c-common.c (flag_preprocess_only): New.
9028         (c_common_init): Preprocess for -E.
9029         * c-common.h (flag_preprocess_only): New.
9030         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
9031         * c-objc-common.c (c_init_decl_processing): Exit quickly
9032         for NULL return from c_common_init.
9033         * cpplib.h (cpp_preprocess_file): New.
9034         * cppmain.c (main, general_init, pfile, progname): Remove.
9035         (do_preprocessing): Rename cpp_preprocess_file, don't call
9036         cpp_finish.  Don't close stdout here.
9037         (setup_callbacks): Update prototype.
9038         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
9039         Update.
9040         * tradcpp.c (main): Ignore -quiet.
9041 objc:
9042         * lang-specs.h (default_compilers): Preprocess with cc1obj.
9044 2002-03-24  Richard Henderson  <rth@redhat.com>
9046         PR optimization/5742
9047         * machmode.def: Add inner mode field to complex modes.
9048         * config/mips/mips.c (mips_function_value): Always define.  Add
9049         new argument to handle libcalls.
9050         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
9051         (FUNCTION_VALUE): Likewise.
9052         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
9053         * config/mips/mips-protos.h: Update.
9055 2002-03-23  Richard Henderson  <rth@redhat.com>
9057         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
9058         * config/sparc/sparc-protos.h: Update.
9059         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
9061 2002-03-23  Richard Henderson  <rth@redhat.com>
9063         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
9064         _start or _init begins the text segment.
9066 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
9068         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
9069         not HOST_WIDEST_INT.
9070         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
9072 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
9074         PR java/5489
9075         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
9076         operand argument to output_return_instruction.
9077         * arm.c (arm_print_operand, case 'd'): If the operand is
9078         const_true_rtx then just return.
9079         (arm_print_operand, case 'D'): If the operand is const_true_rtx
9080         then abort.
9082 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9084         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
9085         (Warning Options): Document -Wswitch-default.
9086         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
9087         -Wswitch.
9088         (warn_switch_default): Define variable.
9089         (warn_switch): Update comment.
9090         * flags.h (warn_switch_default): Declare variable.
9091         (warn_switch): Update comment.
9092         * stmt.c (expand_end_case): Check for and, when
9093         warn_switch_no_default, warn of a missing default case.
9095 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
9097         * real.h (N): Special case 128 bit doubles.
9099         * combine.c (simplify_comparison): When widening modes, ignore
9100         sign extension on CONST_INTs.
9102 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
9104         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
9105         passed to adjust_address.  Fix comment formatting.
9108 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
9110         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
9111         Always make REAL_VALUE_TYPE a struct containing an array of
9112         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
9113         big it is.  Don't declare or use union real_extract.
9115         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
9116         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
9117         (print_operand), config/arm/arm.c (output_move_double),
9118         config/arm/arm.md (consttable_4, consttable_8),
9119         config/romp/romp.c (output_fpops), config/s390/s390.h
9120         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
9121         (xtensa_output_literal): Don't use union real_extract.
9123         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
9124         (sfmode_constant_to_ulong), config/ns32k/merlin.h
9125         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
9126         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
9127         (PRINT_OPERAND): Don't use local version of union
9128         real_extract.
9130         * config/convex/convex.c (check_float_value), config/vax/vax.c
9131         (vax_float_literal), config/m88k/m88k.md (divdf3),
9132         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
9133         config/pdp11/pdp11.c (output_move_quad): Don't do host
9134         arithmetic on target floating point quantities.
9136         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
9137         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
9139         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
9140         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
9142         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
9143         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
9144         INFINITY.
9145         * print-rtl.c (print_rtx): Disable code which needs
9146         floating-point emulator.
9147         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
9148         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
9149         depending on HOST_FLOAT_FORMAT to be defined properly.
9151         * config/1750a/1750a.c (get_double, float_label): Delete.
9152         (print_operand): Delete huge commented-out chunk.  Use
9153         REAL_VALUE_TO_DECIMAL.
9154         * config/1750a/1750a-protos.h: Delete prototypes of deleted
9155         functions.
9156         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
9157         IEEE_FLOAT_FORMAT.
9158         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
9159         Use REAL_VALUE_TO_DECIMAL as ELF version does.
9160         * config/m88k/m88k.c (real_power_of_2_operand,
9161         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
9162         real_extract out of the union; run the input through
9163         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
9164         from that into the union.
9165         * config/pdp11/pdp11.c (output_move_double): Rearrange
9166         parentheses to make automatic indenter happy.
9168         * doc/tm.texi (Cross-compilation): Rename node to "Floating
9169         Point" and rewrite to describe current situation.  Also adjust
9170         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
9171         match code.
9172         * doc/rtl.texi: Adjust cross reference.
9174 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
9176         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
9177         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
9178         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
9179         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
9180         prevent use of sp as a reload register.
9181         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
9182         non_acc_reg_operand.
9183         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
9184         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
9185         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
9186         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
9188 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9190         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
9191         * cpplex.c (unterminated): Delete.
9192         (parse_string): No string literal may extend over multiple
9193         lines.  Suppress the error when preprocessing assembly.
9194         * cppmain.c (scan_translation_unit): Strings are single-line.
9196         * doc/cpp.texi: Update to match.
9198 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9200         PR optimization/5854
9201         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
9202         Shut up warnings.
9203         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
9204         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
9205         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
9206         const0 if scratch register was not allocated.
9207         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
9208         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
9209         with GEN_INT (...).
9210         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
9211         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
9212         with GEN_INT (...) everywhere.  Remove constraints in define_split
9213         patterns.
9214         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9215         require scratch register for setting 0 into regs/non-pushable memory.
9217 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9219         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9220         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9222 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
9224         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
9225         * cppinit.c (cpp_create_reader):  On by default.
9226         (cpp_handle_option):  Handle -W[no-]endif-labels.
9227         (cpp_post_options):  Also enable if -pedantic.
9228         * cpplib.c (do_else):  Use it.
9229         (do_endif):  Likewise.
9230         * doc/cppopts.texi:  Document new option.
9231         * doc/invoke.texi:  Document new option.
9233 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
9235         * config/i386/i386.c, config/i386/i386.md: Change all occurences
9236         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9238 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9240         * flow.c (calculate_global_regs_live): Clear aux fields of
9241         ENTRY and EXIT.
9243 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9245         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9246         REG or MEM subregs, pass rtx * instead of rtx to it.
9247         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9248         rtx * instead of rtx to alter_subreg.
9249         * config/m32r/m32r.c (gen_split_move_double): Likewise.
9250         * config/pj/pj.c (pj_output_rval): Likewise.
9252 2002-03-22  Richard Henderson  <rth@redhat.com>
9254         PR target/3177
9255         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9256         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9257         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9258         (ia64_expand_prologue): Look at int_regs, not words, for number
9259         of incomming int regs.
9261 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
9263         * expr.c (expand_expr): A RESULT_DECL is part of a call.
9265 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
9267         * toplev.c (flag_loop_optimize, flag_crossjumping):
9268         New static variables.
9269         (rest_of_compilation): Conditionalize crossjumping and
9270         loop optimizer.
9271         (parse_options_and_default_flags): Default loop_optimize and
9272         crossjumping.
9273         (lang_independent_options): Add -fcrossjumping and -floop-optimize
9274         * invoke.texi (crossjumping, loop-optimize): Document.
9276 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9278         * real.c (eiisneg): Move outside #ifdef NANS.
9280 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
9282         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9283         frequencies match; avoid match on different loop depths.
9284         (try_crossjump_to_bb): Kill tests that no longer brings time
9285         savings.
9286         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9287         updating code.
9288         (split_edge): Likewise.
9290         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9291         variable.
9293         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9294         * cfgrtl.c: Include insn-config.h
9295         (split_block) Dirtify block in presence of conditional execution
9297 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9299         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9300         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9301         (function_arg): Constify CUMULATIVE_ARGS.
9302         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9303         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9304         (UNITS_PER_DOUBLE): New macro.
9305         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
9306         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
9307         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
9308         fp_regs and stack_words.
9309         (EABI_FLOAT_VARARGS_P): New macro.
9310         * config/mips/mips.c (struct mips_arg_info): New.
9311         (mips_arg_info): New function.
9312         (function_arg_advance): Use it.  Add adjustment instructions here
9313         rather than in function_arg.
9314         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
9315         for VOIDmode at the beginning of the function.
9316         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
9317         (function_arg_pass_by_reference): Likewise.
9318         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9319         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9320         (mips_va_start): Likewise.  Use the new stack_words field of
9321         CUMULATIVE_ARGS to set up overflow area.  Reformat.
9322         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
9323         doubles and other types, aligning the overflow pointer for non-doubles
9324         too.  Remove some code duplication.  Replace hard-coded constants.
9326 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9328         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9329         (CLASS_UNITS): Undefine.
9330         (CLASS_MAX_NREGS): Use FP_INC.
9331         * config/mips/mips.c (compute_frame_size): Likewise.
9332         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9334 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9336         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9337         prototype, and handle lexing numbers and identifiers.
9338         (parse_identifier): Update to new form of parse_slow.
9339         (parse_number): Fast path only, use parse_slow otherwise.
9340         (_cpp_lex_direct): Update calls to parse_number.
9342 2002-03-21  DJ Delorie  <dj@redhat.com>
9344         * bb-reorder.c (make_reorder_chain_1): Protect against
9345         when redundant edges are omitted.
9346         * predict.c (dump_prediction): Likewise.
9348 2002-03-21  Richard Henderson  <rth@redhat.com>
9350         PR target/5996
9351         * fixinc/inclhack.def (solaris_stdio_tag): New.
9352         * fixinc/fixincl.x: Regenerate.
9354 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9356         PR c/5597
9357         * c-typeck.c (process_init_element): Flag non-static
9358         initialization of a flexible array member as illegal.
9360 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
9362         * config/rs6000/t-linux64: New.
9363         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9364         t-ppccomm.  Use t-rs6000 and t-linux64.
9365         (powerpc64-*-gnu* <tmake_file>): Likewise.
9366         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9367         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9368         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9370 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
9372         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9373         flag_really_no_inline instead of optimize == 0.
9375         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9377         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9379         * flags.h (flag_really_no_inline): New.
9381         * c-common.c (c_common_post_options): Initialize
9382         flag_really_no_inline.
9384         * toplev.c (flag_really_no_inline): New.
9386 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9388         * config/avr/avr.md (length): Fix length computation for
9389         conditional branches.
9391 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9393         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9394         sdbout.o, profile.o): Update.
9395         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9396         langhook.
9397         * c-common.h (gettags): Move here from tree.h.
9398         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9399         insert_block, getdecls, kept_level_p, global_bindings_p): New.
9400         * dbxout.c (dbxout_init): Use getdecls langhook.
9401         * expr.c (expand_expr): Use insert_block langhook.
9402         * fold-const.c: Include langhooks.h.
9403         (fold_range_test, fold_binary_op_with_conditional_arg,
9404         fold): Use global_bindings_p langhook.
9405         * integrate.c (expand_inline_function): Use insert_block langhook.
9406         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9407         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9408         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9409         LANG_HOOKS_GETDECLS): New.
9410         (LANG_HOOKS_INITIALIZER): Update.
9411         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9412         langhook.
9413         * langhooks.h (struct lang_hooks_for_decls): New.
9414         (struct lang_hooks): Update.
9415         * profile.c: Include langhooks.h.
9416         (output_func_start_profiler): Use new langhooks.
9417         * sdbout.c: Include langhooks.h.
9418         (sdbout_init, sdbout_finish): Use getdecls langhook.
9419         * stmt.c: Include langhooks.h.
9420         (expand_fixup, fixup_gotos): Use new langhooks.
9421         * stor-layout.c: Include langhooks.h.
9422         (variable_size): Use global_bindings_p langhook.
9423         * toplev.c (compile_file): Use getdecls langhook.
9424         * tree-inline.c (remap_block): Use insert_block langhook.
9425         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9426         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9428 2002-03-21  Richard Henderson  <rth@redhat.com>
9430         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9431         constants in .data when -fpic.
9433 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9435         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9436         where appropriate.
9438 2002-03-21  Tom Tromey  <tromey@redhat.com>
9440         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
9442 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9444         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9446         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9448 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9449             Richard Henderson  <rth@redhat.com>
9451         PR c/5354
9452         * c-common.c (c_expand_expr): Preserve result of a statement
9453         expression if needed.
9455 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9457         PR bootstrap/4195
9458         * genrecog.c (maybe_both_true_mode): Remove.
9459         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9460         * machmode.def (Pmode): Likewise.
9462 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
9464         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9465         (nonlocal_mentioned_p_1): New function.
9466         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9467         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9468         (mark_constant_function): Recognize pure functions.
9469         * rtl.h (global_reg_mentioned_p): New prototype.
9470         * rtlanal.c (global_reg_mentioned_p,
9471         global_reg_mentioned_p_1): New function.
9473 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9475         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9476         UNIX assert.h.
9477         * fixinc/fixincl.x: Regenerate.
9479 2002-03-20  Jason Merrill  <jason@redhat.com>
9481         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9483 2002-03-20  Michael Meissner  <meissner@redhat.com>
9485         * doc/invoke.texi (Optimize Options): Document that -O2 sets
9486         -fstrict-aliasing.
9488 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9490         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9491         ".literal_position" directive before the constant pool.
9493 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9495         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9496         Add Craig Rodrigues.
9497         Add Brad Lucier to testers.
9499 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9501         PR target/4792
9502         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9503         to if_then_else.
9504         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9505         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9506         instead of insn_extract.
9508 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9510         PR bootstrap/4192
9511         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9513         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9514         stmt if some case has been output.
9516 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9518         PR c/5972
9519         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9520         movsfcc_1, movdfcc_1): Add %O2.
9521         * config/i386/i386.c (print_operand): Handle %ON.
9522         Print . before float condition codes in Sun as cmov syntax.
9523         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9524         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9525         no longer true.
9527 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9529         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9530         return instruction if PC was popped.
9532 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9534         * config/xtensa/xtensa.md: Remove unused type attributes.
9535         (adddi_carry, subddi_carry): Change type attribute to "multi".
9537 2002-03-19  Dale Johannesen  <dalej@apple.com>
9539         PR optimization/5999, middle-end/5731
9540         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9541         multiplications by reciprocals.
9543 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9545         * Makefile.in: Update.
9546         * c-common.c: Include langhooks.h.
9547         (inline_forbidden_p): Use new hook.
9548         * diagnostic.c: Include langhooks.h.
9549         (format_with_decl, announce_function,
9550         default_print_error_function): Use new hook.
9551         * dwarf2out.c (dwarf2_name): Use new hook.
9552         * function.c: Include langhooks.h.
9553         (init_function_start): Use new hook.
9554         * langhooks-def.h (lhd_decl_printable_name): New.
9555         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9556         (LANGHOOKS_INITIALIZER): Update.
9557         * langhooks.c (lhd_decl_printable_name): New.
9558         * langhooks.h (struct lang_hooks): New hook.
9559         * toplev.c (decl_name, decl_printable_name): Remove.
9560         (open_dump_file): Use new hook.
9561         (process_options): Remove old hook.
9562         * tree.h (decl_printable_name): Remove.
9563 objc:
9564         * objc-act.c (objc_init): Remove old hook.
9565         (objc_printable_name): Export.
9566         * objc-act.h (objc_printable_name): New.
9567         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9569 2002-03-19  Jim Blandy  <jimb@redhat.com>
9571         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9572         the start_source_file debug hook, not the current line number.
9574 2002-03-19  Richard Henderson  <rth@redhat.com>
9576         * flow.c (EH_USES): Provide default.
9577         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9578         * doc/tm.texi (EH_USES): New.
9580         * config/ia64/ia64.c (ia64_eh_uses): New.
9581         * config/ia64/ia64-protos.h: Update.
9582         * config/ia64/ia64.h (EH_USES): New.
9584 2002-03-19  Richard Henderson  <rth@redhat.com>
9586         * varasm.c (output_constant_def): Fix stupid typo.
9588 2002-03-19  Richard Henderson  <rth@redhat.com>
9590         PR 5879
9591         * except.c (current_function_has_exception_handlers): New.
9592         * except.h: Declare it.
9593         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9594         Combine tests that disable all sibcalls for the function.
9596 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9598         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9599         for INTEGER_CST.
9601 2002-03-19  Richard Henderson  <rth@redhat.com>
9603         PR 5977, 5991
9604         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9605         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9607 2002-03-19  Jim Blandy  <jimb@redhat.com>
9609         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9610         name, even if the replacement list contains no tokens, as required
9611         by Dwarf.
9613 2002-03-19  Jason Merrill  <jason@redhat.com>
9615         * varasm.c (globalize_decl): Get the name from the RTL, not
9616         DECL_ASSEMBLER_NAME.
9618         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9620 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9622         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9623         subdi_carry): Define.
9625 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9627         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9628         about -fpic/-fPIC if extra_warnings set.
9630 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9632         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9633         TREE_STRING_POINTER.
9634         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9636 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9638         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9639         in favor of SP if FRAME_POINTER_REQUIRED is false.
9641 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9643         * emit-rtl.c (gen_int_mode): New function.
9644         * rtl.h: Prototype for it.
9645         * combine.c (make_extraction, simplify_comparison), expmed.c
9646         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9647         (convert_modes, store_field), optabs.c (expand_fix),
9648         simplify-rtx.c (neg_const_int, simplify_unary_real),
9650         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9651         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9653 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9655         PR c/5656
9656         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9657         convert_parm_for_inlining.
9658         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9659         Define.
9660         * langhooks-def.h: Likewise.
9661         * objc/objc-lang.c: Likewise.
9662         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9663         function.
9664         * tree-inline.c (initialize_inlined_parameters):
9665         Call convert_parm_for_inlining lang hook if needed.
9666         * c-typeck.c (c_convert_parm_for_inlining): New function.
9667         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9669 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9671         * calls.c (precompute_arguments): Do not assume that temporaries
9672         can be destroyed after expanding the argument.
9673         (expand_call): Likewise.
9675 2002-03-15  Eric Christopher  <echristo@redhat.com>
9677         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9678         Fix register preference on last change.
9679         * config/mips/mips.c (mips_return_in_memory): New function.
9680         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9681         * config/mips/mips-protos.h: Declare.
9682         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9683         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9685 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9687         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9688         a register too.
9689         (anddi3, iorsi3): Likewise.
9691         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9692         use %gprel for symbols that are going to be placed in linkonce
9693         sections.
9695         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9696         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9697         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9698         not needed.  Disregard leaf_function_p().
9699         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9700         mips16 frame pointer.
9701         * config/mips/mips.md (store ra): Only to small SP offsets.
9702         2001-08-22  Graham Stott  <grahams@redhat.com>
9703         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9704         return a REG rtx for the return address register.
9706 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9708         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9709         constant-pool addresses as "mode-dependent".
9710         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9712 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9714         PR target/5740
9715         * expr.c (emit_group_load): Use extract_bit_field if
9716         needed for CONCAT arguments.
9718 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9720         PR target/4863
9721         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9722         offset to the base of the table.
9723         (thumb_tablejump): Matcher for Thumb tablejump insn.
9724         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9725         as the difference of two labels.
9726         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9727         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9728         tables in the code.
9729         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9730         * arm.c (get_jump_table_size): If the table is not in the text
9731         section, return zero.
9733 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9735         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9736         of gen_rtx_SUBREG.
9737         (arm_reload_out_hi): Use gen_lowpart instead of
9738         gen_rtx_SUBREG to access QImode components.
9739         * config/arm/arm.md: Disable zero_extend split for QImode
9740         subregs in BIG_ENDIAN mode.
9741         (storehi_bigend): Match use of least significant byte.
9742         (storeinthi): Remove extraneous SUBREG.
9743         Add missing construction of operands[2].
9744         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9745         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9746         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9748 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9750         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9751         any_operand.
9753 2002-03-17  Richard Henderson  <rth@redhat.com>
9755         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9756         explicitly.
9758 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9760         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9761         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9763 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9765         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9767         * predict.c (estimate_bb_frequencies): Delete unused variables.
9769 2002-03-17  Richard Henderson  <rth@redhat.com>
9771         * config/ia64/ia64.c (ia64_attribute_table): Move before
9772         targetm definition.  Make static.
9774 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9776         * c-common.h (yyparse, c_common_parse_file): New.
9777         * c-lang.c: Include c-common.h.
9778         (LANG_HOOKS_PARSE_FILE): Redefine.
9779         * c-lex.c: Include c-common.h.
9780         (yyparse): Rename c_common_parse_file.  Call yyparse.
9781         * c-parse.in (yyparse): Remove macro.
9782         * c-tree.h (yyparse_1): Remove.
9783         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9784         (LANG_HOOKS_INITIALIZER): Update.
9785         * langhooks.h (struct lang_hoooks): New hook parse_file.
9786         * toplev.c (compile_file): Use parse_file hook.
9787         * tree.h (yyparse): Remove.
9788         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9790 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9792         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9793         float_truncate, not fix.
9794         ("*truncdfsf2_real"): Ditto.
9795         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9797         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9799 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9801         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9802         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9803         where appropriate.  Make the second reference to
9804         leaf_function_p a function call, as intended.  Reindented.
9806         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9807         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9809         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9810         add register to non-constant into sp.
9812         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9813         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9814         (mips16_gp_pseudo_rtx): Lose.
9815         (INIT_EXPANDERS): Deleted.
9816         * config/mips/mips.c (mips_init_machine_status): New.
9817         (mips_free_machine_status): New.
9818         (mips_mark_machine_status): New.
9819         (override_options): Set them.
9820         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9821         (struct machine_function): ... new.  Replaced all references.
9822         (mips_add_gc_roots): Don't mark them.
9823         (embedded_pic_fnaddr_reg): New, extracted from...
9824         (embedded_pic_offset): ... here.
9825         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9826         (movsi): Likewise.
9828 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9830         * cppinit.c: Revert -MD removal.
9832 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9834         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9835         soft registers by default for 68HC12.
9836         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9837         when compiling with -fomit-frame-pointer.
9838         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9839         (expand_epilogue): Likewise.
9840         (m68hc11_gen_rotate): Use exg when rotating by 8.
9842 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9844         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9845         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9846         (splits): Remove unused add splits.
9847         ("*addhi3_68hc12"): Tune constraints.
9848         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9849         constant fits in 8-bits and D is dead use abx/aby instructions.
9850         ("*addhi3"): Remove extern declaration of ix_reg.
9851         ("*subsi3"): Optimize and provide new split.
9852         ("subhi3"): Cleanup.
9853         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9854         (arith splits): For 68hc12 save the address register on the stack
9855         and do the arithmetic operation with a pop.
9857 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9859         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9860         allocating QImode in address registers.
9861         ("*movqi_m68hc11"): Likewise.
9863 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9865         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9867 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9869         * cppinit.c (print_help): Display -MD and -MMD.
9870         Don't display usage string.  Update assertion syntax and
9871         typo.
9872         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9873         (cpp_handle_option): Update.
9875 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9877         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9878         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9879         and define it so that regardless of target CPU size,
9880         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9881         of "int" rather than "long."
9883 2002-03-15  Richard Henderson  <rth@redhat.com>
9885         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9886         size as a tree.
9888 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9890         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9891         ("tstqi" split): Avoid using memory for tstqi on address register.
9892         (splits): Remove constraints.
9893         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9894         ("cmpdf", "cmpsf"): Remove since not used.
9895         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9896         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9898 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9900         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9901         ("neghi2"): Tighten constraints.
9902         ("one_cmplsi2"): Optimize and simplify split.
9903         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9905 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9907         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9908         and split of AND operation to clear the upper bits.
9909         ("*logicalsi3_zextqi"): Likewise.
9910         ("*logicallhi3_zexthi_ashift8"): Likewise.
9911         ("*logicalsi3_silshr16"): Likewise.
9912         ("logicalsi3_silshl16"): Likewise.
9913         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9915 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9917         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9918         (m68hc11_indirect_p): New function.
9919         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9920         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9921         TARGET_M6812.
9922         (asm_print_register): Likewise.
9923         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9924         (m68hc11_indirect_p): Declare.
9925         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9926         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9927         (TARGET_SWITCHES): New option -mrelax.
9928         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9929         destination.
9930         ("iorsi3", "xorsi3"): Likewise.
9931         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9932         ("*andhi3_mem"): New to handle destination in memory with bclr
9933         and a scratch register.
9934         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9935         ("*andhi3_const"): New when operand2 is constant.
9936         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9937         ("*andhi3_gen"): Cleanup of the old "andhi3".
9938         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9939         ("xorqi3"): Update constraints.
9941 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9943         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9944         for reg_equiv_memory_loc when the operand is a register that does
9945         not get a hard register (stack location).
9946         (tst_operand): After reload, accept all memory operand.
9947         (symbolic_memory_operand): Fix detection of symbolic references.
9948         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9949         accept symbols and any constant.
9951 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9953         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9954         note on the insn that sets the soft frame register.
9955         (must_parenthesize): ix and iy are also reserved names.
9956         (print_operand_address): One more place where parenthesis are required
9957         to avoid confusion with register names.
9958         (m68hc11_gen_movhi): Allow push of stack pointer.
9959         (m68hc11_check_z_replacement): Fix handling of parallel with a
9960         clobber.
9961         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9962         the replacement register is.
9963         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9964         and D8_REGS classes.
9965         (MODES_TIEABLE_P): All modes are tieable except QImode.
9967 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9969         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9970         (___subdi3): Likewise.
9971         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9972         (__map_data_section): Optimize 68hc11 case.
9974 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9976         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9977         than a shift to avoid adding a register with itself.
9978         (m68hc11_memory_move_cost): Take into account NO_REGS.
9979         (m68hc11_register_move_cost): Update and use memory move cost
9980         for soft registers.
9981         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9982         it gives more opportunities to cse to optimize.
9983         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9984         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9986 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9988         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9989         * c-common.def (CLEANUP_STMT): New tree node.
9990         * c-common.h (CLEANUP_DECL): New macro.
9991         (CLEANUP_EXPR): Likewise.
9992         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9993         * expr.c (expand_expr): Tidy.
9994         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9995         * tree-inline.c (initialize_inlined_parameters): Clean up
9996         new local variables.
9998 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
10000         PR bootstrap/4128
10001         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
10002         before movrXX only, use reg_overlap_mentioned_p.
10003         Only special case NE if just one insn can be generated.
10005 2002-03-15  Jason Merrill  <jason@redhat.com>
10007         * varasm.c (assemble_variable): Call resolve_unique_section before
10008         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
10009         of error_mark_node.
10011 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
10013         PR target/5170
10014         * arm.md (split pattern for thumb shiftable immediates): Add comment
10015         explaining non-obvious test.
10017 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
10019         PR target/5712
10020         * arm.md (movaddr, movaddr_insn): Delete.
10022 2002-03-15  Jason Merrill  <jason@redhat.com>
10024         * toplev.c (wrapup_global_declarations): Clarify variable handling.
10025         -fkeep-static-consts doesn't apply to comdats.
10027 2002-03-14  Richard Henderson  <rth@redhat.com>
10029         * c-decl.c: Include c-pragma.h.
10030         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
10031         (finish_function): Tidy.
10032         * c-pragma.c: Include c-common.h.
10033         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
10034         (handle_pragma_weak): Use them.
10035         (init_pragma): Register pending_weaks.
10036         * c-pragma.h (maybe_apply_pragma_weak): Declare.
10037         * print-tree.c (print_node): Print DECL_WEAK.
10038         * varasm.c (mark_weak_decls): Remove.
10039         (remove_from_pending_weak_list): Remove.
10040         (add_weak): Remove.
10041         (asm_emit_uninitialised): Call globalize_decl for weak commons.
10042         (weak_decls): Make a tree_list.
10043         (declare_weak): Cons weak_decls directly.
10044         (globalize_decl): Remove weak_decls elements directly.
10045         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
10046         symbols.  Don't pretend to handle aliases.
10047         (init_varasm_once): Update weak_decls registry.
10048         * Makefile.in: Update dependencies.
10050 2002-03-14  Richard Henderson  <rth@redhat.com>
10052         PR target/5312
10053         * config/ia64/ia64.c: Include tm_p.h last.
10054         (gen_nop_type): Remove duplicate definition.
10055         (cycle_end_fill_slots): Set sched_data for second L slot.
10056         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
10057         (nop_cycles_until): Fix typos.
10059 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
10061         PR optimization/5891
10062         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
10064 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
10066         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
10067           descriptors correctly.
10069 2002-03-14  Michael Meissner  <meissner@redhat.com>
10071         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
10072         100, allowing MAX_UNROLLED_INSNS to be overridden.
10074         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
10075         --param.
10077         * unroll.c (params.h): Include.
10078         (MAX_UNROLLED_INSNS): Delete, now in params.h.
10080         * doc/invoke.texi (--param max-unroll-insns): Document.
10082         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
10084 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
10086         * arm.md: Fix warnings about constraints in peepholes and splits.
10088 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
10090         * cpphash.h (struct lexer_state): Remove line_extension member.
10091         * cpplib.c (dequote_string, do_linemarker): New functions.
10092         (linemarker_dir): New data object.
10093         (DIRECTIVE_TABLE): No longer need to interpret #line in
10094         preprocessed source.  Delete obsolete comment about return
10095         values of handlers.
10096         (end_directive, directive_diagnostics, _cpp_handle_directive):
10097         Don't muck with line_extension.
10098         (directive_diagnostics): No need to issue warnings for
10099         linemarkers here.
10100         (_cpp_handle_directive): Issue warnings for linemarkers here,
10101         when appropriate.  Dispatch linemarkers to do_linemarker, not
10102         do_line.
10103         (do_line): Code to handle linemarkers split out to do_linemarker.
10104         Convert escape sequences in filename argument, both places.
10106         * cppmacro.c (quote_string): Rename cpp_quote_string and
10107         export.  All callers changed.
10108         * cpplib.h (cpp_quote_string): Prototype.
10109         * cppmain.c (print_line): Call cpp_quote_string on to_file
10110         before printing it.
10112         * doc/cpp.texi: Document that escapes are now interpreted in
10113         #line and in linemarkers, and that non-printing characters are
10114         converted to octal escapes when linemarkers are generated.
10116 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10118         * emit-rtl.c (try_split): Use delete_insns.
10119         * recog.c (split_all_insns): Fix terminating condition.
10121 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
10122             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10124         PR target/5828
10125         * arm.c (arm_output_epilogue): Fix floating-point register save
10126         adjustment when using a frame pointer.
10128 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
10130         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
10131         * config/mips/mips.c (compute_frame_size): Retrofit them here.
10132         (save_restore_insns, mips_expand_epilogue): And here.
10133         (build_mips16_call_stub): And here.
10134         (mips_function_value): Use the new macros to decide whether a single
10135         or complex float can be returned in floating-point registers.  Return
10136         a parallel rtx in the complex case.
10138 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
10140         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
10141         call after liveness analysis.
10143         * recog.c (split_insn): Use delete_insn_and_edges.
10145         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
10146         instructions to have branch prediction notes.
10147         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
10149 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
10151         * configure.in: Don't pass -Wno-long-long to a ADA compiler
10152         that doesn't support it.
10153         * configure: Regenerate.
10155 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10157         PR target/5626
10158         * config/sparc/sparc.md (normal_branch, inverted_branch,
10159         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10160         inverted_fp_branch): Adjust calls to output_cbranch.
10161         Set length attribute.
10162         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
10163         output_v9branch.  Set length attribute.
10164         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
10165         predicates.
10166         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
10167         (output_cbranch): Likewise.  Handle far branches.
10168         (output_v9branch): Handle far branches.
10169         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
10170         Adjust prototypes.
10171         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
10172         noov_compare64_op predicates.
10174 2002-03-13  Jason Merrill  <jason@redhat.com>
10176         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
10177         into the function and constify it.
10178         * gthr-dce.h, gthr-solaris.h: Likewise.
10180 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
10182         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
10183         * config/rs6000/rs6000.c (rs6000_va_arg): Use
10184         std_expand_builtin_va_arg if not ABI_V4.
10186 2002-03-13  Jason Merrill  <jason@redhat.com>
10188         * varasm.c (globalize_decl): New fn.
10189         (assemble_start_function): Use it.
10190         (asm_emit_uninitialized): Use it.
10191         (assemble_alias): Use it.
10192         (assemble_variable): Use it.
10194 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
10196         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
10197         2002-03-12 internal visibility change.
10198         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
10199         visibility into SYMBOL_REF_FLAG.
10201 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
10203         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
10204         VOIDmode operand.  Add compile-time optimization for constant results.
10206 2002-03-12  Jason Merrill  <jason@redhat.com>
10208         * c-typeck.c (convert_for_assignment): Don't allow conversions
10209         between pointers and references.  Only allow lvalues to convert to
10210         reference.
10212 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
10214         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10215         before prologue, to avoid scheduling problems.
10217 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10219         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10220         (ELIMINABLE_REGS): Add sfp->sp.
10221         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10223 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10225         PR optimization/5892
10226         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10228 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10230         * loop.c (basic_induction_var): Don't call convert_modes if mode
10231         classes are different.
10233 2002-03-12  Richard Henderson  <rth@redhat.com>
10235         PR optimization/5901
10236         * function.c (reposition_prologue_and_epilogue_notes): Position
10237         the markers after/before the last/first insn not deleted.
10239 2002-03-12  Richard Henderson  <rth@redhat.com>
10241         PR optimization/5878
10242         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10243         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10244         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10246         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10247         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10248         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10250         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10251         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10252         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10253         also.  Don't set it if not flag_pic.
10254         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10255         to be INVALID_REGNUM when not used.
10257 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
10259         * expmed.c (store_bit_field): Reset alias set for memory.
10260         (extract_bit_field): Same.
10262 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10264         * c-common.c (c_tree_code_type, c_tree_code_length,
10265         c_tree_code_name, add_c_tree_codes): Delete.
10266         * c-common.h (add_c_tree_codes): Delete.
10267         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10268         Define.
10269         * c-objc-common.c (c_objc_common_init): Don't call
10270         add_c_tree_codes, instead set lang_unsafe_for_reeval.
10271         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10272         objc_tree_code_name, add_objc_tree_codes): Delete.
10273         (objc_init): Don't call add_objc_tree_codes.
10274         * objc/objc-lang.c (tree_code_type, tree_code_length,
10275         tree_code_name): Define.
10276         * toplev.c (lang_independent_init): Don't set
10277         tree_code_length[IDENTIFIER_NODE].
10278         * tree.c (tree_code_type, tree_code_length, tree_code_name):
10279         Delete definitions, moved to language front-ends.
10280         * tree.def (IDENTIFIER_NODE): Hardwire the length.
10281         * tree.h (tree_code_type, tree_code_length, tree_code_name):
10282         Const-ify.
10283         (tree_code_length): Change type to unsigned char.
10285 2002-03-12  Richard Henderson  <rth@redhat.com>
10287         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10288         internal visibility change.
10290 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10292         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10293         validize_mem() instead of change_address to avoid clobbering
10294         memory attributes.
10296 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10298         * c-lex.h (position_after_whitespace): Remove.
10300 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
10302         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10303         (lex_string): Use unsigned char pointers.
10305 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10307         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10308         is not a valid memory_operand.
10310 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10312         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10313         * config/xtensa/lib1funcs.asm: Fix copyright to include
10314         special case for libgcc files.
10315         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10316         (__divsi3): Likewise.
10317         (__umodsi3): Likewise.
10318         (__modsi3): Likewise.
10319         * config/xtensa/lib2funcs.S: Fix copyright to include
10320         special case for libgcc files.
10322 2002-03-12  Tom Rix  <trix@redhat.com>
10324         * collect2.c (resolve_lib_name): Move outside of
10325         OBJECT_FORMAT_COFF ifdef.
10326         (ignore_library): Same.
10328 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10330         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10332 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10334         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10335         to function_section before writing out the constant pool.
10337 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
10339         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10340         zero_constant.
10341         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10343 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
10345         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10346         (adddi3): Likewise.
10347         (movdf): Likewise.
10348         (movdi): Likewise.
10349         (cmpsi splitter): Likewise.
10350         (modsi3): Fail if <= 0.
10351         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10352         redundant test when HOST_BITS_PER_WIDE_INT != 32.
10353         (reg_or_sub_cint64_operand): Likewise.
10354         (num_insns_constant_wide): Optimize sign extension.
10355         (rs6000_legitimize_address): Likewise.
10357 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10359         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10360         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10362 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10364         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10365         address calculation.
10367 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10369         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10370         scratch register to DImode / TImode.
10371         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10372         register used does not overlap the target.
10374 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10376         * Makefile.in (debug.o): Depend on debug.h.
10377         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10378         * debug.c (do_nothing_debug_hooks): Likewise.
10379         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10380         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10381         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10382         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10383         * dwarfout.c (dwarf_debug_hooks): Likewise.
10384         * integrate.c (output_inline_function): Likewise.
10385         * objc/objc-act.c (synth_module_prologue): Likewise.
10386         * sdbout.c (sdb_debug_hooks): Likewise.
10387         * toplev.c (debug_hooks): Likewise.
10388         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10390 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10392         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10393         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10394         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10395         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10396         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10397         * defaults.h (POINTER_SIZE): Define.
10398         * doc/tm.texi (POINTER_SIZE): Document default.
10400 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10402         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10404 2002-03-11  Richard Henderson  <rth@redhat.com>
10406         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10407         if rebuild_label_notes_after_reload.
10409 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
10411         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
10412         emit pic register load if "internal" visibility.
10413         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10414         (cris_expand_builtin_va_arg): Do all computations on trees.
10416 2002-03-11  Richard Henderson  <rth@redhat.com>
10418         * rtlanal.c: Include recog.h.
10419         (keep_with_call_p): Fix thinko.
10420         * Makefile.in (rtlanal.o): Update dependencies.
10422 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
10424         * genflags.c (gen_insn): Use IS_VSPACE.
10425         * genoutput.c (output_insn_data): Likewise.
10426         (process_template): Likewise.
10428 2002-03-11  Richard Henderson  <rth@redhat.com>
10430         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10432 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10434         * Makefile.in: Update.
10435         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10436         Update documentation.
10437         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10438         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10440 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
10442         * Makefile.in: Give texi2pod its input file as a command line
10443         argument, not on stdin.
10445 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
10446             Daniel Berlin  <dan@dberlin.org>
10448         C++ alias analysis improvement.
10449         * alias.c (record_component_aliases): Record aliases for base
10450         classes too.
10452 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
10454         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10456 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
10458         * toplev.c (vms_fopen): Remove, not needed.
10460         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10462         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10464         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10465         for FP, already done later.
10467         * toplev.c (debug_args): Add entry for VMS_DEBUG.
10468         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10470 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
10472         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10473         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10474         LARGEST_EXPONENT_IS_NORMAL for the given mode.
10475         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10476         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10477         (ediv, emul, eldexp, esqrt): Likewise.
10478         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10479         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10480         (saturate): New function.
10481         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10482         (make_nan): Use a saturation value instead of a NaN if
10483         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
10484         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10485         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
10486         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
10487         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10488         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10489         !ROUND_TOWARDS_ZERO.
10490         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10491         (ROUND_TOWARDS_ZERO): Document.
10493 2002-03-11  Andreas Jaeger  <aj@suse.de>
10495         * cfg.c (dump_flow_info): Remove unused variable.
10497 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
10499         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10500         computations on trees.
10502 2002-03-10  Richard Henderson  <rth@redhat.com>
10504         PR 5693:
10505         * reload.c (copy_replacements_1): New.
10506         (copy_replacements): Use it to recurse through the rtx.
10508 2002-03-10  Richard Henderson  <rth@redhat.com>
10510         * loop.c (strength_reduce): Compute number of iterations as
10511         unsigned HOST_WIDE_INT.
10513 2002-03-10  Richard Henderson  <rth@redhat.com>
10515         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10516         to move away from the end of the block.
10518 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10520         PR preprocessor/5899
10521         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10523 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10525         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10527         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10529 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10531         * config/mmix/mmix.c: Improve comments.
10532         (mmix_target_asm_function_prologue): Drop variable
10533         empty_stack_frame.  Don't allocate unused slot above fp.
10534         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10535         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10536         brace in first column.
10537         (enum reg_class): Ditto.
10538         (FIRST_PARM_OFFSET): Now 0.
10539         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10541 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10543         * combine.c (make_extraction): Fix error in last change.
10545 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10547         * c4x.c (c4x_fp_reglist): Const-ify.
10548         * cris.c (cris_print_operand): Likewise.
10549         * i386.c (ix86_va_arg): Likewise.
10550         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10551         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10552         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10553         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10554         * mcore.h (regno_reg_class): Likewise.
10555         * mips.c (gen_int_relational): Likewise.
10556         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10557         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10558         * pdp11.c (move_costs): Likewise.
10559         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10560         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10561         Likewise.
10562         * s390.h (regclass_map): Likewise.
10563         * sh.c (shift_amounts): Likewise.
10564         * sh.md (rotlsi3): Likewise.
10566 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10568         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10569         (ne0+5): Use new clobber to generate proper shift pattern.
10570         Patch by Michael Matz <matz@kde.org>.
10572 2002-03-09  Andreas Schwab  <schwab@suse.de>
10574         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10576 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10578         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10580 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10582         PR middle-end/5877
10583         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10584         even for non-representable constants.
10586 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10588         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10589         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10590         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10591         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10592         (pop_function_context): Compute MAY_SHARE parameter for
10593         fixup_var_refs.
10594         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10595         (gen_mem_addressof): Call fixup_var_refs with new parm.
10597         * combine.c (make_extraction): Don't make extension of CONST_INT.
10599 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10601         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10602         in o32 and o64 ABIs.
10603         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10604         but getting fixed-size structs passed in registers regardless of
10605         padding in o32 and o64 ABIs.
10607         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10608         offset before loading address of argument passed by transparent
10609         reference.
10611 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10613         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10615 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10617         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10618         marker such that registers after it are saved.
10620 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10622         * sparc.c (arith_4096_operand): Fix error in last change.
10624 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10626         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10627         defaults for MEABI.
10629 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10631         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10632         vectors.
10634 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10636         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10638 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10640         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10641         removed; fix return value.
10642         * combine.c (combine_instructions): Dirtify blocks where we failed to
10643         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10644         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10646 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10648         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10650 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10652         * recog.c (peephole2_optimize): Re-distribute EH edges.
10654 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10656         * expr.c (expand_expr): Use unsave lang hook.
10657         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10658         (LANG_HOOKS_INITIALIZER): Update.
10659         * langhooks.h (struct lang_hooks): New hook unsave.
10660         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10661         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10662         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10663         (unsave_expr_now): Remove.
10664         * tree.h (unsave_expr_now, lang_unsave,
10665         lang_unsave_expr_now): Remove.
10666         (lhd_unsave): New.
10668 2002-03-08  Andreas Jaeger  <aj@suse.de>
10670         * flow.c (propagate_block_delete_insn): Remove unused variable.
10672 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10674         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10675         insn length for memory load/store.
10677 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10679         * doc/install.texi (--with-libiconv-prefix): Document.
10681 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10683         * doc/sourcebuild.texi: Fix typo.
10685 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10687         PR c/3711
10688         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10689         trees.
10691 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10693         * rtl.c (copy_most_rtx): Move from here ...
10694         * emit-rtl.c (copy_most_rtx): ... to here.
10696 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10698         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10699         SUBTARGET_CPP_SIZE_SPEC.
10700         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10702         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10704 2002-03-07  Matt Hiller  <hiller@redhat.com>
10706         * gensupport.c (first_dir_md_include): Renamed from include;
10707         change all references.
10708         (last_dir_md_include): Renamed from last_include; change all
10709         references.
10710         (init_md_reader): Unconditionally initialize base_dir whether or
10711         not filename is a relative path.
10713 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10715         * config/fp-bit.c (_unord_f2): Compile it in even if
10716         US_SOFTWARE_GOFAST is enabled.
10718         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10719         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10720         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10721         NULL_RTX, try reversing the comparison and the operands.
10723 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10725         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10726         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10727         and MATCH_OP_DUP.
10729 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10731         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10733 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10735         * basic-block.h (fixup_abnormal_edges): Declare.
10736         * reload1.c (fixup_abnormal_edges): New function.
10737         * reg-stack.c (convert_regs): Use it.
10739         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10741         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10743 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10745         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10746         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10747         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10748         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10749         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10750         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10751         unless x and y could be infinite.
10752         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10753         Check that the common type of both arguments is a real, even for
10754         targets without unordered comparisons.  Allow an integer argument
10755         to be compared against a real.
10756         (expand_tree_builtin): Use expand_unordered_cmp.
10757         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10758         * cse.c (fold_rtx): Likewise.  Fix indentation.
10759         * fold-const.c (fold_real_zero_addition_p): New.
10760         (fold): Use it, and the new HONOR_... macros.
10761         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10762         * jump.c (reversed_comparison_code_parts): After searching for
10763         the true comparison mode, use HONOR_NANS to decide whether it
10764         can be safely reversed.
10765         (reverse_condition_maybe_unordered): Remove IEEE check.
10766         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10767         to decide which simplifications are valid.  Allow the following
10768         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10769         and (a - -b) to (a + b).
10770         (simplify_relational_operation): Use HONOR_NANS.
10771         * doc/tm.texi: Document the MODE_HAS_... macros.
10773 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10775         * combine.c (simplify_comparison): If simplifying a logical shift
10776         right and compare with constant, force the comparison to unsigned.
10778 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10780         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10782         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10783         -mabi=no-altivec
10784         (alt_reg_names): Remove % for vrsave.
10786 2002-03-06  Richard Henderson  <rth@redhat.com>
10788         PR optimization/5844
10789         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10790         if used indicates we've already emitted one copy of an operand.
10791         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10792         (gen_split): Supply a non-null used.
10794 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10796         * reload1.c (reload): Unshare all rtl after reload is done.
10798         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10799         but simply fail if the expression is too complex to simplify.
10800         (simplify_gen_binary): Handle simplify_plus_minus failures.
10802 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10804         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10805         consistently call delete_trivially_dead_insns after CSE and GCSE;
10806         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10807         after liveness2; update comment in last crossjumping.
10808         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10810 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10812         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10813         after completing fast dead code elimination.
10815         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10816         COMPARE operator.
10818 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10820         * version.c:  Fix misplaced leading blanks on first line.
10822 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10824         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10826 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10828         * cfgcleanup.c (mentions_nonequal_regs): New function.
10829         (thread_jump): Use it.
10830         * toplev.c (rest_of_compilation): Run jump threading after
10831         liveness.
10833 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10835         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10836         patch.
10838 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10840         * predict.c (estimate_bb_frequencies): Do not reload the
10841         frequencies from notes.
10843 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10845         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10846         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10848         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10849         delete_noop_moves): Return indeger.
10850         * flow.c (ndead): New variable.
10851         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10852         BB argument; update callers.
10853         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10854         (life_analysis): Do not call purge_all_dead_edges.
10855         (update_life_info): Return number of deleted insns; print statistics.
10856         (update_life_info_in_dirty_blocks): likewise.
10857         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10858         return number of insns deleted.
10860         * cse.c: Include timevar.h
10861         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10862         iterate until stabilizes; print statistics; return number of killed
10863         insns.
10864         * Makefile.in: (cse.o): Add timevar.h dependency
10865         * rtl.h (delete_trivially_dead_insns): New.
10866         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10867         * toplev.c (rest_of_compilation): Update callers.
10869         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10870         (try_optimize_cfg): Do not update liveness.
10871         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10872         removal stabilizes; use delete_trivially_dead_insns.
10874         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10876 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10878         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10879         callbacks when processing assembly language.
10881 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10883         * pa.h (ASM_FILE_END): Define.
10884         * som.h (ASM_FILE_END): Delete.
10886         * pa.c (function_arg): Don't pass floats in general registers in
10887         indirect calls if TARGET_ELF32.
10889 2002-03-05  Richard Henderson  <rth@redhat.com>
10891         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10893 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10895         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10897 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10899         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10900         -r command line.  Don't hide any symbols if not building
10901         shared libgcc.
10903 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10905         * cfg.c (dump_flow_info): Warn about profile mismatches.
10906         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10907         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10909 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10911         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10912         wide volatile memory by parts.
10914 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10916         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10917         is NULL.
10919 2002-03-05  Richard Henderson  <rth@redhat.com>
10921         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10923 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10925         * toplev.c (documented_lang_options): Document more
10926         language-specific options.
10927         * doc/invoke.texi (Warning Options): Correct documentation for
10928         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10929         * c-decl.c (c_decode_option): Use a table to handle warning options.
10931 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10933         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10934         parameter to mmix_encode_section_info.
10935         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10936         relocatably.  Always produce ELF, not mmo if linking relocatably.
10937         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10938         first is non-zero, don't add symbol prefix.
10939         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10940         prototype accordingly.
10942 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10944         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10946 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10948         * configure.in: Increase required makeinfo version to 4.1.
10949         * configure: Regenerate.
10951 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10953         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10954         elsewhere now.
10956 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10958         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10959         * doc/invoke.texi: Fix @math uses.
10961 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10963         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10964         removal
10966 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10968         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10969         (powerpc-*-eabisimaltivec*): Same.
10971         * config/rs6000/t-ppcendian: New.
10973 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10975         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10976         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10977         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10979 2002-03-03  Richard Henderson  <rth@redhat.com>
10981         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10983 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10985         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10986         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10987         tree.c, config/m68k/m68k.c:
10988         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10989         REAL_ARITHMETIC blocks unconditional.  Delete some further
10990         #ifdef blocks predicated on REAL_ARITHMETIC.
10991         * flags.h, toplev.c: Delete remaining references to
10992         flag_pretend_float.
10994         * doc/invoke.texi: Remove documentation of -fpretend-float.
10995         * doc/tm.texi: Describe the various REAL_* macros as provided by
10996         real.h, not by the target configuration files.
10998         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10999         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
11000         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11001         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
11002         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
11003         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
11004         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
11005         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
11006         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11007         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
11008         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11009         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
11010         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
11011         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
11012         config/xtensa/xtensa.h:
11013         Do not define, undefine, or mention in comments any of
11014         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
11015         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
11016         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
11017         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
11018         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
11019         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
11020         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
11021         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
11022         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
11024 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11026         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
11027         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
11028         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
11029         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
11030         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
11031         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
11032         Delete.
11033         * defaults.h (BITS_PER_WORD): Define.
11034         * doc/tm.texi (BITS_PER_WORD): Document default value.
11036         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
11037         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
11038         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
11040 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11042         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
11043         lieu of explicit sizeof/sizeof.
11044         * i386.c (override_options, ix86_init_mmx_sse_builtins,
11045         ix86_expand_builtin): Likewise.
11046         * mips.c (mips_add_gc_roots): Likewise.
11047         * mmix.c (mmix_output_condition): Likewise.
11048         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
11049         altivec_init_builtins): Likewise.
11050         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
11051         * cppexp.c (Nsuff, parse_number): Likewise.
11052         * cppinit.c (builtin_array_end): Likewise.
11053         * gcc.c (n_default_compilers, process_command): Likewise.
11054         * genpreds.c (output_predicate_decls): Likewise.
11055         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
11056         * lcm.c (N_ENTITIES): Likewise.
11057         * stor-layout.c (set_sizetype): Likewise.
11059 2002-03-03  Richard Henderson  <rth@redhat.com>
11061         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
11062         for types or labels.
11064 2002-03-03  Richard Henderson  <rth@redhat.com>
11066         * c-decl.c (start_decl): Initialized variables are not common.
11068 2002-03-02  Per Bothner  <per@bothner.com>
11070         * gcc.c (option_map):  Suport new --bootclasspath option.
11071         --CLASSPATH is now just an alias for --classpath.
11073 2002-03-02  Richard Henderson  <rth@redhat.com>
11075         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
11076         load if "internal" visibility.
11077         * doc/extend.texi: Document visibility meanings.
11079 2002-03-02  Richard Henderson  <rth@redhat.com>
11081         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
11082         to functions as well.
11084 2002-03-02  Richard Henderson  <rth@redhat.com>
11086         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
11087         (handle_visibility_attribute): Don't call assemble_visibility.
11088         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
11089         without asmspec.  Invoke assemble_alias when needed.
11090         * varasm.c (maybe_assemble_visibility): New.
11091         (assemble_start_function, assemble_variable, assemble_alias): Use it.
11093 2002-03-02  Richard Henderson  <rth@redhat.com>
11095         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
11096         invoke ENCODE_SECTION_INFO with first call flag.
11098         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
11099         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
11100         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
11101         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
11102         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
11103         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11104         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
11105         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
11106         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
11107         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
11108         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11109         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
11110         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
11111         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
11112         config/mcore/mcore-protos.h, config/mcore/mcore.c,
11113         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
11114         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
11115         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11116         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
11117         config/sh/sh.h, config/sparc/sparc.h,
11118         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
11119         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
11120         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
11121         FIRST argument.  As needed, examine it and do nothing.
11123         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
11124         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11125         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
11127         * config/arm/t-pe (pe.o): Add dependencies.
11129 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11131         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
11132         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
11133         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
11134         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
11135         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
11136         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
11137         * defaults.h (BITS_PER_UNIT): Define.
11138         * doc/tm.texi (BITS_PER_UNIT): Document default value.
11140 2002-03-02  Kazu Hirata  <kazu@hxi.com>
11142         * config/h8300/h8300-protos.h: Add a prototype for
11143         compute_a_shift_length.
11144         * config/h8300/h8300.c (h8300_asm_insn_count): New.
11145         (compute_a_shift_length): Likewise.
11146         (h8300_adjust_insn_length): Do not adjust insn length of shift
11147         insns.
11148         * config/h8300/h8300.md (anonymous shift patterns): Use
11149         compute_a_shift_length.
11151 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11153         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
11154         trunc_int_for_mode.
11156         * emit-rtl.c (offset_address): Call update_temp_slot_address.
11158 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11160         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
11161         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
11162         * flags.h (flag_zero_initialized_in_bss): Declare.
11163         * toplev.c (flag_zero_initialized_in_bss): New flag.
11164         (lang_independent_options): Add flag_zero_initialized_in_bss.
11165         * tree.c (initializer_zerop): New function.
11166         * tree.h (initializer_zerop): Declare.
11167         * varasm.c (assemble_variable): If we can emit bss, put zero
11168         initializers in the bss section.
11170 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
11172         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
11173         like more than one symbol per .weak directive.
11175 2002-03-01  Richard Henderson  <rth@redhat.com>
11177         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
11178         adjust argument_pointer by pretend_args_size.
11179         (ia64_va_start): Adjust va_start address by -pretend_args_size.
11181 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11183         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
11185 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
11187         * toplev.c (rest_of_compilation): Delete dead jumptables before
11188         loop.
11189         * flow.c (delete_dead_jumptables): Make global.
11190         * rtl.h (delete_dead_jumptables): Declare.
11192 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
11194         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
11195         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
11196         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
11198 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11200         * config/h8300/h8300-protos.h: Fix formatting.
11201         * config/h8300/h8300.c: Likewise.
11202         * config/h8300/h8300.h: Likewise.
11204 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11206         * config/h8300/h8300.c (print_operand): Support 16-bit
11207         constant addresses.
11208         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
11210 2002-02-28  Richard Henderson  <rth@redhat.com>
11212         * expmed.c (store_bit_field): Prevent generation of CONCATs;
11213         pun complex values as integers; use gen_lowpart instead of
11214         gen_rtx_SUBREG.
11215         (extract_bit_field): Likewise.
11217 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
11218             David Edelsohn  <edelsohn@gnu.org>
11220         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11221         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11222         (SUPPORTS_WEAK): Likewise.
11223         * output.h (add_weak): Add tree param.
11224         * varasm.c (add_weak): Likewise.  Save decl.
11225         (struct weak_syms): Add decl field.
11226         (mark_weak_decls): New function.
11227         (init_varasm_once): ggc_add_root mark_weak_decls.
11228         (assemble_start_function): Use ASM_WEAKEN_DECL.
11229         (assemble_variable): Likewise.
11230         (assemble_alias): Likewise.
11231         (declare_weak): Pass decl to add_weak.
11232         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11233         (remove_from_pending_weak_list): Declare and define for
11234         ASM_WEAKEN_DECL.
11235         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11236         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11237         * defaults.h (SUPPORTS_WEAK): Likewise.
11238         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11239         .weak for code sym.  Do emit .size for descriptor sym.
11240         (ASM_DECLARE_FUNCTION_SIZE): Define.
11241         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11242         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
11243         .lglobl unless TARGET_XCOFF.  Formatting fixes.
11244         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11245         .weak for code sym.
11246         (HANDLE_PRAGMA_WEAK): Remove.
11247         (ASM_WEAKEN_LABEL): Remove.
11248         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11250 2002-03-01  Jason Merrill  <jason@redhat.com>
11252         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11253         (TARGET_EXPR_CLEANUP): New macro.
11255 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
11257         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11258         to take ptr_extend into account as third type of extension.
11259         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11260         fields used by SUBREG_PROMOTED_UNSIGNED_P.
11261         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11262         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11263         * calls.c (precompute_arguments): Use new macro.
11264         (expand_call): Ditto.
11265         * combine.c (nonzero_bits): Ditto.
11266         (record_promoted_value): Ditto.
11267         * expr.c (store_expr): Ditto.
11268         (expand_expr): Ditto.
11269         * function.c (assign_parms): Ditto.
11271 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
11273         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11274         override -shared and -shared-libgcc.
11276 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
11278         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11279         of "ultrasparc".
11280         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
11281         to be broken.
11283 2002-02-28  Richard Henderson  <rth@redhat.com>
11285         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11286         4 cycle latency from MM producers.
11287         (ia64_internal_sched_reorder): Likewise with pipeline flush.
11289 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
11291         * mklibgcc.in: Don't use GNU make extension.
11293 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11295         * c-parse.in (STATIC): New terminal.
11296         (scspec): New non-terminal.  Update productions accordingly.
11297         (program): Remove bogus ifc / end ifc.
11298         (array_declarator): Simplify production using STATIC.
11300 2002-02-28  Jim Meyering  <meyering@lucent.com>
11302         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11303         \a still means TARGET_BELL.
11305 2002-02-28  Richard Henderson  <rth@redhat.com>
11307         * haifa-sched.c (sched_emit_insn): New.
11308         (schedule_block): Use last_scheduled_insn to track last insn.
11309         * sched-int.h (sched_emit_insn): Prototype.
11310         * config/ia64/ia64.c (last_issued): Remove.
11311         (ia64_variable_issue): Don't set it.
11312         (nop_cycles_until): Use sched_emit_insn.
11314 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
11316         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11317         extended constants.
11319 2002-02-28  Kazu Hirata  <kazu@hxi.com>
11321         * config/h8300/h8300.c: Fix formatting.
11322         * config/h8300/h8300.h: Likewise.
11324 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11326         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11327         which may overwrite the high byte of the frame pointer.
11329 2002-02-28  Bo Thorsen  <bo@suse.de>
11331         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11332         (STARTFILE_SPEC): Add 64 bit files.
11333         (ENDFILE_SPEC): Likewise.
11335 2002-02-28  Jason Merrill  <jason@redhat.com>
11337         * c-decl.c (finish_function): Only warn about missing return
11338         statement with -Wreturn-type.
11340 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11342         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11344         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11345         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11347 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11349         * basic-block.h (BB_REACHABLE): Renumber.
11350         (BB_DIRTY, BB_NEW): New flags.
11351         (clear_bb_flags): Declare.
11352         (update_life_info_in_dirty_blocks): Declare.
11353         * cfg.c (clear_bb_flags): New function.
11354         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11355         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11356         reorder_insns, emit_insn_after): Mark block as dirty.
11357         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11358         (update_life_info_in_dirty_blocks): New function.
11359         * recog.c (apply_change_group): Dirtify block.
11361         * cse.c (cse_insn): Reorder emitting of jump insn to keep
11362         cfg consistent.
11363         * gcse.c (delete_null_pointer_checks): Likewise.
11365         * toplev.c (dump_file_index): Move cse2 after bp,
11366         add DFI_null
11367         (dump_file_info): Similary.
11368         (rest_of_compilation): Avoid most of CFG rebuilds;
11369         do first if converision after null pointer checks, do cse2
11370         after branch prediction; avoid full liveness rebuild after
11371         initializing subregs.
11372         * invoke.texi (-d options): Document -du, renumber.
11374         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11375         (notice_new_block): Do not set BB_UPDATE_LIFE.
11376         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11377          merge_blocks_move_successor_nojumps, merge_blocks,
11378          try_crossjump_to_edge): Likewise.
11379         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11380         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11381         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11382         (merge_of_block): Do not use life_data_ok.
11383         (find_if_case_1): Do not use SET_UPDATE_LIFE.
11384         (if_convert): Use BB_DIRTY mechanizm to update life.
11385         * lcm.c (optimize_mode_switching): Update
11386         update_life_info_in_dirty_blocks
11388 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11390         * Makefile.in (integrate.o): Update.
11391         * c-decl.c (copy_lang_decl): Rename.
11392         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11393         * integrate.c: Include langhooks.h.
11394         (copy_decl_for_inlining): Update to use langhook.
11395         * langhooks-def.h (lhd_do_nothing_t,
11396         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11397         (LANG_HOOKS_INITIALIZER): Update.
11398         * langhooks.c (lhd_do_nothing_t): New.
11399         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11400         * tree.h (copy_lang_decl): Remove.
11401 objc:
11402         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11404 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
11406         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11407         POST_DEC, and POST_MODIFY.
11409 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11411         * c-typeck.c (digest_init): Remove unused parameter; all
11412         callers changed.
11414 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
11416         * expmed.c (expand_shift): Correctly test for low part of a
11417         subreg.
11419 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
11421         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11422         insn UIDs with insn addresses.
11424 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11426         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11427         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11428         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11429         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11430         gcc.c, toplev.c: Delete code implementing -traditional mode.
11432         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11433         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11434         Document removal of -traditional mode for compilation, and
11435         remove documentation only relevant to that mode.
11437         * config/nextstep.h, config/ptx4.h, config/svr4.h,
11438         config/convex/convex.h, config/d30v/d30v.h,
11439         config/i386/dgux.h, config/i386/osf1elf.h,
11440         config/i386/osfelf.h, config/i386/osfrose.h,
11441         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11442         config/m68k/hp310.h, config/m88k/dgux.h,
11443         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11444         config/m88k/m88k.h, config/m88k/openbsd.h,
11445         config/mips/abi64.h, config/mips/osfrose.h,
11446         config/mips/svr4-5.h, config/mips/svr4-t.h,
11447         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11448         config/stormy16/stormy16.h: Remove all references to
11449         -traditional from target specs.  Delete all mention of the
11450         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
11451         delete a couple of commented-out definitions of
11452         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11453         to -traditional.
11455         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11456         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11458 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11460         * mklibgcc.in: Don't use \n in a line subject to
11461         interpretation by echo.
11463 2002-02-27  Graham Stott  <grahams@redhat.com>
11465         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11466         Constify NAME.
11468         * loop.c (prescan_loop): Handle PARALLEL.
11470         * unroll.c (loop_iterations): Return 0 if the add_val for
11471         a BIV is REG.
11473         * final.c (output_operand_lossage): Constify PFX_STR.
11475         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11477 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11479         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11480         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11482 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
11484         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11486 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11488         * cpplex.c (_cpp_lex_token): Handle directives in macro
11489         arguments.
11490         * cpplib.c (_cpp_handle_directive): Save and restore state
11491         if parsing macro args when entering a directive.
11492         * cppmacro.c (collect_args): No need to handle directives
11493         in macro arguments.
11494         (enter_macro_context, replace_args): Use the original macro
11495         definition in case it was redefined whilst collecting arguments.
11496 doc:
11497         * cpp.texi: Update.
11499 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
11501         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11502         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11503         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11504         method on AIX.
11505         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11506         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11507         (load_toc_v4_PIC_2): Same.
11509 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
11511         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11513 2002-02-26  Richard Henderson  <rth@redhat.com>
11515         * config/alpha/alpha.md (ashldi_se): Re-enable.
11517 2002-02-26  Richard Henderson  <rth@redhat.com>
11519         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11520         MODULE_LOCAL_P; improve commentary.
11522 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11524         * doc/cpp.texi: Clarify documentation of relationship between
11525         #line and #include.
11527 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11529         * config/h8300/h8300-protos.h: Update the prototype for
11530         compute_logical_op_length.  Add the prototype for
11531         compute_logical_op_cc.
11532         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11533         code from operands.
11534         (compute_logical_op_cc): New.
11535         * config/h8300/h8300.md: Combine all the logical op patterns
11536         in HImode and SImode.  Use compute_logical_op_cc.
11538 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11540         * config/i386/i386.c (print_operand): Don't append ATT-style
11541         length suffixs to x87 opcodes when in Intel mode.
11543 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11545         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11546         (init_emit_once): Update calls.
11547         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11548         (init_syntax_once): Prototype.
11550 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11552         * pa-linux.h (LIB_SPEC): Update definition.
11553         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11555 2002-02-26  Richard Henderson  <rth@redhat.com>
11557         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11558         if we emitted a stop bit.
11560 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11562         * configure.in (libgcc_visibility): Substitute.
11563         * configure: Rebuilt.
11564         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11565         defined symbols .hidden.
11567 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11569         * attribs.c (c_common_attribute_table): Add visibility.
11570         (handle_visibility_attribute): New function.
11571         * varasm.c (assemble_visibility): New function.
11572         * output.h (assemble_visibility): Add prototype.
11573         * tree.h (MODULE_LOCAL_P): Define.
11574         * crtstuff.c (__dso_handle): Use visibility attribute.
11575         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11576         for MODULE_LOCAL_P symbols too.
11577         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11578         MODULE_LOCAL_P symbols the same way as local symbols.
11579         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11580         into .sdata/.sbss by the user.
11581         * doc/extend.texi (Function Attributes): Document visibility
11582         attribute.
11584 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11586         PR debug/5770
11587         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11588         STRING_CST initializer spanning the whole variable without
11589         embedded zeros.
11590         If expand_expr returned MEM, don't use it.
11592 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11594         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11595         generate a die for the lexical block.
11597 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11599         * config/h8300/h8300-protos.h: Add a prototype for
11600         compute_logical_op_length.
11601         * config/h8300/h8300.c (compute_logical_op_length): New.
11602         * config/h8300/h8300.md (anonymous logical patterns): Use
11603         compute_logical_op_length for length.
11605 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11607         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11608         for vectors.
11609         (gen_type_die): Same.
11611         * attribs.c (handle_vector_size_attribute): Set debug information.
11613 2002-02-26  Daniel Egger  <degger@fhm.edu>
11615         * config/rs6000/rs6000.md: Swap define_insn attributes to
11616         fix incorrect generation of merge high instructions instead
11617         of merge low.
11619 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11621         * c-typeck.c (really_start_incremental_init): Use
11622         bitsize_zero_node for vectors.
11624 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11626         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11627         ("*set_vrsave_internal"): Same.
11629 2002-02-25  Richard Henderson  <rth@redhat.com>
11631         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11632         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11634 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11636         PR target/5755
11637         * config/i386/i386.c (ix86_return_pops_args): Only pop
11638         fake structure return argument if it was passed on the stack.
11640 2002-02-25  Jason Merrill  <jason@redhat.com>
11642         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11643         RESULT_DECL.
11645 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11647         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11648         link with shared_name only.
11649         * doc/invoke.texi (Link Options): Document new behavior.
11651 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11653         * c-typeck.c (push_init_level): Handle vectors.
11655 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11657         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11658         operands of SPARC_SETHI_P.
11659         (input_operand): Likewise.
11660         (sparc_emit_set_const32): Likewise.
11661         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11662         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11663         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11664         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11665         (movdi_insn_sp64_vis): Likewise.
11666         (movdi split, movdf split): Use SETHI32.
11667         * doc/md.texi: Document SPARC constraints L, M and N.
11669 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11671         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11672         ("*set_vrsave_internal"): use mfspr for Darwin.
11674         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11675         gen_get_vrsave_internal.
11677 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11679         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11681 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11683         * cpplex.c (cpp_interpret_charconst): Get signedness or
11684         otherwise of wide character constants correct.
11685         * cppexp.c (lex): Get signedness of wide charconsts correct.
11687 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11689         * optabs.c (widen_operand): Only call convert_modes for
11690         promoted SUBREG if signedness matches.
11691         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11693 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11695         * cpplib.c (glue_header_name): Use local buffer to build up
11696         header name.
11698 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11700         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11702 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11704         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11705         H8/300[HS] separately.
11706         * config/h8300/h8300.md: Remove the early clobber constraint
11707         from bit field patterns.
11709 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11711         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11712         register_operand.
11713         (mulhisi3): Likewise.
11714         (umulqisi3): Likewise.
11715         (umulhisi3): Likewise.
11717 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11719         * cppinit.c (output_deps): Correct test for stdout output.
11720         (init_dependency_output): Cure warning.
11722 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11724         * expr.c (store_expr): When converting expression to promoted
11725         equivalent type, allow using SUBREG_REG of TARGET as the target
11726         of the expansion of EXP.
11727         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11728         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11729         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11730         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11731         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11733 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11735         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11736         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11737         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11739 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11741         PR optimization/5747
11742         * loop.c (scan_loop): Update reg info if move_movables created new
11743         pseudos.
11745 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11747         * gcc.c (init_gcc_spec): Revert last change.
11749 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11751         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11752         gpc_reg_operand constraint.
11754 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11756         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11757         Simplify comparison of `low'.
11758         (add_operand): Fix formatting.
11759         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11760         (mask_operand): Disallow mask to wrap in 64-bit mode.
11761         (rs6000_stack_info): Remove redundant test setting push_p.
11762         (output_toc): Fix formatting.
11763         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11764         cc_reg_not_cr0_operand constraint.
11765         (booldi3, boolcdi3 splitters): Same.
11767 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11769         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11771 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11773         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11774         gcc invoked with -shared-libgcc.
11776 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11778         PR c++/5748
11779         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11780         decl if any of elements was TREE_USED.
11782 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11784         * config/sparc/sol2.h: Don't include sys/mman.h.
11785         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11786         (arith_4096_operand): Don't throw high bits away.
11787         (const64_operand): Take sign extension of CONST_INTs into account.
11788         (const64_high_operand, sparc_emit_set_const32): Likewise.
11789         (GEN_HIGHINT64): Likewise.
11790         (sparc_emit_set_const64_quick1): Likewise.
11791         (const64_is_2insns): Likewise.
11792         (print_operand): Use trunc_int_for_mode for sign extension.
11793         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11794         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11795         chars.  Assume CONST_INT is already properly sign-extended.
11796         (movdi split): Sign-extend each SImode part.
11797         (andsi3 split): Don't mask high bits off, so that result
11798         remains properly sign-extend.
11799         (iorsi3 split): Likewise.
11800         (xorsi3 split): Likewise.
11802 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11804         * fold-const.c (fold): Fix typo in comments.
11806 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11808         * Makefile.in (langhooks.o): Update dependencies.
11810 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11812         * langhooks.c: Include flags.h.
11814 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11816         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11818         * c-common.c (c_common_post_options): Set inline trees by
11819         default.
11821         * doc/extend.texi (Function Attributes): Document always_inline
11822         attribute.
11823         Update documentation about inlining when not optimizing.
11825         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11827         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11828         unless DECL_ALWAYS_INLINE.
11830         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11831         unless DECL_ALWAYS_INLINE.
11832         (c_disregard_inline_limits): Disregard if always_inline set.
11834         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11835         Disregard if always_inline set.
11836         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11837         unless DECL_ALWAYS_INLINE.
11839         * attribs.c (handle_always_inline_attribute): New.
11840         (c_common_attribute_table): Add always_inline.
11842         * config/rs6000/altivec.h: Add prototypes for builtins
11843         requiring the always_inline attribute.
11845 2002-02-21  Eric Christopher  <echristo@redhat.com>
11847         * expmed.c (store_bit_field): Try to simplify the subreg
11848         before generating a new one when when the mode size of
11849         value is less than maxmode.
11851 2002-02-21  Richard Henderson  <rth@redhat.com>
11853         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11854         than gen_rtx_PLUS to form the sum.
11855         * explow.c (force_reg): Rearrange to not allocate new pseudo
11856         when force_operand returns a register.
11857         * expr.c (expand_assignment): Allow offset_rtx expansion to
11858         return a sum.  Do not force addresses into registers.
11859         (expand_expr): Likewise.
11860         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11861         to canonicalize arithmetic that didn't simpify.
11862         (simplify_plus_minus): New argument force; update
11863         all callers.  Don't split CONST unless we can do something with it,
11864         and wouldn't lose the constness of the operands.
11866         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11867         that we generated earlier.
11869 2002-02-21  Tom Tromey  <tromey@redhat.com>
11871         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11872         (output_line_info): Use constant `1', with a long explanatory
11873         comment.
11874         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11876 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11878         * jump.c (redirect_jump): If old label has no UID, don't try to
11879         delete it.
11881 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11883         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11884         If input is constant, do shifts at compile time.
11886 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11888         * doc/extend.texi: Fix some more overfull hboxes.
11890 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11892         PR optimization/4994
11893         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11894         register moves.
11896 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11898         PR c++/4574
11899         * expr.h (expand_and): Add mode argument.
11900         * expmed.c (expand_and): Add mode argument.
11901         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11902         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11903         * except.c (expand_builtin_extract_return_addr): Likewise.
11904         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11905         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11906         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11907         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11908         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11909         gen_rtx (CONST_INT, VOIDmode, x).
11911 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11913         PR c/4697:
11914         * stmt.c (warn_if_unused_value): Move side effects test once more.
11916 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11918         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11919         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11921 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11923         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11924         SUBREG or ZERO_EXTEND.
11926 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11928         * sh.h (current_function_anonymous_args): Remove.
11929         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11930         of current_function_varargs and current_function_stdarg is set.
11931         * sh.c (sh_expand_prologue): Check current_function_varargs /
11932         current_function_stdarg / TARGET_SH5 instead of
11933         current_function_anonymous_args.
11935         * sh64.h (TARGET_VERSION): Define.
11937 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11939         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11940         VRSAVE_REGNO on TARGET_ALTIVEC.
11942 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11944         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11945         bits of SImode const_int.
11946         (includes_rshift_p): Likewise.
11947         (print_operand): Call mask_operand and mask64_operand with correct
11948         mode.
11949         (rs6000_output_function_epilogue): Pad traceback table to word.
11950         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11951         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11952         mask64_operand with correct mode.
11953         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11955 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11957         PR debug/4461
11958         * varasm.c (get_pool_constant_mark): New.
11959         * rtl.h (get_pool_constant_mark): Add prototype.
11960         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11961         be represented if it has not been output.
11963 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11965         * combine.c (do_SUBST): Sanity check substitutions of
11966         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11967         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11968         CONST_INT into its operand.
11969         (known_cond): Likewise, for ZERO_EXTEND.
11970         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11971         allow for simplification of wide modes.  Reject CONST_INTs in
11972         ZERO_EXTEND when their actual mode is not given.
11974 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11976         * c-decl.c (pushdecl): If no global declaration is found for an
11977         extern declaration in block scope, try a limbo one.
11979 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11981         PR c++/4401
11982         * c-common.c (pointer_int_sum): Moved from...
11983         * c-typeck.c (pointer_int_sum): ...here.
11984         * c-common.h (pointer_int_sum): Add prototype.
11986 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11988         PR c++/5713
11989         * c-decl.c (duplicate_decls): Return 0 if issued error about
11990         redeclaration.
11992 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11993             Jakub Jelinek  <jakub@redhat.com>
11995         PR c/4389
11996         * tree.c (host_integerp): Ensure that the constant integer is
11997         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11998         when pos is zero or non-zero respectively.  Clarify comment.
11999         * c-format.c (check_format_info_recurse): Fix host_integerp
12000         usage; the pos argument should be zero when assigning to a
12001         signed HOST_WIDE_INT.
12003 2002-02-20  Richard Henderson  <rth@redhat.com>
12005         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
12006         of the operand, rather than assuming TImode.
12007         (ix86_expand_binop_builtin): Cope with commutative patterns
12008         using nonimmediate_operand for both operands.
12009         (ix86_expand_timode_binop_builtin): Likewise.
12010         (ix86_expand_store_builtin): Validate operand 1.
12011         (ix86_expand_unop1_builtin): Likewise.
12013 2002-02-20  Philip Blundell  <philb@gnu.org>
12015         PR 5705
12016         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
12018 2002-02-20  Richard Henderson  <rth@redhat.com>
12020         PR c/5615
12021         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
12023 2002-02-20  Tom Tromey  <tromey@redhat.com>
12025         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12026         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12027         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12028         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12029         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
12030         unconditionally.
12032 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
12034         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
12035           for (const_int 0) in X not just INTVAL.
12037 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
12039         * doc/extend.texi: Avoid or reduce overfull hboxes.
12041 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
12043         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
12044         operations if the field does not start at a mode boundary.
12046 2001-02-20      Joel Sherrill <joel@OARcorp.com>
12048         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
12049         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
12050         Also done for -Acpu and -Amachine.
12052 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12054         * cppinit.c (init_dependency_output): Take deps output file
12055         from -o if none given with -MF.  Suppress normal output.
12056         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
12057         * doc/cpp.texi, doc/invoke.texi: Update.
12059 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
12061         * toplev.c (output_quoted_string): Write unprintable
12062         characters with octal escapes.
12064 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
12066         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
12067         really_call_used[VRSAVE_REGNO] if not Altivec.
12069 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
12071         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
12072         MODE_MASK.
12073         (constant_pool_expr_1): Fix formatting.
12074         (rs6000_legitimize_reload_address): Likewise.
12076 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12078         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
12079         now that we have one.
12081 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
12083         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
12084         end of first block of bitfields (which was only seven bits);
12085         rename dummy to unused_1; remove comment which is no longer true.
12087 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
12089         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
12091 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
12093         PR 5399
12094         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
12095         if generating PIC.
12097         PR 5054
12098         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
12099         arm_is_longcall_p rather than inspecting call-type cookie
12100         directly.
12101         (call_value_insn) [TARGET_THUMB]: Likewise.
12103 2002-02-19  Graham Stott  <grahams@redhat.com>
12105         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
12107 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
12109         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
12110         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
12111         (FP_SAVE_INLINE): Delete.
12113         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
12114         * config/rs6000/eabi.asm: Remove ABI save restore routines.
12115         * config/rs6000/t-ppccomm: Build crtsavres.o.
12116         * config/rs6000/crtsavres.asm: New file.
12118 2002-02-19  Philip Blundell  <philb@gnu.org>
12120         * config/arm/arm.c (use_return_insn): Don't reject interrupt
12121         functions.
12122         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
12123         (output_return_instruction): Allow interrupt functions to return with
12124         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
12125         (arm_expand_prologue): Subtract 4 before stacking LR in an
12126         interrupt function.
12128 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
12130         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
12131         decl, not just FUNCTION_DECL.
12132         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
12133         (arm_assemble_integer): Likewise.
12134         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
12135         marked local.
12137 2002-02-19  matthew green  <mrg@eterna.com.au>
12139         * config.gcc (sparc-*-netbsdelf*): Enable target.
12140         (sparc64-*-netbsd*): New target.
12141         * config/sparc/netbsd-elf.h: New file.
12142         * config/sparc/t-netbsd64: New file.
12144 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
12146         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
12148 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
12150         * doc/invoke.texi: explicitly list the style guidelines that
12151         -Weffc++ checks for.
12153 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
12155         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
12157 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12159         PR other/5718
12160         * gcc.c (cpp_unique_options): Treat -o as indicating object file
12161         only if not -E.  If -E, pass -o through to the preprocessor.
12163 2002-02-19  Kazu Hirata  <kazu@hxi.com>
12165         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
12166         register number with an appropriate macro.
12168 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12170         * doc/rtl.texi (Constants): Close @code tag.
12172 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
12174         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
12175         ("mmx_uavgv4hi3"): Same.
12176         ("pmulhrwv4hi3"): Same.
12178         * tree-inline.c (walk_tree): Handle vectors.
12180         * c-common.c (constant_expression_warning): Handle vectors.
12181         (overflow_warning): Same.
12183         * sched-deps.c (sched_analyze_2): Handle vectors.
12185         * rtlanal.c (rtx_unstable_p): Handle vectors.
12186         (rtx_varies_p): Same.
12187         (count_occurrences): Same.
12188         (regs_set_between_p): Same.
12189         (modified_between_p): Same.
12190         (modified_in_p): Same.
12191         (volatile_insn_p): Same.
12192         (volatile_refs_p): Same.
12193         (side_effects_p): Same.
12194         (may_trap_p): Same.
12195         (inequality_comparisons_p): Same.
12196         (replace_regs): Same.
12197         (computed_jump_p_1): Same.
12199         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
12200         argument.
12201         (inner_mode_array): New.
12202         (copy_rtx): Handle vectors.
12203         (copy_most_rtx): Same.
12204         (rtx_equal_p): Same.
12205         (get_mode_alignment): Adjust for vectors.
12207         * resource.c (mark_referenced_resources): Handle vectors.
12208         (mark_set_resources): Same.
12210         * reload1.c (eliminate_regs): Handle vectors.
12211         (elimination_effects): Same.
12212         (scan_paradoxical_subregs): Same.
12214         * reload.c (subst_reg_equivs): Handle vectors.
12216         * regrename.c (scan_rtx): Handle vectors.
12218         * regclass.c (reg_scan_mark_refs): Handle vectors.
12220         * recog.c (find_single_use_1): Handle vectors.
12222         * local-alloc.c (equiv_init_varies_p): Handle vectors.
12223         (contains_replace_regs): Same.
12224         (memref_referenced_p): Same.
12226         * integrate.c (copy_rtx_and_substitute): Handle vectors.
12227         (subst_constants): Same.
12229         * genattrtab.c (attr_copy_rtx): Handle vectors.
12230         (encode_units_mask): Same.
12231         (clear_struct_flag): Same.
12232         (count_sub_rtxs): Same.
12234         * gcse.c (want_to_gcse_p): Handle vectors.
12235         (oprs_unchanged_p): Same.
12236         (hash_expr_1): Same.
12237         (oprs_not_set_p): Same.
12238         (expr_killed_p): Same.
12239         (compute_transp): Same.
12240         (store_ops_ok): Same.
12242         * function.c (purge_addressof_1): Do not allow paradoxical subregs
12243         of vectors.
12244         (fixup_var_refs_1): Same.
12245         (instantiate_virtual_regs_1): Same.
12247         * fold-const.c (operand_equal_p): Handle vectors.
12248         (fold): Same.
12249         (rtl_expr_nonnegative_p): Same.
12251         * flow.c (mark_used_regs): Handle vectors.
12253         * df.c (df_uses_record): Handle vectors.
12255         * cselib.c (cselib_subst_to_values): Handle vectors.
12256         (cselib_mem_conflict_p): Same.
12257         (hash_rtx): Same.
12259         * cse.c (canon_reg): Handle vectors.
12260         (fold_rt): Same.
12261         (cse_process_notes): Same.
12262         (count_reg_usage): Same.
12263         (canon_hash): Same.
12265         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12267         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12269         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12270         (gen_rtx): Handle CONST_VECTOR.
12271         (gen_const_vector_0): New.
12272         (copy_rtx_if_shared): CONST_VECTORs can be shared.
12273         (reset_used_flags): Same.
12274         (copy_insn_1): Same.
12275         (initializer_constant_valid_p): Handle VECTOR_CST.
12277         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12279         * doc/rtl.texi (Constants): Document const_vector.
12280         (CONST0_RTX): Update for vectors.
12281         (RTL sharing): Same.
12283         * print-tree.c (print_node): Add case for VECTOR_CST.
12285         * tree.h (TREE_VECTOR_CST_ELTS): New.
12286         (struct tree_vector): New.
12287         (union tree_node): Add vector node.
12288         (build_vector): Add prototype.
12290         * tree.def (VECTOR_CST): New.
12292         * tree.c (build_vector): New.
12294         * expmed.c (make_tree): Handle CONST_VECTOR.
12296         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12297         (CONST_VECTOR_ELT): New.
12298         (CONST_VECTOR_NUNITS): New.
12300         * machmode.h (GET_MODE_INNER): New.
12301         (DEF_MACHMODE): Accept 8th arg.
12303         * machmode.def: Add 8th argument for vector inner mode.
12304         Add inner vector modes for vectors.
12306         * rtl.def (VEC_CONST): Remove.
12307         (CONST_VECTOR): New.
12309         * expr.c (clear_storage): Allow vectors.
12310         (is_zeros_p): Handle VECTOR_CST.
12312         * varasm.c (output_constant_pool): Handle vectors.
12313         (rtx_const): Add veclo and vechi fields.
12314         (kind): Add RTX_VECTOR.
12315         (decode_rtx_const): Add case for vector.
12317         * config/rs6000/rs6000-protos.h: Add zero_constant.
12319         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12320         constants.  Force easy vector constants into memory.
12321         (easy_vector_constant): New.
12322         (emit_easy_vector_constant): New.
12323         (rs6000_legitimize_reload_address): Do not generate bad reloads on
12324         darwin.
12326         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12327         instruction does.
12328         ("altivec_lvxl"): Same.
12329         (altivec_lvebx): Same.
12330         (altivec_lvehx): Same.
12331         (altivec_lvewx): Same.
12332         ("*movv4si_const0"): New.
12333         ("*movv4sf_const0"): New.
12334         ("*movv8hi_const0"): New.
12335         ("*movv16qi_const0"): New.
12337 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12339         * config/h8300/h8300.c (notice_update_cc): Use
12340         cc_status.value2.
12342 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12344         * config/h8300/h8300.md (divmod patterns): Change the
12345         constraints for operands[1] to register_operand.
12347 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12349         * config/h8300/h8300-protos.h: Remove the prototype for
12350         p_operand.
12351         * config/h8300/h8300.c (p_operand): Remove.
12352         * config/h8300/h8300.md: Replace p_operand with
12353         const_int_operand.
12355 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12357         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12358         comment.
12359         (output_return_instruction): Allow use of LDR to unstack
12360         return addresss even for interrupt handlers or when
12361         interworking.  If compiling for ARMv5, use interworking-safe
12362         return instructions by default.  Remove duplicated code and
12363         lengthy "strcat" sequences.
12365 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12367         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12368         (LINK_EH_SPEC): Define.
12369         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12371 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
12373         * config/s390/s390.c (s390_emit_prologue): Do not set the
12374         frame_related flag for call-clobbered registers.
12376 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12378         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12379         (construct_container): Fix handling of SSE operands.
12380         (ix86_expand_builtin): Fix handling of 64bit pointers.
12381         (mmx_maskmovq_rex): New pattern.
12383 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12385         * regrename.c (kill_set_value): Handle subregs properly.
12387 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
12389         * objc/objc-act.c (handle_impent): Remove leading '*'
12390         from objc_class_name.
12392 2002-02-17  Richard Henderson  <rth@redhat.com>
12394         * config/alpha/alpha.c (some_small_symbolic_operand,
12395         some_small_symbolic_operand_1, split_small_symbolic_operand,
12396         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12397         Handle small SYMBOL_REFs anywhere, not just inside memories.
12398         * config/alpha/alpha-protos.h: Update.
12399         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12400         * config/alpha/alpha.md (small symbolic operand splitter): Update.
12402 2002-02-17  Roland McGrath  <roland@frob.com>
12404         * config.gcc (powerpc-*-gnu-gnualtivec*,
12405         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12406         * config/rs6000/gnu.h: New file.
12407         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12408         Grok "gnu" in rs6000_abi_name.
12409         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12410         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12411         Grok -mcall-gnu analogous to -mcall-linux et al.
12412         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12413         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12414         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12416 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
12418         PR c/3444:
12419         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12420         shortening.
12422 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12424         * config/cris/cris.h: Undefine STARTFILE_SPEC and
12425         ENDFILE_SPEC before (re)defining them.
12427 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12429         * config/h8300/h8300.c: Fix formatting.
12430         * config/h8300/h8300.h: Likewise.
12432 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12434         * doc/tm.texi: Explain why empty strings should not be
12435         marked for translation.
12437 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12439         * final.c (output_operand_lossage): Changed to accept
12440         printf style arguments. Change calls where necessary.
12441         * output.h (output_operand_lossage): Change declaration
12442         accordingly. Update copyright.
12443         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12444         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12445         Update copyright date where necessary.
12447         * config/i386/i386.c (print_operand): Likewise. Remove use of
12448         sprintf.
12450         * config/cris/cris.c (cris_operand_lossage): Likewise.
12451         Rename parameter so that exgettext recognizes it as
12452         translatable message.
12453         (LOSE_AND_RETURN): Rename parameter to msgid.
12455 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12457         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12458         hard coded register number with an appropriate macro.
12459         (HARD_REGNO_MODE_OK): Likewise.
12460         (ARG_POINTER_REGNUM): Likewise.
12461         (STATIC_CHAIN_REGNUM): Likewise.
12462         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12463         * config/h8300/h8300.md (define_constants): Define more
12464         register numbers.
12466 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12468         * config/i386/i386.h: Don't mark empty strings for translation.
12470 2002-02-16  H.J. Lu <hjl@gnu.org>
12472         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12474 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
12476         * cppinit.c (merge_include_chains): Check for brack being
12477         NULL before attempting to merge it with qtail.
12479 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12481         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12482         DBX_DEBUG.
12484 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12486         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12488 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12490         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12491         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12492         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12494 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12496         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12497         now only if !TARGET_FIX.
12498         (*movsi_nt_vms_fix): New pattern.
12500 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
12502         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12503         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12504         (alpha_sa_mask, alpha_sa_size): Reflect above change.
12505         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12506         (alpha_start_function, alpha_expand_epilogue): Likewise.
12507         (unicosmk_gen_dsib): Likewise.
12509 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12511         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12513 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
12515         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12516         check_and_change_labels, s390_final_chunkify): Delete.
12517         (s390_split_branches, s390_chunkify_pool): New functions.
12518         (s390_function_prologue): Call them.
12520         * config/s390/s390.h (S390_REL_MAX): Delete.
12521         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12523         * config/s390/s390.md (cjump, icjump, jump): Fix length
12524         attribute calculation.
12527 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12529         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12530         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12532 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12534         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12535         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12536         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12538 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12540         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12542 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12544         * reload.c (find_dummy_reload): Check that an output register
12545         is valid for its mode.
12547 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12549         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12550         to simplify it.
12552         * function.c (assign_parms): Demote promoted argument passed by
12553         transparent reference.
12555 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12557         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12558         -Acpu() and -Amachine() to eliminate warnings.
12560 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12562         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12564 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12566         * config/h8300/h8300-protos.h: Update the prototype for
12567         const_costs.
12568         * config/h8300/h8300.c (const_costs): Treat SET as a little
12569         more expensive operation.
12570         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12571         reference to const_costs.
12573 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12575         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12577 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12579         PR c/5503:
12580         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12581         use arguments from newtype.
12583 2002-02-13  Eric Christopher  <echristo@redhat.com>
12585         * config/mips/mips.c (override_options): Add check for march/mipsX
12586         on the same command line. Fix error message in cpu processing.
12587         Remove architecture and ISA checks.
12589 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12591         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12593         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12595 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12597         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12598         alternatives.
12599         ("*movv8hi_internal1"): Same.
12600         ("*movv16qi_internal1"): Same.
12601         ("*movv4sf_internal1"): Same.
12603         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12604         not push_reload for altivec modes.
12606 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12608         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12609         all RTEMS targets including removal of #includes from config/*/rtems*.h
12610         file and adding them to tm_file setting. Added xm_defines=POSIX to
12611         many targets.
12612         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12613         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12614         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12615         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12616         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12617         config/m68k/rtemself.h: Ditto.
12618         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12619         config/mips/rtems64.h: Ditto.
12620         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12621         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12622         Ditto.
12623         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12624         config/sparc/rtemself.h: Ditto.
12625         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12626         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12627         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12628         more like arm-elf.
12629         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12630         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12631         target made more similar to i386-elf.
12632         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12633         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12634         be similar to config/m68k/t-m68kelf.
12635         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12637 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12639         * regmove.c (kill_value): Handle subregs.
12641 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12643         * i386.md (mul patterns): Allow memory operand to be first;
12644         add expanders where needed; fix constraints.
12645         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12646         Allow memory operand to be the first.
12648         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12649         operands.
12651 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12653         PR c/5681:
12654         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12655         GET_MODE (x).
12657 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12659         PR optimization/5547:
12660         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12661         all valid IA-32 address modes involving non-scaled %ebx and
12662         GOT/GOTOFF as displacement.
12664 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12666         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12667         after emitting ltorg insns.
12669         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12670         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12671         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12672         *abssf2): Fix "op_type" attribute.
12674 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12676         * mkconfig.sh: Avoid using a subshell redirect.
12677         ($output.T): Change to $(output)T.
12678         (ENABLE_NLS): Remove unneeded undef.
12680         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12681         * config/alpha/x-vms (libsubdir): Define.
12683         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12684         register frame procedures. Optimize retrieving context.
12686         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12687         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12688         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12690 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12692         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12693         Make same change as for find_base_value.
12695 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12697         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12698         of QImode and SImode.
12700 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12702         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12703         length computation of movsi.
12704         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12706 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12708         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12709         operands[2] to register_operand.
12711 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12713         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12715 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12717         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12718         for altivec_lvx* and altivec_stvx*.
12719         ("*movv4si_internal"): Add constraint for loading from GPRs.
12720         ("*movv8hi_internal1"): Same.
12721         ("*movv16qi_internal1"): Same.
12722         ("*movv4sf_internal1"): Same.
12724         * config/rs6000/rs6000.c (altivec_register_operand): New.
12726         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12727         altivec_register_operand.
12729 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12731         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12732         handle SYMBOL_REF.
12734 2002-02-13  Stan Shebs  <shebs@apple.com>
12736         * c-typeck.c (digest_init): Handle vectors.
12737         (really_start_incremental_init): Same.
12738         (pop_init_level): Same.
12739         (process_init_element): Same.
12741         * varasm.c (output_constant): Same.
12743         * expr.c (clear_storage): Same.
12744         (store_constructor): Same.
12746 2002-02-12  Eric Christopher  <echristo@redhat.com>
12748         * explow.c (hard_function_value): Add comment explaining
12749         signed/unsigned comparison.
12751 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12753         * jump.c (never_reached_warning): Add finish argument.
12754         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12755         real insn after end.
12756         * rtl.h (never_reached_warning): Adjust prototype.
12757         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12758         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12759         never_reached_warning.
12761 2002-02-12  Graham Stott  <grahams@redhat.com>
12763         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12765 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12767         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12768         logical shifts on H8/300.
12769         (shift_alg_si): Improve several shifts on H8/300.
12770         (get_shift_alg): Likewise.
12772 2002-02-12  Graham Stott  <grahams@redhat.com>
12774         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12776 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12778         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12779         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12781 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12783         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12784         non-CONST_INT through default_assemble_integer.
12785         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12786         <case 8>: Abort for CONST_DOUBLE.
12788 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12790         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12791         is specified.
12792         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12793         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12795 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12797         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12799 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12801         * regrename.c (regrename_optimize): Don't accept a
12802         part-clobbered register if the replaced register is not part
12803         clobbered.
12805         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12806         take padding into account when computing the argument value.
12808         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12810         * combine.c (try_combine): Apply substitutions in
12811         CALL_INSN_FUNCTION_USAGE too.
12813 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12815         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12816         __builtin_altivec_abs*.
12817         (bdesc_abs): New.
12819         * config/rs6000/rs6000.h (rs6000_builtins): Add
12820         ALTIVEC_BUILTIN_ABS*.
12822         * config/rs6000/altivec.h: Use const char for builtins expecting
12823         literals.
12824         (vec_abs): New versions for C and C++.
12825         (vec_abss): Same.
12827 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12829         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12830         using Pmode.
12832 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12834         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12835         constant definition from h8300.md.
12836         (FRAME_POINTER_REGNUM): Likewise.
12837         * config/h8300/h8300.md (define_constants): Add FP_REG.
12839 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12841         * config/h8300/h8300.c (print_operand): Remove redundant code.
12843 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12845         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12846         * config/h8300/h8300.c (byte_reg): Make it static.
12848 2002-02-10  Richard Henderson  <rth@redhat.com>
12850         PR c/5623
12851         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12853 2002-02-10  Richard Henderson  <rth@redhat.com>
12855         PR c++/5624
12856         * tree.c (append_random_chars): Don't abort if main_input_filename
12857         does not exist.
12859 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12861         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12863 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12865         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12866         (pushhi1): Likewise.
12868 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12870         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12871         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12873 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12875         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12876         remove MASK_VIS.
12877         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12879 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12881         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12882         a half of an SImode register on H8/300.
12884 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12886         * i386.md (movdi_2): Add missing '!'.
12888 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12890         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12891         definitions.
12893 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12895         * config/h8300/h8300.md (length): Correct the distance valid
12896         for the short branch.
12898 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12900         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12902 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12904         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12905         registers in SImode.
12906         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12907         part-clobbered.
12909         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12910         patch.
12912         Contribute sh64-elf.
12913         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12914         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12915         (sh_cannot_modify_jumps_p): New function.
12916         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12917         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12918         (sh_ms_bitfield_layout_p): New function.
12919         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12920                     Zack Weinberg  <zack@codesourcery.com>
12921         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12922         expand_simple_binop instead of expand_binop.
12923         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12924         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12925         use of .quad and .uaquad.
12926         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12927         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12928         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12929         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12930         movdi_const_16bit): Make sure all CONSTs have modes.
12931         (sym2PIC): Ditto, but by adjusting all callers.
12932         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12933         if the prologue calls the SHmedia argument decoder or register
12934         saver.
12935         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12936         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12937         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12938         (sh_expand_epilogue): Don't emit USE of return target register.
12939         (prepare_move_operands): Legitimize DImode PIC addresses.
12940         (sh_media_register_for_return): Skip tr0, used to initialize the
12941         PIC register.
12942         (sh_expand_prologue): Remove explicit USE of return register.
12943         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12944         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12945         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12946         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12947         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12948         EXTRA_CONSTRAINT_T.
12949         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12950         (MOVI_SHORI_BASE_OPERAND_P): New.
12951         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12952         (EXTRA_CONSTRAINT_T): Define in terms of them.
12953         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12954         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12955         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12956         alternatives supporting TARGET_REGS.
12957         (UNSPEC_GOTPLT): New constant.
12958         (movdi split): Move incrementing of LABEL_NUSES...
12959         (movdi_const, movdi_const_32bit): Here.  Use
12960         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12961         (movdi_const_16bit): New.
12962         (call, call_value) [flag_pic]: Use GOTPLT.
12963         (call_pop, call_value_pop): New expands.
12964         (call_pop_compact, call_pop_rettramp): New insns.
12965         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12966         (sibcall) [flag_pic]: Use GOT.
12967         (builtint_setjmp_receiver): Remove bogus, unused expand.
12968         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12969         (*pt, *ptb, ptrel): New insns.
12970         (sym2GOT): Handle DImode GOT.
12971         (sym2GOTPLT, symGOTPLT2reg): New expands.
12972         (sym2PIC): New expand.
12973         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12974         (shcompact_return_tramp_i): Use return register explicitly.
12975         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12976         disable flag_reorder_blocks.
12977         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12978         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12979         clobbers, for clarity.
12980         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12981         restoring of r0 in macl as MAYBE_DEAD.
12982         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12983         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12984         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12985         alter_subreg all over.
12986         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12987         reload, instead of emitting instructions that would require
12988         reloading.
12989         (casesi_load_media): Add missing modes.
12990         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12991         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12992         as used if the argument decoder is called.
12993         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12994         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12995         Pmode, then extend it to DImode if necessary.
12996         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12997         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12998         constants in FPU-enabled SHmedia, let them be loaded from memory.
12999         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
13000         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
13001         Adjust whitespace in assembly output templates.
13002         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
13003         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
13004         mode of if_then_else.
13005         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
13006         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
13007         sh.h.
13008         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
13009                     Joern Rennecke <amylaar@redhat.com>
13010         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
13011         (SUBTARGET_CPP_PTR_SPEC): New.
13012         (SUBTARGET_CPP_SPEC): Remove.
13013         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
13014         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
13015         Fix typo in previous checkin.
13016         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
13017         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
13018         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
13019                     Alexandre Oliva  <aoliva@redhat.com>
13020         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
13021         what single FP register can hold for SHmedia target.
13022         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
13023                     Alexandre Oliva  <aoliva@redhat.com>
13024         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
13025         Do not split into SUBREG.
13026         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
13027         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
13028         and added new functions as specified in SH5 ABI r9.
13029         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
13030         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
13031         8-byte boundary.
13032         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
13033         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
13034         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
13035         and consttable_window_ends.
13036         2001-06-03  Graham Stott  <grahams@redhat,com>
13037         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
13038         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
13039         * config/sh/sh.c (print_operand): Handle floating-point pair,
13040         vector and matrix registers.
13041         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
13042         vector modes into account.
13043         * config/sh/sh.md (movv2sf): Split move between registers into
13044         movdf.
13045         (movv4sf, movv16sf): Introduce insns that get split only after
13046         reload.
13047         * config/sh/shmedia.h: Fix Copyright dates.
13048         * config/sh/ushmedia.h: Likewise.  Move loop counter
13049         declarations into conditionals that uses them.
13050         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
13051         loop boundary.
13052         * config/sh/sshmedia.h: Fix Copyright dates.
13053         (sh_media_PUTCFG): Fix constraints.
13054         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
13055         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
13056         ptrmemfunc_vbit_in_delta for SH5.
13057         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
13058         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
13059         * invoke.texi: Likewise.
13060         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
13061         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
13062         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
13063         GCC_pop_shmedia_regs_nofpu): New global symbols.
13064         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
13065         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
13066         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
13067         compact function with nonlocal labels.
13068         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
13069         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
13070         (initial_elimination_offset): Account for their stack space.
13071         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
13072         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
13073         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
13074         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
13075         least one of the operands to be a register.
13076         (movv2sf): Likewise.  Renamed to movv2sf_i.
13077         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
13078         prepare_move_operands() before emitting SHmedia insns.
13079         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
13080         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
13081         Don't save nor initialize r12.  Don't mis-align the stack.
13082         Pad the code with a nop.
13083         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
13084         stack.
13085         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
13086         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
13087         [__SHMEDIA__]: Implement.
13088         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
13089         * config/sh/sh.md: Set latency of `pt' closer to reality.
13090         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
13091         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
13092         Set move, load and store type attributes.
13093         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
13094         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
13095         profiling.
13096         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
13097         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
13098         * config/sh/sh.c (sh_media_register_for_return): New function.
13099         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
13100         branch-target register.
13101         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
13102         * config/sh/sh.md (return_media_i): Use any call-clobbered
13103         branch-target register.
13104         (return_media): If r18 wasn't copied in the prologue, copy it
13105         here.
13106         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
13107         Clear class FP0_REGS.
13108         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
13109         from elf.h.
13110         2001-03-08  DJ Delorie  <dj@redhat.com>
13111         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
13112         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
13113         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
13114         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
13115         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
13116         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
13117         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
13118         return value correctly for call_cookie.
13119         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
13120         * config/sh/crt1.asm (start): Modified so as to call
13121         ___setup_argv_and_call_main.
13122         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
13123         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
13124         SHmedia mode.
13125         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
13126         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
13127         (STRIP_NAME_ENCODING): Use it.
13128         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
13129         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
13130         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
13131         prepare_scc_operands().
13132         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
13133         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
13134         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
13135         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
13136         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
13137         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
13138         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
13139         used in shcompact_incoming_args.
13140         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
13141         change.
13142         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
13143         mode.
13144         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
13145         Adjust accordingly.
13146         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
13147         Simplify.  Adjust.  Add sanity check.
13148         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
13149         FPU_SINGLE_BIT.
13150         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
13151         TARGET_SHCOMPACT.
13152         (udivsi3, divsi3): Use them.
13153         (force_mode_for_call): New insn.
13154         (call, call_value, sibcall_value): Emit it before SHcompact
13155         calls.
13156         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
13157         * config/sh/sh.md (call, call_value, sibcall): Make sure the
13158         call cookie is non-NULL before taking its value.
13159         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
13160         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
13161         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
13162         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
13163         block.
13164         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
13165         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
13166         temporary for stack adjusts.  Use MACL and MACH to pass
13167         arguments to shcompact_incoming_args.
13168         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
13169         clobber r1.
13170         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
13171         (nested_trampoline): Load static chain address into r1.
13172         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
13173         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
13174         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
13175         fp_arith_reg_operand().
13176         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
13177         * config/sh/sh.md (casesi): Sign-extend the first two operands,
13178         and use signed compares for them.
13179         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
13180         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
13181         ones properly aligned.
13182         (find_barrier): Account for extra alignment needed for 8-byte wide
13183         constants.
13184         (machine_dependent_reorg): Require a label for the second 4-byte
13185         constant after an 8-byte one.
13186         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
13187         change.
13188         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13189         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
13190         last_float when switching float modes.
13191         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
13192         auto-increment for general-purpose registers.
13193         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
13194         result.
13195         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
13196         for stack adjust.
13197         * config/sh/sh.c (sh_builtin_saveregs): Support using all
13198         registers for varargs.
13199         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
13200         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
13201         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
13202         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
13203         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
13204         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
13205         call_cookie accordingly.
13206         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
13207         (SHCOMPACT_BYREF): Likewise.
13208         (SHCOMPACT_FORCE_ON_STACK): New macro.
13209         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
13210         (sh_builtin_saveregs): Likewise.
13211         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13212         shcompact_incoming_args): Use new shift values.  Support
13213         sequences of consecutive and non-consecutive pushes/pops.
13214         * config/sh/sh.md (return): Don't explicitly use PR_REG.
13215         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
13216         * config/sh/sh.h (TEXT_SECTION): Define.
13217         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13218         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13219         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13220         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13221         return values on FPU-enabled SHmedia.
13222         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13223         FPU-enabled SHmedia.
13224         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13225         value is returned in a non-FP reg and is not returned by
13226         reference.
13227         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13228         jump_ind.
13229         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
13230         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13231         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13232         quad-aligned to be passed by callee-copy reference.
13233         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
13234         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13235         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13236         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
13237         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13238         copying low-numbered FP regs to r7 and r8.
13239         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13240         FP regs to general-purpose regs only if the copy was passed on the
13241         stack.
13242         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13243         copying FP reg to r9.
13244         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13245         copy FP regs to general-purpose regs only in outgoing calls.
13246         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13247         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
13248         HOST_WIDE_INT.
13249         * config/sh/sh.h (struct sh_args): Document all fields.
13250         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13251         passed partially on the stack should not consider making
13252         sibcalls.
13253         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13254         stack_regs only for incoming calls.  When passing FP args,
13255         make sure there are FP regs available before modifying
13256         call_cookie.
13257         (SHCOMPACT_BYREF): Pass double args in general-purpose
13258         registers by reference.
13259         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
13260         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13261         attempt to generate sibcalls if the caller got any arguments
13262         by reference.
13263         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13264         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13265         to 8-byte boundaries.
13266         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13267         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13268         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13269         stored in the stack.
13270         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13271         for the offsets to have the ISA bit set.
13272         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
13273         invocation.  Use beq instead of bgt to mark end of sequence of
13274         loads.
13275         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
13276         bgt to mark end of sequence of stores.
13277         * config/sh/sh.c (arith_operand): Don't check whether
13278         CONST_OK_FOR_J for now.
13279         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13280         instead of long for conversion.
13281         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
13282         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13283         before passing it to fprintf.
13284         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
13285         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13286         Call set_fpscr before reading/writing SR.
13287         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13288         Call set_fpscr.
13289         * config/sh/lib1funcs.asm: Add `.align 2' directives before
13290         SHmedia code.
13291         (FMOVD_WORKS): Define on SH5 with FPU.
13292         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
13293         setting.
13294         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13295         _fpscr_values.
13296         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
13297         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13298         address.
13299         (ia_main_table): Ditto.
13300         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
13301         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13302         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13303         the definitions from sh.h.
13304         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13305         TARGET_SH5.
13306         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13307         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13308         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13309         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
13310         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13311         Increment LABEL_NUSES.
13313         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13314         TARGET_SH5.
13315         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13316         defined.
13317         * config/sh/elf.h (SIZE_TYPE): Likewise.
13318         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13319         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13320         shcompact_incoming_args): Load switch table addresses using
13321         datalabel.
13322         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13323         (NO_BUILTIN_SIZE_TYPE): Define.
13324         (SIZE_TYPE): Don't define.
13325         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13326         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13327         definition of __SH5__=32 for -m5-compact-nofpu.
13328         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13329         ADDR_DIFF_VEC.
13330         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
13331         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13332         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
13333         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13334         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13335         (INSN_LENGTH_ALIGNMENT): Likewise.
13336         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13337         * config/sh/sh.md (call, call_value, sibcall): Simplify
13338         copying of non-branch-target register.
13339         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13340         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
13341         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13342         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13343         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13344         floating-point values as structs.
13345         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13346         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13347         general-purpose register.
13348         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13349         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13350         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13351         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13352         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13353         (ENCODE_SECTION_INFO): Enclose variables and constants in
13354         DATALABEL unspecs.
13355         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13356         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13357         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13358         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13359         only for LABEL_REFs.  For SYMBOL_REFs, prepend
13360         SH_DATALABEL_ENCODING to the symbol name.
13361         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13362         convert_mode().
13363         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13364         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13365         UNSPEC_DATALABEL.
13366         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13367         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13368         (DATALABEL_REF_P): Don't require CONST.
13369         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13370         REL label.
13371         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
13372         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13373         right.
13374         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13375         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13376         Use shallow_copy_rtx and PUT_MODE to change the mode of
13377         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13378         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13379         on SHmedia using GENERAL_REGs.
13380         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13381         bltu_media_i): Fix reversion of conditions.
13382         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13383         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13384         * config/sh/sh.c (output_far_jump): Save r13 in macl.
13385         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
13386         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13387         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13388         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13389         (GCC_nested_trampoline): Likewise.
13390         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13391         * config/sh/sh.c (gen_datalabel_ref): Define.
13392         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13393         (INITIALIZE_TRAMPOLINE): Likewise.
13394         (TRAMPOLINE_ADJUST_ADDRESS): Define.
13395         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13396         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13397         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13398         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13399         (ic_invalidate): Adjust for SH5.
13400         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13401         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13402         _nested_trampoline.
13403         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
13404         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13405         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13406         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13407         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13408         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13409         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13410         * config/sh/sh.c (target_reg_operand): Match only target-branch
13411         registers and pseudos that aren't virtual registers.
13412         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13413         Copy operands that don't match target_reg_operand to pseudos.
13414         (call_media, call_value_media, sibcall_media): Use
13415         target_reg_operand instead of target_operand.
13416         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
13417         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13418         * config/sh/sh.c (target_reg_operand): Match hardware registers
13419         other than branch-target registers.
13420         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13421         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13422         (fpscr_values) [SH5 == 32]: Define.
13423         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13424         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13425         Handle function addresses coming in SUBREGs.
13426         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
13427         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13428         shcompact_return_trampoline): Use datalabel where appropriate.
13429         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
13430         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13431         general-purpose register to copy one branch-target register to
13432         another.
13433         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13434         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13435         SYMBOL_REFs with VOIDmode.
13436         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13437         bltu_media_i): New insns.
13438         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13439         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13440         (INIT_CUMULATIVE_ARGS): Likewise.
13441         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13442         * machmode.def (V16SFmode): New mode.
13443         * c-common.c (type_for_mode): Support V2SF and V16SF.
13444         * tree.c (build_common_tree_nodes_2): Likewise.
13445         * tree.h (tree_index): Likewise.
13446         * calls.c (emit_call_1): Take args_so_far.  Adjust all
13447         callers.  Introduce CALL_POPS_ARGS.
13448         * tm.texi (CALL_POPS_ARGS): Document.
13449         * config/sh/crt1.asm: Implement in SHmedia mode.
13450         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13451         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13452         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13453         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13454         Implement divsi and udivsi in SHmedia mode.  Introduce
13455         SHcompact trampolines.
13456         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13457         only in SHmedia64.
13458         (regno_reg_class): Rewrite.
13459         (fp_reg_names): Remove.
13460         (sh_register_names, sh_additional_register_names): New.
13461         (print_operand): Added `u'.  Support SUBREGs in addresses.
13462         Add parentheses around shifted CONSTs.
13463         (output_file_start): Output .mode and .abi directives.
13464         (shiftcosts, addsubcosts, multcosts): Adjust.
13465         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
13466         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
13467         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
13468         bytes, not registers.  Take into account the need for the
13469         SHcompact incoming args trampoline.  Adjust all callers.
13470         (sh_expand_prologue): Take stack_regs into account.  Call
13471         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
13472         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
13473         stack aligned as per SH5 ABI.
13474         (sh_builtin_saveregs): Support SH5 ABI.
13475         (sh_build_va_list, sh_va_start): Likewise.
13476         (initial_elimination_offset): Take alignment into account.
13477         Compute location of PR according to the SH5 stack frame.
13478         (arith_reg_operand): Reject branch-target registers.
13479         (shmedia_6bit_operand): New.
13480         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13481         (target_reg_operand): Match DImode only.  Accept SUBREGs.
13482         (target_operand): New.
13483         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13484         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
13485         SIBCALL_REGS for SHmedia.
13486         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13487         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13488         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13489         (TARGET_SWITCHES): New SH5 flags.
13490         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
13491         VALID_REGISTER_P to disable unsupported registers.
13492         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13493         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13494         (FUNCTION_ARG_PADDING): Define.
13495         (FASTEST_ALIGNMENT): Adjust.
13496         (SH_REGISTER_NAMES_INITIALIZER): New.
13497         (sh_register_names): Declare.
13498         (DEBUG_REGISTER_NAMES): Define.
13499         (REGISTER_NAMES): Define based on sh_register_names.
13500         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13501         (sh_additional_register_names): Declare.
13502         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13503         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13504         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13505         (REGISTER_NATURAL_MODE): Define.
13506         (FIRST_PSEUDO_REGISTER): Adjust.
13507         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13508         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13509         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13510         (VECTOR_MODE_SUPPORTED_P): Define.
13511         (REG_CLASS_CONTENTS): Adjust.
13512         (SMALL_REGISTER_CLASSES): Adjust.
13513         (REG_ALLOC_ORDER): Adjust.
13514         (INDEX_REG_CLASS): Adjust.
13515         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13516         (CONST_OK_FOR_LETTER_P): Adjust.
13517         (PREFERRED_RELOAD_CLASS): Adjust.
13518         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13519         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13520         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13521         (FIRST_FP_PARM_REG): Adjust.
13522         (CALL_POPS_ARGS): Define.
13523         (FUNCTION_ARG_REGNO_P): Adjust.
13524         (struct sh_args): New fields.
13525         (GET_SH_ARG_CLASS): Adjust.
13526         (INIT_CUMULATIVE_ARGS): Adjust.
13527         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13528         (FUNCTION_ARG_ADVANCE): Adjust.
13529         (FUNCTION_ARG): Adjust.
13530         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13531         (FUNCTION_ARG_CALLEE_COPIES): Define.
13532         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13533         (STRICT_ARGUMENT_NAMING): Define.
13534         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13535         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13536         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13537         (SETUP_INCOMING_VARARGS): Adjust.
13538         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13539         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13540         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13541         (SUBREG_OK_FOR_INDEX_P): Adjust.
13542         (EXTRA_CONSTRAINT_S): Update.
13543         (EXTRA_CONSTRAINT_T): New.
13544         (EXTRA_CONSTRAINT): Adjust.
13545         (GO_IF_LEGITIMATE_INDEX): Adjust.
13546         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13547         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13548         (MOVE_MAX): Adjust.
13549         (MAX_MOVE_MAX): Define.
13550         (Pmode): Adjust.
13551         (CONST_COSTS): Adjust.
13552         (REGISTER_MOVE_COST): Adjust.
13553         (BRANCH_COST): Adjust.
13554         (TEXT_SECTION_ASM_OP): Adjust.
13555         (DBX_REGISTER_NUMBER): Adjust.
13556         (ASM_OUTPUT_DOUBLE_INT): New.
13557         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13558         (PREDICATE_CODES): Adjust.
13559         (PROMOTE_MODE): Adjust.
13560         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13561         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13562         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13563         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13564         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13565         (TR0_REG, TR1_REG, TR2_REG): New.
13566         (XD0_REG): Renumber.
13567         (UNSPEC_COMPACT_ARGS): New.
13568         (type): Added pt and ptabs.
13569         (length): Default to 4 on SHmedia.  Default pt length to 12
13570         and     20 on SHmedia32 and SHmedia64, respectively.
13571         (pt): New function unit.
13572         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13573         Add whitespace between operands of SHmedia instructions.
13574         (movdicc): Fix.
13575         (adddi3_media, addsi3_media): Adjust constraints.
13576         (subsi3) [SHmedia]: Force operand 1 into a register.
13577         (udivsi3_i1_media, udivsi3_i4_media): New.
13578         (udivsi3): Support SHmedia.
13579         (divsi3_i1_media, divsi3_i4_media): New.
13580         (divsi3): Support SHmedia.
13581         (anddi3, iordi3, xordi3): Adjust constraints.
13582         (zero_extendhidi2, zero_extendqidi2): New.
13583         (extendsidi2, extendhidi2, extendqidi2): New.
13584         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13585         (pop_e, pop_fpul, pop_4): Likewise.
13586         (movsi_media): Support FP and BT registers.
13587         (movsi_media_nofpu): New.  Adjust splits to DImode.
13588         (lduw, ldub): Renamed to zero_extend* above.
13589         (movqi_media): Fix typo.
13590         (movdi_media): Support FP and BT registers.
13591         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13592         (movdi_const_32bit): New.
13593         (shori_media): Require immediate operand.  Use `u' for output.
13594         (movdf_media, movsf_media): Simplified.
13595         (movdf_media_nofpu, movsf_media_nofpu): New.
13596         (movdf, movsf): Adjust
13597         (movv2sf, movv2sf, movv16sf): New.
13598         (beq_media, beq_media_i): Adjust constraints.  Don't use
13599         scratch BT register.
13600         (bne_media, bne_media_i): Likewise.
13601         (bgt_media, bgt_media_i): Likewise.
13602         (bge_media, bge_media_i): Likewise.
13603         (bgtu_media, bgtu_media_i): Likewise.
13604         (bgeu_media, bgeu_media_i): Likewise.
13605         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13606         bunordered): Emit jump insn.  Force operands to registers when
13607         needed.
13608         (jump_media, jump): Simplify.
13609         (call_compact, call_compact_rettramp): New.
13610         (call_value_compact, call_value_compact_rettramp): New.
13611         (call_media, call_value_media): Simplify.
13612         (sibcall_compact, sibcall_media): New.
13613         (call, call_value): Adjust for SHmedia and SHcompact.
13614         (sibcall, sibcall_value, untyped_call): Likewise.
13615         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13616         (indirect_jump): Adjust for SHmedia.
13617         (casesi_jump_media): New.
13618         (nop): Re-enable for SHmedia.
13619         (call_site): Restrict to SH1.
13620         (casesi): Adjust for SHmedia.
13621         (casesi_shift_media, casesi_load_media): New.
13622         (return): Explicitly use PR register.  Call return trampoline
13623         on SHcompact.
13624         (return_i): Explicitly use PR register.
13625         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13626         (return_media): Adjust.
13627         (shcompact_incoming_args): New.
13628         (epilogue): Adjust.
13629         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13630         (movstrsi): Disable on SH5.
13631         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13632         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13633         (subsf3, subsf3_media): Likewise.
13634         (mulsf3, mulsf3_media, mac_media): Likewise.
13635         (divsf3, divsf3_media): Likewise.
13636         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13637         (floatsisf2, fux_truncsfsi2): Likewise.
13638         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13639         constraints.
13640         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13641         (cmpunsf_media, cmpsf): Likewise.
13642         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13643         (abssf2, abssf2_media): Likewise.
13644         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13645         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13646         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13647         (floatsidf2, fix_truncdfsi2): Likewise.
13648         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13649         constraints.
13650         (cmpeqdf_media, cmpgtdf_media): Likewise.
13651         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13652         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13653         (absdf2, absdf2_media): Likewise.
13654         (extendsfdf2, extendsfdf2_media): Likewise.
13655         (truncsfdf2, truncsfdf2_media): Likewise.
13656         * config/sh/sh64.h: New file.
13657         * config/sh/t-sh64: New file.
13658         * config/sh/shmedia.h: New file.
13659         * config/sh/ushmedia.h: New file.
13660         * config/sh/sshmedia.h: New file.
13661         * configure.in: Added sh64-*-elf.
13662         * configure: Rebuilt.
13663         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13664         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13665         (reg_class_from_letter): Use `b' for TARGET_REGS.
13666         (print_operand): Support `%M', `%m', `AND' and
13667         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13668         (andcosts): Adjust for SHmedia.
13669         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13670         Likewise.
13671         (target_reg_operand): New function.
13672         * config/sh/sh-protos.h (target_reg_operand): Declare.
13673         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13674         FP registers on SH5.
13675         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13676         on SH4.
13677         (TARGET_REGISTER_P): New macro.
13678         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13679         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13680         (EXTRA_CONSTRAINT_S): New macro.
13681         (EXTRA_CONSTRAINT): Adjust.
13682         (FLOAT_TYPE_SIZE): Define to 32.
13683         (Pmode): DImode on SHmedia.
13684         (CONST_COSTS): Adjust for SHmedia literals.
13685         (PREDICATE_CODES): Added target_reg_operand.
13686         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13687         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13688         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13689         (cmpdi): Accept SHmedia.
13690         (movdicc_false, movdicc_true): New insns.
13691         (movdicc): New expand.
13692         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13693         no_new_pseudos.
13694         (addsi3_media): Match `S' constraint.
13695         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13696         (negdi2): Expand for SHmedia.
13697         (one_cmpldi2): New expand.
13698         (zero_extendsidi2): Change from expand to insn.
13699         (extendsidi2): Add constraints.
13700         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13701         LD/ST address.  Fix SI immediate loading split.
13702         (movhi_media, movqi_media, lduw, ldub): New insns.
13703         (movhi, movqi): Accept SHmedia.
13704         (shori_media, movdi_media): Relax input constraints.  Split
13705         symbolic constants.
13706         (movdf_media, movsf_media): New insn.  New split to movdi.
13707         (movdf, movsf): Match on SHmedia.
13708         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13709         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13710         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13711         (bunordered): New expand.
13712         (jump_compact): Renamed from `jump'.
13713         (jump_media): New insn.
13714         (jump): New expand.
13715         (call_media, call_value_media): New insns.
13716         (call, call_value): Adjust.
13717         (indirect_jump_compact): Renamed from `indirect_jump'.
13718         (indirect_jump_media): New insn.
13719         (indirect_jump): New expand.
13720         (untyped_call, return): Accept SHmedia.
13721         (return_media): New insn.
13722         (prologue, epilogue, blockage): Accept SHmedia.
13723         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13724         (sunordered): New expand.
13725         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13726         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13727         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13728         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13729         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13730         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13731         abssf2_media): New insns.
13732         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13733         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13734         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13735         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13736         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13737         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13738         absdf2_media): New insns.
13739         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13740         (extendsfdf2_media, truncdfsf2_media): New insns.
13741         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13742         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13743         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13744         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13745         * config/sh/sh.md (adddi3): New expand.
13746         (adddi3_media, adddi3z_media): New insns.
13747         (adddi3_compact): Renamed from adddi3.
13748         (addsi3_media): Use add.l r63 to add constant zero.
13749         (subdi3): New expand.
13750         (subdi3_media): New insn.
13751         (subdi3_compact): Renamed from subdi3.
13752         (mulsidi3): New expand.
13753         (mulsidi3_media): New insn.
13754         (mulsidi3_compact): Renamed from mulsidi3.
13755         (umulsidi3): New expand.
13756         (umulsidi3_media): New insn.
13757         (umulsidi3_compact): Renamed from umulsidi3.
13758         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13759         (ashlsi3, ashrsi3, lshrsi3): Use them.
13760         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13761         (ashldi3, ashrdi3, lshrdi3): Use them.
13762         (zero_extendsidi2): New expand.
13763         (extendsidi2): New insn.
13764         (movsi_media): New insn.  Split to movdi to load constants.
13765         (movsi): Enable for shmedia.
13766         (movdi_media): New insn.  Use shori_media to load wide constants.
13767         (short_media): New insn.
13768         (movdi): Enable for shmedia.
13769         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13770         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13771         (SUBTARGET_CPP_SPEC): Added `!m5'.
13772         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13773         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13774         to all other SH variants.
13775         (TARGET_DEFAULT): Set to SH1_BIT.
13776         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13777         (BITS_PER_WORD): Raise to 64 on shmedia.
13778         (MAX_BITS_PER_WORD): Change to 64.
13779         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13780         (INT_TYPE_SIZE): Keep as 32.
13781         (UNITS_PER_WORD): Raise to 8 on shmedia.
13782         (MIN_UNITS_PER_WORD): Keep as 4.
13783         (POINTER_SIZE): Raise to 64 on shmedia.
13784         (CONST_OK_FOR_J): New macro.
13785         (CONST_OK_FOR_LETTER_P): Use it.
13786         (processor_type): Add PROCESSOR_SH5.
13787         * config/sh/sh.md: Conditionalize all expands, insns and
13788         splits to TARGET_SH1.
13789         (cpu): Added sh5.
13790         (addsi3_compact): Renamed from...
13791         (addsi3): Now an expand.
13792         (addsi3_media, subsi3_media): New insns.
13793         (subsi3): Don't negate constants with SHmedia.
13795         * hooks.c: New file.
13796         * hooks.h: New file.
13797         * Makefile.in (HOOKS_H): New.
13798         (TARGET_DEF_H): Added $(HOOKS_H).
13799         (OBJS): Added hooks.o.
13800         (cfgcleanup.o, bb-reorder.o): Added target.h.
13801         (hooks.o): Added dependencies.
13802         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13803         (TARGET_INITIALIZER): this.
13804         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13805         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13806         * bb-reorder.c: Include target.h.
13807         (reorder_basic_blocks): Skip if cannot modify jumps.
13808         * cfgcleanup.c: Include target.h.
13809         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13811 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13813         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13814         Protect jump delay slot instructions with .set noreorder and
13815         .set nomacro.
13817 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13819         * config/mips/mips.md (casesi_internal_di): Calculate
13820         the index into the target offset table correctly.
13822 2002-02-08  Richard Henderson  <rth@redhat.com>
13824         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13825         * final.c (output_addr_const): Accept and discard SUBREG.
13826         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13827         mark them unknown instead.
13828         (simplify_subtraction): Handle RTX_UNKNOWN.
13829         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13831 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13833         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13835 2002-02-08  Richard Henderson  <rth@redhat.com>
13837         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13839 2002-02-08  Andreas Jaeger  <aj@suse.de>
13841         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13842         * config/i386/t-linux64: New file.
13844 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13846         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13847         * c-parse.in (compstmt): Clear last_expr_type.
13849 2002-02-07  Richard Henderson  <rth@redhat.com>
13851         * loop.c (strength_reduce): Sink final_value when not
13852         eliminating a biv.
13854 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13856         * config/sparc/freebsd.h: Fix mismatched spec {.
13858 2002-02-07  Richard Henderson  <rth@redhat.com>
13860         * cfgrtl.c: Include recog.h and insn-config.h.
13861         (keep_with_call_p): Fix general_operand invocation.
13862         * Makefile.in (cfgrtl.o): Update dependencies.
13864 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13866         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13867         comment.  Accept HImode only if TARGET_H8300.
13869 2002-02-07  Eric Christopher  <echristo@redhat.com>
13871         * config/mips/crtn.asm: Cleanup #ifdefs.
13873 2002-02-07  Eric Christopher  <echristo@redhat.com>
13875         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13876         register 7 as RA instead of $31.
13877         * config/mips/crtn.asm: Ditto.
13878         * config/mips/mips.c (mips_move_2words): Add case for
13879         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13880         (compute_frame_size): Fix typo.
13881         (save_restore_insns): Ditto.  Make documentation about using
13882         register $7 as return register more precise.
13883         (mips_expand_epilogue): Fix comment. Add code to work around not
13884         being able to add to the stack pointer directly.
13885         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13886         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13887         epilogue.
13889 2002-02-07  Tom Rix  <trix@redhat.com>
13891         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13892         immediates in ldu and stdu DS opcode field.
13893         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13894         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13895         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13897 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13899         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13900         offset for stack bias.
13902 2002-02-07  H.J. Lu <hjl@gnu.org>
13904         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13906 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13908         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13910 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13912         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13913         * i386.c (x86_order_regs_for_local_alloc): New global function.
13914         * i386.h (REG_ALLOC_ORDER): CLeanup.
13915         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13917 2002-02-07  Richard Henderson  <rth@redhat.com>
13919         PR optimization/2463
13920         * alias.c (find_base_value): Recall base values for fixed hard regs.
13921         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13923 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13925         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13926         length.
13928 2002-02-06  Richard Henderson  <rth@redhat.com>
13930         PR c/5609
13931         * stmt.c (resolve_operand_name_1): Take more care with mixed
13932         named and unnamed operands.
13934 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13935             Jan Hubicka  <jh@suse.cz>
13937         * loop.c (remove_constant_addition): Avoid clobbering a shared
13938         CONST expression.
13940 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13942         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13943         * config/s390/t-linux64: New file.
13944         * config/s390/libgcc-glibc.ver: New file.
13946 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13948         * config/s390/linux64.h: Delete file.
13949         * config/s390/s390x.h: New file.
13950         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13951         as target header file.
13952         * config/s390/linux.h (TARGET_VERSION): Define depending on
13953         DEFAULT_TARGET_64BIT.
13954         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13955         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13956         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13957         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13958         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13959         (EXTRA_SPEC): New define.
13960         * config/s390/s390.h (TARGET_VERSION): Define depending on
13961         DEFAULT_TARGET_64BIT.
13962         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13964 2002-02-06  Jason Merrill  <jason@redhat.com>
13966         * c-decl.c (finish_function): Warn about a non-void function with
13967         no return statement and no abnormal exit.
13968         (current_function_returns_abnormally): New variable.
13969         (start_function): Clear it.
13970         (struct c_language_function): Add returns_abnormally.
13971         (push_c_function_context): Save it.
13972         (pop_c_function_context): Restore it.
13973         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13974         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13975         an explicit return type.
13976         * c-tree.h: Declare current_function_returns_abnormally.
13977         (C_FUNCTION_IMPLICIT_INT): New macro.
13978         * c-typeck.c (build_function_call): Set it.
13979         (c_expand_return): Set current_function_returns_value even if the
13980         value is erroneous.
13982 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13984         PR c/5420:
13985         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13986         unsafe for reevaluation.
13988 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13990         PR c/5482:
13991         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13992         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13994 2002-02-06  Richard Henderson  <rth@redhat.com>
13996         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13997         be a general_operand.  Dest for function value must be a pseudo.
13999 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
14001         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
14002         as SYMBOL_REFs from the constant pool.
14004 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
14006         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
14007         passed by invisible reference.
14009 2002-02-05  Richard Henderson  <rth@redhat.com>
14011         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
14013 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
14015         Implement using "base addresses" in insn operands as default.
14016         * config/mmix/mmix.c (mmix_conditional_register_usage): if
14017         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
14018         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
14019         used to read the rtx value.
14020         (mmix_target_asm_function_epilogue): Fix spacing.
14021         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
14022         (mmix_legitimate_address): Ditto.
14023         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
14024         should be loaded with a GETA insn.  Don't allocate needless extra
14025         char for nul termination and fix misleading comment.
14026         (mmix_print_operand_address): Handle constants if
14027         TARGET_BASE_ADDRESSES.
14028         (mmix_output_register_setting): Use base addressing if
14029         TARGET_BASE_ADDRESSES and the number of insns is 3.
14030         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
14031         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
14032         to use R as constraint, add LDA to match s.
14033         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
14034         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
14035         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
14036         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
14037         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
14038         order with other fixed registers.
14039         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
14040         other parameter/call-clobbered registers.
14041         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
14042         -mbase-addresses, -mno-base-addresses.
14043         (MMIX Options): Ditto.
14045 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14047         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
14049 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
14051         * config/rs6000/altivec.h: Change elem to _S_elem.
14053 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
14055         * config/netbsd.h (WCHAR_TYPE): Define.
14056         (WCHAR_TYPE_SIZE): Ditto.
14057         (WINT_TYPE): Ditto.
14058         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
14059         (WCHAR_UNSIGNED): Ditto.
14060         (WCHAR_TYPE_SIZE): Ditto.
14061         (WINT_TYPE): Ditto.
14062         * config/arm/netbsd.h: Likewise.
14063         * config/i386/netbsd-elf.h: Likewise.
14064         * config/i386/netbsd.h: Likewise.
14065         * config/m68k/netbsd-elf.h: Likewise.
14066         * config/m68k/netbsd.h: Likewise.
14067         * config/ns32k/netbsd.h: Likewise.
14068         * config/sparc/netbsd.h: Likewise.
14069         * config/vax/netbsd.: Likewise.
14071 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
14073         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
14074         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
14075         (TARGET_INITIALIZER): this.
14076         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
14077         (BITFIELD_NBYTES_LIMITED): Markup fix.
14078         * tree.h (default_ms_bitfield_layout_p): Declare.
14079         (record_layout_info): Added prev_field.
14080         * tree.c (default_ms_bitfield_layout_p): New fn.
14081         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
14082         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
14083         * stor-layout.c: Include target.h.
14084         (start_record_layout): Initialize prev_field.
14085         (place_field): Handle MS bit-field layout, and disregard
14086         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
14087         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
14088         * Makefile.in (stor-layout.o): Adjust dependencies.
14090 2002-02-05  Jason Merrill  <jason@redhat.com>
14092         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
14094 2002-02-05  Andreas Jaeger  <aj@suse.de>
14096         * crtstuff.c: Fix comments.
14098 2002-02-05  Richard Henderson  <rth@redhat.com>
14100         PR fortran/3393
14101         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
14102         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
14104         PR fortran/3392
14105         * config/mips/mips.c (function_arg): Handle TImode.
14106         (function_arg_advance): Likewise.
14108 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14110         * config/rs6000/altivec.h (vec_step_help): Rename to
14111         __vec_step_help.
14113 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14115         * config/rs6000/altivec.h: Fix typos.
14117 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
14119         * config/arm/netbsd.h: Correct a comment.
14121 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14123         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
14124         building void typed builtins.
14126         * config/rs6000/altivec.h (vec_ld*): Fix typos.
14127         (vec_step): Implement for C++.
14129 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14131         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
14133 2002-02-04  Richard Henderson  <rth@redhat.com>
14135         * combine.c (nonzero_bits): Re-introduce special case for
14136         sp/fp/ap wrt REGNO_POINTER_ALIGN.
14138 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14140         * doc/extend.texi: Warn about unsupported usage of altivec
14141         builtins.
14143         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
14144         (altivec_predicate_*): New.
14146         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
14147         Add C++ version of vec_*() functions.
14149         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
14150         (bdesc_2arg): Remove altivec predicates.
14151         (altivec_expand_builtin): Handle predicates.
14152         (altivec_init_builtins): Handle predicates.
14153         (altivec_expand_predicate_builtin): New.
14155 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14157         * pa.c (DO_FRAME_NOTES): Move forward.
14158         (store_reg): Revise handling of frame notes.
14159         (load_reg): Likewise.
14160         (set_reg_plus_d): Likewise.
14161         (hppa_expand_prologue): Likewise.
14162         (hppa_expand_epilogue): Likewise.
14164 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14166         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
14168 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14170         PR c/4475, c++/3780:
14171         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
14172         * c-common.h (SWITCH_TYPE): Define.
14173         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
14174         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
14175         Rename spareness variable to sparseness.
14176         (expand_end_case_type): Renamed from expand_end_case, use orig_type
14177         if non-NULL instead of TREE_TYPE (orig_index).
14178         * tree.h (expand_end_case_type): Renamed from expand_end_case.
14179         (expand_end_case): Define using expand_end_case_type.
14180         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
14181         to expand_end_case_type.
14182         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
14184 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14186         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
14187         (BIGGEST_ALIGNMENT): Change to 128.
14189 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14191         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
14193 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14195         * pa.md (call_internal_reg_64bit): Remove unused variable.
14197 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
14199         * config/arm/arm.h (machine_function): Add uses_anonymous_args
14200         field.
14201         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
14202         * config/arm/arm.c (current_function_anonymous_args): Delete,
14203         replace uses with cfun->machine->uses_anonymous_args.
14204         (arm_reorg): Do not reset uses_anonymous_args.
14206         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
14207         any geenral register.
14209 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
14211         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
14212         the entry block.
14214 2002-02-04  Richard Henderson  <rth@redhat.com>
14216         * combine.c (force_to_mode): Remove STACK_BIAS code.
14217         (nonzero_bits): Likewise.  Replace sp/fp special case with
14218         REGNO_POINTER_ALIGN.
14220         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14221         (HARD_FRAME_POINTER_REGNUM): New.
14222         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14223         (FIXED_REGS, CALL_USED_REGS): Update.
14224         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14225         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14226         (HARD_REGNO_NREGS): Update for SFP.
14227         (STACK_POINTER_OFFSET): Include bias here ...
14228         (FIRST_PARM_OFFSET): ... not here.
14229         (STACK_BIAS): Remove.
14230         (INIT_EXPANDERS): New.
14231         (STARTING_FRAME_OFFSET): Do not include bias.
14232         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14233         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14234         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14235         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14236         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14237         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14238         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14239         (MUST_SAVE_REGISTER): Likewise.
14240         (sparc_flat_function_prologue): Likewise.
14241         (sparc_flat_function_epilogue): Likewise.
14242         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14243         (sparc_init_modes): SFP is GENERAL_REGS.
14244         (sparc_builtin_saveregs): SFP does not have bias applied.
14246 2002-02-04  Richard Henderson  <rth@redhat.com>
14248         * config/alpha/alpha.c (current_function_is_thunk): Don't check
14249         current_function_is_thunk.
14250         (alpha_sa_mask): Distinguish between current_function_is_thunk
14251         called from ASM_OUTPUT_MI_THUNK and not.
14252         (alpha_does_function_need_gp): Thunks always need gp.
14253         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14254         (alpha_output_mi_thunk_osf): New.
14255         * config/alpha/alpha-protos.h: Update.
14256         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14258 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
14260         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14261         function types, not when they're taken away.
14263 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
14265         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14266         CODE_LABEL and jump table when replacing a table jump with a
14267         simple jump.
14269 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14271         * config/s390/s390-protos.h (legitimize_la_operand,
14272         s390_secondary_input_reload_class, s390_plus_operand,
14273         s390_expand_plus_operand): Add prototypes.
14275         config/s390/s390.c (s390_secondary_input_reload_class,
14276         s390_plus_operand, s390_expand_plus_operand): New functions.
14278         (struct s390_address): New member 'pointer'.
14279         (s390_decompose_address): Compute it.
14280         (legitimate_la_operand_p): Use it.
14281         (legitimize_la_operand): New function.
14282         (movti, movdi, movdf splitters): Call it.
14284         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14285         (PREDICATE_CODES): Add s390_plus_operand.
14287         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14288         (la_ccclobber): Allow GENERAL_REGS as output operand.
14290         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14291         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14292         (*la_64, *la_31, reload_indi, reload_insi): ... these.
14294 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14296         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14297         register names for regular asm () construct.
14299 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14301         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14302         registers.
14304 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14306         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14307         pat for recog.
14309 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
14311         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14312         constant pool to be identical by string address and index.
14314 2002-02-04  Anthony Green  <green@redhat.com>
14316         * output.h (SECTION_OVERRIDE): Define.
14317         * varasm.c (named_section): Obey SECTION_OVERRIDE.
14319 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14321         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14322         by existing arm*-*-netbsd* (a.out) target.
14323         (ns32k-*-netbsdelf*): Likewise.
14324         (sparc-*-netbsdelf*): Likewise.
14325         (vax-*-netbsdelf*): Likewise.
14327 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
14329         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14330         headers and libobjc headers.
14332 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
14334         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14335         (_mingw.h): Remove duplicate include.
14337 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14339         * config.gcc: Set cpu_type to m68k for 68010, as well.
14340         (m68010-*-netbsdelf*): New...
14341         (m68k*-*-netbsdelf*): ...targets.
14342         * config/m68k/netbsd-elf.h: New file.
14344 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14346         * config/h8300/h8300.c (hand_list): Move inside function_arg.
14348 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14350         * config/h8300/h8300.c (h8_push_ops): Move inside
14351         h8300_init_once.
14352         (h8_pop_ops): Likewise.
14353         (h8_move_ops): Likewise.
14355 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14357         * config/h8300/h8300.c (os_task): Make it static.
14358         (monitor): Likewise.
14359         (pragma_saveall): Likewise.
14361 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
14363         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14364         constant is a valid sign-extension for Pmode.
14366 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14368         * config/h8300/h8300.c: Fix formatting.
14370 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14372         * config/h8300/h8300.md: Fix formatting.
14374 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14376         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14377         predicates of operands[1].  Split the patterns for each
14378         processor variant.
14380 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14382         * config/h8300/h8300.md (xor patterns): Tighten the predicates
14383         of operands[1] to register_operand.
14385 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14387         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14388         * cpphash.c (_cpp_init_hashtable): Similarly.
14389         * cppinit.c (cpp_create_reader): Default the signed_char flag.
14390         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14391         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14392         (cpp_handle_option): Handle the new options.
14393         * cpplex.c (cpp_interpret_charconst): Use new flag.
14394         * cpplib.h (struct cpp_options): New member signed_char.
14395         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14396         (cpp_options): Handle -fsigned-char and -funsigned-char.
14397         (static_specs): Remove signed_char_spec.
14398         (do_spec1): Don't handle %c.
14399         * system.h: Poison SIGNED_CHAR_SPEC.
14400         * tradcif.y (yylex): Use flag_signed_char.
14401         * tradcpp.h (flag_signed_char): New.
14402         * tradcpp.c (flag_signed_char): New.
14403         (main): Handle new command-line options.
14404         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14405 config:
14406         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14407         * avr/avr.h: Remove old comments.
14408         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14409         (CC1_SPEC): Pass -fsigned-char if -mic*.
14410         (SIGNED_CHAR_SPEC): Remove.
14411 doc:
14412         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14414 2002-02-01  Eric Christopher  <echristo@redhat.com>
14416         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14417         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14418         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14419         (ASM_OUTPUT_REG_POP): Ditto.
14421 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14423         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14424         patch.
14426 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14428         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14430 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14432         PR c/5304:
14433         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14434         unconditionally.
14436 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14438         * cfganal.c: Include tm_p.h.
14439         (keep_with_call_p): Fix the test that determines if a register holds
14440         the return value of a call.
14442 2002-02-01  DJ Delorie  <dj@redhat.com>
14444         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14445         we are given conflicting registers, switch to the other one we
14446         had allocated for us.
14447         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14448         as TImode so we know when the "other" register is available.
14450 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
14452         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14453         sparc/sparc_bi.h.
14455 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14457         * cfganal.c (keep_with_call_p): New function.
14458         (flow_call_edges_add): Prevent splitting a block between a call and
14459         a single-set instruction that should be kept in the same block.
14461 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14463         * doc/install.texi (avr): Update outdated URL.
14465 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
14467         * config/stormy16/stormy16.md (pushqi): New.
14468         (popqi): New.
14469         (pushhi): New.
14470         (pophi): New.
14471         (movhi): Remove stack operands.
14472         (movqi): Likewise.
14473         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14474         nonimmediate_nonstack_operand.
14475         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14476         New.
14477         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14478         New.
14480 2002-01-31  Jason Merrill  <jason@redhat.com>
14482         * Makefile.in (c-parse.c): Handle .output file.
14483         * objc/Make-lang.in (objc-parse.c): Likewise.
14485 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
14487         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14488         the -me[lb] option is given.  Don't output the default flag
14489         twice.
14491 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
14493         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14494         the primary source file; this has not been done yet.
14495         * c-decl.c (c_expand_body): Reset input_filename from
14496         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14498 2002-01-31  Kazu Hirata  <kazu@hxi.com>
14500         * rtlanal.c (subreg_regno_offset): Do not use
14501         SUBREG_REGNO_OFFSET.
14502         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14503         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14505 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14507         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
14508         version rather than GNATS version in --version output.
14510 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
14512         * ifcvt.c (noce_process_if_block): Make a copy of the destination
14513         when copying back from a temporary.
14515 2002-01-30  Richard Henderson  <rth@redhat.com>
14517         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14518         and new_dest are the same.
14520 2002-01-30  Richard Henderson  <rth@redhat.com>
14522         PR opt/5076
14523         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14524         * rtl.c (note_insn_name): Update.
14525         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14526         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14527         to perform loop rotation.
14528         (expand_exit_loop_top_cond): New.
14529         * tree.h (expand_exit_loop_top_cond): Declare it.
14530         * c-semantics.c (genrtl_while_stmt): Use it.
14531         (genrtl_for_stmt): Likewise.
14533 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14535         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14536         arguments to 64-bit boundaries on 64-bit ABIs.
14538 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14540         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14542 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14544         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14545         invalid type.
14547 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14549         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14550         * config/sparc/sparc_bi.h: Remove file.
14551         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14553 2002-01-30  Richard Henderson  <rth@redhat.com>
14555         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14557 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14559         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14561 2002-01-30  Jason Merrill  <jason@redhat.com>
14563         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14564         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14565         (reg_save): Use DW_CFA_offset_extended_sf instead.
14567         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14569 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14571         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14572         in cselib_lookup.
14574 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14576         * rs6000.md ("*call_value_local32"): Remove constraints.
14577         ("*call_value_local64"): Same.
14578         ("*call_value_indirect_nonlocal_aix32"): Same.
14579         ("*call_value_nonlocal_aix32"): Same.
14580         ("*call_value_indirect_nonlocal_aix64"): Same.
14581         ("*call_value_nonlocal_aix64"): Same.
14582         ("*call_value_nonlocal_sysv"): Same.
14584 2002-01-29  Richard Henderson  <rth@redhat.com>
14586         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14588 2002-01-29  Richard Henderson  <rth@redhat.com>
14590         * expr.c (force_operand): Ignore flag_pic for detecting pic
14591         address loads.
14592         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14593         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14594         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14595         instead of open-coded loop.
14596         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14597         be fixed when in use.
14599 2002-01-29  Richard Henderson  <rth@redhat.com>
14601         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14602         * sched-rgn.c (propagate_deps): Update them.
14603         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14604         clobbers list when either gets too long.
14606 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14608         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14609         and INDEX_REGS the same as GENERAL_REGS.
14610         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14612 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14614         * tree.c (build_nonstandard_integer_type): Correct prototype.
14616 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14618         * config/s390/s390.md (movstrsico, movstrdix_64,
14619         movstrsix_31): Remove, replace by ...
14620         (movstrdi_short, movstrsi_short, movstrdi_long,
14621         movstrsi_long): ... these.  New.
14622         (movstrdi, movstrsi): Adapt.
14624         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14625         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14626         Remove unnecessary CC clobber.
14627         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14628         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14630         (divmoddi4): Don't partially initialize TImode register.
14632 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14634         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14636 2002-01-29  Richard Henderson  <rth@redhat.com>
14638         * flow.c (print_rtl_and_abort): Remove.
14639         (print_rtl_and_abort_fcn): Remove.
14640         (verify_local_live_at_start): Use dump_bb instead.
14641         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14642         (verify_wide_reg_1): Return 2 on mode test failure.
14644 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14646         PR c/3325, c/3326, c/2511, c/3347
14647         * c-decl.c (enum_decl_context): Remove BITFIELD.
14648         (grokdeclarator): Take bitfield width as an input.
14649         Ensure bitfields are given the correct type.  Perform
14650         bitfield width validation with build_bitfield_integer_type
14651         rather than waiting for finish_struct.
14652         (grok_typename, grok_typename_in_parm_context, start_decl,
14653         push_parmdecl, grokfield, start_function): Update calls to
14654         grokdeclarator.
14655         (build_bitfield_integer_type): New function.
14656         (finish_struct): Move bitfield validation to grokdeclarator
14657         and build_bitfield_integer_type.
14658         * tree.c (build_nonstandard_integer_type): New function.
14659         * tree.h (build_nonstandard_integer_type): New prototype.
14660 objc:
14661         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14663 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14665         PR other/1502:
14666         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14667         don't ignore unrecognized -W* options.
14668         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14669         * cpplib.h (cpp_handle_option): Adjust prototype.
14670         * c-decl.c (c_decode_options): Pass 0 as last argument to
14671         cpp_handle_option.
14673         PR c/2896:
14674         * gcc.c (cpp_unique_options): Split from cpp_options.
14675         (cpp_options): Source cpp_unique_options.
14676         (default_compilers): Use cpp_unique_options instead of cpp_options
14677         when used together with cc1_options.
14678         (static_specs): Add cpp_unique_options.
14679         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14680         when used together with cc1_options.
14682 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14684         * config/h8300/h8300-protos.h: Update the prototype of
14685         output_a_shift.
14686         * config/h8300/h8300.c (output_a_shift): Remove an unused
14687         argument 'insn'.  Remove redundant code.
14688         * config/h8300/h8300.md: Adust to the new prototype of
14689         output_a_shift.
14691 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14693         * config/h8300/h8300-protos.h: Update the prototypes of
14694         emit_a_rotate and expand_a_rotate.
14695         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14696         first argument to 'enum rtx_code'.
14697         (expand_a_rotate): Likewise.
14699 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14701         * config/h8300/h8300-protos.h: Update the prototype of
14702         output_simode_bld.
14703         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14704         'log2'.
14705         * config/h8300/h8300.md: Adjust to the new prototype.
14707 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14709         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14710         redundant code.
14712 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14714         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14715         is a fixed register before returning pic_offset_table_rtx.
14716         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14717         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14719 2002-01-28  Jason Merrill  <jason@redhat.com>
14721         * dwarf2.h: Sync with src version.
14723 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14725         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14726         BT_FN_VOID_PTR_VAR.
14727         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14728         * doc/extend.texi (__builtin_prefetch): Update documentation:
14729         first argument is now const void ptr.
14731 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14733         * config/h8300/h8300-protos.h: Remove an unused prototype.
14735 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14737         * toplev.c (lang_independent_init): Round up identifier size.
14739 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14741         * config.gcc: Revert previous change.
14743 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14745         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14747 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14749         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14750         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14751         other non-elf netbsd config frags.
14752         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14753         collect2 will does that.
14754         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14755         shared-lib frobbing will work.
14757 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14759         * config/h8300/h8300.h: Fix formatting.
14760         * config/h8300/h8300.md: Likewise.
14762 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14764         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14765         the old, removed AAA_standards fix.
14766         * fixinc/fixincl.x: Rebuilt.
14768 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14770         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14771         atexit call in crtbegin, hooked in after call to frame_dummy;
14772         register EH before registering __fini__start.
14774 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14776         * config/rs6000/altivec.h: Remove spurious semicolons.
14778 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14780         * config/h8300/h8300.md: Replace dead bit extraction patterns
14781         with ones that work.
14783 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14785         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14786         if not STRICT_ALIGNMENT.
14787         * rtl.h (MEM_ALIGN): Likewise.
14789 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14791         * doc/invoke.texi (-fdump-translation-unit): Revert this
14792         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14794 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14796         * config/h8300/h8300.md (define_constants): New.
14797         (anonymous patterns) Use defined constants appropriately.
14799 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14801         * config/h8300/h8300.c (function_arg): Remove redundant code.
14803 2002-01-26  Richard Henderson  <rth@redhat.com>
14805         * sched-deps.c (reg_pending_uses_head): New.
14806         (reg_pending_barrier): Rename from reg_pending_sets_all.
14807         (find_insn_list): Don't mark inline.
14808         (find_insn_mem_list): Remove.
14809         (add_dependence_list, add_dependence_list_and_free): New.
14810         (flush_pending_lists): Replace only_write param with separate
14811         for_read and for_write parameters.  Update all callers.  Use
14812         add_dependence_list_and_free.
14813         (sched_analyze_1): Do not add reg dependencies here; just set
14814         the pending bits.  Use add_dependence_list.
14815         (sched_analyze_2): Likewise.
14816         (sched_analyze_insn): Replace schedule_barrier_found with
14817         reg_pending_barrier.  Add all dependencies for pending reg
14818         uses, sets, and clobbers.
14819         (sched_analyze): Don't add reg dependencies for calls, just
14820         set pending bits.  Use regs_invalidated_by_call.  Treat
14821         sched_before_next_call as a normal list, not a fake insn.
14822         (init_deps): No funny init for sched_before_next_call.
14823         (free_deps): Free pending mems lists.  Don't zero reg_last.
14824         (init_deps_global): Init reg_pending_uses.
14825         (finish_deps_global): Free it.
14826         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14827         (find_insn_mem_list): Remove.
14828         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14829         (propagate_deps): Use them.  Zero temp mem lists.
14831 2002-01-26  Richard Henderson  <rth@redhat.com>
14833         * Makefile.in (CRTSTUFF_CFLAGS): New.
14834         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14835         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14836         crtstuff.c instead of alpha assembly version.
14837         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14838         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14839         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14840         (__do_global_dtors_aux): Mark used.
14841         (frame_dummy, __do_global_ctors_aux): Mark used.
14842         (fini_dummy, init_dummy): Remove.
14844         * config/alpha/crtbegin.asm: Remove file.
14845         * config/alpha/crtend.asm: Remove file.
14846         * config/alpha/t-crtbe: Remove file.
14847         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14848         (LINK_EH_SPEC): New.
14850         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14851         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14852         calling constructors.
14853         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14855         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14856         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14857         CRT_END_INIT_DUMMY hack.
14858         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14859         FORCE_{INIT,FINI}_SECTION_ALIGN.
14861         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14862         FORCE_{INIT,FINI}_SECTION_ALIGN.
14864         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14865         invocation sequence.
14866         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14868         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14869         (FORCE_CODE_SECTION_ALIGN): New.
14871 2002-01-26  Richard Henderson  <rth@redhat.com>
14873         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14875 2002-01-26  Richard Henderson  <rth@redhat.com>
14877         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14878         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14880 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14882         * config/h8300/h8300.md: Remove bit extraction patterns that
14883         cannot be triggered.
14884         Restrict each bit extraction pattern to a variant on which the
14885         pattern is tested.
14887 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14889         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14891 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14893         * config/h8300/h8300.md: Remove bit test patterns that cannot
14894         be triggered.
14895         Restrict each bit test pattern to a variant on which the
14896         pattern is tested.
14898 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14900         * builtins.c (expand_builtin_strncat): Remove redundant check for
14901         INTEGER_CST.
14903 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14905         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14906         default setting.
14907         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14908         existing setting.
14910 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14912         * dbxout.c (dbxout_init): Use assemble_name rather than just
14913         stripping off the first character.
14914         (dbxout_source_file): Likewise.
14916 2002-01-25  DJ Delorie  <dj@redhat.com>
14918         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14919         using rtx_equal_p, not by comparing pointers.
14921 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14923         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14924         for PIC_OFFSET_TABLE_REGNUM.
14925         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14927 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14929         * config.gcc (x86_64-*-freebsd*): New target.
14930         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14931         value.
14932         (i[34567]86-*-freebsd*): Don't include svr4.h.
14933         * config/i386/freebsd64.h: New file.
14935 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14937         * config/alpha/x-vms (version): Make static.
14939         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14940         in previous checkin.
14942         * Makefile.in (install-headers-cp): New target.
14943         * config.gcc (alpha-dec-*vms*): Install headers with
14944         install-headers-cp
14946 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14948         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14949         avoid it's copies.
14951 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14953         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14954         of compare_tree_int.
14955         (expand_builtin_strncat): Likewise.
14956         * c-decl.c (finish_struct): Use tree_low_cst.
14957         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14958         * tree.c (compare_tree_int): Likewise.
14960 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14962         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14963         adjustments even if they are implemented by more than two insns.
14965 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14967         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14968         * df.h (struct ref): Kill B.
14969         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14971         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14972         * flow.c (propagate_one_insn): Use it.
14973         (mark_used_regs): Handle NIL.
14975 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14977         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14978         to help folding.
14980 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14982         * rs6000.md (prefetch): Make address V4SI mode so that the address
14983         is restricted to legitimate form for instruction.
14985 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14987         * doc/install.texi (xtensa-*-elf): New target.
14988         (xtensa-*-linux*): New target.
14989         * doc/contrib.texi: Add myself.
14991 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14993         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14994         purpose register to hold an SImode (or smaller) value.
14996 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14998         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14999         registry only.
15000         * crtstuff.c: Likewise.
15002 2002-01-25  Kazu Hirata  <kazu@hxi.com>
15004         * config/h8300/h8300.md (negation patterns): Tighten
15005         predicates to register_operand.
15007 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
15009         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
15010         mode, not Pmode.
15012         * builtins.c (expand_builtin_prefetch): Same.
15014 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15016         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
15017         modes.
15019 2002-01-24  Kazu Hirata  <kazu@hxi.com>
15021         * config/h8300/h8300.c (print_operand): Remove support for
15022         operand character 'A'.
15023         * config/h8300/h8300.md (three anonymous patterns): Replace
15024         operand character 'A' with either 'T' or 'S'.
15026 2002-01-24  Kazu Hirata  <kazu@hxi.com>
15028         * config/h8300/h8300.c (print_operand): Remove support for
15029         operand character 'U'.
15031 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
15033         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
15035 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
15037         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
15038         values to be assigned to the stack pointer.
15040 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15042         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
15043         to const_double needs to be done right for big-endian systems.
15045 2002-01-24  Jason Merrill  <jason@redhat.com>
15047         PR c++/2432
15048         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
15049         to can_throw_internal.
15051 2002-01-23  Richard Henderson  <rth@redhat.com>
15053         * fold-const.c (fold): Change UINT_MAX test to check vs precision
15054         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
15056 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15058         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
15059         (symGOT2reg): Use them, then set as GOT value as unchanging.
15060         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
15061         as a temporary, if possible.
15062         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
15063         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
15065 2002-01-23  Kazu Hirata  <kazu@hxi.com>
15067         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
15068         accept to accept 0x80 as operands[2].
15070 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15072         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
15074 2002-01-23  Richard Henderson  <rth@redhat.com>
15076         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
15078 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
15080         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
15081         (parmlist_or_identifiers_1): Verify that only a parmlist follows
15082         an attribute.
15084 2002-01-23  Richard Henderson  <rth@redhat.com>
15086         * expr.c (move_by_pieces_1): Extend size before negation.
15088         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
15089         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
15090         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
15091         * config/m68k/t-m68kelf: Likewise.
15093 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
15095         * config/xtensa/elf.h: New file.
15096         * config/xtensa/lib1funcs.asm: New file.
15097         * config/xtensa/lib2funcs.S: New file.
15098         * config/xtensa/linux.h: New file.
15099         * config/xtensa/t-xtensa: New file.
15100         * config/xtensa/xtensa-config.h: New file.
15101         * config/xtensa/xtensa-protos.h: New file.
15102         * config/xtensa/xtensa.c: New file.
15103         * config/xtensa/xtensa.h: New file.
15104         * config/xtensa/xtensa.md: New file.
15105         * config.gcc (xtensa-*-elf*): New target.
15106         (xtensa-*-linux*): New target.
15107         * cse.c (canon_hash): Compare rtx pointers instead of register
15108         numbers.  This is required for the Xtensa port.
15109         * integrate.c (copy_insn_list): Handle case where the static
15110         chain is in memory and the memory address has to be copied to
15111         a register.
15112         * doc/invoke.texi (Option Summary): Add Xtensa options.
15113         (Xtensa Options): New node.
15114         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
15116 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
15118         * diagnostic.c (internal_error): Do ICE suppression only
15119         when ENABLE_CHECKING is not defined.
15121         * c-typeck.c (require_complete_type): Return error_mark_node
15122         if type is error_mark_node.
15124 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
15126         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
15127         -Os and issue a warning.
15129 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
15131         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
15132         current (lack of) need for host configuration by hand.
15134         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
15135         references.  Documentation of some target macros moved from
15136         hostconfig.texi to tm.texi.
15138 2002-01-23  Will Cohen  <wcohen@redhat.com>
15140         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
15141         defined.
15143 2002-01-23  Kazu Hirata  <kazu@hxi.com>
15145         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
15146         operand[3].
15148 2002-01-23  Jason Merrill  <jason@redhat.com>
15150         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
15152         * function.c (assign_parms): Don't put args of inline functions
15153         into registers when not optimizing.
15155 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
15157         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
15158         (prologue_use): New pattern.
15159         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
15160         preference to gen_rtx_USE.
15161         (thumb_expand_prologue): Use gen_prologue_use in preference to
15162         gen_rtx_USE.
15163         (thumb_expand_epilogue): Use gen_prologue_use in preference to
15164         gen_rtx_USE.
15166 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
15168         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
15170 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15172         PR c/3504
15173         * doc/extend.texi: Correct documentation of __alignof__.
15175 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
15177         * params.h: Rename arguments of DEFPARAM so that it will be
15178         recognized as a translation keyword.
15180 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15182         * extend.texi: Document altivec functions.
15183         Fix N-bit adjectives in X86 builtin documentation.
15185 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15187         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
15188         auto_inc_dec values.
15190 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
15192         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
15193         after backslash.
15194         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
15196 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15198         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
15200 2002-01-22  Richard Henderson  <rth@redhat.com>
15202         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
15203         copy_insn not copy_rtx.
15205 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
15207         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
15208         "nonzero" as that might add "1" bits.  Ensure "constop" is
15209         properly sign extened.
15210         (force_to_mode): Tweak for sign extended constop.
15212 2002-01-22  Richard Henderson  <rth@redhat.com>
15214         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15215         for_each_rtx instead of assuming we're already looking at the MEM.
15216         (split_small_symbolic_mem_operand): Likewise.
15217         * config/alpha/alpha.h (PREDICATE_CODES): Update.
15218         * config/alpha/alpha.md (small symbolic memory splitters): Update.
15220 2002-01-22  Richard Henderson  <rth@redhat.com>
15222         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15223         sequence number for the literal.
15224         (divmoddi_internal_er): Likewise.
15226 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15228         PR java/4972
15229         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15230         in LIBICONV variable.
15231         * configure: Regenerated.
15233 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
15235         * dependence.c (build_def_use): Remove array_idx.
15237         * dwarfout.c (last_filename): Remove.
15238         (output_compile_unit_die): Remove last_filename.
15240 2002-01-22  Roger Sayle  <roger@eyesopen.com>
15241             Richard Henderson  <rth@redhat.com>
15243         PR opt/3640
15244         * fold-const.c (fold): Optimize unsigned comparisons against
15245         UINT_MAX (and similar unsigned constants).
15247 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
15249         * Makefile.in (loop.o): Depend on OPTABS_H.
15250         * loop.c (emit_prefetch_instructions): Check the prefetch operand
15251         against the predicate.
15253         PR target/5379
15254         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15255         for the address operand.
15257 2002-01-22  Richard Henderson  <rth@redhat.com>
15259         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15261 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15263         PR other/5450
15264         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15265         preprocessor flags.
15267 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
15269         * config.gcc (x86_64-*-netbsd*): New target.
15270         * config/i386/netbsd64.h: New file.
15272 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15274         * regrename.c (kill_value): Fix typo.
15276 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15278         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15280         * config/rs6000/rs6000.h: Same.
15282         * function.c (instantiate_virtual_regs): Remove
15283         STARTING_FRAME_PHASE.
15284         (assign_stack_local_1): Same.
15285         Calculate frame phase.
15287 2002-01-22  Nick Clifton  <nickc@redhat.com>
15289         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15290         variable declaration to outer scope in order to simplify
15291         future extensions.
15292         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15293         arm_hard_regno_mode_ok.
15294         * config/arm/arm-protos.h: Add a prototype for
15295         arm_hard_regno_mode_ok.
15296         * config/arm/arm.c (soft_df_operand): Remove now redundant
15297         check for DImode values using IP_REGNUM.
15298         (nonimmediate_soft_df_operand): Remove now redundant check for
15299         DImode values using IP_REGNUM.
15300         (arm_hard_regno_mode_ok): New function. New check: make sure
15301         that DImode values are not stored in IP_REGNUM.
15303         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15304         note with a USE.
15305         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15307 2002-01-22  Jason Merrill  <jason@redhat.com>
15309         * c-semantics.c (genrtl_compound_stmt): Only check nesting
15310         consistency if this COMPOUND_STMT is scoped.
15312 2002-01-22  Kazu Hirata  <kazu@hxi.com>
15314         * predict.c: Fix formatting.
15315         * print-tree.c: Likewise.
15316         * protoize.c: Likewise.
15317         * real.h: Likewise.
15318         * rtl.h: Likewise.
15319         * sbitmap.h: Likewise.
15320         * scan.c: Likewise.
15321         * sched-deps.c: Likewise.
15322         * sched-vis.c: Likewise.
15323         * sdbout.c: Likewise.
15324         * sibcall.c: Likewise.
15325         * ssa.c: Likewise.
15326         * ssa-ccp.c: Likewise.
15327         * ssa-dce.c: Likewise.
15328         * stmt.c: Likewise.
15329         * stor-layout.c: Likewise.
15330         * system.h: Likewise.
15332 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15334         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15335         if fits in bounds of base type.
15337         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15338         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15339         (add_bound_info, default): If can't find a context, make a
15340         SAVE_EXPR.
15341         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15343 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
15345         * c-typeck.c (parser_build_binary_op): If result from
15346         build_binary_op is ERROR_MARK just return error_mark_node without
15347         further processing.
15349 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
15351         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15352         Split a.out-specific bits into...
15353         * config/netbsd-aout.h: ...this.
15354         * config/netbsd-elf.h: New file.
15355         * config/alpha/netbsd-elf.h: Remove.
15356         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15357         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15358         (STARTFILE_SPEC): Remove redundant definition.
15359         (ENDFILE_SPEC): Likewise.
15360         (LINK_SPEC): Likewise.
15361         (CPP_SPEC): Likewise.
15362         (ASM_SPEC): Likewise.
15363         (LIB_SPEC): Likewise.
15364         (SWITCH_TAKES_ARG): Likewise.
15365         (TARGET_MEM_FUNCTIONS): Likewise.
15366         (CPP_PREDEFINES): Redefine.
15367         (ASM_FINAL_SPEC): Remove redefinition.
15368         (ASM_COMMENT_START): Redefine.
15369         (FUNCTION_PROFILER): Define.
15370         (TARGET_VERSION): Redefine.
15371         Comment and formatting cleanup.
15372         * config/i386/netbsd.h: Include <netbsd-aout.h>.
15373         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15374         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15375         big- or little-endian.
15376         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15377         * config.gcc (*-*-netbsd*): Add definitions common to all
15378         NetBSD configs.
15379         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15380         gnu_ld definitions.  Add netbsd-elf.h to and remove
15381         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
15382         tmake_file, and don't lose previous tmake_file contents.
15383         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15384         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15385         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
15386         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15387         (mipsel-*-netbsd*): Rename this to...
15388         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
15389         mips/little.h to tm_file for mips*el-*.
15390         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15391         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15392         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15394 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15396         * pa-protos.h (reg_before_reload_operand): New function prototype.
15397         * pa.c (reg_before_reload_operand): New function implementation.
15398         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
15399         contraints to "*m".
15401 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15403         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15405 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15407         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15408         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15409         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15410         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15411         (ENDFILE_SPEC): Undefine.
15412         (STARTFILE_SPEC): Redefine for PA.
15414 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15416         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15418 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
15420         * config.gcc: Add entries to supported PowerPC --with-cpu
15421         types.
15423 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
15425         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15426         true for 64-bit mode only SSE registers in 32-bit mode.
15428 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15430         * unwind-dw2.c: Fix formatting.
15431         * unwind-dw2-fde.c: Likewise.
15432         * unwind-dw2-fde.h: Likewise.
15433         * unwind-pe.h: Likewise.
15434         * varasm.c: Likewise.
15435         * varray.h: Likewise.
15437 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
15439         Remove workaround for register stack overwrite bug in mmix.
15440         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15441         support for TARGET_REG_STACK_FILL_BUG.
15442         * config/mmix/mmix.h: Remove member has_call_without_parameters.
15443         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15444         Delete.
15445         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15446         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15447         -mno-reg-stack-fill-bug-workaround.
15448         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15449         machine member has_call_without_parameters.
15450         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15451         -mreg-stack-fill-bug-workaround and
15452         -mno-reg-stack-fill-bug-workaround.
15453         (MMIX Options): Ditto.
15455 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15457         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15458         as appropriate.
15459         Remove redundant code.
15461 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15463         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15464         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15465         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15466         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15467         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15468         out target macro definitions and non-target-specific comments
15469         mostly taken from old versions of the manual.
15471 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15473         * config/h8300/h8300.h: Fix comment formatting.
15474         * config/ia64/aix.h: Likewise.
15475         * config/ia64/ia64-protos.h: Likewise.
15476         * config/ia64/ia64.c: Likewise.
15477         * config/ia64/ia64.h: Likewise.
15478         * config/ia64/ia64intrin.h: Likewise.
15479         * config/ia64/linux.h: Likewise.
15480         * config/ia64/unwind-aix.c: Likewise.
15481         * config/ia64/unwind-ia64.c: Likewise.
15483 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15485         * config/h8300/h8300.c: Revise comments about shift code.
15487 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15489         * config/h8300/h8300.c (function_arg): Update a comment.
15491 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15493         * config/h8300/h8300.md: Update the comments at the beginning
15494         of the file.
15496 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15498         * config/i370/i370.c: Fix comment formatting.
15499         * config/i370/i370.h: Likewise.
15500         * config/i370/i370.md: Likewise.
15501         * config/i370/linux.h: Likewise.
15503 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15505         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15507         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15508         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15509         in incomplete case.
15511 2002-01-20  Graham Stott  <grahams@redhat.com>
15513         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15515 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15517         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15519 2002-01-19  Tom Rix  <trix@redhat.com>
15521         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15523 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15525         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15527         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15528         STARTING_FRAME_PHASE.
15529         (STARTING_FRAME_PHASE): New.
15530         (instantiate_virtual_regs): Check saneness of
15531         STARTING_FRAME_PHASE.
15533         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15535 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15537         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15539 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15541         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15542         be used for bootstrapping GCC 3.0.
15544 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15546         * config/h8300/h8300.md: Fix an insn length.
15548 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15550         * bitmap.h: Fix comment formatting.
15551         * combine.c: Likewise.
15552         * cppfiles.c: Likewise.
15553         * c-pragma.h: Likewise.
15554         * c-typeck.c: Likewise.
15555         * df.c: Likewise.
15556         * dwarf2out.c: Likewise.
15557         * function.c: Likewise.
15558         * gcc.c: Likewise.
15559         * genattrtab.c: Likewise.
15560         * gthr-win32.h: Likewise.
15561         * haifa-sched.c: Likewise.
15562         * predict.c: Likewise.
15563         * rtlanal.c: Likewise.
15564         * rtl.h: Likewise.
15565         * unwind-dw2-fde.h: Likewise.
15566         * unwind-pe.h: Likewise.
15567         * vmsdbgout.c: Likewise.
15569 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15571         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15572         if type_required and passed decl.
15574 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15576         * config.gcc (cpu_type): Include altivec.h in powerpc
15577         extra_headers.
15578         Same for darwin.
15580         * config/rs6000/altivec.h: New.
15582 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15584         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15585         handling information.
15586         * doc/trouble.texi (Interoperation): Add libstdc++ information
15587         for AIX.
15588         (Misunderstandings): Add template instantiation and static template
15589         member information for AIX.
15591 2002-01-17  Jason Merrill  <jason@redhat.com>
15593         * dbxout.c (dbxout_type): Support const and volatile.
15595         * except.c (add_partial_entry): Remove backwards compatibility code.
15596         (end_protect_partials): Likewise.
15598 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15600         * config/ia64/ia64.md (prologue_use): New.
15601         * config/ia64/ia64.c (ia64_expand_prologue): Use
15602         gen_prologue_use instead of gen_rtx_USE.
15603         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15604         as CODE_FOR_pred_rel_mutex.
15605         (ia64_sched_reorder2): Likewise.
15607 2002-01-16  Eric Christopher  <echristo@redhat.com>
15609         * config/mips/r3900.h: Reformat.
15610         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15611         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15612         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15613         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15614         * config/mips/t-elf: Remove mips3 multilib.
15616 2002-01-16  H.J. Lu <hjl@gnu.org>
15618         * config/mips/linux.h: Include "mips/abi64.h".
15620 2002-01-16  H.J. Lu <hjl@gnu.org>
15622         * config/mips/t-linux: New.
15624         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15626         * config/mips/linux.h: Don't include "gofast.h".
15627         (INIT_SUBTARGET_OPTABS): Removed.
15629 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15631         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15632         output_a_shift.
15633         * config/h8300/h8300.c: Likewise.
15634         * config/h8300/h8300.md: Likewise.
15636 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15638         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15639         spaces after an opcode name.
15640         (pushqi1_h8300hs): Likewise.
15641         (pushhi1_h8300hs): Likewise.
15643 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15645         * doc/extend.texi: Replace "option" with "attribute"
15646         appropriately.
15648 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15650         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15651         (and:DI () (const_int -8)).
15652         (split_small_symbolic_mem_operand): Split
15653         (mem (and:DI () (const_int -8)).
15655 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15657         PR target/5309:
15658         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15659         same way as TYPE_IMUL.
15660         (ultrasparc_sched_reorder): Likewise.
15661         * config/sparc/sparc.md (type): Add comment to update
15662         ultrasparc_sched_reorder when making changes.
15664 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15666         * doc/invoke.texi: Change the dump file name of block
15667         reordering pass from 28.bbro to 29.bbro.
15668         Mention -dk option.
15670 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15672         * i386.md (minsf splitter): Fix pasto.
15674 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15676         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15677         to frame pointer initialisation instruction.
15678         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15679         initialisation instruction.
15680         (soft_df_operand): Do not accept the IP register.
15681         (nonimmediate_soft_df_operand): Do not accept the IP register.
15683 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15685         PR target/5357:
15686         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15687         MASK_V8 being both set.
15689 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15691         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15692         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15693         config/s390/s390.md (call, call_value): Add GOT register to
15694         CALL_INSN_FUNCTION_USAGE where needed.
15695         (call_exp, call_value_exp): New.
15697 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15699         * config/arm/arm.c: General formatting tidy up.
15701 2002-01-16  Graham Stott  <grahams@redhat.com>
15703         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15704         cast and when casting an integer literal to "rtx" pointer.
15705         (expand_call): Likewise.
15706         * flow.c (try_pre_increment): Likewise.
15707         (find_use_as_address): Likewise.
15708         * integrate.c (expand_iline_function): Likewise.
15709         * regmove.c (try_auto_increment): Likewise.
15711 2002-01-16  Graham Stott  <grahams@redhat.com>
15713         * sched-rgn.c (passed): Use sbitmap_free.
15714         (header): Likewise.
15715         (inner): Likewise.
15716         (in_queue): Likewise.
15717         (in_stack): Likewise.
15719 2002-01-15  Eric Christopher  <echristo@redhat.com>
15721         * flow.c (propagate_one_insn): Change to use fatal_insn.
15723 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15725         * expmed.c (extract_fixed_bit_field): Remove unused code.
15726         * system.h: Poison SLOW_ZERO_EXTEND.
15727         * doc/tm.texi: Remove.
15728         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15729         * config/arm/arm.h: Likewise.
15730         * config/avr/avr.h: Likewise.
15731         * config/clipper/clipper.h: Likewise.
15732         * config/convex/convex.h: Likewise.
15733         * config/d30v/d30v.h: Likewise.
15734         * config/dsp16xx/dsp16xx.h: Likewise.
15735         * config/elxsi/elxsi.h: Likewise.
15736         * config/fr30/fr30.h: Likewise.
15737         * config/h8300/h8300.h: Likewise.
15738         * config/i370/i370.h: Likewise.
15739         * config/i386/i386.h: Likewise.
15740         * config/m68k/m68k.h: Likewise.
15741         * config/mips/mips.h: Likewise.
15742         * config/ns32k/ns32k.h: Likewise.
15743         * config/pdp11/pdp11.h: Likewise.
15744         * config/pj/pj.h: Likewise.
15745         * config/s390/s390.h: Likewise.
15746         * config/sh/sh.h: Likewise.
15747         * config/stormy16/stormy16.h: Likewise.
15748         * config/v850/v850.h: Likewise.
15749         * config/vax/vax.h: Likewise.
15750         * config/we32k/we32k.h: Likewise.
15752 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15754         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15755         (altivec_lvsl): Change constraint to b.
15756         (altivec_lvsr): Same.
15757         (altivec_lvebx): Same.
15758         (altivec_lvehx): Same.
15759         (altivec_lvewx): Same.
15760         (altivec_lvxl): Same.
15761         (altivec_lvx): Same.
15762         (altivec_stvx): Add parallel.
15763         (altivec_stvxl): Same.
15764         (altivec_stvehx): Same.
15765         (altivec_stvebx): Same.
15766         (altivec_stvebx): Same.
15768 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15770         * config.gcc: Change altivec.h to altivec-defs.h.
15772         * config/rs6000/altivec.h: Delete.
15774         * config/rs6000/altivec-defs.h: Add.
15776 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15778         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15779         and UMOD modes.
15781         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15782         less than or equal to eight bytes.
15784         * vax.md (andsi3): Remove constraints and change SET destination
15785         operand type to nonimmediate_operand.
15786         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15787         when it is a CONST_INT.
15789 2002-01-15  Jason Merrill  <jason@redhat.com>
15791         * c-common.def (FILE_STMT): New code.
15792         * c-common.c (statement_code_p): It's a statement.
15793         * c-common.h (stmt_tree_s): Add x_last_filename.
15794         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15795         (last_expr_filename): New macro.
15796         * c-semantics.c (begin_stmt_tree): Initialize it.
15797         (add_stmt): If the filename changed, also insert a
15798         FILE_STMT.
15799         (expand_stmt): Handle seeing one.
15801 2002-01-15  Eric Christopher  <echristo@redhat.com>
15803         * flow.c (propagate_one_insn): Add error message and print out
15804         insn for debugging.
15806 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15808         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15809         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15810         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15811         TRAMPOLINE_ALIGNMENT.
15812         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15813         to be in bits.
15814         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15815         PCC_BITFIELD_TYPE_MATTERS.
15816         * config/interix.h (STDC_VALUE): Remove.  Use
15817         STDC_0_IN_SYSTEM_HEADERS.
15818         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15819         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15820         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15822 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15824         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15825         not work on this platform currently.
15827 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15829         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15830         readonly_warning in _().
15832 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15834         * gcc.c (delete_if_ordinary): Backout previous change.
15836 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15838         * config/h8300/h8300.c (print_operand): Remove support for
15839         unused operand characters.
15841         * read-rtl.c: Fix formatting.
15842         * real.c: Likewise.
15843         * recog.c: Likewise.
15844         * regclass.c: Likewise.
15845         * regmove.c: Likewise.
15846         * reg-stack.c: Likewise.
15847         * reload1.c: Likewise.
15848         * rtlanal.c: Likewise.
15850 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15852         * config/i386/i386.c: Fix formatting.
15854 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15856         * c-typeck.c (process_init_element): Don't save_expr
15857         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15859 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15861         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15862         emit optional traceback table if optimize_size or TARGET_ELF.
15863         * config/rs6000/rs6000.md (prefetch): New.
15865 2002-01-15  Andreas Jaeger  <aj@suse.de>
15867         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15869 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15871         * mips-tfile.c: Fix formatting.
15873 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15875         * unroll.c (final_reg_note_copy): Fix previous commit.
15877 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15879         * config/h8300/h8300-protos.h: Remove the prototype for
15880         eq_operator.
15881         * config/h8300/h8300.c (eq_operator): Remove.
15883 2002-01-14  Richard Henderson  <rth@redhat.com>
15885         * config/i386/i386.md (prefetch): Tidy.
15886         (prefetch_3dnow): Fix locality operand.
15888 2002-01-14  Richard Henderson  <rth@redhat.com>
15890         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15891         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15893 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15895         * reload1.c (reload_combine): Pass reg_sum replacement through
15896         copy_rtx in loop performing multiple changes.
15898 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15900         * except.c (remove_unreachable_regions): New.
15901         (free_eh_status): Clear exception_handler_labels.
15902         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15903         (find_exception_handler_labels): Don't add the same label more than
15904         once.
15905         (remove_exception_handler_label): Don't die if
15906         find_exception_handler_labels hasn't been called for the current
15907         function yet.
15909 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15911         * toplev.c (rest_of_compilation): Rebuild jump labels after
15912         gcse.
15914 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15916         * doc/extend.texi: Move documentation of X86 built-in functions
15917         here.
15918         * doc/invoke.texi: From here.
15919         * doc/sourcebuild.texi: Document location of documentation for
15920         machine built-in functions.
15922 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15924         * cppfiles.c (TEST_THRESHOLD): New macro.
15925         (SHOULD_MMAP): Ditto.
15926         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15927         be used.
15929 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15931         * unroll.c (final_reg_note_copy): Properly handle
15932         REG_LABEL
15933         (unroll_loops): Fix LOOP_CONDITION heuristics.
15935 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15937         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15938         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15940 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15942         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15943         threaded loop.
15945 2002-01-14  Tom Rix  <trix@redhat.com>
15947         * config/rs6000/rs6000.md: Fix typo with sradi.
15949 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15951         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15952         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15953         (clrstrdi, clrstrsi): Adapt callers.
15955         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15957         (movti splitter): Never use register 0 as base register.
15959 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15961         * combine.c (simplify_shift_const): Always generate new rtx
15962         for shift expression instead of reusing given expression.
15964 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15966         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15967         alpha_legitimize_address unless mode is Pmode.
15969 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15971         * doc/md.texi (Modifiers): Document the '*' constraint for the
15972         user.
15974         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15975         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15976         for xstormy16 too.
15978 2002-01-13  Richard Henderson  <rth@redhat.com>
15980         * reload.c (find_reloads): Use a hard reg destination as reload reg
15981         for an input reload of the source.
15983 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15985         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15986         more generic.
15988 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15990         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15991         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15993         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15995 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15997         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15999 2002-01-12  Tom Rix  <trix@redhat.com>
16001         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
16002         TARGET_POWERPC64.
16004 2002-01-12  Richard Henderson  <rth@redhat.com>
16006         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
16008         * doc/invoke.texi: Update Alpha options.
16010         * doc/invoke.texi: Update i386 built-in function lists.
16012 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
16014         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
16015         referencing outside.
16017 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16019         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
16020         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
16021         offsets, and change line folding.
16022         * optabs.c (expand_binop): Remove warnings.
16023         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
16025 2002-01-12  Graham Stott <grahams@redhat.com>
16027         * attribs.c (handle_deprecated_attribute): constify WHAT.
16028         * diagnostic.c (warn_deprecated_use): Add braces, fixes
16029         dangling else warning and constify WHAT.
16030         * except.h (struct function, struct inline_remap): Move
16031         struct tag forward defs before all prototypes.
16032         (duplicate_eh_regions): Whitespace.
16034 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
16036         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16037         MODE_BASE_REG_CLASS.
16038         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
16040 2002-01-12  Richard Henderson  <rth@redhat.com>
16042         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
16043         (ix86_expand_vector_move): New.
16044         (bdesc_2arg): Remove andps, andnps, orps, xorps.
16045         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
16046         Remove old prefetch builtins.  Special case the logicals removed above.
16047         (ix86_expand_builtin): Likewise.
16048         (safe_vector_operand): Use V4SFmode, not TImode.
16049         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
16050         (ix86_expand_timode_binop_builtin): New.
16051         * config/i386/i386-protos.h: Update.
16052         * config/i386/i386.h (enum ix86_builtins): Update.
16053         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
16054         Use ix86_expand_vector_move in vector move expanders.
16055         (movti_internal, movti_rex64): Add xorps alternative.
16056         (sse_clrv4sf): Rename and adjust from sse_clrti.
16057         (prefetch): Don't work so hard.
16058         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
16059         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
16060         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
16062 2002-01-11  Richard Henderson  <rth@redhat.com>
16064         * config/i386/mmintrin.h: New file.
16065         * config/i386/xmmintrin.h: New file.
16066         * config.gcc (i?86-*-*): Add extra_headers.
16067         * simplify-rtx.c (simplify_unary_operation): Handle saturating
16068         truncation codes.
16069         (simplify_binary_operation): Handle saturating arithmetic codes.
16070         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
16071         not the lowpart subreg.
16072         (ix86_expand_builtin): Return a TImode dummy register instead of 0
16073         on error.
16074         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
16076 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16078         * conflict.c (conflict_graph_compute): Free regsets when finished.
16079         * ssa.c (compute_coalesced_reg_partition): Likewise.
16081 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16083         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
16084         every where we allocate a register.
16086 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16088         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
16089         * lcm.c (compute_earliest, compute_farthest): Likewise.
16091 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
16093         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
16095 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
16097         * doc/rtl.texi (Insns): Fix 2 typos.
16099 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
16101         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
16102         options.  Use @table @gcctabopt for MMIX options.  Add index
16103         entries for MMIX options.  Start new paragraph with first
16104         heading of the machine-dependent options.
16106 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16108         PR other/5299
16109         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
16110         * combine.c (force_to_mode): Same.
16111         * reload1.c (clear_reload_reg_in_use): Same.
16113 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
16115         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
16116         and 'subtargets'.
16118 2002-01-11  Andreas Jaeger  <aj@suse.de>,
16119             Brad Lucier <lucier@math.purdue.edu>
16121         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
16122         mcpu.
16124 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
16126         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
16127         Protect with IN_LIBGCC.
16128         (LINK_EH_SPEC): Add required trailing space.
16130 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16132         * c-tree.h: Move function declarations so that they are listed
16133         under the filename which contains them.
16134         (check_identifier, finish_decl_top_level,
16135         lookup_name_current_level_global, shadow_record_fields): Remove.
16137 2002-01-11  Andreas Jaeger  <aj@suse.de>
16139         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
16140         march.
16142 2002-01-10  Richard Henderson  <rth@redhat.com>
16144         * config/alpha/alpha.c (print_operand): Add 'J'.
16145         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
16146         new operand with the sequence number for the lituse.  When splitting
16147         the insns, use gen_movdi_er_high_g and generate a sequence number.
16148         (gen_movdi_er_high_g): Print the sequence number if non-zero.
16150 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
16152         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
16153         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
16154         stvxl.
16155         (altivec_expand_builtin): Same.
16156         (altivec_expand_stv_builtin): New.
16158         * config/rs6000/rs6000.h (rs6000_builtins): Same.
16160         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
16161         ("altivec_lvehx"): New.
16162         ("altivec_lvewx"): New.
16163         ("altivec_lvxl"): New.
16164         ("altivec_lvx"): New.
16165         ("altivec_stvx"): New.
16166         ("altivec_stvebx"): New.
16167         ("altivec_stvehx"): New.
16168         ("altivec_stvewx"): New.
16169         ("altivec_stvxl"): New.
16171 2002-01-10  Richard Henderson  <rth@redhat.com>
16173         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
16174         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
16175         care not to delete instructions twice.
16177 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16179         * toplev.c: Don't declare environ (it's not used anywhere).
16180         * configure.in: Don't check for declaration of environ.
16181         * config/i386/xm-mingw32.h: Don't #define environ.
16182         * config.in, configure: Regenerate.
16184 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16186         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
16187         * configure: Regenerate.
16189         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
16190         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
16191         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
16192         alpha/xm-vms.h.
16193         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
16194         LIMITS_H_TEST here, not in m68k/x-next.
16195         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
16196         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
16198         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
16199         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
16200         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
16202         * config/i386/x-djgpp: Renamed i386/t-djgpp.
16203         * config/m88k/x-dolph: Renamed m88k/t-dolph.
16204         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
16205         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
16206         replacement of quadlib.asm with quadlib.c.
16208         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
16209         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
16210         config/rs6000/xm-beos.h: Delete file.
16212         * config.gcc: Update to match above changes.
16214 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16216         * config/h8300/h8300.h: Fix comment typos.
16217         * config/h8300/h8300.md: Likewise.
16218         * config/h8300/lib1funcs.asm: Likewise.
16220 2002-01-10  Dale Johannesen  <dalej@apple.com>
16222         PR optimization/5269
16223         * unroll.c (precondition_loop_p): Make *increment be the correct
16224         sign when n_iterations known, to avoid confusing caller.
16226 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16228         * doc/extend.texi (deprecated): Fix a typo.
16230 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16232         * basic-block.h (update_br_prob_note): Declare.
16233         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16234         (try_forward_edges): Care negative frequencies and update note.
16235         (outgoing_edges_match): Tweek conditional merging heuristics.
16236         (try_crossjump_to_edge): use update_br_prob_note.
16237         * cfglayout.c (fixup_reorder_chain): Likewise.
16238         * cfrtl.c (update_br_prob_note): New.
16239         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16241         * i386.c (ix86_decompose_address): Return -1 if address contains
16242         shift.
16243         (legitimate_address_p): Require ix86_decompose_address to return 1.
16245         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16246         (cprop_insn): Likewise.
16248 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16250         * toplev.c: Fix formatting.
16251         * tree.c: Likewise.
16252         * tree-dump.c: Likewise.
16253         * unroll.c: Likewise.
16254         * unwind-dw2.c: Likewise.
16255         * unwind-dw2-fde.c: Likewise.
16256         * unwind-dw2-fde-glibc.c: Likewise.
16257         * unwind-sjlj.c: Likewise.
16259 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16261         * doc/invoke.texi: Document PDP-11 options.
16263 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16265         * config/h8300/h8300.h: Fix formatting.
16267 2002-01-10  Ira Ruben   <ira@apple.com>
16269         Add __attribute__ ((deprecated)).
16270         * extend.texi: Document __attribute__ ((deprecated)).
16271         * invoke.texi: Document -Wno-deprecated-declarations.
16272         * testsuite/g++.dg/other/deprecated.C: New C++ test.
16273         * testsuite/gcc.dg/deprecated.c: New C test.
16274         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16275         (c_common_attribute_table): Add "deprecated" entry.
16276         (handle_deprecated_attribute): New function.
16277         * c-decl.c (deprecated_states): New enum.
16278         deprecated_state: State of "deprecated" handling.
16279         (start_decl): Set deprecated_state based on attributes.
16280         (grokdeclarator): Test for deprecated uses, propagate attribute.
16281         * c-typeck.c (build_component_ref): Test for deprecated fields.
16282         (build_external_ref): Test for deprecated primaries.
16283         * diagnostic.c (warn_deprecated_use) New function to issue
16284         warnings about __attribute__ ((depricated)) references.
16285         * flags.h (warn_deprecated_decl): Extern declared for
16286         -W[no-]deprecated-declarations option.
16287         * print-tree.c (print_node): Show deprecated flag status.
16288         * toplev.c (warn_deprecated_decl): Defined.
16289         (W_options): Added "deprecated-declaration".
16290         * toplev.h (warn_deprecated_use): Extern declared.
16291         * tree.h (struct tree_common): Define deprecated_flag.
16292         (TREE_DEPRECATED): New macro to access flag.
16293         * cp/call.c (build_call): Test for deprecated calls.
16294         * cp/class.c (add_implicitly_declared_members): Set global
16295         flag to tell grokdeclarator to not issue deprecated warnings.
16296         * cp/cp-tree.h: Add extern for adding_implicit_members.
16297         * cp/decl.c (deprecated_states): New enum.
16298         (start_decl): Set deprecated_state based on attributes.
16299         (grokdeclarator): Test for deprecated uses, propagate attribute.
16300         * cp/lex.c (do_identifier): Test for deprecated primaries.
16301         * cp/typeck.c (build_component_ref): Test for deprecated fields.
16303 2002-01-10  Ira Ruben   <ira@apple.com>
16305         Fix to assign attributes to inline member functions.
16306         * cp/decl.c (start_method): Handle attrlist.
16308 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16310         * combine.c (expand_field_assignment): Use subreg_lsb().
16312 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
16314         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16315         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16316         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16317         Recurse for any operand of AND as long as constant is non-zero.
16319 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16321         * config/h8300/h8300.md: Remove constraints from expanders.
16323 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16325         * varasm.c: Fix formatting.
16326         * varray.c: Likewise.
16327         * vmsdbgout.c: Likewise.
16328         * xcoffout.c: Likewise.
16330 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
16332         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16333         update edge probabilities to match.
16335 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16337         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16338         dependencies.
16339         * doc/languages.texi, doc/sourcebuild.texi: New files.
16340         * doc/configfiles.texi: Make a subsubsection.  Update.
16341         * doc/configterms.texi: Add @node.  Remove warning that this isn't
16342         instructions for building GCC.
16343         * doc/makefile.texi: Make a subsection.
16344         * doc/gccint.texi: Update.
16346 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
16348         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16350 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16352         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16354 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
16356         * optabs.c (expand_fix): Look for wider integer modes first.
16358         * i386.md (mov?f): Avoid the fake const double trick for medium
16359         memory model.
16360         (min?f*/max?f*): Prohibit memory operands for i387 variant.
16361         (fop_df_4): Disable for SSE compilation.
16363 2002-01-10  Graham Stott  <grahams@redhat.com>
16365         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16366         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16368 2002-01-10  Richard Henderson  <rth@redhat.com>
16370         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16372 2002-01-10  Richard Henderson  <rth@redhat.com>
16374         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16375         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
16377 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16379         * combine.c (can_combine_p): Fix a comment typo.
16381 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
16383         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16384         empty list correctly.  Change loop index $t to $f for
16385         consistency with rest of Makefile.
16387 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
16389         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16390         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16392         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16393         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16394         (altivec_init_builtins): Same.
16395         (altivec_expand_unop_builtin): Return NULL_RTX on error.
16396         (altivec_expand_binop_builtin): Same.
16397         (altivec_expand_ternop_builtin): Same.
16398         (bdesc_dst): New.
16400         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16401         ("altivec_vctuxs"): Fix typo.
16402         ("altivec_vnmsubfp"): Same.
16403         ("altivec_dssall"): New.
16404         ("altivec_mfvscr"): New.
16405         ("altivec_dss"): New.
16406         ("altivec_lvsl"): New.
16407         ("altivec_lvsr"): New.
16408         ("altivec_dstt"): New.
16409         ("altivec_dstst"): New.
16410         ("altivec_dststt"): New.
16411         ("altivec_dst"): New.
16413         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16414         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16416 2002-01-09  Richard Henderson  <rth@redhat.com>
16418         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16420 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
16422         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16423         function.
16424         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16425         prototype.
16426         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16428 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16430         * read-rtl.c: Fix formatting.
16431         * real.c: Likewise.
16432         * regclass.c: Likewise.
16433         * regrename.c: Likewise.
16434         * reg-stack.c: Likewise.
16435         * reload1.c: Likewise.
16436         * reload.c: Likewise.
16437         * rtl.c: Likewise.
16439 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16441         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16442         to extract items in the expr_list chain.
16444 2002-01-09  Richard Henderson  <rth@redhat.com>
16446         * config/vax/vax.c (vax_rtx_cost): Never abort.
16448         * config/vax/vax.h (REAL_ARITHMETIC): Define.
16450 2002-01-09  Jan Hubicka  <jh@suse.cz>
16452         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16454 2002-01-09  Richard Henderson  <rth@redhat.com>
16456         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16457         Unify code from various alternatives.
16459 2002-01-09  Richard Henderson  <rth@redhat.com>
16461         * regrename.c (copy_value): Ignore the copy if the source register
16462         is present in the value chain with a narrower mode.
16464 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
16466         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16467         for the c4x target. Also improve layout.
16469 2002-01-09  Richard Henderson  <rth@redhat.com>
16471         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16472         * config/m32r/m32r.md (and ior xor splitters): Swap operands
16473         to match insn patterns.
16475 2002-01-09  Richard Henderson  <rth@redhat.com>
16477         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16478         (copyprop_hardreg_forward_1): Likewise.
16480 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16482         * pa.md (decrement_and_branch_until_zero): Change predicate for
16483         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16485 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16487         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16488         gets undefined. For Darwin.
16490 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16492         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16494 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16496         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16498 2002-01-08  Richard Henderson  <rth@redhat.com>
16500         * regrename.c (copy_value): Ignore overlapping copies.
16502 2002-01-08  Richard Henderson  <rth@redhat.com>
16504         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16505         as needed to avoid shared structure.
16507 2002-01-08  Kazu Hirata  <kazu@hxi.com>
16509         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16510         H8/300H and H8/S.
16512 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16514         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16515         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16516         documentation of obsolete macros.
16517         * system.h: Poison these macros.
16518         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16519         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16520         config/c4x/c4x.h, config/clipper/clipper.h,
16521         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16522         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16523         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16524         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16525         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16526         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16527         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16528         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16529         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16530         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16531         config/sparc/sparc.h, config/stormy16/stormy16.h,
16532         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16533         definitions and commented out definitions of obsolete macros.
16534         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16535         of MAX_INT_TYPE_SIZE.
16537 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16539         * config/s390/s390.c (s390_preferred_reload_class): Never
16540         return ADDR_REGS if it isn't a subset of the given class.
16541         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16542         FP_REGS, but all superclasses as well.
16544         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16546         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16547         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16548         must not be a const_int.
16550 2002-01-08  Richard Henderson  <rth@redhat.com>
16552         * Makefile.in (toplev.o): Depend on options.h.
16553         (gcc.o): Depend on specs.h.
16555 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16557         * expr.c (store_expr): Convert VOIDmode constants back to target's
16558         mode.
16560 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16562         * doc/invoke.texi: Markup gcc as @command.  Refer to
16563         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16564         of http://gcc.gnu.org/thanks.html.
16566 2002-01-08  Dale Johannesen  <dalej@apple.com>
16568         * config/rs6000/rs6000.md: Add missing int register
16569         target case to movdf_low.
16571 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16573         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16574         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16575         (cppinit.o): Depend on except.h.
16576         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16577         s-specs): New rules.
16579         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16580         Don't create specs.h/options.h/gencheck.h here.  Remove
16581         unnecessary variable settings from last argument of AC_OUTPUT.
16582         * config.in, configure: Regenerate.
16583         * intl.c: Hardcode package name as "gcc".
16585         * cppinit.c: Include except.h.
16586         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16587         appropriate.
16588         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16589         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16590         (!)USING_SJLJ_EXCEPTIONS.
16591         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16593 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16595         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16596         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16597         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16598         documentation of obsolete macros.
16599         * system.h: Poison these macros.
16600         * config/d30v/d30v.h, config/ns32k/encore.h,
16601         config/stormy16/stormy16.h: Remove definitions and commented out
16602         definitions of obsolete macros.
16604 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16606         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16607         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16608         warnings.
16610 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16612         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16613         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16614         to insn adjusting stack/frame pointer.
16615         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16616         accept operands that cause the insn to be non-splittable.
16618 2002-01-08  Graham Stott  <grahams@redhat.com>
16620         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16621         (C_TYPE_FIELDS_VOLATILE): Likewise.
16622         (C_TYPE_BEING_DEFINED): Likewise.
16623         (C_IS_RESERVED_WORD): Likewise.
16624         (C_TYPE_VARIABLE_SIZE): Likewise.
16625         (C_DECL_VARIABLE_SIZE): Likewise.
16626         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16627         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16628         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16629         parenthesis.
16630         (C_DECL_ANTICIPATED): Likewise.
16631         (c_build_type_variant): Add parenthesis.
16633 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16635         * gcc.c (option_map): Remove --version.
16636         (process_command): Handle -fversion following the GNU Coding
16637         Standards.  Partially addresses PR other/704.
16639 2002-01-08  Graham Stott  <grahams@redhat.com>
16641         * combine.c (combine_instructions): Fix typo.
16643 2002-01-08  Graham Stott  <grahams@redhat.com>
16645         * debug.h: Use "tree" and "rtx" throughout.
16647         * debug.c: Likewise.
16649 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16651         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16652         constant pool, use the pool's version of the symbol instead.
16654 2002-01-07  Richard Henderson  <rth@redhat.com>
16656         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16657         the original register was copied in a mode with a fewer number of
16658         hard registers than the desired mode.
16659         (copyprop_hardreg_forward_1): Likewise.
16660         (debug_value_data): Fix loop test.
16661         * toplev.c (parse_options_and_default_flags): Reenable
16662         -fcprop-registers at -O1.
16664 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16666         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16667         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16669         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16670         predicates.
16672         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16674 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16676         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16677         (pa_output_function_prologue): Output local label at the beginning of
16678         the prologue when profiling.
16679         (hppa_profile_hook): Use the local label rather than the function label.
16680         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16682 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16684         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16685         (altivec_expand_unop_builtin): Fix thinko.
16686         (altivec_expand_binop_builtin): Same.
16687         (altivec_expand_ternop_builtin): Same.
16688         (altivec_expand_builtin): Same.
16690 2002-01-07  Richard Henderson  <rth@redhat.com>
16692         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16694 2002-01-07  Jason Merrill  <jason@redhat.com>
16696         * unwind-dw2.c (execute_cfa_program): Use < again.
16698 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16700         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16702 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16704         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16705         Don't allow -1 - x -> ~x simplifications in the first pass.
16707 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16709         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16710         arguments.
16711         (altivec_expand_binop_builtin): Same.
16712         (altivec_expand_unop_builtin): Same.
16713         (print_operand): Fix typo.
16714         (bdesc_1arg): Add vupk* variants.
16716         * rs6000.h (rs6000_builtins): Add vupk* enums.
16718         * rs6000.md: Add altivec_vupk* variants.
16720 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16722         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16723         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16724         and last update dates.
16726 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16728         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16730 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16732         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16733         * config/avr/avr.h (CPP_SPEC): Likewise.
16734         (LINK_SPEC): Likewise.
16735         (CRT_BINUTILS_SPECS): Likewise.
16736         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16737         * doc/invoke.texi (AVR Options): Document them.
16739 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16741         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16742         LABEL_NUSES.
16744 2002-01-07  Graham Stott  <grahams@redhat.com>
16746         * config/i386/i386.h: Update copyright date.
16747         (HALF_PIC_PTR): Add parenthesis.
16748         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16749         (CONSTANT_ALIGNMENT): Add parenthesis.
16750         (DATA_ALIGNMENT): Likewise.
16751         (LOCAL_ALIGNMENT): Likewise.
16752         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16753         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16754         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16755         (HARD_REGNO_NREGS): Add paranethesis.
16756         (VALID_SSE_REG_MODE): Whitespace.
16757         (VALID_MMX_REG_MODE): Whitespace.
16758         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16759         (ix86_hard_regno_mode_ok): Add parenthesis.
16760         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16761         (RETURN_IN_MEMORY): Whitespace.
16762         (N_REG_CLASSES): Add parenthesis.
16763         (INTEGER_CLASS_P): Add parenthesis and wrap.
16764         (FLOAT_CLASS_P): Likewise.
16765         (SSE_CLASS_P): Likewise.
16766         (MMX_CLASS_P): Likewise.
16767         (MAYBE_INTEGER_CLASS_P): Likewise.
16768         (MAYBE_FLOAT_CLASS_P): Likewise.
16769         (MAYBE_SSE_CLASS_P): Likewise.
16770         (MAYBE_MMX_CLASS_P): Likewise.
16771         (Q_CLASS_P): Likewise.
16772         (GENERAL_REGNO_P): Uppercase macro parameter.
16773         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16774         (FP_REGNO_P): Likewise.
16775         (ANY_FP_REGNO_P): Uppercase macro parameter.
16776         (SSE_REGNO_P): Likewise.
16777         (SSE_REGNO): Likewise.
16778         (SSE_REG_P): Likewise.
16779         (SSE_FLOAT_MODE_P): Likewise.
16780         (MMX_REGNO_P): Likewise.
16781         (MMX_REG_P):Likewise.
16782         (STACK_REG_P): Likewise.
16783         (NON_STACK_REG_P): Likewise.
16784         (STACK_TOP_P): Likewise.
16785         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16786         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16787         (SECONDARY_MEMORY_NEEDED): Likewise.
16788         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16789         (MD_ASM_CLOBBERS): Whitespace and wrap.
16790         (MUST_PASS_IN_STACK): Whitespace and wrap.
16791         (RETURN_POPS_ARGS): Add parenthesis.
16792         (INIT_CUMULATIVE_ARGS): Likewise.
16793         (FUNCTION_ARG): Likewise.
16794         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16795         (SETUP_INCOMING_VARARGS): Likewise.
16796         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16797         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16798         parenthsis.
16799         (EXPAND_BUILTIN_VA_ARG): Likewise.
16800         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16801         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16802         (INITIAL_ELIMINATION_OFFSET): Likewise.
16803         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16804         (REGNO_OK_FOR_BASE_P): Likewise.
16805         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16806         (REGNO_OK_FOR_DIREG_P): Likewise.
16807         (REG_OK_FOR_INDEX_P): Whitespace.
16808         (REG_OK_FOR_BASE_P): Whitespace.
16809         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16810         parenthesis.
16811         (FIND_BASE_TERM): Fix typo.
16812         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16813         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16814         (SYMBOLIC_CONST; Whitespace.
16815         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16816         (ENCODE_SECTION_INFO): Whitespace.
16817         (FINALIZE_PIC): Remove do { ... } while (0).
16818         (PROMOTE_MODE): Wrap in do { ... } while (0).
16819         (CONST_COSTS): Whitespace.
16820         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16821         (REGISTER_MOVE_COST): Add parenthesis.
16822         (MEMORY_MOVE_COST): Likewise.
16823         (EXTRA_CC_MODES): Whitespace.
16824         (SELECT_CC_MODE): Add parenthesis and whitespace.
16825         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16826         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16827         (ASM_OUTPUT_LABEL): Add paramethesis.
16828         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16829         (ASM_OUTPUT_REG_POP): Likewise.
16830         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16831         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16833         * config/i386/i386.c: Update copyright.
16834         (CHECK_STACK_LIMIT): Add parenthesis.
16835         (AT_BP): Uppercase macro parameter.
16836         (x86_64_int_parameter_registers): Constify.
16837         (x86_64_int_return_registers): Likewise.
16838         (ix86_compare_op0): Use rtx.
16839         (construct_container): Constify INTREG parameter.
16840         (function_arg): Use rtx.
16842         * diagnostic.h: Update copyright date.
16843         (output_buffer_state): Add parenthesis.
16844         (output_buffer_format_args): Likewise.
16846         * combine.c (combine_instructions): Replace XEXP (links, 0)
16847         with link.
16849 2002-01-06  H.J. Lu <hjl@gnu.org>
16851         * cfgcleanup.c (thread_jump): Fix 2 typos.
16853 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16855         * config.gcc: Add support for --enable-altivec.
16857 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16859         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16861 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16863         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16864         __objc_class_name_*.
16866 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16868         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16870 2002-01-06  Richard Henderson  <rth@redhat.com>
16872         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16873         nop them out.  Increment label reference count for REG_LABEL.
16874         (fill_slots_from_thread): Frob label reference count around
16875         delete_related_insns.
16877 2002-01-05  Richard Henderson  <rth@redhat.com>
16879         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16880         jump threading.
16882 2002-01-05  Richard Henderson  <rth@redhat.com>
16884         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16885         * integrate.c (output_inline_function): Likewise.
16886         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16887         to remove_unnecessary_notes after emitting abstract instance.
16888         Force an emitted nested function to have its parent emited as well.
16889         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16890         for null.
16891         (rtl_for_decl_location): Do not look at reload data structures
16892         before reload has run.
16894 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16896         * cse.c: Fix formatting.
16897         * dwarf2asm.c: Likewise.
16898         * dwarf2out.c: Likewise.
16899         * explow.c: Likewise.
16900         * expmed.c: Likewise.
16901         * function.c: Likewise.
16902         * gcov.c: Likewise.
16903         * gencheck.c: Likewise.
16904         * genrecog.c: Likewise.
16905         * ggc-common.c: Likewise.
16906         * ggc-page.c: Likewise.
16907         * global.c: Likewise.
16909 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16911         * combine.c: Fix formatting.
16913 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16915         PR middle-end/1557
16916         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16918 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16920         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16921         as 1 for __powerpc64__ as well.
16923         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16925         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16926         return it.
16928 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16930         * lcm.c: Revert change, due to performance regression it causes on
16931         SPEC because it's slightly more conservative (sigh, I hate
16932         edge-based LCM).
16934 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16936         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16938 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16940         * doc/cppinternals.texi: Update.
16942 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16944         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16945         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16946         negatives.
16947         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16948         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16949         kludge for pre-october-14th mmix versions to handle new-found bug
16950         with PUSHJ/PUSHGO and the register stack.
16951         * config/mmix/mmix.h (struct machine_function): Rename member
16952         has_call_value_without_parameters to has_call_without_parameters.
16953         All referers changed.
16954         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16955         TARGET_MASK_BRANCH_PREDICT): New macros.
16956         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16957         -mno-reg-stack-fill-bug-workaround.
16958         * config/mmix/mmix.md ("call"): Set struct machine member
16959         has_call_without_parameters.
16961 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16963         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16965 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16967         * cfgcleanup.c: Include tm_p.h
16968         (mark_effect): Fix handling of hard register; fix handling of SET
16970 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16972         * config/h8300/h8300.md (anonymous patterns): Check that
16973         operands are registers before using REGNO on them.
16975 2002-01-03  Roland McGrath  <roland@frob.com>
16977         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16979 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16981         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16982         * c-common.h (genrtl_expr_stmt_value): Likewise.
16983         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16984         (expand_expr_stmt_value): Add maybe_last argument.
16985         Don't warn about statement with no effect if it is the last statement
16986         in expression statement.
16987         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16988         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16989         expand_expr_stmt_value.
16990         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16991         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16992         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16993         as maybe_last to expand_expr_stmt_value.
16995 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16997         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16998         be passed in, do not build it.
16999         (c_begin_if_stmt): New function.
17000         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
17001         * c-common.h (c_expand_start_cond): Update prototype.
17002         (c_begin_if_stmt): Prototype new function.
17003         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
17004         * c-parse.in (if_prefix): Use c_begin_if_stmt,
17005         c_begin_while_stmt and c_finish_while_stmt_cond.
17007 2002-01-04  William Cohen  <wcohen@redhat.com>
17009         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
17010         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17011         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17012         * config/pa/som.h (ASM_FILE_START): Likewise.
17014 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
17016         * lcm.c: Include df.h.
17017         Add available_transfer_function prototype.
17018         (compute_available): Rework to use iterative dataflow framework.
17019         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
17020         with bb_info in df.h
17021         (available_transfer_function): New function.
17023         * Makefile.in (lcm.o): add df.h to dependencies.
17025 2002-01-04  Richard Henderson  <rth@redhat.com>
17027         * config/alpha/alpha.c (some_operand): Accept HIGH.
17028         (input_operand): Likewise; accept simple references to globals.
17029         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
17030         (alpha_const_double_ok_for_letter_p): Likewise.
17031         (alpha_extra_constraint): Likewise.
17032         (alpha_preferred_reload_class): Likewise.  Do not force
17033         symbolic constants to memory.
17034         (alpha_legitimate_address_p): Accept simple references
17035         to small_symbolic_operand.
17036         (alpha_legitimize_address): New arg scratch.  Be prepared to be
17037         called when no_new_pseudos.  Emit simple symbolic references.
17038         Split integers into low, high, and rest.
17039         (alpha_expand_mov): Use alpha_legitimize_address.
17040         (some_small_symbolic_mem_operand): New.
17041         (split_small_symbolic_mem_operand): New.
17042         * config/alpha/alpha-protos.h: Update.
17043         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
17044         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
17045         (EXTRA_CONSTRAINT): Likewise.
17046         (PREFERRED_RELOAD_CLASS): Likewise.
17047         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
17048         (PREDICATE_CODES): Update.
17049         * config/alpha/alpha.md: New post-reload splitters to convert
17050         simplfied symbolic operands to the form that references $29.
17051         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
17052         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
17054 2002-01-03  Richard Henderson  <rth@redhat.com>
17056         * local-alloc.c (function_invariant_p): Update commentary.
17058 2002-01-04  H.J. Lu <hjl@gnu.org>
17060         * toplev.c (rest_of_compilation): Fix a typo when calling
17061         cleanup_cfg.
17063 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17065         * c-common.c: Fix formatting.
17066         * diagnostic.c: Likewise.
17067         * doloop.c: Likewise.
17068         * dwarf2out.c: Likewise.
17070 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17072         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
17073         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
17075 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
17077         * cpperror.c: Update comments and copyright.
17078         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
17079         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
17081 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17083         * collect2.c (main): Use strcmp when testing for "-shared".
17085 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
17087         * cppmacro.c: Don't include intl.h.  Update comments.
17088         (new_number_token): Allocate enough buffer for 64-bit unsigned
17089         integers; update prototype.
17090         * cppmain.c: Update comments.
17092 2002-01-03  William Cohen  <wcohen@redhat.com>
17094         * function.h (struct function): Add profile.
17095         (current_function_profile): New.
17096         doc/extend.texi: Update documentation.
17097         * final.c (final_start_function): Use current_function_profile
17098         instead of profile_flag.
17099         (profile_after_prologue): Likewise.
17100         * function.c (expand_function_start): Likewise.
17101         (expand_function_start): Likewise.
17102         * config/alpha/alpha.c (direct_call_operand):
17103         (alpha_does_function_need_gp): Likewise.
17104         (alpha_expand_prologue): Likewise.
17105         * config/arm/arm.c (arm_expand_prologue): Likewise.
17106         thumb_expand_prologue: Likewise.
17107         * config/d30v/d30v.c (d30v_stack_info): Likewise.
17108         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
17109         (fr30_expand_prologue): Likewise.
17110         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
17111         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
17112         * config/i386/i386.h (FINALIZE_PIC): Likewise.
17113         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
17114         * config/i960/i960.c (i960_output_function_prologue): Likewise.
17115         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
17116         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
17117         (m32r_expand_prologue): Likewise.
17118         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
17119         (m88k_expand_prologue): Likewise.
17120         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
17121         * config/mips/mips.c (compute_frame_size): Likewise.
17122         (mips_expand_prologue): Likewise.
17123         (mips_can_use_return_insn): Likewise.
17124         * config/pa/elf.h (ASM_FILE_START): Likewise.
17125         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17126         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17127         * config/pa/som.h (ASM_FILE_START): Likewise.
17128         * config/romp/romp.c (romp_using_r14): Likewise.
17129         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
17130         (rs6000_stack_info): Likewise.
17131         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17132         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
17133         * config/v850/v850.c (compute_register_save_size): Likewise.
17135 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
17137         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
17138         gen_lowpart_common fails, use gen_lowpart_SUBREG.
17140 2002-01-03  Turly O'Connor  <turly@apple.com>
17142         * darwin.c (machopic_output_possible_stub_label): Don't generate
17143         stub routines for pseudo-stubs which we've just defined.
17145 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17147         * builtins.c: Fix formatting.
17148         * c-typeck.c: Likewise.
17149         * combine.c: Likewise.
17150         * expr.c: Likewise.
17151         * loop.c: Likewise.
17153 2002-01-03  Andreas Schwab  <schwab@suse.de>
17155         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
17156         and return true if _cpp_push_next_buffer pushed a new include
17157         file.
17158         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
17159         _cpp_pop_file_buffer did not push a new file.
17160         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
17162 2002-01-02  Eric Christopher  <echristo@redhat.com>
17164         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
17165         FIND_REG_INC_NOTE call. Update copyright.
17166         * loop.c (canonicalize_condition): Ditto.
17167         * reorg.c (delete_scheduled_jump): Ditto.
17169 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17171         * gcse.c: Fix formatting.
17173 2002-01-03  Graham Stott  <grahams@redhat.com>
17175         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
17176         forward defs for struct tags rtx_def, union_tree, rtvec_def
17177         also output corresponding typedefs for rtx, tree, and rtvec.
17179         * system.h: Move forward defs for struct tags rtx_def, union_tree,
17180         rtvec_def along with corresponding typedefs for rtx, tree, and
17181         rtvec to config.h, hconfig.h, tconfig.h.
17183 2002-01-03  Graham Stott  <grahams@redhat.com>
17185         * tree.h: Update copyright date.
17186         (IS_EXPR_CODE_CLASS): Add parenthesis.
17187         (TREE_SET_CODE): Add whitespace.
17188         (TREE_CHECK): Add parenthesis.
17189         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
17190         (CST_OR_CONSTRUCTOR_CHECK):
17191         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
17192         (TREE_SYMBOL_REFERENCED): Whitespace.
17193         (INT_CST_LT): Likewise.
17194         (INT_CST_LT_UNSIGNED): Likewise.
17195         (tree_real_cst): Unwrap comment.
17196         (tree_string): Likewise.
17197         (tree_complex): Likewise.
17198         (IDENTIFIER_POINTER): correct cast.
17199         (SAVE_EXPR_CONTEXT): Whitespace.
17200         (EXPR_WFL_FILENAME_NODE): Likewise.
17201         (EXPR_WFL_FILENAME): Remove parenthesis.
17202         (DECL_ORIGIN): Add parenthesis.
17203         (DECL_FROM_INLINE): Use NULL_TREE.
17204         (build_int_2): Whitespace.
17205         (build_type_variant): Add parenthesis.
17207         * gcc/jcf-parse.c: Update copyright date.
17208         (yyparse): Constify resource_filename.
17210 2002-01-03  Graham Stott  <grahams@redhat.com>
17212         * rtl.h: Update copyright date.
17213         (RTL_CHECK1): Wrap long line.
17214         (RTL_CHECK2): Likewise.
17215         (RTL_CHECKC1): Wrap long line and whitespace.
17216         (RTL_CHECKC2): Likewise.
17217         (XWINT): Whitespace.
17218         (XINT): Likewise.
17219         (XSTR): Likewise.
17220         (XEXP): Likewise.
17221         (XVEC): Likewise.
17222         (XMODE): Likewise.
17223         (XBITMAP): Likewise.
17224         (XTREE): Likewise.
17225         (XBBDEF): Likewise.
17226         (XTMPL): Likewise.
17227         (X0WINT): Likewise.
17228         (X0INT):Likewise.
17229         (X0UINT): Likewise.
17230         (X0STR): Likewise.
17231         (X0EXP): Likewise.
17232         (X0VEC): Likewise.
17233         (X0MODE): Likewise.
17234         (X0BITMAP): Likewise.
17235         (X0TREE): Likewise.
17236         (X0BBDEF): Likewise.
17237         (X0ADVFLAGS): Likewise.
17238         (X0CSELIB): Likewise.
17239         (X0MEMATTR): Likewise.
17240         (XCWINT): Likewise.
17241         (XCINT): Likewise.
17242         (XCUINT): Likewise.
17243         (XCSTR): Likewise.
17244         (XCEXP): Likewise.
17245         (XCVEC): Likewise.
17246         (XCMODE): Likewise.
17247         (XCBITMAP): Likewise.
17248         (XCTREE): Likewise.
17249         (XCBBDEF): Likewise.
17250         (XCADVFLAGS): Likewise.
17251         (XCCSELIB): Likewise.
17252         (XC2EXP): Likewise.
17253         (INSN_UID): Likewise.
17254         (PREV_INSN): Likewise.
17255         (PATTERN): Likewise.
17256         (INSN_CODE): Likewise.
17257         (PUT_REG_NOTE_KIND): Likewise.
17258         (CODE_LABEL_NUMBER): Likewise.
17259         (NOTE_SOURCE_FILE): Likewise.
17260         (NOTE_BLOCK): Likewise.
17261         (NOTE_EH_HANDLER): Likewise.
17262         (NOTE_RANGE_INFO): Likewise.
17263         (NOTE_LIVE_INFO): Likewise.
17264         (NOTE_BASIC_BLOCK): Likewise.
17265         (NOTE_EXPECTED_VALUE): Likewise.
17266         (NOTE_LINE_NUMBER): Likewise.
17267         (LABEL_NAME): Likewise.
17268         (LABEL_NUSES): Likewise.
17269         (LABEL_ALTERNATE_NAME): Likewise.
17270         (ADDRESSOF_DECL): Likewise.
17271         (JUMP_LABEL): Likewise.
17272         (LABEL_NEXTREF): Likewise.
17273         (REGNO): Likewise.
17274         (ORIGINAL_REGNO: Likewise.
17275         (HARD_REGISTER_NUM_P): Add parenthesis.
17276         (SUBREG_REG): Whitespace.
17277         (SUBREG_BYTE): Likewise.
17278         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17279         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17280         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17281         (ASM_OPERANDS_INPUT_VEC): Likewise.
17282         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17283         (ASM_OPERANDS_INPUT): Likewise.
17284         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17285         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17286         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17287         (ASM_OPERANDS_INPUT_MODE): Likewise.
17288         (ASM_OPERANDS_SOURCE_FILE): Likewise.
17289         (ASM_OPERANDS_SOURCE_LINE): Likewise.
17290         (MEM_SET_IN_STRUCT_P): Minor reformat.
17291         (TRAP_CONDITION): Whitespace.
17292         (TRAP_CODE): Likewise.
17293         (COND_EXEC_TEST): Likewise.
17294         (COND_EXEC_CODE): Likewise.
17295         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17296         (PHI_NODE_P): Add parenthesis.
17297         (plus_constant): Whitespace and add parenthesis.
17299 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17301         * config/avr/avr.c: Fix comment typos.
17302         * config/c4x/c4x.md: Likewise.
17303         * config/dsp16xx/dsp16xx.h: Likewise.
17304         * config/dsp16xx/dsp16xx.md: Likewise.
17305         * config/i386/i386.md: Likewise.
17306         * config/ia64/ia64.c: Likewise.
17307         * config/m32r/m32r.h: Likewise.
17308         * config/m68hc11/m68hc11.md: Likewise.
17309         * config/mmix/mmix.c: Likewise.
17310         * config/mn10200/mn10200.c: Likewise.
17311         * config/romp/romp.c: Likewise.
17312         * config/sh/sh.c: Likewise.
17313         * config/stormy16/stormy16.c: Likewise.
17314         * config/stormy16/stormy16.h: Likewise.
17315         * config/stormy16/stormy16.md: Likewise.
17317 2002-01-03  Graham Stott  <grahams@redhat.com>
17319         * loop.h: Update copyright date.
17320         (LOOP_MOVABLES): Fix typo.
17321         (LOOP_REGS): Likewise.
17322         (LOOP_IVS): Likewise.
17324 2002-01-03  Graham Stott  <grahams@redhat.com>
17326         * cppinit.c: Update copyright date.
17327         Don't include output.h
17328         * Makefile.in: Update copyright date.
17329         Update dependency.
17331 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17333         PR c/5226
17334         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17335         (-pthread) Add to RS/6000 options.
17337 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17339         * except.c: Fix comment typos.
17340         * loop.c: Likewise.
17341         * varasm.c: Likewise.
17342         * doc/tm.texi: Fix a typo.
17344 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
17346         * c-typeck.c (output_init_element): Allow initializing static storage
17347         duration objects with compound literals.
17349 2002-01-02  Richard Henderson  <rth@redhat.com>
17351         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17352         after abusing it.
17354 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17356         * gcc.c (default_compilers): Const-ify.
17357         * mips-tdump.c (stab_names): Likewise.
17358         * mips-tfile.c (map_coff_types, map_coff_storage,
17359         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17360         pseudo_ops_t, pseudo_ops): Likewise.
17361         * protoize.c (default_include): Likewise
17363         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17364         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17365         Add array size in declaration.
17366         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17367         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17368         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17369         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17370         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17371         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17372         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17373         emtens, make_nan): Const-ify.
17374         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17375         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17377 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
17379         * config.gcc (ia64-*-*): Set extra_headers.
17380         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
17381         * config/alpha/t-osf: Remove.
17382         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17384 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
17386         * config/rs6000/t-aix43: Revert previous change.
17388 2002-01-02  Jason Merrill  <jason@redhat.com>
17390         * c-decl.c (c_expand_body): Call outlining_inline_function when
17391         emitting an inline function out of line.
17393 2002-01-02  Richard Henderson  <rth@redhat.com>
17395         * dwarf2out.c (limbo_die_node): Add created_for member.
17396         (new_die): New argument created_for.  Update all callers.
17397         (mark_limbo_die_list): New.
17398         (dwarf2out_init): Register limbo_die_list as a root.
17399         (dwarf2out_finish): Force insert limbo dies into their function
17400         context.
17402 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
17404         PR c++/5089
17405         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17407 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17409         * config/h8300/fixunssfsi.c: Update copyright.
17410         Fix comment typos.
17411         Fix formatting.
17412         * config/h8300/h8300.c: Update copyright.
17413         Eliminate warnings.
17415 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17417         * config/romp/romp.c: Fix comment formatting.
17418         * config/romp/romp.h: Likewise.
17419         * config/romp/romp.md: Likewise.
17420         * config/s390/s390.c: Likewise.
17421         * config/stormy16/stormy16.c: Likewise.
17422         * config/stormy16/stormy16.h: Likewise.
17424 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
17426         * c-common.h (genrtl_expr_stmt_value): Declare.
17427         * c-semantics.c (genrtl_goto_stmt): Redirect to...
17428         (genrtl_goto_stmt_value): ... this new function.  Pass new
17429         argument down to expand_expr_stmt_value, taking
17430         TREE_ADDRESSABLE into account.
17431         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17432         STMT_EXPR as addressable, i.e., one whose result we want.
17433         * expr.c (expand_expr): Don't save expression statement value
17434         of labeled_blocks or loop_exprs.
17435         * stmt.c (expand_expr_stmt): Redirect to...
17436         (expand_expr_stmt_value): ... this new function.  Use new
17437         argument to tell whether to save expression value.
17438         (expand_end_stmt_expr): Reset last_expr_type and
17439         last_expr_value if we don't have either.
17440         * tree-inline.c (declare_return_variable): Mark its use
17441         statement as addressable.
17442         * tree.h: Document new use of TREE_ADDRESSABLE.
17443         (expand_expr_stmt_value): Declare.
17445 2002-01-01  Tom Rix  <trix@redhat.com>
17447         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17448         rs6000_emit_allocate_stack.
17450 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
17452         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17453         ${srcdir}/ginclude/ to every entry in extra_headers.
17454         * configure: Regenerate.
17455         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17456         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17457         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17458         * ginclude/proto.h: Rename to config/convex/proto.h.
17460 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17462         * attribs.c (handle_vector_size_attribute): Use host_integerp
17463         and tree_int_cst; remove warnings.
17464         * caller-save.c (insert_restore): Add cast to get rid of warning.
17465         (insert_save): Likewise.
17466         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17467         * regmove.c (find_matches): Add temporary var to kill a warning.
17469 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
17471         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17472         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17473         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17474         (vms-dwarf2eh.o): Add Makefile rule.
17475         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17476         * config/alpha/vms-dwarf2eh.asm: New file.
17478         * gcc.c (delete_if_ordinary): Delete all versions.
17480 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
17482         * config/mmix/mmix.md: Update FIXME to not mention
17483         define_constants.
17484         (MMIX_rJ_REGNUM): New define_constants constant.
17485         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17486         "*movdicc_real"): Adjust contraints formatting.
17487         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17488         for branch prediction.
17489         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17490         output template.
17491         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17492         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17493         number.  Delete related FIXMEs.
17494         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17495         from number to MMIX_rJ_REGNUM.
17496         (TARGET_MASK_BRANCH_PREDICT): New.
17497         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17498         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
17499         value.  Add -mbranch-predict and -mno-branch-predict.
17500         (TARGET_VERSION): Drop date.
17501         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17502         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17503         for finding out global symbols.
17504         (mmix_asm_output_labelref): Revert condition for global symbol.
17505         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17506         (mmix_print_operand_punct_valid_p): A '+' is valid.
17508 See ChangeLog.6 for earlier changes.