OSDN Git Service

* integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
2
3         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
4         * toplev.c: Include cfglahout.h
5         * Makefile.in (toplev.c): Add dependnecy.
6
7 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
8
9         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
10         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
11         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
12
13 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
14
15         * config/ns32k/netbsd.h: Update copyright years.
16         (TARGET_OS_CPP_BUILTINS): Define.
17         (CPP_PREDEFINES): Remove.
18         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
19         (TARGET_CPU_CPP_BUILTINS): Define.
20
21 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
22
23         * emit-rtl.c: Likewise.
24         * errors.h: Likewise.
25         * except.c: Likewise.
26         * explow.c: Likewise.
27         * expmed.c: Likewise.
28         * expr.c: Likewise.
29         * expr.h: Likewise.
30
31 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
32
33         * config/h8300/elf.h: Fix formatting.
34         * config/h8300/rtems.h: Likewise.
35
36 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
37
38         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
39
40 2002-06-02  Tom Tromey  <tromey@redhat.com>
41
42         * fixinc/fixincl.x: Rebuilt.
43         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
44
45 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
46
47 config/i370:
48         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
49         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
50         * mvs.h: Similarly.
51         * oe.h: Similarly.
52
53 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
54
55         * final.c (final):  Allow notes to not have computed addresses;
56         kill no longer needed STACK_REGS ifdef.
57
58 2002-06-02  Richard Henderson  <rth@redhat.com>
59
60         * gcse.c (bypass_conditional_jumps): Fix typo last change.
61
62 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
63
64         * loop.c (emit_prefetch_instructions): Properly place the address
65         computation.
66
67 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
68
69         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
70         (set_block_for_insn): Turn into macro.
71         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
72         * cfglayout.c (insn_scopes): Kill.
73         (scope_to_insns_initialize): Do not use insn_scopes.
74         (scope_to_insns_finalize): Likewise.
75         (duplicate_insn_chain): Likewise.
76         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
77         * cfgrtl.c (basic_block_for_insn): Kill.
78         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
79         (create_basic_block_structure): Use reorder_insns.
80         (compute_bb_for_insn): Do not use basic_block_for_insn.
81         (merge_blocks_nomove): Likewise.
82         (update_bb_for_insn): Likewise.
83         (verify_flow_info): Likewise.
84         (set_block_for_insn): Kill.
85         * combine.c (try_combine): Update gen_rtx_INSN call.
86         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
87         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
88         scopes and BBs.
89         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
90         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
91         Clear BB.
92         (emit_insns_after): Simplify.
93         (emit_copy_of_insn_after): Copy scope.
94         * final.c (final_start_function): Lower scopes.
95         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
96         * integrate.c (copy_insn_list): Cope scopes.
97         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
98         * loop.c (loop_optimize): Do not care block notes.
99         * print-rtl.c (print_rtx): Print BB.
100         * recog.c (apply_change_group): Simplify.
101         * rtl.c (copy_rtx): Handle 'B'.
102         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
103         * rtl.h (Field accessors): Update indexes.
104         * sched-ebb.c (schedule_ebbs): Do not lower notes.
105         * sched-rgn.c (schedule_insns): Likewise.
106         * toplev.c (rest_of_compilation): Lower notes.
107         * unroll.c (unroll_loop): Do not care scoping notes.
108         (copy_loop_body): Copy scopes.
109
110 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
111
112 config/h8300:
113         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
114         SUBTARGET_SPEC.
115         * rtems.h: Similarly.
116         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
117         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
118         (TARGET_CPU_CPP_BUILTINS): Use.
119
120 2002-06-02  Richard Henderson  <rth@redhat.com>
121
122         * alias.c: Include target.h.
123         (mark_constant_function): Use targetm.binds_local_p instead
124         of checking TREE_PUBLIC ourselves.
125         * Makefile.in (alias.o): Add TARGET_H.
126
127 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
128
129         * c-lex.c: Update copyright and file description.
130
131 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
132
133         * config/fr30/fr30.h: Update to new CPP macros.
134
135 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
136
137         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
138
139 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
140             Zack Weinberg <zack@codesourcery.com>
141
142         * c-common.c (c_common_init): Override cpplib's default
143         warn_long_long setting.
144         * c-lex.c (lex_number): Replace with interpret_integer,
145         interpret_float, narrowest_unsigned_type and
146         narrowest_signed_type, taking advantage of the new
147         cpplib functionality.
148         * cpperror.c (_cpp_begin_message): If a warning is turned
149         into an error, avoid printing "warning:".
150         * cppexp.c (cpp_num_sign_extend): New.
151         * cppinit.c: Update comment.
152         * cpplib.h (cpp_num_sign_extend): New.
153         * tree.h: Update comment.
154
155 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
156
157         * diagnostic.h (struct diagnostic_context):  Add new member
158         internal_error. 
159         (internal_error_function): Remove declaration.
160         * diagnostic.c (internal_error_function): Remove definition..
161         (internal_error): Adjust use.
162
163 2002-06-02  Richard Henderson  <rth@redhat.com>
164
165         * rtl.h (CC0_P): New.
166         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
167         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
168         (bypass_block): Save old dest block for dump text.
169         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
170         Allow only true SET insns, not single_set.
171
172 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
173
174         * diagnostic.c (diagnostic_finish): Rename to output_flush.
175         (clear_disgnostic_info): Rename to output_clear_data.  Use false
176         instead of 0 for boolean value.
177         Adjust function call throughout.
178
179 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
180
181         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
182         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
183
184 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
185
186         * d30v.h (CPP_PREDEFINES): Replace with
187         (TARGET_CPU_CPP_BUILTINS): New.
188
189 2002-06-02  Roger Sayle  <roger@eyesopen.com>
190
191         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
192
193 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
194
195         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
196
197 2002-06-02  Richard Henderson  <rth@redhat.com>
198
199         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
200
201 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
202
203         Support for C++ constructors/destructors.
204         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
205         instead of looping if main() returns.
206         (asm_file_start): Output global symbols that cause .data and .bss
207         initialization code to be linked in, unconditionally for now.
208         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
209         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
210         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
211         (LIBSTDCXX): New.
212         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
213         (__tablejump__): New.
214         (__do_copy_data, __do_clear_bss): New.
215         (__do_global_ctors, __do_global_dtors): New.
216         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
217         _ctors, _dtors.
218
219 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
220
221         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
222         (CPP_SPEC, CPP_PREDEFINES): Kill.
223         * c4x/rtems.h (CPP_PREDEFINES): Kill.
224         (TARGET_OS_CPP_BUILTINS): New.
225
226 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
227
228         * Makefile.in (tracer.o): New.
229         * params.def (TRACER_*): New options.
230         * rtl.h (tracer): Declare.
231         * timevar.def (TV_TRACER): New.
232         * toplev.c (dump_file_index): Add DFI_tracer.
233         (dump_file_info): Add tracer.
234         (flag_tracer): New.
235         (lang_indepdenent_options): Add tracer.
236         (rest_of_compilation): Call tracer.
237         * tracer.c: New file.
238         * invoke.texi (-ftracer): Document.
239         (--param tracer-*): Document.
240
241 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
242
243         * tree-inline.c (expand_call_inline): Make the statement
244         expression we generate have a COMPOUND_STMT.    
245
246 2002-06-01  Roger Sayle  <roger@eyesopen.com>
247
248         * gcse.c (cprop_cc0_jump): Function deleted.
249         (cprop_jump): Take an additional argument which is the possibly
250         NULL cc setting insn immediately before the conditional jump.
251         When a MODE_CC set is present, substitute it into the JUMP_INSN
252         before attempting the constant propagation.
253         (cprop_insn):  Recognize cc setters followed by conditional jumps
254         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
255         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
256         (find_bypass_set): New function based upon find_avail_set used by
257         cprop, but finds constant expressions available at the end of
258         basic blocks.
259         (bypass_block): New function.  Given a basic block that begins
260         with a conditional jump and multiple incoming edges, perform
261         the jump bypass optimization.
262         (bypass_conditional_jumps): New function.  Call bypass_block with
263         each suitable basic block in the CFG using a simple single pass.
264
265 2002-06-01  Roger Sayle  <roger@eyesopen.com>
266
267         * tree.c (real_minus_onep): New function to test for -1.0.
268         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
269
270 2002-06-01  Roger Sayle  <roger@eyesopen.com>
271
272         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
273         and "!p && !q" into "(p|q) == 0" under suitable conditions.
274
275 2002-06-01  Andreas Jaeger  <aj@suse.de>
276
277         * cppexp.c (cpp_classify_number): Cast precission to int for
278         correct printf format.
279
280 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
281
282         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
283         expected, but don't really exist: atmega83, atmega85, attiny10.
284         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
285         emulations for all devices.
286         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
287         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
288
289 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
290
291         * config/h8300/h8300-protos.h: Add a prototype for
292         h8300_shift_needs_scratch_p.
293         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
294         * config/h8300/h8300.h (OK_FOR_R): New.
295         (OK_FOR_S): Likewise.
296         (OK_FOR_T): Likewise.
297         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
298         * config/h8300/h8300.md (anonymous shift patterns): Use
299         constraints R, S, and T.
300
301 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
302
303         * basic-block.h (struct basic_block_def): New field loop_father.
304         (BB_VISITED): New flag.
305         (struct loop): New field pred, removed field shared.
306         (struct loops): New field parray.
307         (LOOP_EXITS_DOMS): Removed.
308         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
309         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
310         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
311         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
312         verify_loop_structure): Declare.
313         * cfg.c (entry_exit_blocks): Initialize loop_father field.
314         * cfganal.c (dfs_enumerate_from): New function.
315         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
316         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
317         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
318         flow_loop_dump, flow_loops_dump, flow_loops_free,
319         flow_loop_tree_node_add, flow_loop_level_compute,
320         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
321         flow_loop_outside_edge_p): Modified for new infrastructure.
322         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
323         redirect_edge_with_latch_update, flow_loop_free): New static functions.
324         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
325         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
326         find_common_loop, verify_loop_structure, loop_latch_edge,
327         loop_preheader_edge): New functions.
328         (flow_loops_cfg_dump): Do not show dominators, as this information
329         does not remain up to date long.
330         (flow_loops_find): Store results in new format.
331         * predict.c (propagate_freq, estimate_probability,
332         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
333         infrastructure.
334
335 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
336
337         * except.c (nothrow_function_p): Walk epilogue delay list
338         checking the insn, not the chain for potential throws.
339
340 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
341
342         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
343         (install): Refer to install-cpp directly.
344         (uninstall-cpp): Folded into uninstall rule.
345         * configure.in: Delete all code relating to --disable-cpp.
346         * configure: Regenerate.
347         * config/t-install-cpp: Delete.
348
349 2002-05-31  Richard Henderson  <rth@redhat.com>
350
351         * configure.in (HAVE_AS_TLS): Add alpha tests.
352         * configure: Rebuild.
353         * config/alpha/alpha.c (TARGET_AS_TLS): New.
354         (alpha_tls_size, alpha_tls_size_string): New.
355         (overide_options): Set it.  Always install machine_status hooks.
356         (input_operand): Accept got tls predicates.
357         (local_symbol_p): Merge into ...
358         (local_symbolic_operand): ... here.  Reject tls symbols.
359         (global_symbolic_operand): Likewise.
360         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
361         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
362         (tp16_symbolic_operand, tp32_symbolic_operand): New.
363         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
364         (alpha_encode_section_info): Handle TLS symbols.
365         (alpha_strip_name_encoding): Likewise.
366         (alpha_legitimate_address_p): Likewise.
367         (alpha_legitimize_address): Likewise.
368         (alpha_expand_mov): Early exit to avoid nop moves.
369         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
370         (alpha_init_machine_status, alpha_mark_machine_status,
371         alpha_free_machine_status): Always define.
372         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
373         (print_operand, print_operand_address): Add TLS relocs.
374         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
375         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
376         (TARGET_SWITCHES): Add -mtls-kernel.
377         (alpha_tls_size, alpha_tls_size_string): New.
378         (TARGET_OPTIONS): Add -mtls-size=.
379         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
380         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
381         (ASM_OUTPUT_LABELREF): Skip %.
382         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
383         (PREDICATE_CODES): Update.
384         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
385         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
386         UNSPEC_TP, UNSPECV_SET_TP): New.
387         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
388         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
389         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
390         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
391         (call_value_osf_2_er): Accept anything as op4.
392         * config/alpha/alpha-protos.h: Update.
393         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
394
395 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
396
397         * cppinit.c (append_include_chain): Always pay attention to
398         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
399         marker on argument.
400
401 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
402
403         * target.h: Fix formatting.
404         * timevar.h: Likewise.
405         * tlink.c: Likewise.
406         * toplev.c: Likewise.
407         * toplev.h: Likewise.
408         * tree.c: Likewise.
409         * tree-dump.h: Likewise.
410         * tree.h: Likewise.
411         * tree-inline.h: Likewise.
412         * unroll.c: Likewise.
413         * unwind-dw2.c: Likewise.
414         * unwind-dw2-fde.c: Likewise.
415         * unwind-dw2-fde-glibc.c: Likewise.
416         * unwind-dw2-fde.h: Likewise.
417         * unwind.h: Likewise.
418         * unwind-sjlj.c: Likewise.
419         * varasm.c: Likewise.
420         * varray.h: Likewise.
421         * vmsdbg.h: Likewise.
422         * vmsdbgout.c: Likewise.
423         * xcoffout.h: Likewise.
424
425 2002-05-31  Igor Shevlyakov <igor@microunity.com>
426
427         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
428         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
429
430 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
431
432         * gcc.c (cpp_unique_options): Remove "-d" options.
433         (cpp_debug_options): New spec string.
434         (default_compilers): Use it.
435         * objc/lang-specs.h: Likewise.
436
437 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
438
439         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
440         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
441         * gcc/mklibgcc.in: Likewise.
442         * gcc/config/arc/t-arc: Likewise.
443         * gcc/configure.in: Likewise.
444         * gcc/configure: Regenerate.
445
446 2002-05-31  Stan Shebs  <shebs@apple.com>
447             Turly O'Connor  <turly@apple.com>
448
449         * c-decl.c (struct binding_level): Change int field n_incomplete
450         to tree list incomplete_list.
451         (clear_binding_level): Init field with NULL.
452         (pushdecl): Add incomplete type to list.
453         (mark_binding_level): Mark the incomplete list.
454         (finish_struct): Scan the incomplete list for types instead
455         of all decls in the current binding level.
456
457 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
458
459         * pa.c (output_millicode_call): Add missing '%' characters.
460         (output_call): Likewise.
461
462 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
463
464         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
465         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
466
467 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
468
469         * varasm.c (mark_constant_pool): Walk epilogue delay list
470         checking the insn, not the chain for potential constants.
471
472 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
473
474         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
475
476 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
477
478         * i386.c (classify_argument): Properly handle base types.
479
480         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
481         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
482         registers.
483
484 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
485
486         * gcse.c (gcse_emit_move_after): New.
487         (pre_delete, hoist_store): Use it.
488
489         * reload1.c (emit_input_reload_insns): Use constrain_operands
490         instead of constraint_accepts_reg_p to verify optimization.
491         (constraint_accepts_reg_p): Kill
492
493         * reload1.c (reload_cse_delete_noop_set): Kill.
494         (reload_cse_simplify): use delte_insn_and_edges.
495
496 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
497
498         * cfgloop.c (flow_loops_find): Initialize first and last fields
499         correctly.
500
501 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
502
503         * c-common.c (builtin_define_std): Correct logic.
504
505 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
506
507         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
508         (output_call): Likewise.
509
510 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
511
512         * pa.c: Move output.h include after tree.h include.
513         (pa_asm_output_mi_thunk): Constify identifier lab.
514
515 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
516
517         * config/ns32k/ns32k.h: Define named constants for the
518         bits in target_flags and use them.
519         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
520
521 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
522
523         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
524         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
525         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
526         default scheduling model.
527         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
528         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
529         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
530         * doc/install.texi (hppa*-*-*): Document default scheduling.
531
532 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
533
534         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
535
536 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
537
538         * config.gcc (ns32k-*-netbsd*): Set tm_file to
539         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
540         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
541         netbsd.h, or netbsd-aout.h.
542
543 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
544
545         * longlong.h (count_trailing_zeros): Add missing \, and clean up
546         whitespace in __ns32000__ case.
547
548 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
549
550         * expr.c (expand_expr): Output partially zeroed out vectors with
551         output_constant_def.
552
553 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
554
555         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
556         (sh-*-netbsdelf*)
557         (shl*-*-netbsdelf*): New targets.
558         * config/sh/netbsd-elf.h: New file.
559         * config/sh/t-netbsd: New file.
560
561 2002-05-30  Richard Henderson  <rth@redhat.com>
562             Eric Botcazou  <ebotcazou@multimania.com>
563
564         PR optimization/6822
565         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
566         to unsigned int for op1 comparisons.  Use gen_int_mode.
567
568 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
569
570         * expmed.c (const_mult_add_overflow_p): New.
571         * expr.h: Declare it.
572         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
573         Don't eliminate the biv if the giv has a constant multiplier and
574         the rhs argument of the comparison does satisfy the predicate.
575         Use expand_mult_add to compute the replacement constant.
576
577 2002-05-30  Osku Salerma  <osku@iki.fi>
578
579         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
580         (c_common_get_alias_set): Handle it.
581         * doc/extend.texi: Document it.
582
583 2002-05-30  Richard Henderson  <rth@redhat.com>
584
585         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
586         * toplev.c (process_options): Don't check it.
587         * doc/tm.texi: Don't document it.
588         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
589         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
590         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
591         frame pointer optimization if current_function_profile.
592
593 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
594
595         * langhooks.c: Fix formatting.
596         * langhooks.h: Likewise.
597         * lcm.c: Likewise.
598         * libgcc2.c: Likewise.
599         * lists.c: Likewise.
600         * local-alloc.c: Likewise.
601         * loop.c: Likewise.
602         * loop.h: Likewise.
603
604 2002-05-30  Marc Espie <espie@openbsd.org>
605
606         * config.gcc (sparc64-*-openbsd*): New.
607         * config/sparc/openbsd1-64.h: New.
608         * config/sparc/openbsd64.h: New.
609
610 2002-05-30  Jeff Law <law@redhat.com>
611
612         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
613         a dead insn with a REG_RETVAL note when the entire libcall is not
614         dead and remove the associated REG_LIBCALL note at the same time.
615
616 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
617
618         * lcm.c (output.h): #include.
619         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
620         as an ordinary block.
621         (optimize_mode_switching): Don't pretend that the exit block is
622         an ordinary block, or handle sucessors of entry block specially.
623         Instead, split edges from entry block and to exit block, and
624         put a computing definition on the thus gained post-entry-block,
625         and a need on the pre-exit-block.
626
627 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
628
629         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
630         * rtl.texi: Document 'B'
631
632 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
633
634         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
635         at run-time.
636         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
637
638 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
639
640         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
641         const0_rtx instead of NULL_RTX when in error.
642         (altivec_expand_abs_builtin): Same.
643         (rs6000_expand_binop_builtin): Same.
644         (altivec_expand_predicate_builtin): Same.
645         (altivec_expand_stv_builtin): Same.
646         (rs6000_expand_ternop_builtin): Same.
647         (altivec_expand_builtin): Same.
648
649 2002-05-29  David S. Miller  <davem@redhat.com>
650
651         * rtl.h (clear_emit_caches): Delete.
652         * integrate.c (output_inline_function): Don't call it.
653         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
654         (clear_emit_caches): Delete definition.
655         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
656
657 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
658
659         * config/mmix/mmix.c: Include real.h.
660         (mmix_constant_address_p): Remove redundant test before switch.
661
662 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
663
664         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
665         only if not already defined.
666
667 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
668
669         * config/h8300/h8300-protos.h: Remove prototypes for
670         ok_for_bclr and small_power_of_two.
671         * config/h8300/h8300.c (small_power_of_two): Remove.
672         (ok_for_blcr): Likewise.
673         (fix_bit_operand): Make WHAT deal with an integer instead of a
674         constraint character.
675         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
676         (CONST_OK_FOR_P): Likewise.
677         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
678         CONST_OK_FOR_P any more.
679         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
680         of fix_bit_operand.
681         (iorqi3): Likewise.
682         (xorqi3): Likewise.
683
684 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
685
686         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
687         (CPP_PREDEFINES): Make sure this is undefined.
688         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
689         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
690         or -U__MIPSEB__ before defining one or the other.  Instead,
691         use %(subtarget_endian_default) if neither -EB nor -EL are
692         specified.
693         (SUBTARGET_EXTRA_SPECS): Define.
694         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
695         %(netbsd_cpp_spec).
696
697 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
698
699         * doc/md.texi (Patterns): Note pattern condition pitfall
700         for unnamed insn.
701
702 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
703
704         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
705         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
706         ternary operations from here...
707         (rs6000_expand_builtin): ...to here.
708         New argument expandedp.
709         Change all instances of altivec_expand_binop_builtin to
710         rs6000_expand_binop_builtin.
711         (altivec_expand_unop_builtin): Rename to
712         rs6000_expand_unop_builtin.
713         (altivec_expand_binop_builtin): Rename to
714         rs6000_expand_binop_builtin.
715         (altivec_expand_ternop_builtin): Rename to
716         rs6000_expand_ternop_builtin.
717
718 2002-05-29  Richard Henderson  <rth@redhat.com>
719
720         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
721         (TARGET_BI_ARCH): Likewise.
722         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
723         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
724         (TARGET_64BIT_DEFAULT): Default to 0.
725         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
726
727 2002-05-29  Richard Henderson  <rth@redhat.com>
728
729         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
730         (get_pc_thunk_name): New.
731         (output_set_got): Use it.
732         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
733         into linkonce sections.
734
735 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
736
737         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
738         (CPP_PREDEFINES): Make sure this is undefined.
739         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
740         (CPP_SUBTARGET_SPEC): Don't provide different versions for
741         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
742         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
743         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
744         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
745         (CPP_PREDEFINES): Make sure this is undefined.
746         (SUBTARGET_EXTRA_SPECS): Define.
747         (CPP_SPEC): Use %(netbsd_cpp_spec).
748
749 2002-05-29  Jeff Law <law@redhat.com>
750
751         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
752
753         * flow.c (propagate_one_insn): Do not remove a dead insn if it
754         contains a REG_RETVAL note.
755
756         * haifa-sched (sched_analyze): Remove another useless clearing
757         of SCHED_GROUP_P I missed yesterday.
758
759         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
760         * pa.c (pa_asm_output_mi_thunk): New function.
761         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
762
763 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
764             Marek Michalkiewicz  <marekm@amelek.gda.pl>
765
766         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
767         (avr_asm_only_p): Make non-static.
768         (enum avr_arch): Remove.
769         (avr_arch_types): New.
770         (avr_mcu_types): Update.
771         (avr_override_options): Use avr_arch_types table instead of switch.
772         * avr.h (CPP_PREDEFINES): Die.
773         (avr_base_arch_macro, avr_extra_arch_macro): New.
774         (TARGET_CPU_CPP_BUILTINS): New.
775         (CPP_SPEC, EXTRA_SPECS): Simplify.
776         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
777         CPP_AVR5_SPEC): Die.
778
779 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
780
781         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
782         NETBSD_OS_CPP_BUILTINS_AOUT.
783         (SUBTARGET_EXTRA_SPECS): Define.
784         (CPP_SPEC): Use %(netbsd_cpp_spec).
785
786 2002-05-29  Richard Henderson  <rth@redhat.com>
787
788         * config/i386/i386.c (ix86_output_function_epilogue): New.
789         (TARGET_ASM_FUNCTION_EPILOGUE): New.
790         (pic_label_name): Remove.
791         (pic_labels_used): New.
792         (ix86_asm_file_end): Emit one pc load stub for each register used.
793         (output_set_got): Generate deep pc load to any register.
794         (ix86_select_alt_pic_regnum): New.
795         (ix86_save_reg): Don't save pic register if we can find a valid
796         call-clobbered replacement.
797         (ix86_expand_prologue): If we found a valid replacement, renumber
798         pic_offset_table_rtx.
799         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
800         pic_offset_table_rtx after reload.
801         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
802         * config/i386/i386.md (set_got): Make insn, not expander.
803         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
804
805 2002-05-29  Richard Henderson  <rth@redhat.com>
806
807         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
808         alignment for alloca.
809
810 2002-05-29  Richard Henderson  <rth@redhat.com>
811
812         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
813         (print_operand_address): Only add rip for symbolic addresses
814         for which we do not have another relocation type.
815
816 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
817
818         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
819         (EXTRA_SPECS): Add netbsd_cpp_spec.
820         (CPP_SPEC): Use %(netbsd_cpp_spec).
821         (CPP_PREDEFINES): Remove.
822         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
823         (EXTRA_SPECS): Define.
824         (CPP_SPEC): Use %(netbsd_cpp_spec).
825         (CPP_PREDEFINES): Remove.
826
827 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
828
829         PR preprocessor/6844
830         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
831         NUL.
832
833 2002-05-29  Eric Christopher  <echristo@redhat.com>
834
835         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
836         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
837
838 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
839
840         * config/fr30/fr30.md: Remove previous restriction on splits.
841         Enforce conformance through gen_lowpart and cont_int_operand.
842         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
843         as the assembler does not support ".bss".
844
845 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
846
847         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
848         (CPP_PREDEFINES): Remove.
849         (SUBTARGET_EXTRA_SPECS): Define.
850         (CPP_SPEC): Use %(netbsd_cpp_spec).
851         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
852         (CPP_PREDEFINES): Remove.
853         (SUBTARGET_EXTRA_SPECS): Define.
854         (CPP_SPEC): Use %(netbsd_cpp_spec).
855         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
856         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
857         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
858         Add netbsd_cpp_spec.
859         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
860
861 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
862             Zack Weinberg <zack@codesourcery.com>
863
864         * cppexp.c (cpp_num): Move to cpplib.h.
865         (CPP_ERROR): Remove.
866         (interpret_float_suffix, interpret_int_suffix): New.
867         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
868         (cpp_classify_number, cpp_interpret_integer): New.
869         (interpret_number): Remove.
870         (eval_token): Update to use new routines.
871         * cpphash.h (cpp_num_part): Move to cpplib.h.
872         * cppinit.c (cpp_post_options): Set warn_long_long.
873         * cpplib.h (struct cpp_options): Add warn_long_long.
874         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
875         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
876         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
877         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
878         cpp_interpret_integer): New.
879
880 2002-05-29  Joel Sherrill <joel@OARcorp.com>
881
882         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
883
884 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
885
886         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
887         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
888         (CPP_SUBTARGET_SPEC): Define.
889         (SUBTARGET_EXTRA_SPECS): Define.
890         (CPP_SPEC): Remove.
891
892 2002-05-29  Chris Lattner  <sabre@nondot.org>
893
894         * ssa.c (rename_insn_1): Rename uses of undefined registers to
895         prevent confusion if/when the register is defined.
896
897 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
898
899         PR target/6838
900         * config/cris/cris.md: Fix typos and thinkos in comments.
901         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
902         second alternative.
903         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
904         ("*mov_sideqi_mem"): Similar, but for operand 3.
905         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
906         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
907         Remove spurious mode specifier on operand 2.
908
909 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
910
911         * config/h8300/h8300-protos.h: Remove the prototype for
912         o_operand.
913         Add prototypes for single_one_operand and single_zero_operand.
914         * config/h8300/h8300.c (o_operand): Remove.
915         (single_one_operand): New.
916         (single_zero_operand): Likewise.
917         (print_operand): For 'V' operand, and the operand with 0xff.
918         For 'V' and 'W' operands, do not and the bit position with 7.
919         * config/h8300/h8300.md (various anonymous patterns): Replace
920         use of exact_log2 with single_one_operand/single_zero_operand.
921
922 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
923
924         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
925
926 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
927
928         * config/s390/s390.c (legitimate_pic_operand_p): Do not
929         accept symbolic LARL operands.
930         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
931         epilogue insns.
932
933 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
934
935         * config/s390/s390.md (cmpstr_64/31): Mark whole
936         input registers as used.
937
938 2002-05-28  Richard Henderson  <rth@redhat.com>
939
940         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
941         not current_function_uses_pic_offset_table and
942         current_function_uses_const_pool; examine current_function_profile.
943         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
944         input to blockage if needed.
945         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
946         (legitimize_pic_address): Likewise.  Set regs_ever_live for
947         pic_offset_table_rtx when invoked during reload.
948         * config/i386/i386.h (FINALIZE_PIC): Remove.
949         * config/i386/i386.md (tablejump): Reformat.  Do not set
950         current_function_uses_pic_offset_table.
951         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
952         (blockage): Accept anything as operand 0.
953
954 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
955
956         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
957         common CPP built-ins for all NetBSD a.out targets.
958         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
959         common CPP built-ins for all NetBSD ELF targets.
960         * config/netbsd.h: Add missing notice.
961         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
962         for all NetBSD targets.
963         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
964         for all NetBSD targets using an LP64 code model.
965         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
966         NetBSD targets.
967
968 2002-05-28  Richard Henderson  <rth@redhat.com>
969
970         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
971         update if UPDATE_LIFE_LOCAL.
972
973 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
974
975         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
976
977 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
978                           Jason R. Thorpe <thorpej@wasabisystems.com>
979
980         config/sh reorganization to factor out endianness and coff:
981
982         * config/sh/little.h: New file.
983         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
984         defined, define to 0 to select big-endian.
985         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
986         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
987         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
988         * config/sh/t-be: New file.
989         * config/sh/t-le: New file.
990
991         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
992         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
993         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
994         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
995         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
996         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
997         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
998         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
999         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
1000         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
1001         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
1002         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
1003         (LINK_SPEC): Define to SH_LINK_SPEC.
1004         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
1005         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
1006         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
1007         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
1008         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
1009         * config/sh/coff.h: New file.
1010         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
1011         (TARGET_OBJFMT_CPP_BUILTINS): Define.
1012         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
1013         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
1014         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
1015         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
1016         (PTRDIFF_TYPE): Likewise.
1017         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
1018         (CPP_PREDEFINES): Don't define.
1019         (TARGET_OBJFMT_CPP_BUILTINS): Define.
1020         (LINK_SPEC): Define to SH_LINK_SPEC.
1021         (LINK_EMUL_PREFIX): Redefine.
1022         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
1023         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
1024         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
1025         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
1026         (TARGET_OS_CPP_BUILTINS): Define.
1027         (TARGET_DEFAULT): Redefine.
1028         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
1029         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
1030         (LINK_SPEC): Don't redefine.
1031         (LINK_DEFAULT_CPU_EMUL): Redefine.
1032         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
1033         * sh.c (sh_asm_named_section): Don't declare / define.
1034         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
1035         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
1036         (sh64-*-elf* tm_file): Likewise.
1037         (sh-*-rtemself* tm_file): Likewise.
1038         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
1039         (sh-*-linux* tmake_file): Add sh/t-le.
1040         (sh-*-rtems* tm_file): Add sh/coff.h
1041         (sh-*-* tm_file): Likewise.
1042
1043 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
1044
1045         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
1046         CONSTANT_POOL_ADDRESS_P.
1047
1048         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
1049
1050 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
1051             Jeff Law <law@redhat.com>
1052
1053         * optabs.c (expand_binop): Fix nwords sign warnings.
1054         generate pseudo for add_optab.
1055
1056         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
1057         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
1058
1059 2002-05-28      Marc Espie <espie@openbsd.org>
1060
1061         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
1062         inherited from gas.h.
1063         (ASM_QUAD):  Undef.  OpenBSD does not support it.
1064
1065 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
1066
1067         * doc/install.texi (binaries): Change mingw binaries
1068         link to www.mingw.org.
1069
1070 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1071
1072         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
1073
1074 2002-05-28  Richard Henderson  <rth@redhat.com>
1075
1076         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
1077         bottom alignment for leaf functions.
1078
1079 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
1080
1081         * config/pa/milli32.S, config/pa/lib1funcs.asm,
1082         config/sparc/sol2-g1.asm: Delete unused files.
1083
1084 2002-05-28  Richard Henderson  <rth@redhat.com>
1085
1086         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
1087
1088         * flow.c (calculate_global_regs_live): Rename call_used to
1089         invalidated_by_call.  Initialize from regs_invalidated_by_call
1090         instead of call_used_regs.
1091
1092         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
1093         DECL_EXTERNAL.
1094
1095 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
1096
1097         * tree.h: Don't include real.h.
1098         Forward-declare struct realvaluetype.
1099         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
1100         contain it.
1101         (TREE_REAL_CST_PTR): New accessor.
1102         (TREE_REAL_CST): Update.
1103         * real.h: Include machmode.h.
1104         (realvaluetype): Make it struct realvaluetype, not a typedef.
1105         (build_real): Prototype here.
1106
1107         * tree.c: Include real.h.
1108         (build_real): Allocate the REAL_VALUE_TYPE as a separate
1109         object in GC memory, set TREE_REAL_CST_PTR to point to it.
1110         (build_real_from_int_cst): Use build_real.
1111         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
1112         REAL_CST.
1113
1114         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
1115         fold-const.c, print-tree.c, real.c: Include real.h.
1116         * Makefile.in: Update dependency lists.
1117
1118 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1119
1120         * basic-block.h (last_basic_block): Declare.
1121         (expunge_block_nocompact): Declaration removed.
1122         (compact_blocks): Declare.
1123         * cfg.c (last_basic_block): New variable.
1124         (expunge_block_nocompact): Removed.
1125         (expunge_block): Do not compact basic blocks.
1126         (compact_blocks): New.
1127         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
1128         longer change.
1129         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
1130         last_basic_block.
1131         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
1132         real positions of blocks.
1133         (delete_unreachable_blocks): Simplified -- quadratic behavior now
1134         cannot occur.
1135         (cleanup_cfg): Compact blocks.
1136         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
1137         basic_block_info varray.
1138         (flow_delete_block): Comment update.
1139         (back_edge_of_syntactic_loop_p): Modify position check code.
1140         (verify_flow_info): Update checking.
1141         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
1142         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1143         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
1144         indices no longer change.
1145         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
1146         last_basic_block.
1147         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
1148         * profile.c (branch_prob): Compact blocks.
1149         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
1150         last_basic_block.
1151
1152 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
1153
1154         * config/h8300/h8300.md (two anonymous patterns): New.
1155
1156 2002-05-28  David S. Miller  <davem@redhat.com>
1157
1158         * config/sparc/sparc.md (cpu): Tidy.
1159         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
1160         'trap'.
1161         (in_call_delay): Delete reference to 'return' type.
1162         (eligible_for_return_delay, in_return_delay, define_delay
1163         referencing those): Delete.
1164         (rest of file): Use new type attributes as appropriate.
1165         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
1166         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
1167         * config/sparc/ultra1_2.md (us1_single): New reservation.
1168         (us1_ialuX): Likewise.
1169         * config/sparc/ultra3.md (us3_single): Likewise.
1170         (us3_ialuX): Likewise.
1171         (us3_imul, us3_idiv): Tweak.
1172
1173 2002-05-28  Richard Henderson  <rth@redhat.com>
1174
1175         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
1176         STRING_CST.
1177
1178 2002-05-28  Richard Henderson  <rth@redhat.com>
1179
1180         * config.gcc: Obsolete mn10200.
1181
1182 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1183
1184         * cppexp.c (interpret_number): Optimize for single-digit
1185         and less-than-half-precision cases.
1186         (num_trim, num_positive, num_div_op): Cast constants.
1187
1188 2002-05-27  Bo Thorsen  <bo@suse.de>
1189
1190         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
1191         3.1 branch. The file was made by Jakub Jelinek.
1192         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1193         support so multilib doesn't break. And don't define this at all
1194         when -Dinhibit_libc is used.
1195         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
1196         * config/i386/t-linux64: Implement full multilib support. Patch
1197         originally done by Andreas Jaeger and Jakub Jelinek.
1198
1199 2002-05-27  Roger Sayle  <roger@eyesopen.com>
1200
1201         * c-common.c: Add support for __attribute__((nothrow)) to specify
1202         that a function cannot throw an exception (using TREE_NOTHROW).
1203         (handle_nothrow_attribute): New function to process this attribute.
1204
1205         * doc/extend.texi: Document the new nothrow function attribute.
1206
1207 2002-05-27  H.J. Lu  (hjl@gnu.org)
1208
1209         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
1210         (num_positive): Likewise.
1211         (num_div_op): Likewise.
1212
1213 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1214
1215         * c-common.c (c_common_init): Always use intmax_t.
1216
1217 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1218
1219         * c-common.c (c_common_init): Use intmax_t for now.
1220
1221 2002-05-24  Andrew Haley  <aph@redhat.com>
1222
1223         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
1224         if T is a boolean type.
1225
1226 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1227
1228         * basic-block.h (last_basic_block): Defined as synonym for
1229         n_basic_blocks.
1230         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1231         flow_depth_first_order_compute, flow_preorder_transversal_compute,
1232         flow_dfs_compute_reverse_init): Replaced relevant occurences of
1233         n_basic_blocks with last_basic_block.
1234         * cfgbuild.c (make_edges): Likewise.
1235         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1236         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1237         * combine.c (combine_instructions): Likewise.
1238         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1239         iterative_dataflow_bitmap): Likewise.
1240         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1241         calc_idoms, idoms_to_doms): Likewise.
1242         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1243         Likewise.
1244         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1245         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1246         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1247         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1248         delete_null_pointer_checks, compute_code_hoist_vbeinout,
1249         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1250         compute_store_table, build_store_vectors): Likewise.
1251         * haifa-sched.c (sched_init): Likewise.
1252         * ifcvt.c (if_convert): Likewise.
1253         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1254         pre_edge_lcm, compute_available, compute_nearerout,
1255         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1256         Likewise.
1257         * predict.c (estimate_probability, process_note_prediction,
1258         note_prediction_to_br_prob): Likewise.
1259         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1260         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1261         * regrename.c (copyprop_hardreg_forward): Likewise.
1262         * resource.c (init_resource_info): Likewise.
1263         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1264         init_regions, schedule_insns): Likewise.
1265         * ssa-ccp.c (ssa_const_prop): Likewise.
1266         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1267         * ssa.c (compute_dominance_frontiers,
1268         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1269
1270         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1271         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1272         sizes consistently.
1273
1274 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1275
1276         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1277         new.
1278         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1279         hoist_insn_after, hoist_insn_to_edge): New.
1280
1281 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
1282
1283         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1284         (PROP_FINAL): Include.
1285         * flow.c (life_analysis, update_life_info,
1286         init_propagate_block_info, mark_set_1, mark_used_rgs):
1287         Support SCAN_DEAD_STORE.
1288
1289 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1290
1291         * c-common.c (c_common_init): Set CPP arithmetic precision.
1292         * cppexp.c (cpp_num_part): Move typedef ...
1293         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1294         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1295         (sanity_checks): Update.
1296
1297 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
1298
1299         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1300         (mkheaders): New rule.
1301         (install-mkheaders): New rule.
1302         * configure.in (all_outputs): Add mkheaders.
1303         * configure: Regenerate.
1304         * mkheaders.in: New file.
1305
1306 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
1307
1308         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1309
1310 2002-05-26  Andreas Jaeger  <aj@suse.de>
1311
1312         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1313
1314 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1315
1316         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1317         right_shift): Remove.
1318         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1319         HIGH_PART): New.
1320         (struct op): Use cpp_num.
1321         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1322         num_part_mul, num_unary_op, num_binary_op, num_negate,
1323         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1324         num_div_op, num_lshift, num_rshift, append_digit): New.
1325         (interpret_number, parse_defined, eval_token, reduce): Update
1326         for two-integer arithmetic.
1327         (binary_handler): New typedef.
1328         (optab): Update.
1329         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1330         (_cpp_parse_expr, reduce): Update to handle two-integers.
1331         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1332
1333 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1334
1335         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1336         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1337         branch insn into account, do not assume 1.
1338         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
1339         over single word insn.  Handle upper half of I/O space too.
1340         * config/avr/avr.md (*sbrx_branch): Use it.
1341         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1342         (*sbix_branch, *sbix_branch_bit7): Likewise.
1343         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1344         Use RTL peepholes to optimize register operand sign tests.
1345
1346 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1347
1348         * config/avr/avr.c (avr_asm_only_p): New variable.
1349         (avr_override_options): Set it here if AVR1.
1350         (asm_file_start): Test it here, report an error if set.
1351
1352 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
1353
1354         * alias.c: Fix formatting.
1355         * attribs.c: Likewise.
1356         * bb-reorder.c: Likewise.
1357         * bitmap.c: Likewise.
1358         * bitmap.h: Likewise.
1359         * builtins.c: Likewise.
1360
1361 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
1362
1363         * reload.c (find_valid_class): Accept new argument DEST,
1364         choose class accordingly.
1365         (push_reload): Update callers.
1366
1367 2002-05-26  Andreas Jaeger  <aj@suse.de>
1368
1369         * combine.c (combine_instructions): Do not indent #if for
1370         traditional C.
1371
1372 2002-05-25  Richard Henderson  <rth@redhat.com>
1373
1374         * c-pragma.c (apply_pragma_weak): Convert value identifier to
1375         string for decl_attributes.
1376         (handle_pragma_weak): Call assemble_alias if we're modifying
1377         an existing decl.
1378
1379 2002-05-25  Richard Henderson  <rth@redhat.com>
1380
1381         PR target/6788
1382         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1383         using rtl instead of fprintf.
1384         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1385         * config/sparc/sparc-protos.h: Update.
1386
1387 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1388
1389         * Makefile.in (C_COMMON_H): Fix.
1390         Update other targets.
1391         * c-common.c: Don't include c-lex.h.
1392         (builtin_define_with_value): Make static and prototype.
1393         (builtin_define_std): Move from c-lex.h.
1394         * c-common.h (init_c_lex): Move from c-lex.h.
1395         * c-decl.c: Don't include c-lex.h.
1396         (make_pointer_declarator): Move from c-parse.in.
1397         * c-lex.c: Don't include c-lex.h.
1398         * c-lex.h: Remove.
1399         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1400         (make_pointer_declarator): Move to c-decl.c.
1401         * c-pragma.c: Don't include c-lex.h.
1402         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1403         * c-tree.h (make_pointer_declarator): New.
1404 doc:
1405         * passes.texi, tm.texi: Update.
1406 objc:
1407         * Make-lang.in: Update and correct.
1408         * objc-act.c: Don't include c-lex.h or cpplib.h.
1409 treelang:
1410         * treetree.c: Don't include c-lex.h.
1411 config:
1412         * darwin-c.c: Don't include c-lex.h.
1413         * c4x/c4x-c.c: Don't include c-lex.h.
1414         * c4x/t-c4x: Update.
1415         * i370/i370-c.c: Don't include c-lex.h.
1416         * i370/t-i370: Update.
1417         * i960/i960-c.c: Don't include c-lex.h.
1418         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1419         * i960/t-960bare: Update.
1420         * i960/t-vxworks: Update.
1421         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1422         * rs6000/t-darwin: Update.
1423         * rs6000/t-rs6000-c-rule: Update.
1424         * v850/v850-c.c: Don't include c-lex.h.
1425         * v850/v850.c: Don't include c-lex.h or cpplib.h.
1426
1427
1428 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1429
1430         * tree.def: Fix typos.
1431         * doc/install.texi: Likewise.
1432
1433 2002-05-25  Richard Henderson  <rth@redhat.com>
1434
1435         * configure.in (HAVE_AS_TLS): Add ia64 test.
1436         * configure: Rebuild.
1437         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1438         (override_options): Set it.
1439         (TARGET_HAVE_TLS): New.
1440         (sdata_symbolic_operand): Look for 's'.
1441         (tls_symbolic_operand): New.
1442         (ia64_expand_load_address): Abort for tls symbols.
1443         (gen_tls_get_addr): New.
1444         (gen_thread_pointer): New.
1445         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
1446         (rtx_needs_barrier): Add new unspecs.
1447         (ia64_encode_section_info): Handle tls symbols.
1448         (ia64_strip_name_encoding): Strip two encoding chars.
1449         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1450         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1451         (TARGET_OPTIONS): Add tls-size.
1452         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1453         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1454         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1455         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1456         (movsf, movdf): Likewise.
1457         (movdi_symbolic): Use match_scratch.  Don't split if we won't
1458         have a scratch availiable.
1459         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1460         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1461         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1462         * config/ia64/ia64-protos.h: Update.
1463         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1464         sdata_symbolic_operand.
1465         (ASM_OUTPUT_LABELREF): Strip two characters.
1466
1467 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1468
1469         * combine.c (simplify_set): Remove an unnecessary subreg.
1470
1471 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1472
1473         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1474
1475         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1476
1477 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1478
1479         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
1480
1481 2002-05-25  Roger Sayle  <roger@eyesopen.com>
1482
1483         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1484         (cond (compare x y) 0) into the equivalent (cond x y).
1485
1486 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1487
1488         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
1489
1490 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
1491
1492         * config.gcc: Remove all stanzas for previously obsoleted
1493         systems.  Where necessary, add explicit error stanzas to
1494         prevent removed systems from being misidentified as something
1495         else.  Begin a fresh obsoletions list, with the systems that
1496         were reprieved last round.
1497         * doc/install.texi: Remove all mention of dead targets.
1498         * fixinc/mkfixinc.sh: Likewise.
1499
1500         * config/arm/arm.h: Bit 31 of target_flags is no longer
1501         reserved.
1502
1503         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1504         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1505         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1506         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1507         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1508         config/alpha/osf12.h, config/alpha/osf2or3.h,
1509         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1510         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1511         config/clipper/clipper-protos.h, config/clipper/clipper.c,
1512         config/clipper/clipper.h, config/clipper/clipper.md,
1513         config/clipper/clix.h, config/convex/convex-protos.h,
1514         config/convex/convex.c, config/convex/convex.h,
1515         config/convex/convex.md, config/convex/fixinc.convex,
1516         config/convex/proto.h, config/elxsi/elxsi-protos.h,
1517         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1518         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1519         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1520         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1521         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1522         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1523         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1524         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1525         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1526         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1527         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1528         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1529         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1530         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1531         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1532         config/m68k/altos3068.h, config/m68k/apollo68.h,
1533         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1534         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1535         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1536         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1537         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1538         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1539         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1540         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1541         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1542         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1543         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1544         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1545         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1546         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1547         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1548         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1549         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1550         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1551         config/mips/dec-osf1.h, config/mips/elflorion.h,
1552         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1553         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1554         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1555         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1556         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1557         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1558         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1559         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1560         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1561         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1562         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1563         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1564         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1565         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1566         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1567         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1568         Delete file.
1569
1570 2002-05-24  Richard Henderson  <rth@redhat.com>
1571
1572         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1573         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1574         * config/i386/i386.c (tls_model_chars): Add leading space.
1575         (tls_symbolic_operand): Don't bias by 1.
1576         (legitimize_address): Don't unbias by 1.
1577
1578 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1579
1580         * lcm.c (optimize_mode_switching): Change bb used as indices
1581         to bb->index.
1582
1583 2002-05-24  Richard Henderson  <rth@redhat.com>
1584
1585         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1586         of update_life_info_in_dirty_blocks.
1587
1588 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1589
1590         PR other/6782
1591         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1592
1593 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1594
1595         PR preprocessor/6780
1596         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1597
1598 2002-05-24  Jim Blandy  <jimb@redhat.com>
1599
1600         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1601         entry with a type code of zero, marking the end of the compilation
1602         unit's macro info.
1603
1604 2002-05-24  Richard Henderson  <rth@redhat.com>
1605
1606         * varasm.c (asm_output_bss): Always output one byte.
1607         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1608
1609 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1610
1611         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1612         namespace.
1613
1614 2002-05-24  Andreas Jaeger  <aj@suse.de>
1615
1616         * ggc-page.c (alloc_page): Cast variables of type size_t to
1617         unsigned long, adjust printf format string.
1618         (ggc_alloc): Likewise.
1619         (ggc_print_statistics): Likewise.
1620         (ggc_print_statistics): Correct printf format string for SCALE to
1621         use unsigned long.
1622
1623 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1624
1625         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1626
1627 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1628             Zack Weinberg     <zack@codesourcery.com>
1629
1630         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1631         quoted strings.
1632         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1633         directive in assembly file.
1634         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1635         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1636         * config/pj/pj.h (ASM_FILE_START): Likewise.
1637         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1638         * config/avr/avr.c (asm_file_end): Likewise.
1639         * toplev.c (output_quoted_string): Handle possibly signed plain
1640         char.
1641         * toplev.h (output_clean_symbol_name): Declare
1642         * toplev.c (output_clean_symbol_name): Define.
1643         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1644         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1645
1646 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1647
1648         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1649
1650 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1651
1652         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1653         of size of unsigned.
1654
1655 2002-05-23  Richard Henderson  <rth@redhat.com>
1656
1657         * configure.in (HAVE_AS_TLS): New test.
1658         * config.in, configure: Rebuild.
1659         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1660         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1661         (override_options): Set it.
1662         (tls_model_chars, tls_symbolic_operand): New.
1663         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1664         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1665         (local_exec_symbolic_operand): New.
1666         (get_pic_label_name): Merge into output_set_got.
1667         (ix86_asm_file_end): Emit pic_label_name if defined.
1668         (legitimate_constant_p, constant_address_p): New.
1669         (legitimate_pic_operand_p): New.
1670         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1671         (legitimate_address_p): Likewise.
1672         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1673         (ix86_strip_name_encoding): New.
1674         (get_thread_pointer): New.
1675         (legitimize_address): Handle tls symbols.
1676         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1677         Remove UNSPEC_PLT.
1678         (struct machine_function): Add some_ld_name.
1679         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1680         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1681         (output_addr_const_extra): New.
1682         (maybe_get_pool_constant): New.
1683         (ix86_split_to_parts): Use it.
1684         (ix86_expand_move): Handle tls symbols.
1685         (ix86_tls_get_addr): New.
1686         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1687         (TARGET_OPTIONS): Add tls-dialect.
1688         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1689         (LEGITIMATE_CONSTANT_P): Likewise.
1690         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1691         (TARGET_STRIP_NAME_ENCODING): New.
1692         (ASM_OUTPUT_LABELREF): New.
1693         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1694         (OUTPUT_ADDR_CONST_EXTRA): New.
1695         (PREDICATE_CODES): Update.
1696         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1697         * config/i386/i386.md: Regroup and renumber unspec constants.
1698         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1699         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1700         (tls_global_dynamic, tls_local_dynamic_base): New.
1701         (tls_local_dynamic_once): New.
1702         * config/i386/i386-protos.h: Update.
1703
1704 2002-05-23  Richard Henderson  <rth@redhat.com>
1705
1706         * genemit.c (gen_insn): Print file:lineno comment before function.
1707         (main): likewise.
1708         * gensupport.c (struct queue_elem): Add filename member.
1709         (queue_pattern): Initialize it; update all callers.
1710         (process_include): Don't free filename.
1711         (read_md_rtx): Set read_rtx_filename.
1712
1713 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1714
1715         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1716
1717 2002-05-23  Richard Henderson  <rth@redhat.com>
1718
1719         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1720
1721 2002-05-23  Richard Henderson  <rth@redhat.com>
1722
1723         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1724         commentary from Mark.
1725
1726 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1727
1728         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1729         Use FOR_EACH_BB macros to iterate over basic block chain.
1730         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1731         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1732         Likewise.
1733         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1734         find_unreachable_blocks, create_edge_list, verify_edge_list,
1735         remove_fake_edges, add_noreturn_fake_exit_edges,
1736         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1737         Likewise.
1738         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1739         find_sub_basic_blocks): Likewise.
1740         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1741         Likewise.
1742         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1743         Likewise.
1744         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1745         Likewise.
1746         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1747         commit_edge_insertions, commit_edge_insertions_watch_calls,
1748         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1749         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1750         * conflict.c (conflict_graph_compute): Likewise.
1751         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1752         df_modified_p, df_refs_unlink, df_dump): Likewise.
1753         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1754         * final.c (compute_alignments): Likewise.
1755         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1756         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1757         count_or_remove_death_notes): Likewise.
1758         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1759         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1760         classic_gcse, compute_transp, cprop, compute_pre_data,
1761         compute_transpout, invalidate_nonnull_info,
1762         delete_null_pointer_checks_1, delete_null_pointer_checks,
1763         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1764         compute_store_table, build_store_vectors, store_motion): Likewise.
1765         * global.c (global_conflicts, mark_elimination): Likewise.
1766         * graph.c (print_rtl_graph_with_bb): Likewise.
1767         * haifa-sched.c (sched_init): Likewise.
1768         * ifcvt.c (if_convert): Likewise.
1769         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1770         compute_available, compute_nearerout, compute_rev_insert_delete,
1771         optimize_mode_switching): Likewise.
1772         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1773         * predict.c (estimate_probability, note_prediction_to_br_prob,
1774         propagate_freq, counts_to_freqs, expensive_function_p,
1775         estimate_bb_frequencies): Likewise.
1776         * profile.c (instrument_edges, get_exec_counts,
1777         compute_branch_probabilities, compute_checksum, branch_prob,
1778         find_spanning_tree): Likewise.
1779         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1780         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1781         Likewise.
1782         * regclass.c (scan_one_insn, regclass): Likewise.
1783         * regmove.c (mark_flags_life_zones, regmove_optimize,
1784         record_stack_memrefs): Likewise.
1785         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1786         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1787         * resource.c (find_basic_block): Likewise.
1788         * sched-ebb.c (schedule_ebbs): Likewise.
1789         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1790         find_single_block_region, find_rgns, schedule_insns)
1791         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1792         * ssa-ccp.c (optimize_unexecutable_edges,
1793         ssa_ccp_df_delete_unreachable_insns): Likewise.
1794         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1795         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1796         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1797         compute_coalesced_reg_partition, rename_equivalent_regs,
1798         convert_from_ssa): Likewise.
1799         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1800         process_for_unwind_directive): Likewise.
1801
1802         * df.c (FOR_ALL_BBS): Removed.
1803         * gcse.c (struct null_pointer_info): Type of current_block field
1804         changed.
1805         (struct reg_avail_info): Type of last_bb field changed.
1806         * config/ia64/ia64.c (block_num): Removed.
1807         (need_copy_state): Type changed.
1808         (last_block): New.
1809
1810 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1811
1812         * cppinit.c (mark_named_operators): Split out from init_builtins.
1813         (cpp_finish_options): Call it from here instead.
1814
1815 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1816
1817         * builtin-attrs.def: Update copyright years.
1818         (ATTR_NONNULL): New attribute identifier.
1819         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1820         attribute tree lists.
1821         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1822         format operand.
1823         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1824         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1825         attribute lists.  Chain the appropriate nonnull attribute.
1826         * c-format.c (check_format_arg): Remove null format string
1827         warning.
1828         * testsuite/gcc.dg/format/null-1.c: New test.
1829
1830 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1831
1832         * Makefile.in (ADAC): Define.
1833         (SYSLIBS): Define.
1834         (.SUFFIXES): Move before language makefile fragments.
1835         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1836
1837 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1838
1839         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1840         placed in common.
1841
1842 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1843
1844         * cfg.c (dump_flow_info): Print results of
1845         maybe_hot/probably_never_executed predicates.
1846         * toplev.c (open_dump_file): Print function frequency.
1847
1848 2002-05-23  David S. Miller  <davem@redhat.com>
1849
1850         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1851         regsets.
1852
1853 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1854
1855         * c-common.c (warn_nonnull): Declare.
1856         (c_common_attribute_table): Add "nonnull" attribute.
1857         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1858         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1859         check_function_arguments_recurse): New functions.
1860         * c-common.h (warn_nonnull): Declare extern.
1861         (check_function_arguments, check_function_arguments_recurse): New
1862         prototypes.
1863         * c-decl.c (c_decode_option): Add -Wnonnull option.
1864         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1865         format checking.
1866         (format_check_context): New structure.
1867         (check_format_info_recurse): Remove recursion and rename to...
1868         (check_format_arg): ...this.  Update comment.
1869         (check_format_info): Use check_function_arguments_recurse.
1870         * c-typeck.c (build_function_call): Call check_function_arguments
1871         instead of check_function_format.
1872         * doc/extend.texi: Document "nonnull" attribute.
1873         * doc/invoke.texi: Docuemnt -Wnonnull option.
1874         * testsuite/gcc.dg/nonnull-1.c: New test.
1875         * testsuite/gcc.dg/nonnull-2.c: New test.
1876
1877 2002-05-23  David S. Miller  <davem@redhat.com>
1878
1879         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1880         * cfgcleanup.c (cleanup_cfg): If it is set do not
1881         attempt to delete trivially dead insns.
1882         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1883         * toplev.c (rest_of_compilation): Document non-trivial aspect
1884         the RTL before optimize_save_area_alloca is run.
1885
1886 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1887
1888         * c-lex.c (indent_level): Remove.
1889         (cb_file_change, c_lex): Remove indent level handling.
1890         * c-lex.h (indent_level): Remove.
1891         * input.h (struct file_stack): Remove indent_level.
1892         * toplev.c (push_srcloc): Remove indent_level handling.
1893
1894 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1895
1896         PR target/6753
1897         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1898         of x in constraints for clarity.
1899         (sse_mov?fcc split): abort if op2 == op3.
1900         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1901         sse_movsfcc_const0_4): Add earlyclobber.
1902         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1903         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1904         Use Y instead of x in constraints.
1905
1906 2002-05-23  Richard Henderson  <rth@redhat.com>
1907
1908         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1909         (C++98 Thread-Local Edits): New subsection.
1910
1911         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1912         (ix86_arch): Set type to enum processor_type.
1913
1914         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1915         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1916
1917 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1918
1919         * configure.in: Fix as version test for binutils 2.12.1 releases
1920         (without dates).
1921         * configure: Rebuilt.
1922
1923 2002-05-23  Richard Henderson  <rth@redhat.com>
1924
1925         * config/i386/i386.c (get_pic_label_name): New.
1926         (load_pic_register): Remove.
1927         (output_set_got): New.
1928         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1929         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1930         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1931         (prologue_set_got, prologue_get_pc): Remove.
1932         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1933         (builtin_setjmp_receiver): Use gen_set_got.
1934         * config/i386/i386-protos.h: Update.
1935
1936 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1937
1938         * gcse.c (hash_expr): Do not use alias set for hashing.
1939
1940 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1941
1942         * dbxout.c (dbxout_class_name_qualifiers): New function.
1943         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1944
1945 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1946
1947         * cpperror.c (_cpp_begin_message): No special casing
1948         of CPP_FATAL_LIMIT.
1949         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1950         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1951         * cpplib.c (do_include_common): Use DL_ERROR.
1952         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1953         (DL_ICE): Renumber.
1954         * fix-header.c (read_scan_file): Update.
1955
1956 2002-05-22  Richard Henderson  <rth@redhat.com>
1957
1958         * config/i386/i386.c (ix86_expand_call): New function, extracted
1959         from md call patterns.  Add pic_offset_table_rtx to
1960         CALL_INSN_FUNCTION_USAGE when needed.
1961         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1962         (call_value_pop, call_value, untyped_call): Likewise.
1963         (call_exp, call_value_exp): Remove.
1964         * config/i386/i386-protos.h: Update.
1965
1966 2002-05-22  Richard Henderson  <rth@redhat.com>
1967
1968         * varasm.c (default_section_type_flags): Check for VAR_DECL
1969         before using DECL_THREAD_LOCAL.
1970
1971 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1972
1973         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1974         (STARTFILE_SPEC): Delete PE crt0.o.
1975         * config/rs6000/aix51.h: Same.
1976         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1977         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1978         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1979         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1980         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1981
1982 2002-05-22  Richard Henderson  <rth@redhat.com>
1983
1984         * varasm.c (default_section_type_flags): Handle tls data and
1985         default sections.
1986         (default_unique_section): Handle tls sections.
1987
1988 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1989
1990         * configure.in (CROSS): Define NATIVE_CROSS.
1991         * configure: Regenerate.
1992         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1993         (startfile_prefix_spec): New var.
1994         (static_specs): Add startfile_prefix_spec.
1995         (do_spec_2): Split out from..
1996         (do_spec): ..here.
1997         (main): Process startfile_prefix_spec.
1998         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1999         dynamic linker.
2000         (STARTFILE_PREFIX_SPEC): Define.
2001         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
2002         absolute paths.
2003
2004 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
2005
2006         * cpperror.c: Fix formatting.
2007         * cppexp.c: Likewise.
2008         * cppfiles.c: Likewise.
2009         * cpphash.c: Likewise.
2010         * cpphash.h: Likewise.
2011         * cppinit.c: Likewise.
2012         * cpplex.c: Likewise.
2013         * cpplib.c: Likewise.
2014         * cppmacro.c: Likewise.
2015         * cppmain.c: Likewise.
2016         * cppspec.c: Likewise.
2017
2018 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
2019
2020         * combine.c (force_to_mode): Use gen_int_mode.
2021         Don't clear CONST_INT bits outside of mode.
2022
2023 2002-05-22  Richard Henderson  <rth@redhat.com>
2024
2025         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
2026         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2027
2028 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
2029
2030         PR c/6643
2031         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
2032         if DECL_SIZE_UNIT is INTEGER_CST.
2033
2034 2002-05-22  Richard Henderson  <rth@redhat.com>
2035
2036         * flow.c (life_analysis): Delete broken reg_label check.
2037
2038 2002-05-22  Richard Henderson  <rth@redhat.com>
2039
2040         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
2041         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2042
2043 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2044
2045         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
2046         (embed-bb.c): New rule.
2047         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
2048         * config/sh/embed_bb.c: Delete.
2049
2050 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
2051
2052         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
2053
2054 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
2055
2056         * config/h8300/h8300.md (*andorqi3): New.
2057
2058 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2059
2060         PR preprocessor/6517
2061         * Makefile.in: Update.
2062         * c-common.c (c_common_post_options): Add preprocessor
2063         errors to the error count.
2064         * c-lang.c (c_post_options): Kill.
2065         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2066         * hooks.h: Add header guards.
2067         * langhooks-def.h: Include hooks.h.
2068         (LANG_HOOKS_POST_OPTIONS): Update.
2069         * langhooks.h (struct lang_hooks): Update post_options.
2070         * toplev.c (parse_options_and_default_flags): Update.
2071 objc:
2072         * objc-lang.c (objc_post_options): Kill.
2073         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2074
2075 2002-05-21  Bruce Korb  <bkorb@gnu.org>
2076
2077         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
2078         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
2079         * fixinc/fixincl.x: regen.
2080
2081 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
2082
2083         * cfgbuild.c: Fix formatting.
2084         * cfg.c: Likewise.
2085         * cfgcleanup.c: Likewise.
2086         * cfglayout.c: Likewise.
2087         * cfgloop.c: Likewise.
2088         * cfgrtl.c: Likewise.
2089
2090 2002-05-21  Richard Henderson  <rth@redhat.com>
2091
2092         * c-common.h (enum rid): Add RID_THREAD.
2093         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
2094         (grokdeclarator): Grok __thread.
2095         * c-parse.in (reswords): Add __thread.
2096         (rid_to_yy): Add RID_THREAD.
2097
2098         * tree.h (DECL_THREAD_LOCAL): New.
2099         (struct tree_decl): Add thread_local_flag.
2100         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
2101         * tree.c (staticp): TLS variables are not static.
2102
2103         * target-def.h (TARGET_HAVE_TLS): New.
2104         * target.h (have_tls): New.
2105         * output.h (SECTION_TLS): New.
2106         * varasm.c (assemble_variable): TLS variables can't be common for now.
2107         (default_section_type_flags): Handle .tdata and .tbss.
2108         (default_elf_asm_named_section): Handle SECTION_TLS.
2109         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
2110
2111         * flags.h (flag_tls_default): Declare.
2112         * toplev.c (flag_tls_default): Define.
2113         (display_help): Display help for it.
2114         (decode_f_option): Set it.
2115
2116         * doc/extend.texi (Thread-Local): New node describing language-level
2117         thread-local storage.
2118         * doc/invoke.texi (-ftls-model): Document.
2119
2120         * fixinc/inclhack.def (thread_keyword): New.
2121         * fixinc/fixincl.x: Rebuild.
2122
2123 2002-05-21  Jeffrey A Law  <law@redhat.com>
2124
2125         * optabs.c (expand_binop): For double-word integer multiplies,
2126         do not compute intermediate results into something that is
2127         not a register (such as a SUBREG or MEM).
2128
2129         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
2130         (ix86_sched_reorder): Make sure to initialize scheduling
2131         data even when there's only one insn in the ready queue.
2132
2133 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
2134
2135         * genautomata.c (reserv_sets_hash_value): Fix a typo.
2136
2137 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
2138
2139         * genautomata.c (reserv_sets_hash_value): Define hash_value as
2140         set_el_t.  Transform the hash value into unsigned.
2141         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
2142         (transform_3): Add code to process `(A,B)+(D,E)'.
2143
2144 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
2145
2146         * reload1.c (do_output_reload): Run delete_output_reload
2147         only if optimizing.
2148
2149 2002-05-21  Roger Sayle  <roger@eyesopen.com>
2150
2151         PR middle-end/6600
2152         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
2153         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
2154         (can_store_by_pieces): ... and here to limit the largest mode used.
2155         Add a comment to document this function.
2156
2157 2002-05-21  Richard Henderson  <rth@redhat.com>
2158
2159         * flow.c (life_analysis): Fix test for deleted label.
2160
2161 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2162
2163         * doc/tm.texi: Fix typo.
2164
2165 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
2166
2167         * c-common.c (c_common_init): Set options->unsigned_char from
2168         flag_signed_char.
2169         (cb_register_builtins): Define __STRICT_ANSI__ and
2170         __CHAR_UNSIGNED__ here...
2171         * cppinit.c (init_builtins): Not here.
2172         (cpp_create_reader): unsigned_char option defaults to 0, not
2173         !DEFAULT_SIGNED_CHAR.
2174         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
2175         and -funsigned-char.
2176
2177         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
2178         * cpphash.c (_cpp_init_hashtable): Don't set it.
2179         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
2180         directly.  Clarify comment.
2181
2182 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2183
2184         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
2185         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
2186         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
2187         BASIC_BLOCK (n_basic_blocks - 1).
2188         * cfganal.c (can_fallthru, flow_call_edges_add,
2189         flow_preorder_transversal_compute): Too.
2190         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
2191         find_sub_basic_blocks): Too.
2192         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
2193         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
2194         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
2195         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
2196         * combine.c (this_basic_block): Type changed to basic_block.
2197         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
2198         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2199         get_last_value, distribute_notes, distribute_links): Too.
2200         * final.c (compute_alignments): Too.
2201         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
2202         * function.c (thread_prologue_and_epilogue_insns): Too.
2203         * gcse.c (compute_code_hoist_vbeinout): Too.
2204         * global.c (build_insn_chain): Too.
2205         * ifcvt.c (find_if_block, find_cond_trap): Too.
2206         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
2207         * regmove.c (regmove_optimize): Too.
2208         * resource.c (find_basic_block): Too.
2209         * sched-ebb.c (schedule_ebbs): Too.
2210         * ssa-dce.c (find_control_dependence, find_pdom): Too.
2211
2212 2002-05-21  Andreas Jaeger  <aj@suse.de>
2213
2214         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
2215
2216 2002-05-21  Richard Henderson  <rth@redhat.com>
2217
2218         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
2219         unspec names, not numbers.
2220
2221 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2222
2223         * doc/sourcebuild.texi: Mention snapshot-README and
2224         snapshot-index.html as needing updating for new front ends.
2225
2226 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2227
2228         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2229         disabling checking, and avoid multiple evaluation of RTX.
2230
2231 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
2232
2233         * bitmap.c (bitmap_find_bit): Return early if we have the correct
2234         element cached.
2235
2236 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2237
2238         * profile.c (gen_edge_profiler):  Set alias set before the memory is
2239         used.
2240
2241 2002-05-20  David S. Miller  <davem@redhat.com>
2242
2243         * cselib.c (max_value_regs): New.
2244         (cselib_lookup, cselib_invalidate_regno): Initialize it when
2245         adding new entries to the REG_VALUES table and we are dealing with
2246         a hard register.
2247         (clear_table): Initialize it.
2248         (cselib_invalidate_regno): Use it to determine which hard
2249         registers to scan when mode is not VOIDmode.
2250
2251 2002-05-20  Duraid Madina   <duraid@fl.net.au>
2252
2253         * tradcpp.c (fixup_newlines): Use old-style function header.
2254
2255 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
2256
2257         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2258
2259 2002-05-20  H.J. Lu  (hjl@gnu.org)
2260
2261         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2262
2263         * config/mips/mips.h (DFMODE_NAN): Defined.
2264         (SFMODE_NAN): Likewise.
2265
2266 2002-05-20  Dale Johannesen  <dalej@apple.com>
2267
2268         * combine.c (cant_combine_insn_p):  Back out my
2269         previous patch.
2270
2271 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
2272
2273         * params.c: Fix formatting.
2274         * params.h: Likewise.
2275         * predict.c: Likewise.
2276         * prefix.c: Likewise.
2277         * print-rtl.c: Likewise.
2278         * print-tree.c: Likewise.
2279         * profile.c: Likewise.
2280
2281 2002-05-20  H.J. Lu  (hjl@gnu.org)
2282
2283         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2284
2285 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
2286
2287         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2288         switches straight on to the assembler, do not abbreviate them.
2289         * config/arm/elf.h (ASM_SPEC): As above.
2290         * config/arm/semi.h (ASM_SPEC): As above.
2291         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2292         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2293         -mcpu=xscale on to the assembler by default.
2294         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2295
2296 2002-05-20  Richard Henderson  <rth@redhat.com>
2297
2298         * cse.c (canon_hash): Reorder do_not_record test.  Always
2299         allow pic_offset_table_rtx.
2300
2301 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
2302
2303         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2304         (expand_binop): Ditto (3 times).
2305
2306 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
2307
2308         * Makefile.in (distclean): Remove QMTest stuff.
2309         (QMTEST_PATH): New variable.
2310         (QMTESTFLAGS): Likewise.
2311         (QMTESTRUNFLAGS): Likewise.
2312         (QMTEST): Likewise.
2313         (QMTEST_GPP_TESTS): Likewise.
2314         (QMTEST_DIR): Likewise.
2315         (QMTEST_DIR/context): New target.
2316         (qmtest-g++): Likeise.
2317         (qmtest-gui): Likewise.
2318         (QMTEST_DIR/gpp-expected.qmr): Likewise.
2319
2320 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
2321
2322         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2323         an altivec register if TARGET_ALTIVEC.
2324
2325         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2326         to ALTIVEC_VECTOR_MODE.
2327         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2328         (rs6000_va_arg): Vectors may go in registers if they are not
2329         altivec vectors.
2330
2331 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
2332
2333         * protoize.c: Fix formatting.
2334
2335 2002-05-19  Richard Henderson  <rth@redhat.com>
2336
2337         * gensupport.c (init_include_reader): Merge into ...
2338         (process_include): ... here.  Simplify composite path creation.
2339         Plug memory leaks.  Fix file/line number tracking.  Do not
2340         process_define_cond_exec.  Return void.
2341         (process_rtx): Don't check process_include return value.
2342
2343 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2344
2345         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2346         fields.
2347         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2348         traversing basic block chain.
2349         (create_basic_block_structure, create_basic_block): Declaration changed.
2350         (link_block, unlink_block): Declare.
2351         * cfg.c (entry_exit_blocks): Initialize new fields.
2352         (link_block, unlink_block): New.
2353         (expunge_block_nocompact): Unlink basic block.
2354         (dump_flow_info): Print prev_bb/next_bb fields.
2355         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2356         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2357         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2358         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2359         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2360         (verify_flow_info): Check that list agrees with numbering.
2361
2362 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2363
2364         * c-common.c (preprocessing_asm): New macro.
2365         * c-lex.h (builtin_define, builtin_assert): Use pfile.
2366 doc:
2367         * tm.texi: Update.
2368 config/alpha:
2369         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2370         (CPP_SPEC): Simplify.
2371         (TARGET_CPU_CPP_BUILTINS): Update.
2372         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2373         (CPP_SPEC): Simplify.
2374         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2375         (TARGET_OS_CPP_BUILTINS): Update.
2376         * osf.h (CPP_XFLOAT_SPEC): Kill.
2377         (TARGET_OS_CPP_BUILTINS): Update.
2378         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2379         * osf5.h (CPP_XFLOAT_SPEC): Kill.
2380         * vms.h (CPP_SUBTARGET_SPEC): Kill.
2381         (TARGET_OS_CPP_BUILTINS): Update.
2382
2383 2002-05-19  Richard Henderson  <rth@redhat.com>
2384
2385         * varasm.c (default_binds_local_p): Fix typo.
2386
2387 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2388
2389         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2390         CONST_INT operand to the correct mode after adding 1 to it.
2391
2392 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
2393
2394         * config.gcc (powerpc-wrs-windiss*): New target.
2395
2396 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2397
2398         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2399         (ashrdi3): Use it.
2400
2401 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
2402
2403         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2404         alphasort.
2405         * config.in: Regenerated.
2406         * configure: Regenerated.
2407
2408 2002-05-19  Richard Henderson  <rth@redhat.com>
2409
2410         * target-def.h (TARGET_BINDS_LOCAL_P): New.
2411         * target.h (struct gcc_target): Move boolean fields to the end.
2412         Add binds_local_p.
2413         * varasm.c (default_binds_local_p): New.
2414         * output.h: Declare it.
2415
2416         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2417         * config/cris/cris.c (cris_encode_section_info): Likewise.
2418         * config/i386/i386.c (i386_encode_section_info): Likewise.
2419         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2420         * config/sh/sh.c (sh_encode_section_info): Likewise.
2421
2422         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2423         (TARGET_BINDS_LOCAL_P): New.
2424
2425 2002-05-19  Richard Henderson  <rth@redhat.com>
2426
2427         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2428         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2429         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2430
2431         * toplev.c (display_help): Kill -a -ax help.
2432
2433         * config/1750a/1750a.h, config/alpha/alpha.h,
2434         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2435         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2436         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2437         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2438
2439         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2440         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2441
2442         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2443         (ix86_output_function_block_profiler): Kill.
2444         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2445         (m68hc11_function_block_profiler): Kill.
2446         * config/m68hc11/m68hc11-protos.h: Update.
2447         * config/m88k/m88k.c (output_block_profiler): Kill.
2448         (output_function_block_profiler): Kill.
2449         * config/m88k/m88k-protos.h: Update.
2450
2451 2002-05-19  Richard Henderson  <rth@redhat.com>
2452
2453         * system.h (STRIP_NAME_ENCODING): Poison it.
2454         * output.h (STRIP_NAME_ENCODING): Remove.
2455         (default_strip_name_encoding): Declare.
2456         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2457         * target.h (strip_name_encoding): New.
2458         * varasm.c (default_strip_name_encoding): New.
2459
2460         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2461         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2462         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2463         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2464         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2465         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2466         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2467         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2468         config/v850/v850.h: Use the hook, not the macro.
2469
2470         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2471         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2472         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2473         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2474         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2475         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2476         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2477         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2478         config/v850/v850.c, config/v850/v850.h:
2479         Move STRIP_NAME_ENCODING to out-of-line function and add
2480         TARGET_STRIP_NAME_ENCODING.
2481
2482         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2483         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2484         with TARGET_STRIP_NAME_ENCODING referencing existing function;
2485         make function static.
2486
2487         * xcoffout.c: Include target.h
2488         * Makefile.in (xcoffout.o): Update.
2489
2490         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2491         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2492         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2493         reloc argument unused.
2494         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2495
2496         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2497         STRIP_NAME_ENCODING docs.
2498
2499 2002-05-19  Andreas Jaeger  <aj@suse.de>
2500
2501         * gengenrtl.c: Add prototype for excluded_rtx.
2502
2503         * real.h: Add prototype for exact_real_truncate.
2504
2505 2002-05-18  Richard Henderson  <rth@redhat.com>
2506
2507         * system.h (ENCODE_SECTION_INFO): Poison it.
2508         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2509         * target.h (encode_section_info): New.
2510         * varasm.c (make_decl_rtl, output_constant_def): Use it.
2511         * hooks.c (hook_tree_int_void): New.
2512         * hooks.h: Declare it.
2513
2514         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2515         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2516         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2517         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2518         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2519         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2520         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2521         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2522         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2523         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2524         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2525         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2526         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2527         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2528         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2529         referencing existing function.  Make function static.
2530
2531         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2532         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2533         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2534         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2535         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2536         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2537         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2538         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2539         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2540         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2541         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2542         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2543         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2544         Move ENCODE_SECTION_INFO to out-of-line function and add
2545         TARGET_ENCODE_SECTION_INFO.
2546
2547         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2548         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2549
2550         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2551         from SUBTARGET_*
2552         (switch_to_section): Replace in_rdata case with in_readonly_data.
2553
2554         * config/h8300/h8300.c (h8300_encode_label): Make static.
2555         * config/h8300/h8300-protos.h: Update.
2556
2557         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2558         from rs6000_encode_section_info; make static.
2559         (rs6000_xcoff_encode_section_info): New.
2560
2561         * config/v850/v850.c (v850_encode_data_area): Make static.
2562         * config/v850/v850-protos.h: Update.
2563
2564         * config/vax/vax.c: Include flags.h.
2565         (vms_select_section): Fix typo.
2566
2567         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2568         ENCODE_SECTION_INFO docs.
2569
2570 2002-05-18  Richard Henderson  <rth@redhat.com>
2571
2572         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2573         REGISTER_TARGET_PRAGMAS.
2574         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2575
2576         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2577
2578 2002-05-18  Richard Henderson  <rth@redhat.com>
2579
2580         * system.h (SELECT_RTX_SECTION): Poison.
2581         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2582         * target.h (select_rtx_section): New.
2583         * varasm.c (output_constant_pool): Use it.
2584         (default_select_rtx_section, default_elf_select_rtx_section): New.
2585         * output.h: Declare them.
2586
2587         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2588         * config/darwin.c (machopic_select_rtx_section): ... here.
2589         * config/darwin-protos.h: Update.
2590
2591         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2592         * config/nextstep.c (machopic_select_rtx_section): ... here.
2593         (nextstep_select_section): Rename variable to avoid macro clash.
2594         * config/nextstep-protos.h: Update.
2595
2596         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2597         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2598         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2599         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2600         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2601         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2602         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2603         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2604         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2605         (SELECT_RTX_SECTION): Remove.
2606
2607         * config/darwin.h, config/elfos.h, config/nextstep.h,
2608         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2609         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2610         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2611         config/sparc/lynx.h, config/xtensa/xtensa.c
2612         (TARGET_ASM_SELECT_RTX_SECTION): New.
2613
2614         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2615         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2616         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2617         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2618         (ia64_aix_select_rtx_section): New.
2619         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2620         redefining.
2621         * config/mips/mips.c (mips_select_rtx_section): Make static.
2622         Support ELF SHF_MERGE features.
2623         * config/mips/mips-protos.h: Update.
2624         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2625         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2626         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2627         make static, fall back to default_elf_select_rtx_section.
2628         * config/rs6000/rs6000-protos.h: Update.
2629         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2630         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2631         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2632         * config/romp/romp.c (romp_select_rtx_section): New.
2633         * config/s390/s390.c (s390_select_rtx_section): New.
2634         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2635         declarations before target macro definition.
2636         (xtensa_emit_call): Use static buffer.
2637         (xtensa_select_rtx_section): New.
2638         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2639         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2640         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2641
2642         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2643         SELECT_RTX_SECTION docs.
2644
2645 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2646
2647         * i386.md (movsi/movdi): Fix template.
2648         (sse2 patterns): Set attributes consistently.
2649
2650         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2651
2652 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2653
2654         * optabs.c (complex_part_zero_p): New.
2655         * (expand_cmplxdiv_straight): Use it.
2656         * (expand_cmplxdiv_wide): Ditto.
2657         * (expand_binop): Ditto.
2658
2659 2002-05-18  Richard Henderson  <rth@redhat.com>
2660
2661         * final.c (HAVE_READONLY_DATA_SECTION): New.
2662         (shorten_branches): Use it instead of ifdefs.
2663         * varasm.c (enum in_section): Add in_readonly_data.
2664         (text_section, data_section): Tidy.
2665         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2666
2667         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2668         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2669         (READONLY_DATA_SECTION): Don't undef.
2670
2671         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2672         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2673         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2674
2675         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2676         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2677         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2678         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2679
2680         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2681         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2682         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2683         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2684         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2685         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2686         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2687         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2688         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2689
2690         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2691         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2692         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2693         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2694         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2695         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2696
2697         * config/elfos.h, config/netware.h, config/svr3.h,
2698         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2699         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2700         config/h8300/h8300.h, config/i386/i386-interix.h,
2701         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2702         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2703
2704         * config/elfos.h, config/netware.h, config/svr3.h,
2705         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2706         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2707         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2708         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2709
2710         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2711         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2712         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2713         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2714         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2715         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2716         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2717         config/rs6000/sysv4.h, config/v850/v850.h
2718         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2719         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2720
2721         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2722         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2723         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2724         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2725         * config/alpha/alpha.c (alpha_start_function): Likewise.
2726         (alpha_write_linkage): Likewise.
2727         * config/m32r/m32r.c (m32r_select_section): Likewise.
2728         * config/m88k/m88k.c (m88k_select_section): Likewise.
2729         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2730         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2731         (rs6000_elf_select_section): Likewise.
2732         * config/v850/v850.c (v850_select_section): Likewise.
2733
2734         * config/1750a/1750a.h, config/i860/sysv3.h
2735         (READONLY_DATA_SECTION_ASM_OP): New.
2736         READONLY_DATA_SECTION_ASM_OP.
2737         * config/i386/interix.c, config/i386/winnt.c
2738         (i386_pe_unique_section): Always use .rdata prefix.
2739         * config/pa/som.h (readonly_data): Always switch to read-only section.
2740         (READONLY_DATA_SECTION): Predicate on flag_pic.
2741         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2742         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2743         (READONLY_DATA_SECTION): Update.
2744
2745 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2746
2747         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2748         is used without -Wformat.
2749         * c-common.h (warn_format_zero_length): Declare extern.
2750         * c-decl.c (warn_options): Add "format-zero-length".
2751         * c-format.c (warn_format_zero_length): Declare.
2752         (set_Wformat): Set warn_format_zero_length for -Wformat.
2753         (check_format_info): Only warn about zero-length formats if
2754         warn_format_zero_length is true.  Include the format type
2755         name in the warning message.
2756         * doc/invoke.texi: Document -Wformat-zero-length.
2757         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2758
2759 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2760
2761         * timevar.c: Fix formatting.
2762         * tlink.c: Likewise.
2763         * toplev.c: Likewise.
2764         * tree-dump.c: Likewise.
2765         * tree-inline.c: Likewise.
2766
2767 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2768
2769         * cppinit.c (cpp_post_options): If preprocessed, turn off
2770         traditional.  If traditional, turn off column numbers.
2771         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2772         * cpptrad.c (handle_newline): Update line_base.
2773         (skip_comment): Handle -Wcomment.
2774
2775 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2776
2777         * cppinit.c (struct builtin): Remove unused fields.
2778         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2779         (operator_array): New - was second half of builtin_array.
2780         (init_builtins): Simplify loop over builtin_array/operator_array.
2781
2782 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2783
2784         * defaults.h (UNIQUE_SECTION): Remove.
2785         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2786
2787 2002-05-17  Richard Henderson  <rth@redhat.com>
2788
2789         * expr.c (init_expr_once): Don't use start/end_sequence.
2790         Use rtx_alloc instead of emit_insn.
2791         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2792         (lang_independent_init): ... not here.
2793
2794 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2795
2796         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2797
2798 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2799
2800         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2801         for fixed registers, possibly used for global register variables.
2802         (initial_elimination_offset, avr_output_function_prologue,
2803         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2804
2805 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2806
2807         * Makefile.in: Update for cpptrad.c.
2808         * cpphash.h (struct cpp_buffer): New members for buffer
2809         overlays.
2810         (struct cpp_reader): New members for traditional output.
2811         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2812         * cppinit.c (cpp_create_reader): Set trad_line.
2813         (cpp_destroy): Free trad_out_base if used.
2814         (cpp_read_main_file): Overlay an empty buffer if traditional.
2815         (cpp_finish_options): Don't do builtins.
2816         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2817         (cpp_handle_option): Handle it.
2818         * cpplex.c (continue_after_nul): New.
2819         (_cpp_lex_direct): Use handle_nul.
2820         * cpplib.h (struct cpp_options): New traditional option.
2821         * cpptrad.c: New file.
2822
2823 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2824
2825         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2826         and set the options flag.
2827         * cppinit.c (lang_flags): Remove objc.
2828         (lang_defaults): Remove OBJC and OBJCXX.
2829         (set_lang): Update.
2830         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2831         (cpp_handle_option): Remove -+ and -lang-objc++.
2832         For ObjC, just set a flag.
2833         (print_help): Update.
2834         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2835
2836 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2837
2838         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2839         bootstrap with -mips3.
2840
2841 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2842
2843         * final.c: Fix formatting.
2844         * fix-header.c: Likewise.
2845         * flow.c: Likewise.
2846         * fold-const.c: Likewise.
2847         * function.c: Likewise.
2848
2849 2002-05-17  David S. Miller  <davem@redhat.com>
2850
2851         PR c/6689, PR optimization/6615
2852         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2853         and make it a pointer to rtx.  Update comments.
2854         (update_equiv_regs): When scanning for equivalences, record
2855         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2856         it while making the equiv replacements.
2857
2858 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2859
2860         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2861
2862 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2863
2864         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2865         when encoding visibility into SYMBOL_REF_FLAG.
2866
2867 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2868
2869         * expr.c (force_operand): Fix reversed move.
2870
2871 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2872
2873         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2874         that can be ignored.
2875
2876 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2877
2878         * doc/install.texi (Final install): Recommend to install into a
2879         "clean" target directory.
2880
2881 2002-05-17  Richard Henderson  <rth@redhat.com>
2882
2883         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2884         for code blocks.  Tidy whitespace.
2885
2886 2002-05-17  Richard Henderson  <rth@redhat.com>
2887
2888         * hooks.c (hook_tree_bool_false): New.
2889         * hooks.h: Declare it.
2890         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2891         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2892         * target.h (select_section, unique_section): New.
2893         (in_small_data_p): New.
2894         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2895         (variable_section, output_constant_def_contents): Likewise.
2896         (default_select_section, default_unique_section): New.
2897         (categorize_decl_for_section, default_elf_select_section): New.
2898         * output.h: Declare them.
2899
2900         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2901         (TARGET_ASM_SELECT_SECTION): New.
2902         (SELECT_SECTION): Move ...
2903         * config/darwin.c (machopic_select_section): ... here.
2904         * config/darwin-protos.h: Update.
2905
2906         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2907         (SELECT_SECTION): Move ...
2908         * config/nextstep.c (nextstep_select_section): ... here.
2909         * config/nextstep-protos.h: Update.
2910
2911         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2912         (TARGET_ASM_SELECT_SECTION): New.
2913         * config/svr3.h (SELECT_SECTION): Remove.
2914
2915         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2916         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2917         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2918         (alpha_encode_section_info): Use it.
2919         * config/alpha/alpha-protos.h: Update.
2920         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2921         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2922         (TARGET_ASM_SELECT_SECTION): New.
2923         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2924
2925         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2926         (TARGET_ASM_UNIQUE_SECTION): New.
2927
2928         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2929         (avr_unique_section): Rename from unique_section; make static.
2930         * config/avr/avr-protos.h: Update.
2931         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2932
2933         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2934
2935         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2936         (TARGET_ASM_UNIQUE_SECTION): New.
2937         * config/i386/i386-interix.h: Likewise.
2938         * config/i386/win32.h: Likewise.
2939         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2940         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2941         * config/i386/sco5.h (SELECT_SECTION): Remove.
2942         (TARGET_ASM_SELECT_SECTION): New.
2943         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2944
2945         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2946         instead of SELECT_SECTION.
2947         * config/m68k/dpx2.h: Likewise.
2948         * config/rs6000/lynx.h: Likewise.
2949
2950         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2951         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2952         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2953         (ia64_in_small_data_p): New.
2954         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2955         (ia64_aix_select_section, ia64_aix_unique_section): New.
2956         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2957         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2958
2959         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2960         (TARGET_ASM_SELECT_SECTION): New.
2961         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2962         * config/m32r/m32r-protos.h: Update.
2963
2964         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2965         (SELECT_SECTION): Move ...
2966         * config/m88k/m88k.c (m88k_select_section): ... here.
2967
2968         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2969         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2970         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2971         (mcore_unique_section): Make static.
2972         * config/mcore/mcore-protos.h: Update.
2973
2974         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2975         (TARGET_ASM_UNIQUE_SECTION): New.
2976         * config/mips/elf64.h: Likewise.
2977         * config/mips/iris6gld.h: Likewise.
2978         * config/mips/linux.h: Likewise.
2979         * config/mips/mips-protos.h: Update.
2980         * config/mips/mips.c (mips_select_section): Add align argument.
2981         * config/mips/mips.h (SELECT_SECTION): Remove.
2982         (TARGET_ASM_SELECT_SECTION): New.
2983
2984         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2985         * config/mmix/mmix.c (mmix_select_section): Remove.
2986         (mmix_unique_section): Remove.
2987         * config/mmix/mmix-protos.h: Update.
2988
2989         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2990         (SELECT_SECTION): Move ...
2991         * config/pa/pa.c (pa_select_section): ... here.
2992         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2993
2994         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2995         from rs6000_select_section and make static.
2996         (rs6000_elf_unique_section): Similarly.
2997         (rs6000_xcoff_select_section): From xcoff.h.
2998         (rs6000_xcoff_unique_section): Likewise.
2999         * config/rs6000/rs6000-protos.h: Update.
3000         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
3001         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
3002         * config/rs6000/xcoff.h: Likewise.
3003
3004         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
3005         (SELECT_SECTION): Move ...
3006         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
3007
3008         * config/v850/v850.h (SELECT_SECTION): Move ...
3009         * config/v850/v850.c (v850_select_section): ... here.
3010         (TARGET_ASM_SELECT_SECTION): New.
3011
3012         * config/vax/vms.h (SELECT_SECTION): Move ...
3013         * config/vax/vax.c (vms_select_section): ... here.
3014         (TARGET_ASM_SELECT_SECTION): New.
3015
3016         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
3017         for the target hooks.
3018
3019 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
3020
3021         * config/arm/arm.c (emit_multi_reg_push): Do not set
3022         RTX_FRAME_RELATED_P on the SEQUENCE.
3023
3024 2002-05-16  Richard Henderson  <rth@redhat.com>
3025
3026         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
3027         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
3028
3029 2002-05-16  Richard Henderson  <rth@redhat.com>
3030
3031         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
3032
3033         * config/ia64/ia64.c (saveable_obstack): Do not declare.
3034
3035 2002-05-16  Richard Henderson  <rth@redhat.com>
3036
3037         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
3038         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
3039         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
3040         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
3041         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
3042         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
3043         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
3044         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
3045         Revert "Basic block renumbering removal", and two followup patches.
3046
3047 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
3048
3049         * lcm.c (optimize_mode_switching): Revert previous change.
3050
3051 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3052
3053         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
3054         with only extant block numbers.
3055
3056 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
3057
3058         * lcm.c (optimize_mode_switching): Fix typo.
3059
3060 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3061
3062         * flow.c (calculate_global_regs_live): Queue blocks in program order.
3063
3064 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3065
3066         * doc/install.texi (Configuration): Document PWDCMD.
3067
3068 2002-05-16  Dale Johannesen  <dalej@apple.com>
3069
3070         * combine.c (cant_combine_insn_p):  Reenable combinations
3071         involving hard regs unless CLASS_LIKELY_SPILLED_P.
3072
3073 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3074
3075         * c-common.c (cb_register_builtins): Handle more built-ins
3076         here rather than in gcc.c specs.
3077         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
3078         (cpp_options): Pass -O flags even when only preprocessing.
3079         * toplev.c (set_fast_math_flags): New prototype.
3080         (fast_math_flags_set_p): New.
3081         (set_no_fast_math_flags): Remove.
3082         (decode_f_option): Update.
3083         * toplev.h (set_fast_math_flags): Update.
3084         (fast_math_flags_set_p): New.
3085         (set_no_fast_math_flags): Remove.
3086 config:
3087         * c4x/c4x.c (c4x_override_options): Update.
3088
3089 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
3090
3091         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
3092         Default-define here.
3093         (builtin_define_with_value): Can now wrap the expansion in
3094         quotation marks if such is wanted.
3095         (cb_register_builtins): Update calls to builtin_define_with_value.
3096         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
3097         here.
3098         (c_common_init): Set options->stdc_0_in_system_headers.
3099         * c-lex.h: Update prototype of builtin_define_with_value.
3100         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
3101         and REGISTER_PREFIX.
3102
3103         * cppinit.c (VERS, ULP, C, X): Kill.
3104         (builtin_array): Remove entries for __VERSION__,
3105         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
3106         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
3107         a constant.
3108         (init_builtins): Kill off a bunch of now-dead code.
3109         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
3110         -fno-leading-underscore.
3111         (cpp_handle_option): Remove code to set user_label_prefix.
3112         (cpp_post_options): Likewise.
3113
3114         * cpplib.h (struct cpp_options): Remove user_label_prefix.
3115         (stdc_0_in_system_headers): New.
3116         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
3117         stdc_0_in_system_headers) too to decide the value of __STDC__.
3118
3119         * tradcpp.c (user_label_prefix): Kill.
3120         (main): Remove code handling -f(no-)leading-underscore.
3121         (initialize_builtins): Don't define __REGISTER_PREFIX__
3122         or __USER_LABEL_PREFIX__.
3123         (install_value): Wrap compound statement in dummy loop so the
3124         macro works properly in an if statement.
3125
3126
3127 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
3128
3129         * loop.h (struct loop_info): Add member has_prefetch.
3130         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
3131         (prescan_loop): Initialize has_prefetch.
3132         (struct prefetch_info): Change prefetch_in_loop and
3133         prefetch_before_loop from bit fields to ints.
3134         (emit_prefetch_instructions): Several small fixes.
3135         (check_dbra_loop): Don't reverse loop that uses prefetch.
3136
3137 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3138
3139         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
3140         * configure.in: Likewise.
3141         * fixinc/check.tpl: Likewise.
3142         * fixinc/fixinc.dgux: Likewise.
3143         * fixinc/fixinc.svr4: Likewise.
3144         * fixinc/fixinc.winnt: Likewise.
3145         * fixinc/fixincl.sh: Likewise.
3146         * fixproto: Likewise.
3147         * configure: Regenerate.
3148
3149 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3150
3151         Basic block renumbering removal:
3152         * basic_block.h (struct basic_block_def): Renamed index to sindex,
3153         added prev_bb and next_bb fields.
3154         (n_basic_blocks): Renamed to num_basic_blocks.
3155         (last_basic_block): New, index of last basic block.
3156         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3157         traversing basic block chain.
3158         (BLOCK_NUM): index -> sindex.
3159         (create_basic_block_structure, create_basic_block): Declaration changed.
3160         (debug_num2bb): Declare.
3161         (expunge_block_nocompact): Declaration removed.
3162         (link_block, unlink_block, compact_blocks): Declare.
3163         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
3164         * cfg.c (entry_exit_blocks): Initialize new fields.
3165         (clear_edges, alloc_block, expunge_block, cached_make_edge,
3166         redirect_edge_pred, dump_flow_info, dump_edge_info,
3167         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
3168         free_aux_for_edges): Modified.
3169         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
3170         (expunge_block_nocompact): Removed.
3171         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
3172         find_unreachable_blocks, create_edge_list, print_edge_list,
3173         verify_edge_list, flow_edge_list_print, remove_fake_successors,
3174         remove_fake_edges, flow_reverse_top_sort_order_compute,
3175         flow_depth_first_order_compute, flow_preorder_transversal_compute,
3176         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
3177         flow_dfs_compute_reverse_execute): Modified.
3178         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
3179         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
3180         Modified.
3181         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3182         merge_blocks_move_predecessor_nojumps,
3183         merge_blocks_move_successor_nojumps, merge_blocks,
3184         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
3185         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
3186         * cfglayout.c (skip_insns_after_block, label_for_bb,
3187         record_effective_endpoints, scope_to_insns_finalize,
3188         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
3189         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
3190         cfg_layout_duplicate_bb): Modified.
3191         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
3192         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3193         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
3194         flow_loops_find, flow_loop_outside_edge_p): Modified.
3195         * cfgrtl.c (create_basic_block_structure, create_basic_block,
3196         flow_delete_block, compute_bb_for_insn, split_block,
3197         try_redirect_by_replacing_jump, redirect_edge_and_branch,
3198         force_nonfallthru_and_redirect, tidy_fallthru_edge,
3199         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
3200         commit_edge_insertions, commit_edge_insertions_watch_calls,
3201         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3202         purge_all_dead_edges): Modified.
3203         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
3204         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3205         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
3206         Modified.
3207         * conflict.c (conflict_graph_compute): Modified.
3208         * df.c (FOR_ALL_BBS): Removed.
3209         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3210         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
3211         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
3212         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
3213         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3214         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
3215         * final.c (compute_alignments, final_scan_insn): Modified.
3216         * flow.c (verify_local_live_at_start, update_life_info,
3217         update_life_info_in_dirty_blocks, free_basic_block_vars,
3218         delete_noop_moves, calculate_global_regs_live,
3219         initialize_uninitialized_subregs, allocate_bb_life_data,
3220         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
3221         mark_used_reg, count_or_remove_death_notes): Modified.
3222         * function.c (thread_prologue_and_epilogue_insns): Modified.
3223         * gcse.c (struct null_pointer_info): Change typo of current_block
3224         to basic_block.
3225         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3226         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3227         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3228         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3229         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3230         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3231         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3232         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3233         pre_delete, one_pre_gcse_pass, compute_transpout,
3234         invalidate_nonnull_info, delete_null_pointer_checks_1,
3235         free_code_hoist_mem, compute_code_hoist_vbeinout,
3236         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3237         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3238         compute_store_table, build_store_vectors, insert_insn_start_bb,
3239         insert_store, replace_store_insn, free_store_memory, store_motion):
3240         Modified.
3241         * global.c (global_alloc, global_conflicts, mark_elimination,
3242         build_insn_chain): Modified.
3243         * graph.c (print_rtl_graph_with_bb): Modified.
3244         * haifa-sched.c (sched_init): Modified.
3245         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3246         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3247         if_convert): Modified.
3248         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3249         compute_insert_delete, pre_edge_lcm, compute_available,
3250         compute_farthest, compute_nearerout, compute_rev_insert_delete,
3251         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3252         Modified.
3253         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3254         * loop.c (loop_dump_aux): Modified.
3255         * predict.c (combine_predictions_for_insn, estimate_probability,
3256         last_basic_block_p, process_note_prediction, process_note_predictions,
3257         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3258         expensive_function_p, estimate_bb_frequencies,
3259         compute_function_frequency): Modified.
3260         * print-rtl.c (print_rtx): Modified.
3261         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3262         get_exec_counts, compute_branch_probabilities, compute_checksum,
3263         branch_prob, find_spanning_tree): Modified.
3264         * recog.c (split_all_insns, peephole2_optimize): Modified.
3265         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3266         convert_regs_1, convert_regs_2, convert_regs): Modified.
3267         * regclass.c (scan_one_insn, regclass): Modified.
3268         * regmove.c (mark_flags_life_zones, regmove_optimize,
3269         combine_stack_adjustments): Modified.
3270         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3271         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3272         * reorg.c (dbr_schedule): Modified.
3273         * resource.c (find_basic_block, init_resource_info): Modified.
3274         * sbitmap.c (sbitmap_intersection_of_succs,
3275         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3276         sbitmap_union_of_preds): Modified.
3277         * sched-deps.c (init_dependency_caches): Modified.
3278         * sched-ebb.c (schedule_ebbs): Modified.
3279         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3280         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3281         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3282         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3283         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3284         ssa_const_prop): Modified.
3285         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3286         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3287         * ssa.c (remove_phi_alternative, find_evaluations,
3288         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3289         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3290         make_regs_equivalent_over_bad_edges,
3291         make_equivalent_phi_alternatives_equival,
3292         compute_conservative_reg_partition,
3293         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3294         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3295         Modified.
3296
3297 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
3298
3299         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3300
3301 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
3302
3303         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3304         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3305         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3306         calling CONSTANT_POOL_ADDRESS_P.
3307         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3308         to decide whether to define __arm__ or __thumb.
3309         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3310         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3311
3312 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3313
3314         * config/arc/arc.h (CPP_PREDEFINES): Remove.
3315         (CPP_SPEC): Update.
3316         (TARGET_CPU_CPP_BUILTINS): New.
3317
3318 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3319
3320         * cpphash.h (cpp_macro): Move here, and make expansion a union.
3321         * cppmacro.c (cpp_macro): Remove.
3322         (enter_macro_context, replace_args, warn_of_redefinition,
3323         _cpp_create_definition, cpp_macro_definition): Update.
3324
3325 2002-05-16  Jason Merrill  <jason@redhat.com>
3326
3327         * config/mips/mips.c (mips_output_external): Don't do sdata
3328         optimization for a variable with DECL_COMDAT set.
3329
3330 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3331
3332         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3333         Cleanups for accepting modifiers on pointers.
3334         Fix predicate typos.
3335         Allow long pointers as well as int pointers.
3336
3337 2002-05-15  Richard Henderson  <rth@redhat.com>
3338
3339         * varasm.c (merge_weak): Remove special case for extern and common.
3340
3341 2002-05-15  Matt Hiller  <hiller@redhat.com>
3342
3343         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3344         XFAILing.
3345         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3346         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3347         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3348         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3349         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3350         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3351
3352 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3353
3354         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3355
3356 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3357
3358         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3359         ("altivec_mfvscr"): Read from VSCR.
3360
3361         Add vscr sets for the following insns: altivec_vctuxs,
3362         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3363         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3364         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3365         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3366         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3367         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3368         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3369         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3370         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3371         altivec_vsum2sws, altivec_vsumsws.
3372
3373         * config/rs6000/rs6000.h: Add VSCR fixed register.
3374         (CALL_REALLY_USED_REGISTERS): Add vscr.
3375         (CALL_USED_REGISTERS): Same.
3376         (FIXED_REGISTERS): Same.
3377         (REG_ALLOC_ORDER): Same.
3378         (reg_class): Add VSCR_REGS.
3379         (REG_CLASS_NAMES): Same.
3380         (REG_CLASS_CONTENTS): Same.
3381         (VSCR_REGNO): New.
3382         (REGISTER_NAMES): Add vscr.
3383         (DEBUG_REGISTER_NAMES): Same.
3384         (ADDITIONAL_REGISTER_NAMES): Same.
3385         (FIRST_PSEUDO_REGISTER): Increment.
3386         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3387
3388 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
3389
3390         * fold-const.c (fold): Fix a typo.
3391
3392 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
3393
3394         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3395         comparison against the highest or lowest integer value before
3396         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3397         transformation and that of an unsigned comparison against 0
3398         right after.
3399
3400 2002-05-15  Richard Henderson  <rth@redhat.com>
3401
3402         * varasm.c (merge_weak): Error for any weakening after definition.
3403         Adjust weakening after use warning to catch more cases.
3404         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3405         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3406
3407 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
3408
3409         * invoke.texi (-malign-double): Re-add lost warning.
3410
3411         * i386-protos.h (x86_output_mi_thunk): Declare.
3412         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3413         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3414
3415         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3416         when flag_asynchronous_unwind_tables is set.
3417
3418         * flags.h (flag_reorder_functions): Declare.
3419         * function.c (prepare_function_start): Initialize frequnecy.
3420         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3421         * Makefile.in (predict.o): Add dependency on target.h and params.h
3422         * defaults.h (HOT_TEXT_SECTION_NAME,
3423         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3424         * predict.c (choose_function_section): New function.
3425         (estimate_bb_frequencies): Use it.
3426         * toplev.c (flag_reorder_functions): New global variable.
3427         (lang_independent_options): New.
3428         (parse_options_and_default_flags): Set.
3429         * varasm.c (assemble_start_function): Bypass functdion alignment
3430         for never executed functions.
3431         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3432         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3433         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3434         Document.
3435
3436         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3437
3438         * predict.c: Inlude profile.h
3439         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3440         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3441         Use the information about maximal counter in the program.
3442
3443         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3444
3445         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3446         probably_never_executed_bb_p): New functions.
3447         * cfgcleanup.c (outgoing_edges_match): Use them.
3448         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3449         (maybe_hot_bb_p, probably_cold_bb_p,
3450         probably_never_executed_bb_p): New functions.
3451
3452         * function.h (function): Add new field function_frequency.
3453         * predict.c (compute_function_frequency): New function.
3454         (estimate_probability): Call it.
3455
3456 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3457
3458         PR optimization/5172, optimization/5200
3459         * gcse.c (gcse_main): Disable store_motion.
3460
3461 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
3462
3463         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3464         (c_common_nodes_and_builtins): Use it.
3465         (builtin_define_with_value): New function.
3466         (cb_register_builtins): Define __SIZE_TYPE__,
3467         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3468         using builtin_define_with_value.  Use consistent notation when
3469         defining __GXX_WEAK__.
3470         (WCHAR_TYPE_SIZE): Don't redefine.
3471         (combine_strings): Don't use WCHAR_TYPE_SIZE.
3472
3473         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3474         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3475         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3476         * tradcpp.c (initialize_builtins): Likewise.
3477         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3478
3479         * c-lex.h (builtin_define_with_value): Prototype.
3480         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3481         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3482         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3483
3484         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3485         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3486         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3487         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3488         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3489         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3490         config/sparc/sol2-bi.h, config/sparc/sparc.h:
3491         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
3492         to __SIZE_TYPE__ etc from all spec strings. When this makes
3493         extra specs empty, delete them.
3494
3495 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3496
3497         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3498         for PA8000 or generating dwarf2 call frame information.
3499         (output_call): Remove DO_FRAME_NOTES check from return pointer
3500         optimization.
3501         (following_call): Return 0 when scheduling for PA8000 or generating
3502         dwarf2 call frame information.  Revise comment.
3503
3504 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3505
3506 config/alpha:
3507         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3508         and __IEEE_FP_INEXACT as appropriate.
3509         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3510         (CPP_SPEC): Remove ieee defines.
3511         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3512
3513 2002-05-14  Richard Henderson  <rth@redhat.com>
3514
3515         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3516         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3517
3518 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3519
3520         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3521         (CPP_SPEC): Update.
3522         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3523         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3524         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3525         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3526         (EXTRA_SPECS): Update.
3527         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3528         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3529         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3530         define TARGET_OS_CPP_BUILTINS if necessary.
3531
3532 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3533
3534         * gcc.c (cpp_options): Must pass -m* and -f* options
3535         to the front end even when only preprocessing.
3536         (cc1_options): Remove redundant -lang-c.
3537         * tradcpp.c (main): Ignore -m options.
3538 objc:
3539         * lang-specs.h: Similarly.
3540
3541 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3542
3543         * genautomata.c (transform_3): Add code for transformation
3544         `(A,B,...)+C -> A+C,B,...'.
3545
3546 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3547
3548         * final.c (end_final): Do not output profile_arcs constructor, when
3549         no functions are instrumented.
3550
3551 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3552
3553         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3554
3555 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3556
3557         * doc/install.texi: Remove special markup originally required for
3558         HTML generation with texi2html.
3559
3560 2002-05-14  Andreas Schwab  <schwab@suse.de>
3561
3562         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3563         SELECT_SECTION.
3564         (UNIQUE_SECTION): Define to get small data correctly.
3565
3566         * varasm.c (resolve_unique_section): Add third parameter
3567         flag_function_or_data_sections and use it instead of
3568         flag_function_sections.
3569         (assemble_start_function): Pass flag_function_sections.
3570         (asm_emit_uninitialised): Pass flag_data_sections.
3571         (assemble_variable): Likewise.
3572
3573 2002-05-14  Richard Henderson  <rth@redhat.com>
3574
3575         * config/i386/i386.md: Use define_constants for unspec numbers.
3576         * config/i386/i386.c: Likewise.
3577
3578 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3579
3580         * doc/contrib.texi: Update my entry.
3581
3582 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3583
3584         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3585         * fixinc/fixincl.x: Regenerated.
3586         * fixinc/tests/base/math.h: Update.
3587         * fixinc/tests/base/testing.h: Likewise.
3588
3589 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3590
3591         * genattr.c (gen_attr): Don't emit a comma after the last
3592         enumerator.
3593
3594 2002-05-13  Richard Henderson  <rth@redhat.com>
3595
3596         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3597         by non-local gotos.
3598         * recog.c (peephole2_optimize): Likewise.
3599
3600 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3601
3602         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3603         input to O_BINARY.
3604
3605 2002-05-13  Jeffrey A Law  (law@redhat.com)
3606
3607         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3608         Update prototype and callers.
3609         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3610         the mem_set_list which reference the stack pointer, as do
3611         calls to constant functions as they may clobber outgoing
3612         argument space.
3613
3614         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3615
3616         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3617         (ia32_multipass_dfa_lookahead): New function.
3618
3619 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3620
3621         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3622         (translate_options): Remove 'V'.
3623         (process_command): Similarly.
3624 doc:
3625         * invoke.texi: Remove documentation of 'V'.
3626
3627 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3628
3629         * config/s390/linux.h: Revert 2002-04-22 changes.
3630
3631 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3632
3633         * config/fr30/fr30.md: Only allow splits of immediate loads
3634         if the destination is a register.
3635
3636 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3637
3638         * Makefile.in (c-common.o, cppinit.o): Update.
3639         * c-common.c: Include except.h.
3640         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3641         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3642         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3643         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3644         CPP_PREDEFINES): Handle here.
3645 config:
3646         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3647         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3648         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3649         TARGET_OS_CPP_BUILTINS.
3650         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3651         (CPP_SPEC, EXTRA_SPECS): Update.
3652         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3653         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3654         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3655         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3656         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3657 doc:
3658         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3659         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3660
3661 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3662
3663         * emit-rtl.c (global_rtl): Update comment.
3664         (const_double_htab, const_double_htab_hash,
3665         const_double_htab_hash, lookup_const_double): New.
3666         (const_int_htab_hash, const_int_htab_eq): Remove const
3667         qualifiers, which cause tons of warnings with RTL checking on.
3668         (gen_rtx_CONST_DOUBLE): Deleted.
3669         (const_double_from_real_value): New function - bears some
3670         resemblance to the former immed_real_const_1.
3671         (immed_double_const): Moved here from varasm.c and
3672         simplified.
3673         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3674         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3675         (gen_rtx): Use immed_double_const.
3676         (init_emit_once): Initialize the const_double_htab.  Use
3677         REAL_VALUE_FROM_INT where possible.  Can now use
3678         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3679         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3680         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3681         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3682         (init_varasm_status, mark_varasm_status): Don't touch
3683         x_const_double_chain.
3684
3685         * output.h: Delete prototype for clear_const_double_mem.
3686         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3687         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3688         const_double_from_real_value, not immed_real_const_1, and use
3689         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3690         CONST_DOUBLE_ATOF.
3691         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3692         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3693         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3694         (gen_rtx_REG): Second arg is unsigned.
3695
3696         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3697         (excluded_rtx): New, return true for CONST_DOUBLE.
3698         (genmacro): Write nothing for excluded codes.
3699         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3700         * expr.c (expand_expr): Likewise.
3701         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3702         CONST_DOUBLE_CHAIN.
3703         * toplev.c (rest_of_compilation): Don't call
3704         clear_const_double_mem.
3705
3706         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3707         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3708         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3709         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3710         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3711         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3712         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3713         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3714
3715 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3716
3717         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3718
3719 2002-05-12  Tom Tromey  <tromey@redhat.com>
3720
3721         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3722
3723 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3724
3725         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3726         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3727         * gensupport.h: Prototype new routines.
3728         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3729         use of printf.
3730         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3731         (next_comma_elt): Use scan_comma_elt.
3732
3733         * config/i386/i386.md: Use new attribute notation to break up
3734         long lines in define_attr forms.
3735
3736 2002-05-12  Richard Henderson  <rth@redhat.com>
3737
3738         * expr.c (compress_float_constant): New.
3739         (emit_move_insn): Use it.
3740         (float_extend_from_mem): New.
3741         (init_expr_once): Initialize it.
3742         * real.c (exact_real_truncate): New.
3743
3744         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3745         dropped into memory; penalize for size.
3746         (RTX_COSTS): FLOAT_EXTEND is free.
3747         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3748         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3749
3750 2002-05-12  Richard Henderson  <rth@redhat.com>
3751
3752         * profile.h (profile_info): Add missing extern to declaration.
3753         * profile.c (profile_info): Define it.
3754
3755 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3756
3757         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3758         used for DImode and TImode.
3759
3760 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3761
3762         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3763         fake a newline.
3764
3765 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3766
3767         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3768         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3769         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3770         (rs6000_override_options): Handle -m(no-)longcall.
3771         (init_cumulative_args, output_mi_thunk): Check for both
3772         longcall and shortcall attributes on the function.
3773         (rs6000_attribute_table): Add "shortcall".
3774         (rs6000_handle_longcall_attribute): Update comment.
3775         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3776         altivec_expand_ternop_builtin): Add default clauses to switches
3777         to silence warnings.
3778
3779         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3780         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3781         (TARGET_OPTIONS): Add longcall and no-longcall.
3782
3783         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3784         call_value_nonlocal_sysv): Split by alternatives.  One pair
3785         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3786         the call cookie.  The other pair accepts only LR/CTR and has
3787         no restriction.
3788
3789         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3790         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3791         tmake_file.
3792         * config/rs6000/rs6000-c.c: New file.
3793         * config/rs6000/t-rs6000-c-rule: New file.
3794         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3795         Prototype rs6000_pragma_longcall.
3796
3797         * doc/extend.texi: Document shortcall attribute.
3798         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3799
3800 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3801
3802         * reorg.c (dbr_schedule): Remove unnecessary test.
3803
3804 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3805
3806         * i386.md (testsi to testqi spliters): New.
3807
3808         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3809
3810         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3811
3812         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3813
3814         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3815         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3816         that can be made fallthru.
3817
3818         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3819
3820         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3821         (cfg_layout_initialize): Use it.
3822
3823 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3824
3825         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3826         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3827         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3828
3829 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3830
3831         * dbxout.c: Fix formatting.
3832         * dependence.c: Likewise.
3833         * df.c: Likewise.
3834         * diagnostic.c: Likewise.
3835         * doloop.c: Likewise.
3836         * dominance.c: Likewise.
3837         * doschk.c: Likewise.
3838         * dwarf2asm.c: Likewise.
3839         * dwarf2out.c: Likewise.
3840         * dwarfout.c: Likewise.
3841
3842 2002-05-10  Richard Henderson  <rth@redhat.com>
3843
3844         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3845         Convert integers constants as needed.  Replace "nwords" field with
3846         "sizeof_bb".
3847         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3848         * function.h: Fix typo in comment.
3849         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3850
3851 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3852
3853         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3854         into the equivalent (signed char)c > 0.
3855
3856 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3857
3858         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3859         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3860         (struct prefetch_info): Fix spelling of member bytes_accessed.
3861         (emit_prefetch_instructions): Make dump messages more regular;
3862         restructure code to add more dump messages; use new macros for
3863         heuristics. (There are no code generation changes in any of this).
3864
3865 2002-05-10  David S. Miller  <davem@redhat.com>
3866
3867         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3868         (struct rtx_def): Update unchanging flag comment.
3869         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3870         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3871         to be handled to INSN too.
3872         (dbr_schedule): Likewise.
3873         * resource.c (next_insn_no_annul): Likewise.
3874
3875         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3876         casing.
3877
3878 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3879
3880         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3881         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3882         (possibly) work around broken /bin/sh.
3883
3884 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3885
3886         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3887         . as N64/N32 libgcc_s.so subdirs.
3888
3889 2002-05-10  David S. Miller  <davem@redhat.com>
3890
3891         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3892
3893         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3894         more accurately.
3895         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3896         comment.
3897         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3898         * doc/rtl.texi: Document these macros more accurately.
3899         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3900         JUMP_INSNs and CALL_INSNs.
3901         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3902         or INSN_FROM_TARGET_P if the code is appropriate.
3903
3904 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3905
3906         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3907         before using SYMBOL_REF_FLAG (addr).
3908
3909         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3910         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3911         Make non-static.  Update all callers.
3912         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3913         New insns to clear/set/test a single bit in I/O address space.
3914
3915 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3916
3917         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3918
3919 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3920
3921         * Makefile.in: Update.
3922         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3923         builtin_define_std): New.
3924         (c_common_init): Register CPP builtins callback.
3925         * c-common.h (flag_iso, flag_undef): New.
3926         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3927         * c-lex.c: Don't include target.h.
3928         (cb_register_builtins): Move to c-common.c.
3929         (init_c_lex): Don't register hook here.
3930         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3931         (cpp_define, cpp_assert): Remove.
3932         * gcc.c (cc1_options): Pass -undef to front end.
3933         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3934         (TARGET_INITIALIZER): Update.
3935         * target.h (struct cpp_reader): Don't predeclare.
3936         (struct gcc_target): Remove cpp builtin hook.
3937         * tree.c (default_register_cpp_builtins): Remove.
3938 doc:
3939         * tm.texi: Update.
3940
3941 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3942
3943         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3944
3945 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3946
3947         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3948         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3949
3950 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3951
3952         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3953         * config/sparc/libgcc-sparc-glibc.ver: New file.
3954         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3955         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3956
3957 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3958
3959         PR target/6429
3960         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3961         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3962         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3963         base multilibs.
3964         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3965         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3966         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3967         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3968
3969 2002-05-09  Richard Henderson  <rth@redhat.com>
3970
3971         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3972         * config/ia64/ia64.c: Likewise.
3973
3974 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3975
3976         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3977         (save_restore_insns): Likewise.
3978         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3979         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3980
3981 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3982
3983         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3984         * i386.md: Move scheduling information into new files.
3985
3986         * i386.md (type attribute): Add "rotate" for rotate insns.
3987         (rotate insns): Set type to "rotate".
3988         (various attributes and function units): Treat rotate like shift.
3989         (pent_pair attribute): Only rotates by one bit position are
3990         pairable.
3991         (sbb insns): Explicitly set pent_pair attribute on a couple
3992         that were missing it.
3993
3994 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3995
3996         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3997         make sure that buffer starts on odd word address.
3998         (sh_va_arg): Skip odd fp registers when reading a double precision
3999         value.
4000
4001 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
4002
4003         * tree.h (preserve_data, object_permanent_p, type_precision):
4004         Remove.
4005
4006 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
4007
4008         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
4009         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
4010 doc:
4011         * cpp.texi: Update for removal of obsolete features.
4012
4013 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
4014                           Jeffrey A Law  (law@redhat.com)
4015
4016         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
4017         the DFA interface for Pentium processors.
4018         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
4019         (attr_pent_pair, ix86_pent_find_pair): Remove.
4020         (ix86_sched_reorder_pentium): Remove.
4021         (ix86_sched_reorder): Remove reordering for Pentium.
4022         * i386.md (Pentium scheduling): Rewrite using DFA description.
4023
4024 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
4025
4026         * cfganal.c (can_fallthru): Fix fast path.
4027         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
4028         with edges to the next block.
4029
4030 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
4031                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
4032
4033         * final.c (end_final): Use C trees to output data structures for profiling.
4034
4035         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
4036         (profile.o): New dependency profile.h
4037         (final.o): New dependency profile.h
4038         * profile.h: New file. New global structure profile_info.
4039         * final.h (count_edges_instrumented_now): Declare.
4040         (current_function_cfg_checksum): Declare.
4041         (function_list): New structure.
4042         (functions_head, functions_tail): New static variables.
4043         (end_final): Emits more data, removed some -ax stuff.
4044         (final): Stores function names and chcksums.
4045         * gcov-io.h (__write_gcov_string): New function.
4046         (__read_gcov_string): New function.
4047         * gcov.c (read_profile): New function.
4048         (create_program_flow_graph): Uses read_profile instead of reading
4049         da_file.
4050         (read_files): Removed da_file checking, it's done by read_profile now.
4051         * libgcc2.c (bb_function_info): New structure.
4052         (bb): New field in structure, removed some -ax stuff.
4053         (__bb_exit_func): Changed structure of da_file.
4054         * profile.c (count_edges_instrumented_now): New global variable.
4055         (current_function_cfg_checksum): New global variable.
4056         (max_counter_in_program): New global variable.
4057         (get_exec_counts): New function.
4058         (compute_checksum): New function.
4059         (instrument_edges): Sets count_edges_instrumented_now.
4060         (compute_branch_probabilities): Uses get_exec_counts instead of
4061         reading da_file.
4062         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
4063         (init_branch_prob): Removed da_file checking, done in get_exec_counts
4064         now.
4065         (end_branch_prob): Removed da_file checking, done in get_exec_counts
4066         now.
4067         * gcov.texi: Updated information about gcov file format.
4068
4069 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
4070
4071         * sbitmap.c: Fix formatting.
4072         * scan.c: Likewise.
4073         * scan-decls.c: Likewise.
4074         * sched-deps.c: Likewise.
4075         * sched-ebb.c: Likewise.
4076         * sched-rgn.c: Likewise.
4077         * sched-vis.c: Likewise.
4078         * sdbout.c: Likewise.
4079         * sibcall.c: Likewise.
4080         * simplify-rtx.c: Likewise.
4081         * ssa.c: Likewise.
4082         * ssa-ccp.c: Likewise.
4083         * ssa-dce.c: Likewise.
4084         * stmt.c: Likewise.
4085         * stor-layout.c: Likewise.
4086         * stringpool.c: Likewise.
4087
4088 2002-05-09  David S. Miller  <davem@redhat.com>
4089
4090         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
4091
4092 2002-05-07  David S. Miller  <davem@redhat.com>
4093
4094         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
4095         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
4096         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
4097         library implementation clobbers the output before the inputs
4098         are fully consumed, use stack temporary for the output.
4099
4100 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
4101
4102         * config/netbsd.h (CPP_SPEC): Remove.
4103         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
4104         * config/i386/netbsd.h (CPP_SPEC): Define.
4105         * config/ns32k/netbsd.h (CPP_SPEC): Define.
4106         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
4107         * config/sparc/netbsd.h (CPP_SPEC): Define.
4108         * config/vax/netbsd.h (CPP_SPEC): Define.
4109
4110 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
4111
4112         * read-rtl.c: Fix formatting.
4113         * real.c: Likewise.
4114         * recog.c: Likewise.
4115         * regclass.c: Likewise.
4116         * regmove.c: Likewise.
4117         * reg-stack.c: Likewise.
4118         * reload1.c: Likewise.
4119         * reload.c: Likewise.
4120         * resource.c: Likewise.
4121         * rtlanal.c: Likewise.
4122         * rtl.c: Likewise.
4123         * rtl-error.c: Likewise.
4124
4125 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4126
4127         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
4128         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
4129
4130 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
4131
4132         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
4133         use __SSE2__ macro instead.
4134         * config/i386/xmmintrin.h: Likewise.
4135
4136 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
4137
4138         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
4139         and use it in all invocations of these macros.  Clean up comments.
4140         * rtl.c (rtl_check_failed_flag): Add an argument for the name
4141         of the flag access macro whose check failed.
4142         * doc/rtl.texi (Flags): Document additional flag uses.
4143
4144 2002-05-08  Robert Spier <rspier@pobox.com>
4145             Neil Booth  <neil@daikokuya.demon.co.uk>
4146
4147         PR preprocessor/6521
4148         * cppfiles.c (handle_missing_header): Don't do anything
4149         different for <> includes.
4150 doc:
4151         * cppopts.texi: Update documentation for -MG.
4152
4153 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4154
4155         * cpplex.c (cpp_interpret_charconst): Truncate as well as
4156         sign-extend.
4157 doc:
4158         * cpp.texi: Clarify multichar charconst valuation.
4159
4160 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4161
4162         * doc/invoke.texi: Document -mwindiss option.
4163
4164 2002-05-08  Jason Merrill  <jason@redhat.com>
4165
4166         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
4167
4168         * dwarf2out.c (gen_type_die): Abort on broken recursion.
4169
4170         PR c++/6381
4171         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
4172         REAL_CST.
4173
4174 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
4175
4176         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
4177         little-endian multilibs to override arm/thumb multilibs.
4178         Do not build hardware floating point multilibs, nor apcs-26
4179         multilibs for the Thumb.
4180
4181 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4182
4183         PR c/6569.
4184         * varasm.c (mark_weak): New function.
4185         (merge_weak): Use it.  Do not call declare_weak.
4186         (declare_weak): Use merge_weak.
4187
4188 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4189
4190         * cse.c (dead_libcall_p): Update counts.
4191         (delete_trivially_dead_insns): Update call of dead_libcall_p.
4192
4193 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
4194
4195         * cfglayout.c (function_tail_eff_head): Rename to ...
4196         (function_footer): ... this one.
4197         (unlink_insn_chain): New functions.
4198         (label_for_bb): Only call block_label and emit debug message.
4199         (record_effective_endpoints): Actually unlink the headers and footers.
4200         (fixup_reorder_cahin): Re-insert the unlinked sequences.
4201         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
4202         * cfglayout.h (struct reorder_block_def): New fields footer/header;
4203         remove eff_head/eff_end.
4204         * rtl.h (set_first_insn): Declare.
4205         * emit-rtl.c (set_first_insn): New function.
4206
4207         * cfglayout.c (fixup_reorder_chain): Dump duplicated
4208         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4209         cfg_layout_duplicate_bb): New global function.
4210         (duplicate_insn_chain): New static function.
4211         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4212         cfg_layout_duplicate_bb): Declare.
4213         (struct reorder_block_def): Add "original" field.
4214         * emit-rtl.c (emit_copy_of_insn_after): New function.
4215         * rtl.h (emit_copy_of_insn_after): Declare.
4216
4217         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
4218         (fixup_reorder_chain): properly handle edges to exit block.
4219
4220 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4221                                Jan Hubicka  <jh@suse.cz>
4222
4223         * basic-block.h (note_prediction_to_br_prob): declare.
4224         * c-semantics.c: Inlucde predit.h
4225         (expand_stmt): predict GOTO_STMT as not taken.
4226         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4227         (cleanup_cfg): Do not free tail_recursion_list.
4228         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4229         (flow_delete_block): Kill predictions past end of basic block.
4230         * output.h (delete_unreachable_blocks): Declare.
4231         * predict.c (predicted_by_p, process_note_predictions,
4232         process_note_prediction, last_block_p): New function.
4233         (estimate_probability): Bypass loop on PRED_CONTINUE;
4234         do not handle noreturn heuristics; kill PRED_RETURN; add
4235         PRED_EARLY_RETURN.
4236         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4237         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4238         * predict.h (IS_TAKEN): New constant.
4239         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4240         * rtl.c (NOTE_INSN_PREDICTION): New.
4241         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4242         New macro.
4243         (insn_note): add NOTE_INSN_PREDICTION.
4244         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4245         CFG; free tail_recursion_label_list.
4246         * stmt.c: Include predict.h;
4247         (return_prediction): New.
4248         (expand_value_return): Use it.
4249         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4250
4251 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
4252
4253         * config/mips/mips.md: Name the unspecs with define_constant.
4254         (*HILO_delay): Rename to 'hilo_delay' (no star).
4255         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4256         (reload_outdi, reload_outsi): Likewise.
4257
4258 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
4259
4260         * toplev.c: Fix formatting.
4261
4262 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
4263
4264         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4265         * configure.in (ac_rtlflag_checking): New.
4266         * doc/install.texi (--enable-checking): Document RTL flag checking.
4267
4268 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4269
4270         * c-common.c (c_common_init): Set options->unsigned_wchar.
4271         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4272         group target dependencies.
4273         (init_builtins, cpp_handle_option): Update.
4274         * cpplex.c (cpp_interpret_charconst): Update.
4275         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4276         signed_char to unsigned_char, group target dependencies.
4277         * defaults.h (WCHAR_UNSIGNED): Remove.
4278         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4279 config:
4280         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4281         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4282         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4283         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4284         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4285 doc:
4286         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4287
4288 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4289
4290         * fixinc/inclhack.def (windiss_math1): New fix.
4291         (windiss_math2): Likewise.
4292         (windiss_valist): Likewise.
4293         * fixinc/fixincl.x: Regenerated.
4294
4295 2002-05-07  Andreas Jaeger  <aj@suse.de>
4296
4297         * genautomata.c (output_internal_min_issue_delay_func): Add
4298         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4299         (output_internal_trans_func): Likewise.
4300
4301 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
4302
4303         * pa.c (hppa_profile_hook): Use force_reg to get the address
4304         of the profile hook into an appropriate pseudo register.
4305
4306 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4307
4308         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4309         (LINK_START_SPEC): Handle it.
4310         (LINK_OS_SPEC): Likewise.
4311         (CPP_SPEC): Likewise.
4312         (STARTFILE_SPEC): Likewise.
4313         (LIB_SPEC): Likewise.
4314         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
4315         all platforms.
4316         (CRTSAVRES_DEFAULT_SPEC): New macro.
4317         (LIB_WINDISS_SPEC): New macro.
4318         (CPP_OS_WINDISS_SPEC): Likewise.
4319         (STARTFILE_WINDISS_SPEC): Likewise.
4320         (ENDFILE_WINDISS_SPEC): Likewise.
4321         (LINK_START_WINDISS_SPEC): Likewise.
4322         (LINK_OS_WINDISS_SPEC): Likewise.
4323         * config/rs6000/windiss.h: New file.
4324
4325 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
4326
4327         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4328
4329 2002-05-06  David S. Miller  <davem@redhat.com>
4330
4331         * config/sparc/sparc.md (shift insns): Do not mask off
4332         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4333         take care of it.
4334
4335 2002-05-06  Richard Henderson  <rth@redhat.com>
4336
4337         PR c++/6212
4338         * expr.c (highest_pow2_factor_for_type): New.
4339         (expand_assignment): Use it.
4340
4341 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
4342
4343         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4344         unspec_volatile.
4345         ("altivec_mfvscr"): Same.
4346
4347 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4348
4349         * rtl.h (struct rtx_def): Update comments.
4350         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
4351         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
4352         RTL_FLAG_CHECK macros with list of expected RTL codes.
4353         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4354         (rtl_check_failed_flag): New.
4355         * reload1.c (reload): Use REG macro before changing rtx to MEM.
4356         (reload_cse_noop_set_p): Check rtx code before using access macro.
4357         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4358         before using access macro.
4359
4360 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4361
4362         * doc/rtl.texi (Flags): Update to reflect current usage.
4363
4364 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4365
4366         PR opt/3995
4367         * fold-const.c (sign_bit_p): New function.
4368         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4369         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4370         Reapply fold when converting (A & C) == C into (A & C) != 0.
4371         (fold_binary_op_with_conditional_arg): Fix typo in comment.
4372
4373 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4374
4375         * c-common.c (warn_multichar): New.
4376         (c_common_init): Set CPP's warn_multichar.
4377         * c-common.h (warn_multichar): New.
4378         * c-decl.c (warn_multichar): Remove.
4379         * c-lex.c (lex_charconst): Update.
4380         * c-tree.h (warn_multichar): Remove.
4381         * cppexp.c (eval_token): Sign-extend charconst value.
4382         * cppinit.c (cpp_create_reader): Set warn_multichar.
4383         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4384         each character.  Update prototype.  Sign-extend the result.
4385         * cpplib.h: Fix conditions.
4386         (struct cpp_options): Add new warning flag.
4387         (cpp_interpret_charconst): Update prototype.
4388 doc:
4389         * cpp.texi: Update documentation.
4390
4391 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
4392
4393         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4394         Fix typo in usage of allof instead of unit.
4395
4396 2002-05-06  Richard Henderson  <rth@redhat.com>
4397
4398         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4399         and any jump or call for IN.
4400
4401 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
4402
4403         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4404         -msse2.
4405         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4406
4407 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4408
4409         * fold-const.c (lshift-double): Cast the high word to an unsigned
4410         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4411         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4412         avoid compiler warning.  (fold): Remove redundant code from
4413         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4414
4415 2002-05-06  Jeff Law  <law@redhat.com>
4416
4417         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4418         * pa.c (pa_adjust_cost): Remove all true dependency cost
4419         adjustments.  Also remove support for non-DFA scheduling.
4420         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4421         to adjust true dependency costs.  Update various comments.
4422         (7100lc, 7200, 7300 scheduling): Simplify by combining the
4423         FP ALU & MPY units into a single unit.
4424
4425 2002-05-06  Catherine Moore  <clm@redhat.com>
4426
4427         * config/v850/v850.c (compute_register_save_size): Make sure
4428         to count all of the registers that will be saved.
4429
4430 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4431
4432         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4433
4434 2002-05-06  David S. Miller  <davem@redhat.com>
4435
4436         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4437         allow result to overlap input operands in memory.
4438
4439 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4440
4441 doc:
4442         * cpp.texi: Update multichar charconst docs.
4443
4444 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4445
4446         * cpplex.c (cpp_interpret_charconst): Sign-extend each
4447         character.  Don't ignore excess characters.  Treat
4448         multicharacter character constants as signed.
4449         (cpp_parse_escape): Clarify diagnostic.
4450
4451 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4452
4453         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4454         use add instead of shift.
4455         (ashldi3_sp64): Likewise.
4456         (ashlsi3_const1, ashldi3_const1): Remove.
4457         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4458         * config/sparc/sparc.c (const1_operand): New.
4459
4460 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
4461
4462         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4463
4464 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4465
4466         PR target/6561
4467         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4468
4469 2002-05-05  Richard Henderson  <rth@redhat.com>
4470
4471         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4472         memory latency adjustments.
4473         (alpha_variable_issue): Remove.
4474         (alpha_use_dfa_pipeline_interface): New.
4475         (alpha_multipass_dfa_lookahead): New.
4476         * config/alpha/alpha.md: Remove define_function_unit scheduling;
4477         include new dfa scheduling.
4478         (attr type): Add none.
4479         (blockage): Use it.
4480         * config/alpha/ev4.md: New.
4481         * config/alpha/ev5.md: New.
4482         * config/alpha/ev6.md: New.
4483
4484 2002-05-05  David S. Miller  <davem@redhat.com>
4485
4486         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4487
4488 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
4489
4490         * cse.c: Fix formatting.
4491         * emit-rtl.c: Likewise.
4492
4493 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4494
4495         * genautomata.c (initiate_states): Add additional guard to
4496         initialize `units_array'.
4497
4498 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4499
4500         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4501         process_unit_to_form_the_same_automaton_unit_lists,
4502         form_the_same_automaton_unit_lists
4503         check_unit_distributions_to_automata): New prototypes and
4504         functions.
4505         (check_automata): Rename it into `check_automata_insn_issues'.
4506         (unit_decl): New fields `the_same_automaton_unit' and
4507         `the_same_automaton_message_reported_p'.
4508         (unit_decl_t): New typedef.
4509         (the_same_automaton_lists): New gloval variable.
4510         (unit_regexp, unit_set_el, units_array, units_cmp,
4511         output_get_cpu_unit_code_func): Use the typedef.
4512         (evaluate_max_reserv_cycles): Increment
4513         `description->max_insn_reserv_cycles'.
4514         (initiate_states): Don't increment `max_cycles_num'.
4515         (transform_insn_regexps): Move code around transformation of
4516         regexps from `generate'.
4517         (generate): Remove call of `transform_insn_regexps'.
4518         (expand_automata): Call `transform_insn_regexps' and
4519         `check_unit_distributions_to_automata'.  Check errors before
4520         `generate'.
4521
4522         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4523         automaton `ultrasparc3_1'.
4524
4525 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4526
4527         * c-common.c (c_common_init): Set up CPP arithmetic.
4528         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4529         something reasonable for the host.
4530         (sanity_checks): Add checks.
4531         (cpp_read_main_file): Call sanity_checks() from here...
4532         (cpp_post_options): ... not here.
4533         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4534         * cpplib.h (struct cpp_options): New member int_precision.
4535
4536 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4537
4538         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4539
4540 2002-05-04  David S. Miller  <davem@redhat.com>
4541
4542         * config/sparc/linux.h, config/sparc/linux64.h
4543         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4544
4545         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4546         more RTX codes.
4547         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4548
4549         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4550         of SETs.
4551
4552 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4553
4554         * treelang; New directory for new sample language treelang.
4555
4556 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4557
4558         * Makefile.in (c-lex.o): Update.
4559         * c-lex.c: Include target.h.
4560         (cb_register_builtins): New.
4561         (init_c_lex): Set builtins callback.
4562         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4563         * cppinit.c (init_builtins): Use callback, including for
4564         GXX_WEAK.
4565         * cpplib.h (struct cpp_callbacks): New member.
4566         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4567         (TARGET_INITIALIZER): Update.
4568         * target.h (struct gcc_target): New hook.
4569         * tree.c (default_register_cpp_builtins): New.
4570         * tree.h (default_register_cpp_builtins): New.
4571 doc:
4572         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4573
4574 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4575
4576         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4577         (cpp_post_options): Move sanity checks to...
4578         (sanity_checks): New.
4579         * cpplex.c (maybe_read_ucs): Fix prototype.
4580         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4581         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4582         if necessary.
4583
4584 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4585
4586         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4587         builtins.  Use V2DI patterns instead of TI for logical operations.
4588         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4589         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4590         (ix86_expand_builtins): Change the pattern used for movntdq.
4591         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4592         sse2_nandv2di3): New patterns.
4593         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4594         on operands.
4595         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4596         (cvtdq2pd): Correct mode on operand 1.
4597         (sse2_umulsidi3): Describe without unspec.
4598         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4599         machine modes.
4600         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4601         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4602         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4603         ashlv4si3, ashlv2di3): Use SImode for shift count.
4604         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4605         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4606         New patterns.
4607         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4608         New typedefs.
4609         (__m128i, __m128d): New macros.
4610         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4611         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4612         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4613         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4614         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4615         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4616         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4617         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4618         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4619         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4620         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4621         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4622         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4623         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4624         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4625         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4626         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4627         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4628         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4629         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4630         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4631         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4632         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4633         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4634         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4635         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4636         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4637         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4638         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4639         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4640         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4641         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4642         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4643         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4644         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4645         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4646         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4647         functions.
4648         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4649         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4650
4651 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4652
4653         * dwarf2out.c: Fix formatting.
4654         * varasm.c: Likewise.
4655
4656 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4657
4658         PR c/6543
4659         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4660         clobber and use result as temporary value.
4661
4662 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4663
4664         * expr.c (force_operand): Use expand_simple_* to handle more
4665         cases.
4666
4667 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4668
4669         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4670         and sign-extension.
4671         (lex_charconst): Update for change in prototype of
4672         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4673         appropriately.
4674         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4675         * cppinit.c (cpp_create_reader): Initialize them for no
4676         change in semantics.
4677         (cpp_post_options): Add sanity checks.
4678         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4679         and truncation issues.  Calculate in type cppchar_t.
4680         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4681         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4682         run-time dependent precision correctly.  Return whether the
4683         result is signed or not.
4684         * cpplib.c (dequote_string): Use cppchar_t; update.
4685         * cpplib.h (cppchar_signed_t): New.
4686         struct cpp_options): New precision members.
4687         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4688         * cppexp.c (eval_token): Update.
4689
4690 2002-05-03  David S. Miller  <davem@redhat.com>
4691
4692         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4693         * config/sparc/sparc.c (sparc_rtx_costs): New function
4694         implementing RTX_COSTS and CONST_COSTS.
4695         * config/sparc/sparc.h (CONST_COSTS): Delete.
4696         (RTX_COSTS_CASES): Define.
4697         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4698         the work.
4699
4700         * config/sparc/sparc.md (DFA schedulers): Split out...
4701         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4702         config/sparc/sparclet.md, config/sparc/supersparc.md,
4703         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4704
4705         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4706         checks on it, always defined for Sparc.
4707
4708         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4709         Tweak, and add more detailed comments.
4710
4711 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4712
4713         * Re-apply patch accidentally reverted with
4714         DFA scheduler merge: remove all rules and variables to slurp
4715         source files out of libiberty and rebuild them with HOST_CC.
4716         ($(HOST_PREFIX_1)varray.o): New rule.
4717         (genattrtab rule): Word wrap.
4718
4719 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4720
4721         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4722         (CPP_SUBTARGET_SPEC): Define.
4723         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4724         cpp_subtarget specs.
4725         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4726
4727 2002-05-03  David S. Miller  <davem@redhat.com>
4728
4729         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4730         * target.h (struct gcc_target): Delete cycle_display member.
4731
4732         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4733         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4734         (ia64_sched_reorder2): Mention need for cycle display handling
4735         once such notes exist.
4736
4737 2002-05-03  Richard Henderson  <rth@redhat.com>
4738
4739         * real.c (etoasc): Strip most trailing zeros for clarity.
4740         * sched-vis.c: Include real.h.
4741         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4742         * Makefile.in (sched-vis.o): Add real.h.
4743
4744 2002-05-03  David S. Miller  <davem@redhat.com>
4745
4746         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4747         no longer needed.
4748
4749 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4750
4751         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4752         when we get an out of range literal.
4753         (altivec_expand_ternop_builtin): Same.
4754         (altivec_expand_unop_builtin): Same.
4755         (altivec_expand_builtin): Same, for dss.
4756         (altivec_expand_builtin): Use trees instead of rtl when
4757         determining literal argument validity.
4758
4759 2002-05-03  David S. Miller  <davem@redhat.com>
4760
4761         Delete cycle display scheduling hook.
4762         * config/ia64/ia64.c (ia64_cycle_display,
4763         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4764         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4765         and use emit_insn_before instead of ia64_emit_insn_before.
4766         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4767         (cycle_display): Delete insn pattern.
4768         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4769         (cycle_display): Delete insn pattern.
4770         * config/sparc/sparc.c (sparc_cycle_display,
4771         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4772         * doc/md.texi (cycle_display): Don't mention.
4773         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4774
4775 2002-05-03  Richard Henderson  <rth@redhat.com>
4776
4777         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4778         * recog.h: Declare them.
4779
4780         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4781         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4782         * config/sparc/sparc-protos.h: Update.
4783
4784 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4785
4786         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4787         -D__arch64__.  Add -D_LP64.
4788         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4789         from sparc.h.
4790         (CPP_ARCH64_SPEC): Likewise.
4791         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4792         (NO_BUILTIN_SIZE_TYPE): Undef.
4793
4794 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4795
4796         * genautomata.c (min_issue_delay_pass_states): Change return type
4797         in the prototype.
4798         (min_issue_delay_pass_states): Change the algorithm.
4799         (min_issue_delay): Set up min_insn_issue_delay for the state.
4800         (output_min_issue_delay_table): Interchange the nested loops and
4801         and initiate min_insn_issue_delay for states.
4802
4803 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4804
4805         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4806         jump is simplejump.
4807
4808 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4809
4810         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4811         sequence.
4812
4813 2002-05-03  Richard Henderson  <rth@redhat.com>
4814
4815         PR opt/6534
4816         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4817         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4818         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4819         code before JUMP, not EARLIEST.
4820
4821 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4822
4823         * c-format.c (check_format_info_main): Don't check for presence of
4824         parameter for * width until after operand number has been read,
4825         and only check for it if format parameters are available.
4826         Fixes PR c/6547.
4827
4828 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4829
4830         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4831         (LINK_SPEC): Undef before defining.
4832
4833 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4834
4835         PR preprocessor/6489
4836         * tradcpp.c (fixup_newlines): New.
4837         (main, finclude): Use it.
4838
4839 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4840
4841         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4842         * config/mips/mips.c (mips_unique_section): Strip encoding from
4843         decl name.
4844
4845 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4846
4847         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4848         mode.
4849
4850 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4851
4852         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4853         (Specific): Removed buildstats references.
4854         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4855         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4856         Accomodate Solaris versions beyond 8.
4857         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4858         (Specific, *-*-solaris2.8): Removed, obsolete.
4859
4860 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4861
4862         PR target/6542
4863         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4864         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4865         fill leaf_reg_remap with identity.
4866         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4867
4868 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4869
4870         * config/h8300/crti.asm: Remove trailing spaces.
4871         * config/h8300/h8300.c: Likewise.
4872         * config/h8300/lib1funcs.asm: Likewise.
4873
4874 2002-05-02  Jason Merrill  <jason@redhat.com>
4875
4876         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4877         * c-decl.c (c_init_decl_processing): Use it.
4878         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4879         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4880         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4881
4882 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4883
4884         * regrename.c: Fix formatting.
4885         * tree.c: Likewise.
4886
4887 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4888
4889         * i386.md (attribute memory): Handle compares properly.
4890
4891 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4892
4893         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4894         to none.
4895
4896 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4897
4898         * function.c: Fix formatting.
4899
4900 2002-05-02  Jan Hubicka  <jh@suse.cz>
4901
4902         * haifa-sched.c (schedule_insn): Print table of instructions and
4903         reservations.
4904         (sched_block): Do not print ready list at verbosity level 1.
4905         * sched-vis.c (print_insn): Make global.
4906         * sched-ebb.c (ebb_print_insn): Rename from...
4907         (print_insn): ... this one.
4908         * sched-int.h (print_insn): Declare
4909
4910 2002-05-02  Richard Henderson  <rth@redhat.com>
4911
4912         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4913         emitted by cycle_display.
4914
4915 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4916
4917         * doc/install.texi (*-*-freebsd*): Update to latest status.
4918
4919 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4920
4921         PR target/6540
4922         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4923         * config/float-sparc.h: Assume 128-bit long double if
4924         __LONG_DOUBLE_128__ is defined.
4925
4926 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4927
4928         * genattrtab.c (write_function_unit_info): Add a dummy element
4929         when num_units == 0.
4930
4931 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4932
4933         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4934         TYPE_MODE (double_type_node) instead of DFmode.
4935
4936 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4937
4938         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4939         jumps post reload.
4940         * toplev.c (rest_of_compilation): Revert Richard's patch.
4941
4942 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4943
4944         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4945
4946 2002-05-02  Catherine Moore  <clm@redhat.com>
4947
4948         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4949
4950 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4951
4952         * combine.c: Fix comment typos.
4953         * expr.c: Likewise.
4954         * genautomata.c: Likewise.
4955         * stmt.c: Likewise.
4956         * tree.h: Likewise.
4957
4958 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4959
4960         * doc/install.texi: State GNAT version requirements.
4961
4962 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4963
4964         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4965         of the frame pointer or arg pointer register which strict register
4966         checking is not enabled.
4967
4968 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4969
4970         * gcc.dg/altivec-8.c: New.
4971
4972         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4973         PRE_INC and PRE_DEC for altivec modes.
4974
4975 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4976
4977         * fixinc/check.tpl(set-writable): make sure the function exists first
4978         * fixinc/inclhack.def(alpha_assert): fix test_text
4979         * fixinc/tests/base/assert.h: add in missing result
4980
4981 2002-05-01  Jeff Law  <law@redhat.com>
4982
4983         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4984         'T' constraint.
4985
4986 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4987
4988         * dbxout.c (dbxout_type): Emit size information for range types,
4989         as well, but only when using GDB extensions.
4990
4991 2002-05-01  Richard Henderson  <rth@redhat.com>
4992
4993         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4994         target-independent gnu binutils date test.
4995
4996 2002-05-01  Richard Henderson  <rth@redhat.com>
4997
4998         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4999         info before expunging the block.
5000
5001 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
5002
5003         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
5004         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
5005         -M -or -MM is in effect.
5006
5007 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
5008
5009         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
5010         A29k configurations.
5011         * doc/install.texi: Update to match.
5012
5013 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5014
5015         PR bootstrap/6514
5016         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
5017         for duplicates. Always loop over whole list.
5018
5019 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5020
5021         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
5022
5023 2002-05-01      Joel Sherrill <joel@OARcorp.com>
5024
5025         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
5026         support routines.
5027
5028 2002-05-01      Joel Sherrill <joel@OARcorp.com>
5029
5030         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
5031
5032 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
5033
5034         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
5035         (nabs_nopower): Same.
5036         (floatdisf2): New pattern.
5037         (absdi2): Convert to define_insn_and_split.
5038         (nabsdi2): Same.
5039         (trunctfsf2): Same.
5040         (floatditf2): Same.
5041         (floatsitf2): Same.
5042         (fix_trunctfdi2): Same.
5043         (fix_trunctfsi2): Same.
5044
5045 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
5046
5047         * doc/install.texi: Update Texinfo version requirement
5048         documentation.
5049
5050 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
5051
5052         PR target/6512, PR target/5628
5053         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
5054         when memory is not aligned.
5055         (movdf_insn_v9only_vis): Likewise.
5056         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
5057         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
5058         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
5059
5060 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
5061
5062         * gcc.dg/altivec-7.c: New.
5063
5064         * config/rs6000/altivec.h: Cleanup.
5065
5066 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
5067
5068         * doc/invoke.texi (Option Summary): Add -mvrsave=.
5069         (RS/6000 and PowerPC Options): Document -mvrsave=.
5070
5071         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
5072         (rs6000_altivec_vrsave_string): Same.
5073         (rs6000_override_options): Call rs6000_parse_vrsave_option.
5074         (rs6000_parse_vrsave_option): New.
5075         (rs6000_stack_info): Only generate vrsave instructions when
5076         TARGET_ALTIVEC_VRSAVE.
5077
5078         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
5079         (rs6000_altivec_vrsave_string): Define extern.
5080         (rs6000_altivec_vrsave): Same.
5081         (TARGET_ALTIVEC_VRSAVE): New.
5082
5083 2002-04-30  Richard Henderson  <rth@redhat.com>
5084
5085         PR opt/6516
5086         * toplev.c (rest_of_compilation): Don't run cross-jump before
5087         bb-reorder.
5088
5089 2002-04-30  Tom Rix  <trix@redhat.com>
5090
5091         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
5092         check which_alternative.
5093
5094 2002-04-30  Kazu Hirata  <kazu@hxi.com>
5095
5096         * cpplex.c: Fix comment formatting.
5097         * function.c: Likewise.
5098         * integrate.c: Likewise.
5099         * regrename.c: Likewise.
5100         * sibcall.c: Likewise.
5101         * simplify-rtx.c: Likewise.
5102         * tree-inline.c: Likewise.
5103
5104 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5105
5106         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
5107         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
5108         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
5109         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
5110         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
5111         * pa/x-ada: New file.  Define ADA_CFLAGS.
5112
5113 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
5114
5115         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
5116         from MMIX_LAST_REGISTER_FILE_REGNUM.
5117         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
5118         (struct machine_function): New member highest_saved_stack_register
5119         previously static variable in mmix.c.
5120         (MACHINE_DEPENDENT_REORG): Define.
5121         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
5122         (MMIX_OUTPUT_REGNO): New.
5123         (mmix_target_asm_function_prologue): Move calculation of last used
5124         saved-stack-register into...
5125         (mmix_machine_dependent_reorg): New function.  Update to also handle
5126         !TARGET_ABI_GNU.
5127         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
5128         register names, simplify somewhat by new variable regno.
5129         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
5130         register.
5131         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
5132         emitting register names.
5133         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
5134         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
5135         Remove fixed FIXME.
5136         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
5137         Declare.
5138
5139         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
5140
5141 2002-04-30  Richard Henderson  <rth@redhat.com>
5142
5143         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5144         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
5145         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
5146         emit_tfmode_cvt): New.
5147         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
5148         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
5149         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
5150         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
5151         * config/sparc/sparc-protos.h: Update.
5152
5153 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
5154
5155         * install.texi (Final install): Add to the list of info to include
5156         in a report of a successful bootstrap, and add link to 3.1 list.
5157
5158 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
5159
5160         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
5161         (mode): Add vector modes
5162         (i387): Kill attribute.
5163         (unit): New attribute.
5164         (length_immediate): Grok new types.
5165         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
5166         (modrm): Use "unit".
5167         (memory): Handle MMX/SSE properly.
5168         (scheduling descriptions): Kill uses of fop1.
5169         (sse, mmx, fp patterns): Set type and mode properly.
5170
5171 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
5172
5173         * pa.c (override_options): Default to PA8000 scheduling.
5174         * doc/invoke.texi (HP-PA options): Mention newly added 7300
5175         scheduling parameter.
5176
5177         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
5178         handling of double precision multiplies.
5179
5180         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
5181         fpdiv and fpsqrt instructions.
5182         (7200 & 7300 scheduling): Fix typo in handling of
5183         store-load and store-store penalties.
5184
5185 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5186
5187         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
5188         mips.  Add two missing commas.
5189
5190 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
5191
5192         * doc/contrib.texi (Contributors): Update Paolo Carlini's
5193         and Benjamin Kosnik's entries.
5194
5195 2002-04-29  David S. Miller  <davem@redhat.com>
5196
5197         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
5198         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5199         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
5200         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5201
5202 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5203
5204         * combine.c (find_split_point): Use gen_int_mode.
5205
5206 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5207
5208         Merging code from dfa-branch:
5209
5210         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5211
5212         * genautomata.c (output_reserv_sets): Fix typo.
5213
5214         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
5215
5216         * genautomata.c (output_reserv_sets): Remove
5217         next_cycle_output_flag.
5218
5219         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
5220
5221         * sched-rgn.c (init_ready_list): Make the DFA code handle
5222         USE/CLOBBER insns in the same way as the traditional
5223         scheduler.
5224         (new_ready): Similarly..
5225
5226         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
5227
5228         * haifa-sched.c (schedule_block): Change the DFA state only after
5229         issuing insn.
5230
5231         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
5232
5233         * pa.c (hppa_use_dfa_pipeline_interface): New function.
5234         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5235         (override_options): Add PA7300 scheduling support.
5236         (pa_adjust_cost): Update various comments.  Properly
5237         handle anti and output dependencies when using the
5238         DFA scheduler.
5239         (pa_issue_rate): Add PA7300 scheduling support.
5240         (pa_can_combine_p): Call extract_insn before calling
5241         constrain_operands (taken from mainline tree).
5242         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5243         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
5244         descriptions using DFA descriptions.  Add PA7300
5245         scheduling support.
5246
5247         2002-03-30  David S. Miller  <davem@redhat.com>
5248
5249         Add UltraSPARC-III DFA scheduling support.
5250         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5251         Update FP conditional move on register insn patterns to use it, as
5252         appropriate.
5253         (define_attr cpu): Add ultrasparc3.
5254         (define_attr us3load_type): New, update integer load patterns to
5255         set it, as appropriate.
5256         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5257         (rest): Add UltraSPARC3 scheduling description.
5258         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5259         (PROCESSOR_ULTRASPARC3): New.
5260         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5261         ({ASM,CPP}_CPU_SPEC): Likewise.
5262         (REGISTER_MOVE_COST): Likewise.
5263         (RTX_COSTS): Likewise.
5264         * config/sparc/sparc.c (sparc_override_options,
5265         sparc_initialize_trampoline, sparc64_initialize_trampoline,
5266         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5267         sparc_issue_rate): Likewise.
5268         * config/sparc/sol2.h: Likewise.
5269         * config/sparc/sol2-sld-64.h: Likewise.
5270         * config/sparc/linux64.h: Likewise.
5271
5272         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
5273
5274         * doc/md.texi: Add comments about usage the latency time for the
5275         different dependencies and about case when two or more conditions
5276         in different define_insn_reservations returns TRUE for an insn.
5277
5278         * doc/md.texi: Add reference for automaton based pipeline
5279         description.
5280
5281         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
5282
5283         * doc/passes.texi: Add missed information about genattrtab.
5284
5285         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
5286
5287         * genautomata.c (output_automata_list_transition_code): Check
5288         automata_list on NULL.
5289
5290         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
5291
5292         * genautomata.c (output_insn_code_cases,
5293         output_automata_list_min_issue_delay_code,
5294         output_automata_list_transition_code,
5295         output_automata_list_state_alts_code): Comment the functions.
5296
5297         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
5298
5299         * genautomata.c (automata_list_el_t): New typedef.
5300         (get_free_automata_list_el,free_automata_list_el,
5301         free_automata_list, automata_list_hash, automata_list_eq_p,
5302         initiate_automata_lists, automata_list_start, automata_list_add,
5303         automata_list_finish, finish_automata_lists,
5304         output_insn_code_cases, output_automata_list_min_issue_delay_code,
5305         output_automata_list_transition_code,
5306         output_automata_list_state_alts_code, add_automaton_state,
5307         form_important_insn_automata_lists): New functions and prototypes.
5308         (insn_reserv_decl): Add members important_automata_list and
5309         processed_p.
5310         (ainsn): Add members important_p.
5311         (automata_list_el): New structure.
5312         (first_free_automata_list_el, current_automata_list,
5313         automata_list_table): New global variables.
5314         (create_ainsns): Initiate member important_p.
5315         (output_internal_min_issue_delay_func): Generate the switch and
5316         call output_insn_code_cases.
5317         (output_internal_trans_func, output_internal_state_alts_func):
5318         Ditto.
5319         (generate): Call initiate_automata_lists.
5320         (automaton_states): New global variable.
5321         (expand_automata): Call form_important_insn_automata_lists.
5322         (write_automata): Call finish_automata_lists.
5323
5324         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
5325
5326         * genautomata.c (add_excls, add_presence_absence): Check that
5327         cpu units in the sets belong the same automaton.
5328
5329         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5330         about that cpu units in the sets belong the same automaton.
5331
5332         * doc/md.texi: Ditto.
5333
5334         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
5335                     Nitin Gupta  <niting@noida.hcltech.com>
5336
5337         * config/sh/sh.c (sh_use_dfa_interface): New function.
5338
5339         (sh_issue_rate): New Function.
5340         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5341         TARGET_SCHED_ISSUE_RATE: define.
5342
5343         * config/sh/sh.md: Add DFA based pipeline description for SH4.
5344
5345         (define_attr insn_class): New attribute used for DFA
5346          scheduling.
5347         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5348         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5349          cmpeqdi_t): Likewise.
5350
5351         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5352          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5353          ex_group.
5354         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5355
5356         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5357
5358         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5359         break.
5360
5361         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5362
5363         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5364         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5365         necessary.
5366         (output_dfa_start_func): Initiate new variable insn_codes_length,
5367         (write_automata): Output definition of the new variable.
5368
5369         2001-10-02  David S. Miller  <davem@redhat.com>
5370
5371         * haifa-sched.c (advance_one_cycle): New function.
5372         (schedule_block): Use it.
5373         (queue_to_ready): Use it, and also make sure to advance the DFA
5374         state on all stall cycles, not just those where insn_queue links
5375         are found.
5376
5377         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
5378
5379         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
5380         non-zero if the highest-priority instruction could be scheduled.
5381         (choose_ready): Remove last argument from max_issue call.
5382
5383         2001-09-28  David S. Miller  <davem@redhat.com>
5384
5385         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5386         ultrasparc and 3 for other multi-issue sparcs.
5387
5388         2001-09-27  David S. Miller  <davem@redhat.com>
5389
5390         * config/sparc/sparc.md (cycle_display): New pattern.
5391         * config/sparc/sparc.c (sparc_cycle_display): New.
5392         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5393
5394         2001-09-25  David S. Miller  <davem@redhat.com>
5395
5396         Convert all of Sparc scheduling to DFA
5397         * config/sparc/sparc.md: Kill all define_function_unit
5398         directives and replace with DFA equivalent.
5399         * config/sparc/sparc.c (ultrasparc_adjust_cost,
5400         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5401         ultra_fpmode_conflict_exists, ultra_find_type,
5402         ultra_build_types_avail, ultra_flush_pipeline,
5403         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5404         ultrasparc_variable_issue, ultrasparc_sched_init,
5405         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5406         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5407         ultra_cur_hist, ultra_cycles_elapsed): Kill.
5408         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5409         ultrasparc_store_bypass_p): New.
5410         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5411         Declare.
5412
5413         2001-09-24  David S. Miller  <davem@redhat.com>
5414
5415         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5416         ready->vec[foo] not ready[foo].
5417
5418         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5419
5420         * doc/md.texi: Correct examples for define_insn_reservations
5421         `mult' and `div'.
5422
5423         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5424
5425         * genautomata.c (create_automata): Print message about creation of
5426         each automaton.
5427         (generate): Remove printing meease about creation of
5428         automata.
5429
5430         2001-09-05  David S. Miller  <davem@redhat.com>
5431
5432         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5433         * config/sparc/linux64.h: Likewise.
5434
5435         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
5436
5437         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5438         schedule_block, sched_init, sched_finish): Add missed calls of
5439         use_dfa_pipeline_interface.
5440
5441         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5442         Ditto.
5443
5444         * sched-vis.c (get_visual_tbl_length): Ditto.
5445
5446         2001-08-27  Richard Henderson  <rth@redhat.com>
5447
5448         * genattr.c (main): Emit state_t even when not doing scheduling.
5449
5450         2001-08-27  Richard Henderson  <rth@redhat.com>
5451
5452         * genautomata.c (expand_automata): Always create a description.
5453
5454         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5455
5456         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5457         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5458         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5459         RTL constructions.
5460
5461         * genattr.c (main): New variable num_insn_reservations.  Increase
5462         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5463         pipeline hazard recognizer interface.
5464
5465         * genattrtab.h: New file.
5466
5467         * genattrtab.c: Include genattrtab.h.
5468         (attr_printf, check_attr_test, make_internal_attr,
5469         make_numeric_value): Move protypes into genattrtab.h.  Define them
5470         as external.
5471         (num_dfa_decls): New global variable.
5472         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5473         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5474         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5475         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5476
5477         * genautomata.c: New file.
5478
5479         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5480
5481         * sched-int.h: (curr_state): Add the external definition for
5482         automaton pipeline interface.
5483         (haifa_insn_data): Add comments for members blockage and units.
5484
5485         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5486         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5487         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5488         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5489         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5490         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5491         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5492         macros.
5493         (TARGET_SCHED): Use the new macros.
5494
5495         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5496         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5497         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5498         dfa_bubble): New members in gcc_target.sched.
5499
5500         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5501         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5502         (insn_queue): Redefine it as pointer to array.
5503         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5504         INSN_QUEUE_SIZE.
5505         (max_insn_queue_index_macro_value): New variable.
5506         (curr_state, dfa_state_size, ready_try): New varaibles for
5507         automaton interface.
5508         (ready_element, ready_remove, max_issue): New function prototypes
5509         for automaton interface.
5510         (choose_ready): New function prototype.
5511         (insn_unit, blockage_range): Add comments.
5512         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5513         FUNCTION_UNITS_SIZE == 0.
5514         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5515         actual_hazard, potential_hazard): Add comments.
5516         (insn_cost): Use cost -1 as undefined value.  Remove
5517         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5518         pipeline interface.
5519         (ready_element, ready_remove): New functions for automaton
5520         interface.
5521         (schedule_insn): Add new code for automaton pipeline interface.
5522         (queue_to_ready): Add new code for automaton pipeline interface.
5523         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5524         (debug_ready_list): Print newline when the queue is empty.
5525         (max_issue): New function for automaton pipeline interface.
5526         (choose_ready): New function.
5527         (schedule_block): Add new code for automaton pipeline interface.
5528         Print ready list before scheduling each insn.
5529         (sched_init): Add new code for automaton pipeline interface.
5530         Initiate insn cost by -1.
5531         (sched_finish): Free the current automaton state and finalize
5532         automaton pipeline interface.
5533
5534         * sched-rgn.c: Include target.h.
5535         (init_ready_list, new_ready, debug_dependencies): Add new code for
5536         automaton pipeline interface.
5537
5538         * sched-vis.c: Include target.h.
5539         (get_visual_tbl_length): Add code for automaton interface.
5540         (target_units, print_block_visualization):  Add comments.
5541
5542         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5543         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5544         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5545         (getruntime.o, genautomata.o): New entries.
5546         (genattrtab.o): Add new dependency file genattrtab.h.
5547         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5548         (getruntime.o, hashtab.o): New entries for canadian cross.
5549
5550         * doc/md.texi: Description of automaton based model.
5551
5552         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5553         Add comments.
5554         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5555         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5556         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5557         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5558         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5559         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5560         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5561         hook descriptions.
5562         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5563         MAX_DFA_ISSUE_RATE): New macro descriptions.
5564
5565         * doc/contrib.texi: Add dfa based scheduler contribution.
5566
5567         * doc/gcc.texi: Add more information about genattrtab.
5568
5569 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5570
5571         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5572         adjust_address_nv call.
5573
5574 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5575
5576         * doc/install.texi (Testing): Provide additional information, and
5577         a stronger encouragement, for running the testsuites.
5578
5579 2002-04-29  DJ Delorie  <dj@redhat.com>
5580
5581         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5582         given in upper case.
5583
5584 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5585
5586         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5587         Solaris 2 <widec.h> if missing.
5588         * fixinc/fixincl.x: Regenerate.
5589         * fixinc/tests/base/widec.h: New file.
5590
5591 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5592
5593         * toplev.c (f_options): Add "profile" switch so that
5594         -fno-profile can be used to disable -p.
5595
5596 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5597
5598         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5599         UV2DImode.
5600         * tree.c (build_common_tree_nodes_2): Likewise.
5601         * tree.h (enum tree_index): Likewise.
5602         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5603
5604         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5605         entries.
5606         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5607         (ix86_expand_builtin): Add support for SSE2 builtins.
5608         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5609         (VALID_SSE_REG_MODE): Use it.
5610         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5611         (enum ix86_builtins): Add SSE2 builtins.
5612         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5613         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5614         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5615         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5616         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5617         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5618         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5619         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5620         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5621         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5622         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5623         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5624         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5625         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5626         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5627         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5628         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5629         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5630         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5631         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5632         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5633         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5634         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5635         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5636         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5637         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5638         lfence_insn): New patterns.
5639         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5640         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5641
5642 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5643
5644         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5645
5646 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5647
5648         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5649         Janis Johnson.
5650         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5651         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5652         and CPU instead of cpu.
5653
5654 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5655
5656         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5657         variables.
5658         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5659         (rest_of_compilation): Do if conversion only when asked for.
5660         (parse_options_and_default_flags): Set new variables to 1 for -O1
5661         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5662
5663 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5664
5665         * i386.c (dbx64_register_map): Fix typo.
5666
5667 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5668
5669         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5670         real_one_half, real_bb_freq_max): New static variables.
5671         (debug_profile_bbauxs): Kill.
5672         (process_note_predictions): Kill unused variable.
5673         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5674         volatile double.
5675         (propagate_freq): Use REAL_ARITHMETICS.
5676         (estimate_bb_frequencies): Likevise; init new static variables.
5677         * Makefile.in (predict.o): Add dependency on real.h
5678
5679 2002-04-28  David S. Miller  <davem@redhat.com>
5680
5681         PR target/6500
5682         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5683         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5684         several {reads,writes} instead.
5685         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5686         Define.
5687
5688 2002-04-27  David S. Miller  <davem@redhat.com>
5689
5690         PR target/6494
5691         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5692         of the stack bias.
5693
5694         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5695         including signal.h and sys/ucontext.h, not needed.
5696
5697 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5698
5699         * varasm.c (output_constant_def): Correct test for not calling
5700         ENCODE_SECTION_INFO for INTEGER_CST.
5701
5702 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5703
5704         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5705         keep most cases as function eval_token.
5706         (eval_token): New function.
5707         (_cpp_parse_expr): Read token here for improved diagnostics.
5708         Don't use op_as_text.  Detect bad ':' here.
5709         (reduce): Don't detect bad ':' here.
5710         (op_as_text): Remove.
5711         * cpphash.h (_cpp_test_assertion): Change prototype.
5712         * cpplib.c (_cpp_test_assertion): Change prototype.
5713
5714 2002-04-28  Richard Henderson  <rth@redhat.com>
5715
5716         PR c/5154
5717         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5718         (ggc_mark_rtx_children): New.
5719
5720 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5721
5722         PR target/6496
5723         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5724         after call peepholes for UltraSPARC.
5725         (call + jump 64-bit peepholes): Remove.
5726
5727 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5728
5729         PR c/6497
5730         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5731         result as temporary value.
5732
5733 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5734
5735         PR c++/6396
5736         * toplev.c (rest_of_compilation): Only run regrename and copy
5737         propagation if optimizing.
5738
5739 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5740
5741         PR optimization/6475
5742         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5743         register of REGNO_DECL (i).
5744         * Makefile.in (reload1.o): Add $(TREE_H).
5745
5746 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5747
5748         * cppexp.c (lex): Update to use state.skip_eval.
5749         (struct op): Remove prio and flags members.
5750         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5751         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5752         (LEFT_ASSOC): New macro.
5753         (optab): New table of operator priorities and flags.
5754         (SHIFT): Update.
5755         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5756         malloc-ed parser stack.
5757         (reduce): New; reduce the operator stack.
5758         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5759         * cpphash.h (struct op): Predeclare.
5760         (struct cpp_reader): New members op_stack, op_limit.
5761         (struct lexer_state): New member skip_eval.
5762         (_cpp_parse_expr): Update.
5763         (_cpp_expand_op_stack): New.
5764         * cpplib.c (do_if): Update.
5765         * cppinit.c (cpp_create_reader): Create op stack.
5766         (cpp_destroy): And destroy it.
5767         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5768         (TTYPE_TABLE): Correct.
5769
5770 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5771
5772         PR c/6343
5773         * c-decl.c (duplicate_decls): Call merge_weak.
5774         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5775         * output.h (merge_weak): Prototype merge_weak.
5776         * varasm.c (merge_weak): New function.
5777         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5778         Mark RTL with SYMBOL_REF_WEAK.
5779
5780 2002-04-27  Kurt Garloff <garloff@suse.de>
5781
5782         * tree-inline.c (inlinable_function_p): Improve heuristics
5783         by using a smoother function to cut down allowable inlinable size.
5784         * param.def: Add parameters max-inline-insns-single,
5785         max-inline-slope, min-inline-insns that determine the exact
5786         shape of the above function.
5787         * param.h: Likewise.
5788
5789 2002-04-26  Richard Henderson  <rth@redhat.com>
5790
5791         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5792         (yyoverflow): Re-add.  Set them.
5793         (free_parser_stacks): New.
5794         * c-common.h: Declare it.
5795         * c-lex.c (c_common_parse_file): Call it.
5796
5797 2002-04-26  Richard Henderson  <rth@redhat.com>
5798
5799         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5800         for fallthru search.
5801
5802 2002-04-26  Eric Christopher  <echristo@redhat.com>
5803
5804         PR optimization/3700
5805         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5806         (TARGET_SCHED_ISSUE_RATE): Use.
5807
5808 2002-04-25  David S. Miller  <davem@redhat.com>
5809
5810         PR target/6422
5811         * reorg.c (optimize_skip): Do not allow exception causing
5812         instructions to be considered for delay slots.
5813         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5814         (relax_delay_slots): Do not try to consider exception causing
5815         instructions as redundant.
5816
5817 2002-04-26  Richard Henderson  <rth@redhat.com>
5818
5819         PR c/5225
5820         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5821
5822 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5823
5824         PR bootstrap/6445
5825         * config/i386/i386.md (untyped_call): Return the value in a float
5826         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5827         TARGET_80387.
5828
5829 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5830
5831         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5832         in unsigned-ness correctly.
5833
5834 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5835
5836         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5837         portable runtime model.
5838
5839 2002-04-26  Richard Henderson  <rth@redhat.com>
5840
5841         * c-parse.in (yyoverflow): Revert.
5842
5843 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5844             Richard Henderson  <rth@redhat.com>
5845
5846         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5847         result as temporary value.
5848
5849 2002-04-26  Richard Henderson  <rth@redhat.com>
5850
5851         PR c/3581
5852         * c-common.c (fix_string_type): Split out of ...
5853         (combine_strings): ... here.  Take a varray, not a tree list.
5854         (c_expand_builtin_printf): Use fix_string_type.
5855         * c-common.h: Update decls.
5856         * c-parse.in (string): Remove.  Update all uses to use STRING
5857         instead, and not call combine_strings.
5858         (yylexstring): New.
5859         (_yylex): Use it.
5860         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5861         (build_asm_stmt): Likewise.
5862         * objc/objc-act.c (my_build_string): Use fix_string_type.
5863         (build_objc_string_object): Build varray for combine_strings.
5864
5865 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5866
5867         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5868         x86-64.
5869
5870 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5871
5872         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5873         (HAVE_NO_R_OPERAND): Remove.
5874         (HAVE_VALUE): Remove.
5875         (op_to_prio): Update.
5876         (UNARY): Don't alter flags.
5877         (_cpp_parse_expr): want_value used to indicate whether
5878         a number or unary operator is expected next.  Distinguish
5879         unary and binary +/-.
5880         (op_as_text): Update for unary operators.
5881
5882 2002-04-25  Richard Henderson  <rth@redhat.com>
5883
5884         PR c/2161
5885         * c-parse.in (yyoverflow): New.
5886
5887 2002-04-25  Richard Henderson  <rth@redhat.com>
5888
5889         PR c/2098
5890         * c-common.c (shorten_compare): Simplfy conditions leading to
5891         the generation of a warning.
5892
5893 2002-04-25  Richard Henderson  <rth@redhat.com>
5894
5895         PR c/2035
5896         * expmed.c (extract_bit_field): Fall through to generic code rather
5897         than aborting on subreg special case.
5898
5899 2002-04-25  David S. Miller  <davem@redhat.com>
5900
5901         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5902         for DECL being NULL.
5903
5904 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5905
5906         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5907
5908 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5909
5910         * c-decl.c (grokdeclarator): Remove outdated ??? note
5911         on invalid declaration of flexible array members.
5912
5913 2002-04-25  Richard Henderson  <rth@redhat.com>
5914
5915         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5916
5917 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5918
5919         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5920         needed by the compiler, even if they are used as global regs.
5921
5922 2002-04-25  Matt Hiller  <hiller@redhat.com>
5923
5924         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5925         functions.
5926         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5927         of the corresponding functions.
5928         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5929         New prototypes.
5930
5931 2002-04-25  Matt Hiller  <hiller@redhat.com>
5932
5933         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5934
5935         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5936         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5937         registers, adjust comment accordingly.
5938         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5939         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5940         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5941         for coprocessor registers.
5942         (ADDITIONAL_REGISTER_NAMES): Include
5943         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5944
5945         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5946         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5947         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5948         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5949         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5950
5951         (mips_char_to_class): Adjust comment to include coprocessor
5952         constraint letters.
5953
5954         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5955         New functions.
5956         (mips_reg_names, mips_regno_to_class): Include coprocessor
5957         information.
5958         (mips_sw_reg_names): Ditto, make non-static.
5959         (mips_move_1word): Handle moves to and from coprocessor registers.
5960         (mips_move_2words): Handle moves to and from coprocessor
5961         registers.
5962         (mips_class_max_nregs, mips_register_move_cost): Handle
5963         coprocessor register classes.
5964         (override_options): Initialize mips_char_to_class and
5965         mips_hard_regno_mode_ok properly for coprocessor registers.
5966
5967         * config/mips/mips.md (movdi_internal, movdi_internal2,
5968         movsi_internal1, movsi_internal2): Add constraint-sets for
5969         coprocessor registers.
5970         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5971         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5972         isn't mips.
5973         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5974         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5975         isn't mips.
5976         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5977         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5978         isn't mips.
5979         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5980         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5981         isn't mips.
5982
5983         * doc/tm.texi: Document feature.
5984
5985 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5986
5987         * integrate.c (function_attribute_inlinable_p): Simplify.
5988         Check the table pointer is not NULL.
5989
5990 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5991
5992         * doc/c-tree.texi: Fix typo in introduction.
5993
5994 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5995
5996         * c-common.h (c_common_parse_file): Update.
5997         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5998         * c-lex.c (YYDEBUG): Get from c-lex.h.
5999         (c_common_parse_file): Update.
6000         * c-lex.h (YYDEBUG, yydebug): New.
6001         * c-parse.in (YYDEBUG): Get from c-lex.h.
6002         (c_set_yydebug): Remove.
6003         * c-tree.h (c_set_yydebug): Remove.
6004         * langhooks-def.h (lhd_do_nothing_i): New.
6005         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
6006         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
6007         * langhooks.c  (lhd_do_nothing_i): New.
6008         (lhd_set_yydebug): Remove.
6009         * langhooks.h (struct lang_hooks): Update.
6010         * toplev.c (set_yydebug): New.
6011         (compile_file): Update call to parse_file hook.
6012         (decode_d_option): Update.
6013 objc:
6014         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
6015
6016 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
6017
6018         * loop.c (load_mems): Don't change the interface of called functions.
6019
6020         * calls.c (expand_call): Take current_function_pretend_args_size
6021         into account when setting argblock for sibcalls.
6022
6023 2002-04-24  Matt Hiller  <hiller@redhat.com>
6024
6025         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
6026         * c-lex.c: Ditto.
6027
6028         * cpplex.c (skip_line_comment): Process comment one multibyte
6029         character at a time rather than one char at a time, if
6030         appropriate.
6031         (parse_string): Process string one multibyte character at a time
6032         rather than one char at a time, if appropriate.
6033         * c-lex.c (lex_string): Lex and copy multibyte strings
6034         appropriately.
6035         * cpplib.h (cppchar_t): Change to unsigned.
6036
6037 2002-04-24  Richard Henderson  <rth@redhat.com>
6038
6039         PR c/3467
6040         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
6041         for c99.
6042
6043 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
6044
6045         * sh.c (sh_va_arg): If argument was passed by reference,
6046         dereference the pointer.
6047
6048         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6049
6050         * sh.md (divsi3_i4_media): Use match_operand for input values
6051         rather than hard registers.
6052         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
6053         unnecessarily through hard registers.  Keep copies of pseudo
6054         registers outside of the libcall sequence.
6055
6056         * sh.md (casesi_shift_media): Add modes.
6057
6058         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
6059         values in memory.
6060
6061 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6062
6063         * attribs.c (c_common_attribute_table): Move table and handlers
6064         to c-common.c.
6065         (format_attribute_table, lang_attribute_table,
6066         lang_attribute_common): Remove.
6067         (init_attributes): Replace NULL pointers with pointers to the
6068         empty table.
6069         (handle_packed_attribute, handle_nocommon_attribute,
6070         handle_common_attribute, handle_noreturn_attribute,
6071         handle_noinline_attribute, handle_always_inline_attribute,
6072         handle_used_attribute, handle_unused_attribute,
6073         handle_const_attribute, handle_transparent_union_attribute,
6074         handle_constructor_attribute, handle_destructor_attribute,
6075         handle_mode_attribute, handle_section_attribute,
6076         handle_aligned_attribute, handle_weak_attribute,
6077         handle_alias_attribute, handle_visibility_attribute,
6078         handle_no_instrument_function_attribute, handle_malloc_attribute,
6079         handle_no_limit_stack_attribute, handle_pure_attribute,
6080         handle_deprecated_attribute, handle_vector_size_attribute,
6081         vector_size_helper): Move to c-common.c.
6082         * c-common.c (c_common_attribute_table,
6083         handle_packed_attribute, handle_nocommon_attribute,
6084         handle_common_attribute, handle_noreturn_attribute,
6085         handle_noinline_attribute, handle_always_inline_attribute,
6086         handle_used_attribute, handle_unused_attribute,
6087         handle_const_attribute, handle_transparent_union_attribute,
6088         handle_constructor_attribute, handle_destructor_attribute,
6089         handle_mode_attribute, handle_section_attribute,
6090         handle_aligned_attribute, handle_weak_attribute,
6091         handle_alias_attribute, handle_visibility_attribute,
6092         handle_no_instrument_function_attribute, handle_malloc_attribute,
6093         handle_no_limit_stack_attribute, handle_pure_attribute,
6094         handle_deprecated_attribute, handle_vector_size_attribute,
6095         vector_size_helper): Move from attribs.c.
6096         * c-common.h (c_common_attribute_table,
6097         c_common_format_attribute_table): New.
6098         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6099         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6100         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
6101         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
6102         (LANG_HOOKS_INITIALIZER): Update.
6103         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
6104         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
6105         * target.h: Update comment.
6106         * tree.c (default_target_attribute_table): Remove.
6107         * tree.h (default_target_attribute_table, format_attribute_table,
6108         lang_attribute_table, lang_attribute_common): Remove.
6109 objc:
6110         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6111         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6112
6113 2002-04-24  Jason Merrill  <jason@redhat.com>
6114
6115         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
6116         * dwarf2out.c (dwarf_attr_name): Support it.
6117         (gen_array_type_die): Emit it.
6118         (lookup_type_die): No special handling for VECTOR_TYPE.
6119         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
6120
6121 2002-04-24  Richard Henderson  <rth@redhat.com>
6122
6123         * config/mips/mips.md (movdi_usd): Renumber.
6124
6125 2002-04-24  David S. Miller  <davem@redhat.com>
6126
6127         PR target/6420
6128         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
6129         32-bit Sparc and current_function_returns_struct is true.
6130
6131 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6132
6133         * loop.c (canonicalize_condition): Use gen_int_mode.
6134
6135 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
6136
6137         * config/rs6000/altivec.h: Cleanup file.  Add non individual
6138         variants.
6139         (vec_vaddubm): New.
6140         (vec_vadduhm): New.
6141         (vec_vadduwm): New.
6142         (vec_vaddfp): New.
6143         (vec_vaddcuw): New.
6144         (vec_vaddubs): New.
6145         (vec_vaddsbs): New.
6146         (vec_vadduhs): New.
6147         (vec_vadduws): New.
6148         (vec_vaddsws): New.
6149         (vec_vand): New.
6150         (vec_vandc): New.
6151         (vec_vavgub): New.
6152         (vec_vavgsb): New.
6153         (vec_vavguh): New.
6154         (vec_vavgsh): New.
6155         (vec_vavguw): New.
6156         (vec_vavgsw): New.
6157         (vec_vrfip): New.
6158         (vec_vcmpbfp): New.
6159         (vec_vcmpequb): New.
6160         (vec_vcmpequh): New.
6161         (vec_vcmpequw): New.
6162         (vec_vcmpeqfp): New.
6163         (vec_vcmpgefp): New.
6164         (vec_vcmpgtub): New.
6165         (vec_vcmpgtsb): New.
6166         (vec_vcmpgtuh): New.
6167         (vec_vcmpgtsh): New.
6168         (vec_vcmpgtuw): New.
6169         (vec_vcmpgtsw): New.
6170         (vec_vcmpgtfp): New.
6171         (vec_vcmpgefp): New.
6172         (vec_vcfux): New.
6173         (vec_vcfsx): New.
6174         (vec_vctsxs): New.
6175         (vec_vctuxs): New.
6176         (vec_vexptefp): New.
6177         (vec_vrfim): New.
6178         (vec_lvx): New.
6179         (vec_lvebx): New.
6180         (vec_lvehx): New.
6181         (vec_lde): Add vector float variant.
6182         (vec_lvewx): New.
6183         (vec_lvxl): New.
6184         (vec_vlogefp): New.
6185         (vec_vmaddfp): New.
6186         (vec_vmhaddshs): New.
6187         (vec_vmaxub): New.
6188         (vec_vmaxsb): New.
6189         (vec_vmaxuh): New.
6190         (vec_vmaxsh): New.
6191         (vec_vmaxuw): New.
6192         (vec_vmaxsw): New.
6193         (vec_vmaxsw): New.
6194         (vec_vmaxfp): New.
6195         (vec_vmrghb): New.
6196         (vec_vmrghh): New.
6197         (vec_vmrghw): New.
6198         (vec_vmrglb): New.
6199         (vec_vmrglh): New.
6200         (vec_vmrglw): New.
6201         (vec_vminub): New.
6202         (vec_vminsb): New.
6203         (vec_vminuh): New.
6204         (vec_vminsh): New.
6205         (vec_vminuw): New.
6206         (vec_vminsw): New.
6207         (vec_vminfp): New.
6208         (vec_vmladduhm): New.
6209         (vec_vmhraddshs): New.
6210         (vec_msumubm): New.
6211         (vec_vmsummbm): New.
6212         (vec_vmsumuhm): New.
6213         (vec_vmsumshm): New.
6214         (vec_vmsumuhs): New.
6215         (vec_vmsumshs): New.
6216         (vec_vmuleub): New.
6217         (vec_vmulesb): New.
6218         (vec_vmuleuh): New.
6219         (vec_vmulesh): New.
6220         (vec_vmuloub): New.
6221         (vec_mulosb): New.
6222         (vec_vmulouh): New.
6223         (vec_vmulosh): New.
6224         (vec_vnmsubfp): New.
6225         (vec_vnor): New.
6226         (vec_vor): New.
6227         (vec_vpkuhum): New.
6228         (vec_vpkuwum): New.
6229         (vec_vpkpx): New.
6230         (vec_vpkuhus): New.
6231         (vec_vpkshss): New.
6232         (vec_vpkuwus): New.
6233         (vec_vpkswss): New.
6234         (vec_vpkshus): New.
6235         (vec_vpkswus): New.
6236         (vec_vperm): New.
6237         (vec_vrefp): New.
6238         (vec_vrlb): New.
6239         (vec_vrlh): New.
6240         (vec_vrlw): New.
6241         (vec_vrfin): New.
6242         (vec_vrsqrtefp): New.
6243         (vec_vsel): New.
6244         (vec_vslb): New.
6245         (vec_vslh): New.
6246         (vec_vslw): New.
6247         (vec_vsldoi): New.
6248         (vec_vsl): New.
6249         (vec_vslo): New.
6250         (vec_vspltb): New.
6251         (vec_vsplth): New.
6252         (vec_vspltw): New.
6253         (vec_vspltisb): New.
6254         (vec_vspltish): New.
6255         (vec_vspltisw): New.
6256         (vec_vsrb): New.
6257         (vec_vsrh): New.
6258         (vec_vsrw): New.
6259         (vec_vsrab): New.
6260         (vec_vsrah): New.
6261         (vec_vsraw): New.
6262         (vec_vsr): New.
6263         (vec_vsro): New.
6264         (vec_stvx): New.
6265         (vec_stvebx): New.
6266         (vec_stvehx): New.
6267         (vec_stvewx): New.
6268         (vec_stvxl): New.
6269         (vec_vsububm): New.
6270         (vec_vsubuhm): New.
6271         (vec_vsubuwm): New.
6272         (vec_vsubfp): New.
6273         (vec_vsubcuw): New.
6274         (vec_vsububs): New.
6275         (vec_vsubsbs): New.
6276         (vec_vsubuhs): New.
6277         (vec_vsubshs): New.
6278         (vec_vsubuws): New.
6279         (vec_vsubsws): New.
6280         (vec_vsum4ubs): New.
6281         (vec_vsum4sbs): New.
6282         (vec_vsum4shs): New.
6283         (vec_vsum2sws): New.
6284         (vec_vsumsws): New.
6285         (vec_vrfiz): New.
6286         (vec_vupkhsb): New.
6287         (vec_vupkhpx): New.
6288         (vec_vupkhsh): New.
6289         (vec_vupklsb): New.
6290         (vec_vupklpx): New.
6291         (vec_vupklsh): New.
6292         (vec_vxor): New.
6293
6294 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
6295
6296         PR c/5430
6297         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6298         added literals from substracted literals.
6299         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6300         (fold) [associate]: Preserve MINUS_EXPR if needed.
6301
6302 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
6303
6304         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6305         are obsoleted.
6306
6307 2002-04-23  Tom Tromey  <tromey@redhat.com>
6308
6309         * gcc.c: Added --resource.  For PR java/6314.
6310
6311 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6312
6313         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6314         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6315         these libraries.
6316
6317 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6318
6319         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6320
6321 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6322
6323         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6324         workaround.
6325         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6326         (ix86_expand_clrstr): Fix typo.
6327         * loop.c (gen_load_of_final_value): New.
6328         (loop_givs_rescan, strength_reduce, check_dbra_loop):
6329         Use it.
6330
6331 2002-04-23  Roger Sayle  <roger@eyesopen.com>
6332
6333         * builtins.c (builtin_memset_gen_str): New function.
6334         (expand_builtin_memset): Optimize the case of constant length, but
6335         unknown value.
6336
6337 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
6338
6339         * config/rs6000/altivec.h (vec_step): Remove extraneous
6340         parentheses.
6341         (vec_ctu): Cast return.
6342
6343 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
6344
6345         PR target/6413
6346         * function.h: (struct function): Add profile_label_no field.
6347         (current_function_profile_label_no): Define.
6348         * function.c: (profile_label_no): New static var.
6349         (expand_function_start): Increment it, and copy to
6350         current_function_profile_label_no.
6351         * output.h (profile_label_no): Delete.
6352         * final.c (profile_label_no): Delete.
6353         (profile_function): Use current_function_profile_label_no.
6354         (final_end_function): Don't increment profile_label_no here.
6355         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6356         profile_label_no with current_function_profile_label_no.
6357         * config/pa/pa.c (current_function_number): Delete.
6358         (pa_output_function_prologue): Don't output profile label here.
6359         (hppa_profile_hook): Use label_no param rather than
6360         current_function_number.
6361         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6362         * config/pa/pa.h: .. here.
6363         (FUNCTION_PROFILER): Output profile label here.
6364
6365 2002-04-22  Eric Christopher  <echristo@redhat.com>
6366
6367         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6368         patch of 2002-04-09 due to binutils issues.
6369         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6370
6371 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6372
6373         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6374         constraint to 'o' for m=r and r=m alternatives.
6375         ("*movv8hi_internal1"): Same.
6376         ("*movv16qi_internal1"): Same.
6377         ("*movv4sf_internal1"): Same.
6378
6379 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
6380
6381         * rtl.h (RTX_FLAG): New macro.
6382         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6383         * final.c (alter_subreg): Use macro to access rtx flag.
6384         * integrate.c (copy_rtx_and_substitute): Use new access macro.
6385         * print-rtl.c (print_rtx): Use new access macro.
6386
6387         * cse.c (insert): Check rtx code before accessing flag.
6388
6389         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6390         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6391         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6392         convert_const_symbol_ref, make_canonical, make_alternative_compare,
6393         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6394         simplify_test_exp, optimize_attrs, simplify_by_exploding,
6395         find_and_mark_used_attributes, unmark_used_attributes,
6396         add_values_to_cover, simplify_with_current_value,
6397         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6398         copy_rtx_unchanging, main): Use new access macros.
6399
6400 2002-04-22  Tom Rix  <trix@redhat.com>
6401
6402         * expmed.c (init_expmed): Generate shifted constant once.
6403
6404 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
6405
6406         * c-lex.c (lex_charconst): Call convert to get constant in
6407         proper type; don't just smash the type field.
6408         Fixes PR c/6300.
6409
6410         * config.gcc: Add list of obsolete configurations.  Disallow
6411         building these without --enable-obsolete.
6412         * doc/install.texi: Document --enable-obsolete and obsoletion
6413         policy.  Mention obsoletion of individual targets in
6414         appropriate places.
6415
6416 2002-04-22  Richard Henderson  <rth@redhat.com>
6417
6418         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6419
6420 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
6421
6422         PR f/6138.
6423         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6424         (walk_fixup_memory_subreg): Likewise.
6425         (fixup_var_refs_insn): Adjust accordingly.
6426         (fixup_var_refs_1): Likewise.
6427
6428 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
6429
6430         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6431         LIBPATH_ARCH64_SPEC): Define.
6432         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6433         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6434         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6435         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6436
6437 2002-04-22      Joel Sherrill <joel@OARcorp.com>
6438
6439         * gthr-rtems.h: Correct prototypes to remove warnings.
6440
6441 2002-04-22  Richard Henderson  <rth@redhat.com>
6442
6443         PR c/6344
6444         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6445
6446         * gcse.c (free_insn_expr_list_list): New.
6447         (clear_modify_mem_tables): Use it.  Fix bit set usage.
6448         (canon_list_insert): Use EXPR_LISTs for expressions.
6449         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6450
6451 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6452
6453         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
6454         file change and include code to _cpp_pop_buffer.
6455         * cpphash.h (struct pending_option): Predeclare.
6456         (struct cpp_reader): New member next_include_file.
6457         (_cpp_pop_file_buffer): Update.
6458         (_cpp_push_next_buffer): Update, rename.
6459         * cppinit.c (cpp_destroy): Free include chain and pending here.
6460         (cpp_finish_options): Simplify.
6461         (_cpp_push_next_buffer): Rename and clean up.
6462         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6463         Clarify.
6464         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6465
6466 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6467
6468         * config/rs6000/altivec.h (vec_xor): Add variant for both args
6469         being vector signed int.
6470         (vec_andc): Same.
6471         (vec_xor): Add variant for both args being vector signed char.
6472         Remove redundant variant.
6473         (vec_andc): Same.
6474
6475 2002-04-21  David S. Miller  <davem@redhat.com>
6476
6477         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6478         compare mode in output RTL.
6479
6480 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
6481
6482         * config/rs6000/rs6000.c (rs6000_override_options): Correct
6483         style and formatting of previous patch.
6484
6485 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
6486
6487         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6488         flag_pic for ABI_AIX.
6489
6490 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6491
6492         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6493         * cppfiles.c (read_include_file): Similarly.
6494         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6495         uxstrdup ustrchr, ufputs): Similarly.
6496         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6497         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6498         cpp_ideq, parse_identifier, parse_number): Similarly.
6499         * cpplib.c (struct directive, dequote_string, D, run_directive,
6500         cpp_push_buffer): Similarly.
6501         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6502         _cpp_create_definition, check_trad_stringification,
6503         cpp_macro_definition): Similarly.
6504
6505 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6506
6507         * cppmacro.c (funlike_invocation_p): Don't step back
6508         over CPP_EOF.
6509
6510 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
6511
6512         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6513         labelno.
6514
6515 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6516
6517         * doc/invoke.texi: Remove Chill references.
6518         * doc/gcc.texi: Update last modified date.
6519
6520 2002-04-20  Kazu Hirata  <kazu@hxi.com>
6521
6522         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6523         push and pop.  Replace add.l with add.w.
6524
6525 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6526
6527         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6528         multiply instructions for H8/300H case.
6529
6530 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6531
6532         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6533         Bum three instructions from each routine.
6534
6535 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6536
6537         * Makefile.in: Update.
6538         * decl.c (push_c_function_context, pop_c_function_context,
6539         mark_c_function_context): Rename for consistency.
6540         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6541         * c-tree.h (push_c_function_context, pop_c_function_context,
6542         mark_c_function_context): Rename for consistency.
6543         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6544         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6545         * function.c (init_lang_status, save_lang_status,
6546         restore_lang_status, mark_lang_status, free_lang_status):
6547         Move to langhooks.h.
6548         (push_function_context_to, pop_function_context_from,
6549         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6550         Update.
6551         * function.h (init_lang_status, save_lang_status,
6552         restore_lang_status, mark_lang_status, free_lang_status):
6553         Move to langhooks.h.
6554         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6555         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6556         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6557         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6558         (LANG_HOOKS_INITIALIZER): Update.
6559         (lhd_do_nothing_f): New.
6560         * langhooks.h (struct lang_hooks_for_functions): New.
6561         (struct lang_hooks): New hooks.
6562         * langhooks.c (lhd_do_nothing_f): New.
6563 objc:
6564         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6565         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6566
6567 2002-04-19  David S. Miller  <davem@redhat.com>
6568
6569         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6570         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6571
6572 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6573
6574         PR optimization/3756
6575         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6576         x = ((int) y < 0) ? cst1 : cst2.
6577
6578 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6579
6580         PR c/6358
6581         * function.c: Reapply patch for c/6358.
6582         (expand_function_end): Copy decl_rtl's mode, not
6583         current_function_return_rtx mode.
6584
6585 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6586
6587         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6588         targets.
6589
6590 2002-04-19  Tom Tromey  <tromey@redhat.com>
6591
6592         * doc/install.texi (Specific): Update status of Solaris 2.8.
6593         For PR libgcj/6158.
6594
6595 2002-04-19  Andreas Schwab  <schwab@suse.de>
6596
6597         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6598         (PUT_REAL): Restore old definition.
6599
6600 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6601             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6602
6603         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6604         binutils 2.11.2 and higher generate smaller binaries than Sun's
6605         native tools.
6606
6607 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6608
6609         PR c++/6352
6610         * toplev.c (rest_of_compilation): Do not defer functions for which
6611         TREE_SYMBOL_REFERENCED has already been set.
6612
6613 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6614
6615         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6616         alternative.
6617
6618 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6619
6620         * builtins.c: Include langhooks.h.
6621         (lang_type_promotes_to): Remove.
6622         (expand_builtin_va_arg): Use new hook.
6623         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6624         (simple_type_promotes_to): Move to c-typeck.c.
6625         * c-common.h (simple_type_promotes_to): Remove.
6626         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6627         * c-format.c: Include langhooks.h.
6628         (check_format_types): Update.
6629         * c-tree.h (c_type_promotes_to): New.
6630         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6631         (type_lists_compatible_p): Update.
6632         * langhooks-def.h (lhd_type_promotes_to): New.
6633         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6634         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6635         * langhooks.c (lhd_type_promotes_to): New.
6636         * langhooks.h (struct lang_hooks_for_types): New hook.
6637         * tree.h (lang_type_promotes_to): Remove.
6638 objc:
6639         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6640
6641 2002-04-18  Richard Henderson  <rth@redhat.com>
6642
6643         * function.c: Revert patch for c/6358.
6644
6645 2002-04-18  Richard Henderson  <rth@redhat.com>
6646
6647         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6648         blocks.  Handle multiple references to the TRAP block.  Handle
6649         non-adjacent THEN and OTHER blocks.
6650
6651 2002-04-18  Richard Henderson  <rth@redhat.com>
6652
6653         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6654         crash with no type for by-mode libcalls.
6655
6656         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6657
6658 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6659
6660         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6661         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6662         the register windows.
6663
6664 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6665
6666         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6667         appropriate.  Document need for extended precision even when
6668         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6669         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6670         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6671         instead of relying on later syntax error when REAL_WIDTH > 5.
6672         * real.c: Define NE based only on whether or not we have a
6673         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6674         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6675         define GET_REAL and PUT_REAL as simple memcpy operations; no
6676         need to byteswap or round.
6677         Use #error instead of #ifdef-ing out the entire file, for
6678         prompt error detection.
6679
6680         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6681
6682 2002-04-18  David S. Miller  <davem@redhat.com>
6683
6684         * config/sparc/sparc.h (BRANCH_COST): Define.
6685
6686         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6687         does it.
6688
6689 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6690
6691         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6692         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6693         propagate_block calls after relaxation loop using new variable
6694         stabilized_prop_flags.
6695
6696 2002-04-18  Richard Henderson  <rth@redhat.com>
6697
6698         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6699         (ia64_va_arg): Expect variable sized types by reference.
6700         * config/ia64/ia64-protos.h: Update.
6701         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6702         ia64_function_arg_pass_by_reference.
6703
6704 2002-04-18  Richard Henderson  <rth@redhat.com>
6705
6706         * ifcvt.c: Include except.h.
6707         (block_has_only_trap): Break out from find_cond_trap.
6708         (find_cond_trap): Use it.  Always delete the trap block.
6709         (merge_if_block): Allow then block null.  Be less simplistic about
6710         what insns can end a block.
6711         * Makefile.in (ifcvt.o): Depend on except.h.
6712
6713         * config/ia64/ia64.md (trap, conditional_trap): New.
6714
6715 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6716
6717         PR c/6358
6718         * function.c (assign_parms): Assign hard current_function_return_rtx
6719         register here...
6720         (expand_function_end): ...not here.
6721
6722 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6723
6724         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6725         * c-tree.h (c_incomplete_type_error): New.
6726         * c-typeck.c (require_complete_type, build_component_ref): Update.
6727         (incomplete_type_error): Rename.
6728         * langhooks-def.h (lhd_incomplete_type_error): New.
6729         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6730         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6731         * langhooks.c (lhd_incomplete_type_error): New.
6732         * langhooks.h (struct lang_hooks_for_types): New hook.
6733         * tree.c (size_in_bytes): Use new hook.
6734         * tree.h (incomplete_type_error): Remove.
6735 objc:
6736         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6737
6738 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6739
6740         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6741         TARGET_FLOAT_FORMAT blocks.
6742
6743 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6744
6745         * doc/install.texi (Downloading the source): Do not mention Chill
6746         any longer, but mention Ada.
6747         (Configuration): Do not mention Chill any longer.
6748
6749 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6750
6751         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6752
6753 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6754
6755         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6756         in last patch.
6757
6758 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6759
6760         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6761         instead of unsigned_type.
6762
6763 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6764
6765         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6766         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6767         later.
6768
6769 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6770
6771         * attribs.c (vector_type_node_list): New static variable.
6772         (handle_vector_size_attribute): Use it to avoid generating a
6773         new type node each time we are called.
6774
6775         * combine.c (subst): Avoid trying to make a vector mode subreg of
6776         an integer constant.
6777         (gen_lowpart_for_combine): Likewise.
6778
6779 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6780             Jakub Jelinek  <jakub@redhat.com>
6781
6782         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6783         for integer constant c (if x has unsigned type or sign bit is not
6784         set in c).  This folds the zero/sign extension into the bit-wise and
6785         operation.
6786
6787 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6788
6789         PR middle-end/6205
6790         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6791         otherwise xorps.
6792
6793 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6794
6795         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6796
6797 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6798
6799         * gcc.c (read_specs): Detect and fail if an attempt is made to
6800         rename a spec string to an already existing string.
6801
6802 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6803
6804         * config/s390/s390.c (legitimize_pic_address): Do not generate
6805         illegal address constant without CONST.
6806
6807 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6808
6809         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6810         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6811
6812 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6813
6814         PR optimization/6305
6815         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6816         to make sure previous reloads are taken into account.  Generate
6817         better code if one operand is an in-range immediate constant.
6818
6819 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6820
6821         * doc/install.texi (Building): libgcj requires GNU make.
6822
6823 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6824
6825         PR bootstrap/6315
6826         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6827         even if hard quad and register is not floating.
6828         (movtf reg<-mem split): Disallow splitting if hard quad and
6829         register is floating.
6830         (movtf mem<-reg split): Likewise.
6831         * config/sparc/sparc.c (fp_register_operand): New predicate.
6832         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6833
6834 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6835
6836         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6837         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6838         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6839         UNPROTOIZE on command line.
6840         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6841         (in_system_include_dir): Use cpp_include_defaults (defined in
6842         cppdefault.o).
6843         * unprotoize.c: Delete file.
6844
6845 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6846
6847         * config/rs6000/altivec.h (vec_ld): Add array variants.
6848         (vec_lde): Same.
6849         (vec_ldl): Same.
6850
6851 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6852             Aldy Hernandez <aldyh@redhat.com>
6853
6854         * config/rs6000/altivec.h: Define __ALTIVEC__.
6855         (bool): New.
6856         (__pixel): New.
6857         (pixel): New.
6858         (vec_cfux): New.
6859         (vec_vmaddfp): New.
6860         (vec_vsldoi): New.
6861         Add parentheses to all macro arguments.
6862
6863 2002-04-16  Richard Henderson  <rth@redhat.com>
6864
6865         PR c++/6320
6866         * except.c (remove_eh_handler): Insert inner regions at beginning
6867         of sibling chain.  Refactor expressions.
6868
6869 2002-04-16  Richard Henderson  <rth@redhat.com>
6870
6871         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6872         * config/sparc/sol2-gas-bi.h: New file.
6873         * config.gcc (sparc*-solaris): Add it as needed.
6874         * configure.in (AS_SPARC64_FLAG): Remove check.
6875         * config.in, configure: Regenerate.
6876
6877         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6878
6879 2002-04-16  Richard Henderson  <rth@redhat.com>
6880
6881         * config/mips/mips.c (override_options): Don't override N32 for
6882         a 64-bit ISA.
6883
6884         PR 6202
6885         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6886         (HILO_delay): Set can_delay false.
6887
6888 2002-04-16  Dale Johannesen <dalej@apple.com>
6889
6890         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6891         instruction addresses.
6892         (rs6000_output_function_epilogue): Likewise.
6893
6894 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6895
6896         * c-parse.in (poplevel, compstmt_start,
6897         compstmt_primary_start): Add ending ';', in accordance
6898         with POSIX.
6899
6900 2002-04-16  Richard Henderson  <rth@redhat.com>
6901
6902         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6903         Adjust tm_file order to get TARGET_DEFAULT set properly.
6904         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6905         * doc/install.texi (sparc-solaris): Update.
6906
6907 2002-04-16  Dale Johannesen <dalej@apple.com>
6908
6909         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6910         comparison operands do not match each other or if modes of
6911         conditions do not match result.
6912
6913 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6914
6915         PR target/6305
6916         * config/s390/s390.md (mulsidi3): Set both subregs of the
6917         multiword register.
6918
6919 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6920
6921         * config/rs6000/altivec.h (vec_addc): Type check.
6922
6923 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6924
6925         PR middle-end/6279
6926         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6927
6928         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6929
6930 2002-04-15  Richard Henderson  <rth@redhat.com>
6931
6932         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6933         call_really_used_regs too.
6934
6935 2002-04-15  Richard Henderson  <rth@redhat.com>
6936
6937         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6938
6939 2002-04-15  David S. Miller  <davem@redhat.com>
6940
6941         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6942         as being CLOBBERed.
6943
6944 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6945
6946         PR c/6290
6947         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6948         CONST_VECTOR is { 0, ... 0 }.
6949
6950 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6951
6952         * doc/install.texi (Installing GCC: Configuration): Clarify
6953         the only supported ways to configure gcc.
6954
6955 2002-04-15  Roland McGrath  <roland@frob.com>
6956
6957         * config.gcc (alpha*-*-gnu*): New target configuration.
6958         * config/alpha/gnu.h: New file for it.
6959         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6960
6961 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6962
6963         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6964         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6965         * tree.h (expand_start_stmt_expr): Update prototype.
6966         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6967         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6968         on the STMT_EXPR created for the inline function.
6969
6970 2002-04-15  Richard Henderson  <rth@redhat.com>
6971
6972         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6973         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6974         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6975         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6976         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6977         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6978         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6979         Define __gnu_linux__, not gnu_linux.
6980         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6981
6982 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6983
6984         Remove Chill front end.
6985         * gcc.c (default_compilers): Remove Chill entries.
6986         * ch: Remove directory.
6987         * doc/frontends.texi: Remove information about Chill.
6988         * doc/sourcebuild.texi: Likewise.
6989         * doc/standards.texi: Likewise.
6990
6991 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6992
6993         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6994         (LONGLONG_STANDALONE): Define.
6995
6996 2002-04-15  David S. Miller  <davem@redhat.com>
6997
6998         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6999         Call emit_library_call with LCT_NORMAL.
7000         (sparc_initialize_trampoline): Use LCT_foo instead of
7001         magic constant in emit_library_call invocations.
7002         (sparc64_initialize_trampoline): Likewise.
7003         (sparc_profile_hook): Likewise.
7004         * config/sparc/sparc.md: Likewise.
7005
7006         * config/sparc/sparc.c (sparc_extra_constraint_check):
7007         Fix type of argument 'c'.
7008         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
7009         Likewise.
7010
7011 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
7012
7013         * diagnostic.h (output_buffer_state): Redefine.
7014         (output_format_decoder): New macro.
7015         (output_prefixing_rule): Likewise.
7016         (output_line_cutoff): Likewise.
7017         (diagnostic_format_decoder): Adjust.
7018         (diagnostic_prefixing_rule): Likewise.
7019         (diagnostic_line_cutoff): Likewise.
7020         (diagnostic_state): Likewise.
7021         (diagnostic_kind_count): Likewise.
7022         (diagnostic_buffer): Now a macro.
7023
7024         * diagnostic.c (diagnostic_buffer): Remove definition.
7025         (output_is_line_wrapping): Adjust.
7026         (set_real_maximum_length): Likewise.
7027         (output_set_maximum_length): Likewise.
7028         (init_output_buffer): Likewise.
7029         (lhd_print_error_function): Likewise.
7030         (output_do_verbatim): Likewise.
7031
7032 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7033
7034         * cpperror.c (print_location): Don't print include chain
7035         if line == 0.
7036         (cpp_begin_message): Update to use DL_ macros.
7037         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7038         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7039         cpp_notice, cpp_notice_from_errno): Remove.
7040         (cpp_error, cpp_error_with_line): Update to take a diagnostic
7041         level.
7042         (cpp_errno): New.
7043         * cppexp.c (CPP_ICE): Remove.
7044         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
7045         lex, integer_overflow, _cpp_parse_expr): Update.
7046         * cppfiles.c (read_include_file, find_include_file,
7047         handle_missing_header, _cpp_read_file, remap_filename): Update.
7048         * cpphash.h (enum error_type): Remove.
7049         (_cpp_begin_message): Update.
7050         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
7051         cpp_handle_option, cpp_post_options): Update.
7052         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
7053         skip_whitespace, parse_identifier, parse_slow, parse_string,
7054         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
7055         cpp_interpret_charconst): Update.
7056         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
7057         lex_macro_node, do_undef, glue_header_name, parse_include,
7058         do_include_common, read_flag, do_line, do_linemarker, do_ident,
7059         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
7060         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
7061         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
7062         _cpp_pop_buffer, do_diagnostic): Update.
7063         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
7064         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
7065         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7066         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7067         cpp_notice, cpp_notice_from_errno): Remove.
7068         (cpp_error, cpp_error_with_line): Update to take a diagnostic
7069         level.
7070         (cpp_errno): New.
7071         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
7072         collect_args, enter_macro_context, save_parameter, parse_params,
7073         _cpp_create_definition, check_trad_stringification,
7074         cpp_macro_definition): Update.
7075         * cppmain.c (cpp_preprocess_file): Update.
7076         * fix-header.c (read_scan_file): Update.
7077
7078 2002-04-14  Andreas Schwab  <schwab@suse.de>
7079
7080         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
7081
7082 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7083
7084         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
7085
7086 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
7087
7088         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
7089         not gnu_hurd.
7090
7091 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
7092
7093         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
7094
7095 2002-04-13      Joel Sherrill <joel@OARcorp.com>
7096
7097         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
7098         sparc-elf and sparc-rtems targets.
7099
7100 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
7101
7102         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
7103         defined, and __gnu_hurd__ wherever __GNU__ is defined.
7104         * arm/linux-elf.h: Likewise.
7105         * cris/aout.h: Likewise.
7106         * cris/linux.h: Likewise.
7107         * i370/linux.h: Likewise.
7108         * i386/gnu.h: Likewise.
7109         * i386/linux-aout.h: Likewise.
7110         * i386/linux-oldld.h: Likewise.
7111         * i386/linux.h: Likewise.
7112         * i386/linux64.h: Likewise.
7113         * ia64/linux.h: Likewise.
7114         * m68k/linux-aout.h: Likewise.
7115         * m68k/linux.h: Likewise.
7116         * mips/linux.h: Likewise.
7117         * pa/pa-linux.h: Likewise.
7118         * pj/linux.h: Likewise.
7119         * rs6000/sysv4.h: Likewise.
7120         * s390/linux.h: Likewise.
7121         * sh/linux.h: Likewise.
7122         * sparc/linux-aout.h: Likewise.
7123         * sparc/linux.h: Likewise.
7124         * sparc/linux64.h: Likewise.
7125         * xtensa/linux.h: Likewise.
7126
7127 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
7128
7129         * stmt.c (check_unique_operand_names): Expect operand names to
7130         be strings rather than identifiers.  Use simple_cst_equal to
7131         compare them.
7132         (resolve_operand_name_1): Make same identifier to string change here.
7133         * c-parse.in (asm_operand): Convert a named operand into a string.
7134         * cp/parse.y (asm_operand): Likewise.
7135
7136 2002-04-13  Andreas Schwab  <schwab@suse.de>
7137
7138         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
7139
7140 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
7141
7142         Revert these changes:
7143
7144         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7145
7146         PR c++/5571
7147         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7148
7149 2002-04-12  Richard Henderson  <rth@redhat.com>
7150
7151         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
7152         (sparc*-*-solaris): Clean up header files.
7153         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
7154         and plan on generating 64-bit code.
7155         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
7156         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
7157         * config/sparc/sol2-sld-64.h: Rename ...
7158         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
7159         for AS_SPARC64_FLAG not defined.
7160         * config/sparc/sol2-gld-bi.h: New.
7161         * config/sparc/sol2-sld.h: Remove.
7162         * config/sparc/sol26-sld.h: New.
7163         * config/sparc/sol2.h: Tidy comments.
7164         * doc/install.texi: Document sparc-solaris configury changes.
7165
7166 2002-04-12  Richard Henderson  <rth@redhat.com>
7167
7168         * recog.c (offsettable_address_p): Match the logic in adjust_address.
7169
7170         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
7171         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
7172
7173 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7174
7175         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
7176
7177 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
7178
7179         * pa.c (pa_can_combine_p): Call extract_insn before calling
7180         constrain_operands.
7181
7182 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
7183
7184         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
7185         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
7186         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7187         (CPP_PREDEFINES): Handle __declspec.
7188         * config/i386/t-interix (USER_H): Remove.
7189
7190 2002-04-12  DJ Delorie  <dj@redhat.com>
7191
7192         * integrate.c (compare_blocks): Make comparisons safe for when
7193         sizeof(int) < sizeof(char *).
7194         (find_block): Likewise.
7195
7196 2002-04-12  Jan Hubicka  <jh@suse.cz>
7197             David Edelsohn  <edelsohn@gnu.org>
7198
7199         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
7200         registers.
7201         (symbol_ref_operand): New.
7202         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
7203         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
7204
7205 2002-04-12  Andreas Schwab  <schwab@suse.de>
7206
7207         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
7208         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
7209         overrides the definition in config/svr4.h.
7210
7211 2002-04-12      Eric Norum <eric.norum@usask.ca>
7212
7213         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
7214         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
7215         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
7216         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
7217         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
7218         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
7219         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
7220         definitions to config/rtems.h and make the targets more similar.
7221
7222 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7223
7224         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7225         POINTERS_EXTEND_UNSIGNED.
7226         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7227         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7228
7229         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7230         not specified.
7231
7232 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
7233
7234         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7235         depends on TARGET_SHMEDIA, not TARGET_SH5.
7236
7237 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
7238
7239         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7240         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7241
7242 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
7243
7244         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7245         no r0 clobber.
7246
7247 2002-04-12  Andreas Schwab  <schwab@suse.de>
7248
7249         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7250
7251 2002-04-12  Richard Henderson  <rth@redhat.com>
7252
7253         PR bootstrap/4191
7254         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7255
7256         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7257         modes spanning multiple hard regs.
7258
7259         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7260
7261 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7262
7263         * pa.c (pa_output_function_prologue): Don't accumulate the total
7264         number of code bytes when using TARGET_64BIT, or gas, SOM and not
7265         the portable runtime.
7266         (output_deferred_plabels): Handle 64bit plabels.
7267         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7268         generating pic code using the GAS assembler for object formats that
7269         are not SOM (ie., ELF32 and ELF64).
7270         (output_millicode_call): Check attribute type if attribute length is 28.
7271         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
7272         dbr_sequence_length once.
7273         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7274         dbr_sequence_length once.
7275         * pa.h (TARGET_SOM): Define if not defined.
7276         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7277         with GAS and not SOM.
7278         (jump, call_internal_reg, call_value_internal_reg): Likewise.
7279         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
7280
7281 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7282
7283         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7284         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7285         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7286         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7287         elfos.h and dbxelf.h values are fine now.
7288         * config/i386/freebsd.h, config/alpha/freebsd.h
7289         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7290
7291 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7292
7293         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7294         or set Acpu or Amachine.  Reformat.
7295         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7296         define.
7297         (LINK_SPEC): Do not need to undef.
7298         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7299         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7300         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7301         define.
7302         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7303         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7304         (LINK_SPEC): Do not need to undef.
7305         (DONT_USE_BUILTIN_SETJMP): Do not define.
7306         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7307         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
7308         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7309         Remove trailing spaces.
7310         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7311         __ELF__, or set Acpu or Amachine.  Reformat.
7312         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7313         define.
7314
7315 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7316
7317         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7318         all other *-*-freebsd* targets.
7319
7320 2002-04-11  Richard Henderson  <rth@redhat.com>
7321
7322         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7323
7324 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7325
7326         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7327         Include {cpu}/{cpu}.h thru tm_file.
7328         (alpha*-*-linux*ecoff): Remove target.
7329         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7330         (LINK_SPEC): Remove, is not OS independent.
7331         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7332         (LINK_SPEC): Do not need to #undef any longer.
7333         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7334         any longer.
7335         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7336         __ELF__.
7337         (LINK_SPEC): Moved here from alpha/elf.h.
7338         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7339         SUB_CPP_PREDEFINES.
7340         * config/alpha/linux-ecoff.h: Remove.
7341         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7342         (CPP_SPEC): Define _POSIX_SOURCE as needed.
7343         (CPP_SUBTARGET_SPEC): Do not define.
7344         (LINK_SPEC): Do not need to #undef any longer.
7345         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7346         * config/alpha/vms.h: Likewise.
7347
7348 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
7349
7350         * doc/extend.texi: Remove old claim that typedefs cannot have
7351         an alignment attribute.
7352
7353 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7354
7355         PR optimization/6177
7356         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7357         bitpos is 0 and bitsize CONCAT size.
7358
7359 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7360
7361         PR c/6223
7362         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7363
7364 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
7365
7366         * config/alpha/freebsd.h: Minor reformatting.
7367         (CPP_SPEC): Define ELF and add cpp_subtarget.
7368         (ASM_SPEC): No longer needed.
7369
7370 2002-04-11  Richard Henderson  <rth@redhat.com>
7371
7372         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7373         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
7374         (dimode mem/zero splitter): New.
7375
7376 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
7377
7378         * config/cris/cris.c (cris_override_options): Tweak error message
7379         for PIC not implemented.
7380
7381         * config/cris/cris.h: Tweak comments related to parameter-passing.
7382
7383         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7384
7385 2002-04-10  Richard Henderson  <rth@redhat.com>
7386
7387         * except.c (add_ehl_entry): Allow duplicates after landing pad
7388         creation.
7389
7390 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
7391
7392         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7393
7394 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
7395
7396         * c-decl.c (c_init_decl_processing): Move generation of
7397         decls for g77_integer_type_node and friends from here ...
7398         * c-common.c (c_common_nodes_and_builtins): ... to here.
7399
7400 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
7401
7402         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7403         is only used as frame pointer when frame_pointer_needed is true.
7404
7405 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
7406
7407         PR target/817
7408         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7409         for the fact that the pool entry uses two words.
7410         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
7411         1k bytes.
7412         (movdf_soft_insn): Similarly.
7413         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7414         for the fact that the pool entry uses three words.
7415
7416 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
7417
7418         * config/mips/mips.c (mips_va_arg): When using the struct version
7419         of the EABI va_list, allow arguments in the register save area to
7420         take up less room than a stack argument.
7421
7422 2002-04-10  Richard Henderson  <rth@redhat.com>
7423
7424         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7425         if EXPAND_INITIALIZER.
7426
7427 2002-04-09  Richard Henderson  <rth@redhat.com>
7428
7429         * config/alpha/alpha.md (movdi_er_maybe_g): New.
7430         * config/alpha/alpha.c (alpha_expand_mov): Use it.
7431
7432 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
7433
7434         PR optimization/6233
7435         * rtlanal.c (pure_call_p): New function.
7436         * rtl.h (pure_call_p): Declare.
7437         * loop.c (prescan_loop): Use it to set has_nonconst_call.
7438         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7439
7440 2002-04-09  Eric Christopher  <echristo@redhat.com>
7441
7442         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7443         information to .comm directive.
7444
7445 2002-04-09  Richard Henderson  <rth@redhat.com>
7446
7447         PR c/5078
7448         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7449
7450 2002-04-09  Richard Henderson  <rth@redhat.com>
7451
7452         * basic-block.h (flow_delete_block_noexpunge): Declare.
7453         (expunge_block_nocompact): Declare.
7454         * cfg.c (expunge_block_nocompact): Split out from ...
7455         (expunge_block): ... here.
7456         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7457         (flow_delete_block_noexpunge): Split out from ...
7458         (flow_delete_block): ... here.
7459         * cfgcleanup.c (delete_unreachable_blocks): Compact while
7460         removing dead blocks.
7461         * except.c (exception_handler_labels): Remove.
7462         (exception_handler_label_map): New.
7463         (struct eh_region): Add aka member.
7464         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7465         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7466         (for_each_eh_label, for_each_eh_label_1): New.
7467         (init_eh): Register exception_handler_label_map.
7468         (free_eh_status): Use free_region.
7469         (find_exception_handler_labels): Use the map, not the list.
7470         (remove_exception_handler_label): Likewise.
7471         (maybe_remove_eh_handler): Likewise.
7472         (remove_eh_handler): Use the region aka bitmap.
7473         * except.h (exception_handler_labels): Remove.
7474         (for_each_eh_label): Declare.
7475         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7476         * loop.c (invalidate_loops_containing_label): New.
7477         (find_and_verify_loops): Use it.  Use for_each_eh_label.
7478         * sched-rgn.c (is_cfg_nonregular): Use
7479         current_function_has_exception_handlers.
7480
7481 2002-04-09  Richard Henderson  <rth@redhat.com>
7482
7483         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7484         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7485         Do not return changed status.
7486         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7487         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7488         New functions that do return changed status.
7489         * sbitmap.h: Update decls.
7490         * gcse.c, lcm.c: Use _cg functions as needed.
7491
7492 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7493
7494         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7495         (sh64-*-elf*, sh-*-rtemself*): Likewise.
7496         * config/sh/embed_bb.c: New file.
7497         * config/sh/embed-elf.h: New file.
7498         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7499         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
7500         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7501         __PTRDIFF_TYPE__ .
7502         (SUBTARGET_CPP_PTR_SPEC): Don't define.
7503         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7504         Add subtarget_asm_endian_spec.
7505         (ASM_SPEC): Use subtarget_asm_endian_spec.
7506         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7507         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7508         (WCHAR_UNSIGNED): Define.
7509         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7510         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7511         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7512         Fix value.
7513         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7514         (sh_adjust_cost): Likewise.
7515         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7516         __PTRDIFF_TYPE__ .
7517         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7518         (WCHAR_TYPE_SIZE): Likewise.
7519         (ASM_SPEC): Use subtarget_asm_endian_spec.
7520         (SH_ELF_WCHAR_TYPE): #undef/ #define.
7521         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7522         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7523         (MAX_WCHAR_TYPE_SIZE): Don't #define .
7524         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7525         (USER_LABEL_PREFIX): Don't #undef /#define .
7526         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7527         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7528         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7529         (ASM_SPEC): Likewise.
7530         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7531         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7532         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7533         (LIB2FUNCS_EXTRA): Define.
7534         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7535         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7536         (LIB1ASMFUNCS_CACHE): Define.
7537         (LIB2FUNCS_EXTRA): Redefine empty.
7538
7539 2002-04-08  Richard Henderson  <rth@redhat.com>
7540
7541         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7542
7543 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7544
7545         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7546         and optimize for size.
7547         (__do_global_ctors): Fix pointer comparison.
7548         (__do_global_dtors): Likewise.
7549
7550 2002-04-09  David S. Miller  <davem@redhat.com>
7551
7552         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7553         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7554         allow reloading pseudos.
7555         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7556         * config/sparc/sparc-protos.h: Declare it.
7557
7558         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7559         unsigned comparison warning.
7560         (output_restore_regs): Mark leaf_function as unused.
7561
7562 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7563
7564         * expr.c (is_aligning_offset): New function.
7565         (expand_expr, case COMPONENT_EXPR): Call it.
7566
7567 2002-04-08  David S. Miller  <davem@redhat.com>
7568
7569         PR target/6082
7570         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7571
7572         Make init_priority work on Sparc when using GNU ld.
7573         * config/sparc/linux.h, config/sparc/linux64.h,
7574         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7575         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7576         * config/sparc/sol2-gld.h: New file to do the same.
7577         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7578         sparc/sol2-gld.h to tm_file.
7579
7580         PR optimization/4328
7581         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7582         * doc/md.texi: Document it.
7583         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7584         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7585         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7586         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7587         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7588
7589 2002-04-08  Andreas Jaeger  <aj@suse.de>
7590
7591         * stmt.c (expand_asm_operands): Revert last patch from Richard
7592         Henderson.
7593
7594 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7595
7596         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7597         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7598
7599 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7600
7601         * doc/contrib.texi (Contributors): Add David O'Brien.
7602
7603 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7604
7605         * configure.in (auto-build.h): Use target_alias and build_alias
7606         when running configure.
7607         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7608         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7609         * configure: Regenerate.
7610
7611 2002-04-07  David S. Miller  <davem@redhat.com>
7612
7613         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7614
7615 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7616
7617         PR 5933
7618         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7619         generating 32-bit pic code.
7620
7621 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7622
7623         * cppinit.c (cpp_create_reader): Initialize
7624         discard_comments_in_macro_exp.
7625         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7626         (cpp_handle_option): Handle "-CC" option.
7627         * cpplex.c (save_comment): If saving a C++ comment in
7628         a directive, convert it to a C comment.
7629         (_cpp_lex_direct): Pass second comment start character to
7630         save_comment to indicate comment type.
7631         * cpplib.c (_cpp_handle_directive): If processing
7632         a "#define" directive and discard_comments_in_macro_exp
7633         is false,  re-enable saving of comments.
7634         (lex_macro_node): If discard_comments_in_macro_exp is false,
7635         discard any comments before the macro identifier.
7636         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7637         member.
7638         * cppmacro.c (cpp_get_token): If expanding a macro while
7639         processing a directive, discard any comments we might encounter.
7640         (parse_params): If discard_comments_in_macro_exp is false,
7641         ignore comments in the macro parameter list.
7642         * gcc.c (cpp_unique_options): Add "-CC" option.
7643         (option_map): Map "--comments-in-macros" to "-CC".
7644         * doc/cppopts.texi: Document "-CC" option.
7645         * f/lang-specs.h: Add "-CC" option.
7646         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7647         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7648         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7649         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7650         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7651         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7652
7653 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7654
7655         PR middle-end/6180
7656         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7657
7658 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7659
7660         PR c++/5571
7661         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7662
7663         PR opt/5120
7664         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7665         RTX_UNCHANGING_P for the functions arguments when a tail call
7666         is made.
7667
7668 2002-04-06  Jason Merrill  <jason@redhat.com>
7669
7670         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7671         (parse_options_and_default_flags): Set them appropriately.
7672         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7673
7674 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7675
7676         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7677         here.
7678
7679         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7680         semicolon.
7681
7682         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7683         types come in by-reference.  Fix typo in comment.
7684
7685 2002-04-05  David S. Miller  <davem@redhat.com>
7686
7687         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7688         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7689         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7690         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7691
7692 2002-04-05  David S. Miller  <davem@redhat.com>
7693
7694         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7695         are not going to emit return instructions, emit at least a nop
7696         for the sake of sane backtraces.
7697
7698 2002-04-05  Richard Henderson  <rth@redhat.com>
7699
7700         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7701
7702 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7703
7704         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7705
7706 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7707
7708         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7709         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7710         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7711
7712 2002-04-05  Andreas Schwab  <schwab@suse.de>
7713
7714         * c-convert.c: Include c-common.h.
7715         * Makefile.in (c-convert.o): Updated.
7716
7717 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7718
7719         * mklibgcc.in: Use separate libgcc.map for each multilib.
7720         * Makefile.in (distclean): Don't remove libgcc.map here.
7721
7722 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7723
7724         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7725         genmultilib invocation.
7726
7727 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7728
7729         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7730         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7731         to num_gprs for symmetry.
7732         * config/mips/mips.c: Adjust accordingly.
7733
7734 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7735
7736         * c-common.c (truthvalue_conversion): Rename, update.
7737         * c-common.h (c_common_truthvalue_conversion): New.
7738         * c-convert.c (convert): Update.
7739         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7740         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7741         * c-typeck.c (build_binary_op, build_unary_op,
7742         build_conditional_expr): Update.
7743         * fold-const.c (constant_boolean_node, fold): Use langhook.
7744         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7745         * langhooks.h (struct lang_hooks): New hook.
7746         * stmt.c (expand_decl_cleanup): Use langhook.
7747         * tree.h (truthvalue_conversion): Remove.
7748 objc:
7749         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7750
7751 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7752
7753         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7754         Add rules to make null object file.
7755
7756 2002-04-04  Jim Blandy  <jimb@redhat.com>
7757
7758         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7759         macro formal parameter names.
7760
7761 2002-04-04  David S. Miller  <davem@redhat.com>
7762
7763         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7764
7765 2002-04-04  Richard Henderson  <rth@redhat.com>
7766
7767         PR middle-end/5099
7768         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7769         Support copies into and out of memory.  Don't accept allows_reg
7770         and allows_mem as gospel.
7771
7772 2002-04-04  Richard Henderson  <rth@redhat.com>
7773
7774         PR opt/6165
7775         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7776         (write_dependence_p): Likewise.
7777
7778 2002-04-04  Richard Henderson  <rth@redhat.com>
7779
7780         * predict.c (estimate_bb_frequencies): Do frequency calculation
7781         with a volatile temporary.
7782
7783 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7784
7785         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7786
7787 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7788
7789         PR c++/6119
7790         * final.c (final_start_function): Don't bump profile_label_no here...
7791         (final_end_function): ...but here.
7792
7793 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7794
7795         * config/sparc/sparc.md (pic): New attribute.
7796         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7797         into stack slots.
7798         (split after do_builtin_setjmp_setup): New.
7799
7800 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7801
7802         PR fortran/6106
7803         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7804         change.
7805
7806 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7807
7808         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7809         UNITS_PER_WORD for zero sized aggregates.
7810
7811 2002-04-03  David S. Miller  <davem@redhat.com>
7812
7813         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7814         one-character spec for this, just use %(link_gcc_c_sequence).
7815
7816 2002-04-03  David S. Miller  <davem@redhat.com>
7817
7818         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7819         handling.
7820
7821 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7822
7823         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7824         (DWARF_FRAME_RETURN_COLUMN): Move.
7825         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7826         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7827         * pa.c (except.h, predict.h): Include.
7828         (FRP): Delete.
7829         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7830         (output_ascii): Add cast.
7831         (store_reg_modify): Revise to add frame notes.
7832         (set_reg_plus_d): Likewise.
7833         (compute_frame_size): Include space for eh data registers in frame if
7834         the current function calls eh_return.
7835         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7836         function calls eh_return.  Save eh data registers if the current
7837         function calls eh_return.  Fix code to add frame notes.  Emit
7838         blockage to prevent insns with frame notes being scheduled in the
7839         delay slot of calls.
7840         (hppa_expand_epilogue): Restore eh data registers and do final stack
7841         adjustment if the current function calls eh_return.  Don't add frame
7842         notes.
7843         (output_call): Revise for change in length of call insn.  Don't do
7844         return pointer adjustment for an unconditional jump in the delay slot
7845         of a call when using frame notes.
7846         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7847         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7848         (ARG_POINTER_CFA_OFFSET): Define.
7849         * pa.md (return_external_pic): New pattern.
7850         (prologue): Correct formatting.  Use return_external_pic if current
7851         function calls eh_return.
7852         (call_internal_symref, call_value_internal_symref,
7853         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7854         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7855         respectively.
7856         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7857
7858         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7859         list of targets to check using "nop" insn.
7860         * configure: Rebuilt.
7861
7862 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7863
7864         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7865
7866 2002-04-03  David S. Miller  <davem@redhat.com>
7867
7868         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7869         library sequence passed to the linker.
7870         (LINK_COMMAND_SPEC): Use it.
7871         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7872         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7873         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7874
7875 2002-04-03  Jason Merrill  <jason@redhat.com>
7876
7877         * except.c (struct eh_status): Remove protect_list.
7878         (begin_protect_partials, end_protect_partials): Remove.
7879         (add_partial_entry): Remove.
7880         * except.h: Remove prototypes.
7881
7882         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7883         expand_decl_cleanup_eh.
7884
7885         PR c++/5636
7886         * tree.h (CLEANUP_EH_ONLY): New macro.
7887         * stmt.c (expand_decl_cleanup_eh): New fn.
7888         (expand_cleanups): Check CLEANUP_EH_ONLY.
7889         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7890         Use expand_decl_cleanup_eh.
7891         (expand_stmt): Adjust.
7892         * c-common.h: Adjust prototype.
7893
7894 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7895
7896         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7897         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7898         (cris_target_asm_function_epilogue): Ditto.
7899         (cris_initial_frame_pointer_offset): Ditto.
7900         (cris_simple_epilogue): Ditto.
7901         (cris_expand_builtin_va_arg): Variable-size types come in
7902         by-reference.
7903
7904 2002-04-03  David S. Miller  <davem@redhat.com>
7905
7906         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7907         little-endian.
7908         (set_fast_math): Correct 'fsr' type.
7909
7910 2002-04-03  Richard Henderson  <rth@redhat.com>
7911
7912         PR opt/3569
7913         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7914         * toplev.c (check_global_declarations): Use it.
7915         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7916         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7917         (LANG_HOOKS_DECLS): Add it.
7918         * langhooks.c (lhd_warn_unused_global_decl): New.
7919         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7920         * c-objc-common.c (c_warn_unused_global_decl): New.
7921         * c-tree.h (c_warn_unused_global_decl): Declare.
7922         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7923
7924 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7925
7926         * langhooks-def.h (lhd_set_decl_assembler_name,
7927         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7928         (LANG_HOOKS_INITIALIZER): Update.
7929         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7930         * langhooks.h (struct lang_hooks): New hook.
7931         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7932         (lang_set_decl_assembler_name): Remove.
7933         (init_obstacks): Don't set hook.
7934         (decl_assembler_name): New function.
7935         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7936         (decl_assembler_name): New.
7937         (lang_set_decl_assembler_name): Remove.
7938
7939 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7940
7941         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7942         works properly with .hidden symbols.
7943         * configure: Rebuilt.
7944         * config.in: Rebuilt.
7945         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7946         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7947         properly with .hidden symbols.
7948
7949 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7950
7951         PR middle-end/6102
7952         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7953         USE argument.
7954
7955 2002-04-03  Richard Henderson  <rth@redhat.com>
7956
7957         PR opt/4120
7958         * sched-rgn.c (sets_likely_spilled): New.
7959         (sets_likely_spilled_1): New.
7960         (add_branch_dependences): Use it.
7961
7962 2002-04-02  Richard Henderson  <rth@redhat.com>
7963
7964         PR opt/4311
7965         * loop.h (LOOP_FIRST_PASS): New.
7966         * loop.c (strength_reduce): Mind it when deciding to unroll.
7967         * toplev.c (rest_of_compilation): Set it.
7968
7969 2002-04-02  David S. Miller  <davem@redhat.com>
7970
7971         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7972         mems_ok_for_ldd_peep when the order of the loads being examined
7973         is reversed.
7974         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7975         existing comment to increase comprehension of this situation.
7976
7977 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7978
7979         * config/sh/sh.md: Don't use union real_extract.
7980
7981 2002-04-02  Richard Henderson  <rth@redhat.com>
7982
7983         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7984
7985 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7986
7987         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7988         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7989         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7990         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7991         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7992         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7993         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7994         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7995         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7996         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7997         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7998         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7999         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
8000         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
8001         Include as many configury headers via tm_file as possible.  This
8002         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
8003         * config/openbsd-oldgas.h: New file.
8004         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
8005         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
8006         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
8007         config/i386/i386-coff.h, config/i386/i386-interix.h,
8008         config/i386/iscdbx.h, config/i386/linux-aout.h,
8009         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
8010         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
8011         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
8012         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
8013         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
8014         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
8015         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
8016         config/i386/vxi386.h: Do not directly include configury headers.
8017         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
8018         Directly include configury headers that are no longer automatically
8019         included by the above headers.
8020         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
8021         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
8022         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
8023         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
8024         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
8025         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
8026         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
8027         (TARGET_VERSION): Define.
8028         * config/i386/beos-elf.h, config/i386/freebsd.h,
8029         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
8030         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
8031         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
8032         config/i386/sco5.h, config/i386/sysv4.h
8033         (TARGET_VERSION): Do not need to protect.
8034         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
8035         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
8036         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
8037         config/i386/i386-interix.h, config/i386/linux-aout.h,
8038         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
8039         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
8040         (YES_UNDERSCORES): Do not define - not needed.
8041         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
8042         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8043         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
8044         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
8045         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8046         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
8047         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
8048         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
8049
8050 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
8051             Richard Henderson  <rth@redhat.com>
8052
8053         PR c/5484
8054         * function.c (assign_temp): Accept either type or decl argument.
8055         Detect variables whose size is too large to fit into an integer.
8056         * stmt.c (expand_decl): Pass the decl, not the type.
8057
8058 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
8059
8060         * protoize.c: Match include directory usage with cppdefault.c.
8061
8062 2002-04-03  Jeffrey A Law  (law@redhat.com)
8063             Hans-Peter Nilsson  <hp@bitrange.com>
8064
8065         * combine.c (simplify_comparison): Avoid narrowing a comparison
8066         with a paradoxical subreg when doing so would drop signficant bits.
8067
8068 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
8069
8070         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
8071         if POINTERS_EXTEND_UNSIGNED is defined.
8072
8073 2002-04-02  Richard Henderson  <rth@redhat.com>
8074
8075         PR opt/3967
8076         * local-alloc.c (contains_replace_regs): LO_SUM may contain
8077         replace regs.
8078
8079 2002-04-02  Richard Henderson  <rth@redhat.com>
8080
8081         * doc/standards.texi: Document required freestanding libc entry points.
8082
8083 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
8084
8085         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
8086         associated splitter.  Remove MQ constraint.
8087         (ctrdi_internal4): Correct CCmode clobber.
8088
8089 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8090
8091         * milli64.S ($$dyncall): New function.
8092         * t-linux (LIB1ASMFUNCS): Revise module list.
8093         (LIB1ASMSRC): Use pa/milli64.S.
8094
8095 2002-04-02  Richard Henderson  <rth@redhat.com>
8096
8097         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
8098         rename solaris_sys_varargs_h.
8099
8100 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8101
8102         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
8103         the same mode as its component.
8104
8105 2002-04-02  Richard Henderson  <rth@redhat.com>
8106
8107         PR opt/190
8108         * final.c (this_is_asm_operands): Export.
8109         * output.h (this_is_asm_operands): Declare.
8110         * config/i386/i386.c (print_operand): Error odd asm operands.
8111
8112 2002-04-02  Richard Henderson  <rth@redhat.com>
8113
8114         PR opt/420
8115         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
8116
8117 2002-04-01  Richard Henderson  <rth@redhat.com>
8118
8119         PR target/1538
8120         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
8121         * fixinc/fixincl.x: Rebuild.
8122
8123 2002-04-01  Richard Henderson  <rth@redhat.com>
8124
8125         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
8126         (atomic_alloc, atomic_free): New.
8127         (SIZE, MASK_FOR, PTR_IN): New.
8128         (emergency_reg_state, emergency_reg_state_free): New.
8129         (emergency_labeled_state, emergency_labeled_state_free): New.
8130         (reg_state_alloced, labeled_state_alloced): New.
8131         (alloc_reg_state, free_reg_state): New.
8132         (alloc_label_state, free_label_state, free_label_states): New.
8133         (push, pop, dup_state_stack, free_state_stack): Use them.
8134         (desc_label_state): Likewise.
8135         (uw_frame_state_for): Free label states and state stack.
8136         (uw_update_reg_address): Eliminate warnings.
8137
8138 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
8139
8140         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
8141         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
8142
8143 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8144
8145         * c-decl.c (grokdeclarator): Update.
8146         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8147         * c-tree.h (c_mark_addressable): New.
8148         * c-typeck.c (default_function_array_conversion, build_unary_op,
8149         build_array_ref, convert_for_assignment): Update.
8150         (mark_addressable): Rename.
8151         * calls.c (try_to_integrate, expand_call): Use langhook.
8152         * expr.c (expand_expr): Use langhook.
8153         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
8154         * langhooks.h (struct lang_hooks): New hook.
8155         * stmt.c (expand_asm_operands): Use langhook.
8156         * tree.h (mark_addressable): Remove.
8157 objc:
8158         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8159
8160 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
8161
8162         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
8163         in previous change.
8164
8165 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
8166
8167         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
8168         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
8169
8170 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8171
8172         * c-common.c (unsigned_conversion_warning, convert_and_check,
8173         unsigned_type, signed_type, shorten_compare,
8174         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
8175         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
8176         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
8177         New.
8178         * c-decl.c (grokdeclarator): Update.
8179         * c-format.c (check_format_types): Update.
8180         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8181         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8182         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
8183         * convert.c (convert_to_integer): Use new hooks.
8184         * expmed.c (make_tree): Use new hooks.
8185         * expr.c (store_expr): Use new hooks.
8186         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
8187         all_ones_mask_p, unextend, fold): Use new hooks.
8188         * langhooks.h (struct lang_hooks_for_types): New hooks.
8189         * tree.h (signed_or_unsigned_type, signed_type,
8190         unsigned_type): Remove.
8191 objc:
8192         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8193         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8194
8195 2002-03-31  Richard Henderson  <rth@redhat.com>
8196
8197         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
8198         (desc_frgr_mem): Fix reference to f16-f31.
8199
8200 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8201
8202         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
8203         RTVEC_ELT): Const-ify.
8204         * varray.h (VARRAY_CHECK): Const-ify.
8205         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
8206         ggc_mark_rtvec, ggc_mark): Const-ify.
8207
8208 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8209
8210         * diagnostic.c: Include langhooks-def.h.
8211         * Makefile.in (diagnostic.o): Update.
8212
8213 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8214
8215         * c-common.c (c_unsafe_for_reeval): Rename.
8216         * c-common.h (c_unsafe_for_reeval): Rename.
8217         * c-decl.c (finish_incomplete_decl): Rename.
8218         (c_init_decl_processing): Don't set langhook.
8219         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8220         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8221         * c-objc-common.c (c_objc_common_init): Don't set langhook.
8222         * c-tree.h (finish_incomplete_decl): Rename.
8223         * langhooks-def.h (lhd_unsafe_for_reeval): New.
8224         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8225         (LANG_HOOKS_INITIALIZER): Update.
8226         * langhooks.c (lhd_unsafe_For_reeval): New.
8227         * langhooks.h (struct langhooks): New hooks.
8228         * toplev.c (incomplete_decl_finalize_hook): Remove.
8229         (wrapup_global_declarations): Update.
8230         * tree.c (lang_unsafe_for_reeval): Remove.
8231         (unsafe_for_reeval): Update.
8232         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8233         Remove.
8234 objc:
8235         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8236         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8237
8238 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8239
8240         * diagnostic.c (print_error_function): Remove.
8241         (default_print_error_function): Rename.
8242         (report_error_function): Update.
8243         * diagnostic.h (print_error_function): Remove.
8244         (default_print_error_function): Remove.
8245         * langhooks-def.h (struct diagnostic_context): Predeclare.
8246         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8247         (LANG_HOOKS_INITIALIZER): Update.
8248         * langhooks.h (struct diagnostic context): Predeclare.
8249         (struct lang_hooks): New hook.
8250
8251 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8252
8253         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8254         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8255         !flag_pic.
8256         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8257         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8258         of PIC_OFFSET_TABLE_REGNUM thruout.
8259         * config/rs6000/rs6000.md: Likewise.
8260         * config/rs6000/darwin.h: Likewise.
8261
8262 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8263
8264         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8265         unsigned HOST_WIDE_INT, not unsigned int.
8266
8267 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8268
8269         PR middle-end/6096, middle-end/6098, middle-end/6099
8270         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8271         CODE_LABELs.
8272         (fill_slots_from_thread): Likewise.
8273
8274 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8275
8276         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8277         floating fields in float regs.
8278         (function_arg_record_value_2): Likewise.
8279
8280 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8281
8282         * config/mmix/mmix.md (define_constants): Remove misleading
8283         FIXME.  Add MMIX_fp_rO_OFFSET.
8284         ("nonlocal_goto_receiver"): Don't have stack-frame address of
8285         saved rO as part of the pattern.  Remove FIXME.
8286         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
8287         here, at output-time.
8288
8289 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8290
8291         PR middle-end/6100
8292         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8293         REG_BR_PRED.
8294         (output_v9branch): Likewise.
8295
8296 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8297
8298         * gcc.c: Revert previous patch for now.
8299         * config/i386/djgpp.h: Likewise.
8300
8301 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8302
8303         * config/mmix/crti.asm (_init): Register _fini with atexit.
8304         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8305
8306 2002-03-31  Richard Henderson  <rth@redhat.com>
8307
8308         PR target/3997
8309         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8310         (ASM_OUTPUT_DEF_FROM_DECLS): New.
8311
8312 2002-03-31  Richard Henderson  <rth@redhat.com>
8313
8314         * libgcc2.c (__bb_exit_func): Make static.
8315
8316         * config/alpha/alpha.md (trap): New.
8317
8318 2002-03-31  Richard Henderson  <rth@redhat.com>
8319
8320         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8321         promoted argument types; build trap.
8322         (expand_builtin_trap): New.
8323         (expand_builtin): Use it.
8324         * stmt.c (expand_nl_goto_receivers): Likewise.
8325         * expr.h (expand_builtin_trap): Declare.
8326         * libfuncs.h (LTI_abort, abort_libfunc): New.
8327         * optabs.c (init_optabs): Init abort_libfunc.
8328
8329 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8330
8331         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8332         (LINK_COMMAND_SPEC): ... from here.
8333         (init_gcc_specs): Duplicate it here too, omitting
8334         shared_name in the second copy.
8335         (init_spec): Test for duplicate
8336         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8337
8338 2002-03-30  David S. Miller  <davem@redhat.com>
8339
8340         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8341         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8342
8343 2002-03-30  Roger Sayle <roger@eyesopen.com>
8344             Richard Henderson  <rth@redhat.com>
8345
8346         * regmove.c (combine_stack_adjustments_for_block): Avoid
8347         emitting a stack adjustment of zero bytes.  Let delete_insn
8348         update bb->head.
8349
8350 2002-03-30  Richard Henderson  <rth@redhat.com>
8351
8352         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8353         (sparc_emitting_epilogue): New.
8354         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8355         * config/sparc/sparc-protos.h: Update.
8356         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8357         (TARGET_SWITCHES): Update.
8358         * config/sparc/sparc.md (return): Remove.
8359         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8360         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8361         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8362         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8363         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8364         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8365         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8366         Remove MASK_EPILOGUE.
8367         * doc/invoke.texi: Update.
8368
8369 2002-03-30  Daniel Berlin  <dan@dberlin.org>
8370
8371         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8372         CPP will start the file for us.
8373
8374 2002-03-30  Richard Henderson  <rth@redhat.com>
8375
8376         PR target/5446
8377         * config/ia64/ia64.c (group_barrier_needed_p): Special case
8378         prologue_allocate_stack.
8379         (ia64_single_set): Use insn codes for recognition of special
8380         cases, not rtl matching.
8381         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8382
8383 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
8384
8385         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8386
8387 2002-03-30  Richard Henderson  <rth@redhat.com>
8388
8389         PR target/6032
8390         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8391         or -fomit-frame-pointer with profiling.
8392         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8393         (FUNCTION_PROFILER): Do nothing.
8394         (PROFILE_HOOK): New.
8395         * config/sparc/sparc.c (sparc_override_options): Don't check
8396         code models for profiling.
8397         (sparc_function_profiler): Remove.
8398         (sparc_profile_hook): New.
8399         * config/sparc/sparc-protos.h: Update.
8400
8401 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8402
8403         PR optimization/6086
8404         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8405         of SUBREG of volatile MEM or because the MEM was mode dependent,
8406         return CLOBBER instead of unmodified SUBREG.
8407
8408 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
8409
8410         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8411         when not optimizing.
8412
8413         * toplev.c (rest_of_compilation): Cann mark_constant_function
8414         only when optimizing.
8415
8416         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8417         are NULL.
8418
8419         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8420         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8421         (try_optimize_cfg): clear all AUX fields.
8422
8423         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8424         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8425         (ix86_address_cost): Be prepared for SUBREGed registers.
8426         (legitimate_address_p): Accept SUBREGed registers.
8427
8428 2002-03-29  Richard Henderson  <rth@redhat.com>
8429
8430         PR target/5672
8431         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8432
8433 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8434
8435         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8436         for aggregate and TFmode types.
8437
8438 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8439
8440         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8441
8442 2002-03-29  Richard Henderson  <rth@redhat.com>
8443
8444         PR target/5886
8445         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8446         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8447
8448 2002-03-29  Richard Henderson  <rth@redhat.com>
8449
8450         PR target/6041
8451         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8452         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8453         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8454         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8455         conditional.
8456         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8457
8458 2002-03-29  Dale Johannesen <dalej@apple.com>
8459
8460         * loop.c (combine_movables): Do allow combination of pseudos.
8461
8462 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
8463
8464         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8465         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8466         No functional change except ...
8467         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
8468         * doc/install.texi (*-*-freebsd*): Document port configuration.
8469
8470 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8471
8472         * Makefile.in (convert.o, calls.o, expmed.o): Update.
8473         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8474         Use new hooks.
8475         * builtin-types.def (BT_PTRMODE): Update.
8476         * c-common.c (type_for_size): Rename c_common_type_for_size.
8477         (type_for_mode): Similarly.
8478         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8479         Use new hook.
8480         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8481         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8482         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8483         Redefine.
8484         * c-typeck.c (common_type, comptypes, default_conversion):
8485         Use new hooks.
8486         * calls.c: Include langhooks.h.
8487         (emit_library_call_value_1): Use new hooks.  Avoid redundant
8488         calls.
8489         * convert.c: Include langhooks.h
8490         (convert_to_pointer, convert_to_integer): Use new hooks.
8491         * except.c (init_eh): Similarly.
8492         * expmed.c: Include langhooks.h.
8493         (expand_mult_add): Use new hooks.
8494         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8495         try_casesi): Similarly.
8496         * fold-const.c (optimize_bit_field_compare, make_range,
8497         decode_field_reference, fold_truthop, fold): Similarly.
8498         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8499         put_var_into_stack): Similarly.
8500         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8501         LANG_HOOKS_TYPE_FOR_SIZE): New.
8502         (LANG_HOOKS_TYPES_INITIALIZER): Update.
8503         * langhooks.h (lang_hooks_for_types): New hooks.
8504         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8505         * tree.c (get_unwidened, get_narrower): Similarly.
8506         * tree.h (type_for_mode, type_for_size): Remove.
8507         * varasm.c (force_const_mem): Use new hooks.
8508         * utils2.c (nonbinary_modular_operation): Update.
8509 objc:
8510         * objc-act.c (handle_impent): Update.
8511         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8512         Redefine.
8513
8514 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
8515
8516         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8517         * config/ia64/ia64.c (basereg_operand): New.
8518         * config/ia64/ia64-protos.h (basereg_operand): Declare.
8519         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8520
8521 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8522
8523         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8524         unwind information when frame_pointer_needed.
8525         (mmix_assemble_integer): Tweak wording in comment.
8526
8527 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8528
8529         * Makefile.in (except.o): Update.
8530         * except.c: Include langhooks.h.
8531         (init_eh): Use langhook.
8532         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8533         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8534         (LANG_HOOKS_INITIALIZER): Update.
8535         * langhooks.h (lang_hooks_for_types): New.
8536         (struct lang_hooks): Add it.
8537         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8538         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8539 config:
8540         * alpha/alpha.c: Include langhooks.h.
8541         (alpha_build_va_list): Use langhook.
8542         * d30v/d30v.c: Include langhooks.h.
8543         (d30v_build_va_list): Use langhook.
8544         * i386/i386.c: Include langhooks.h.
8545         (ix86_build_va_list): Use langhook.
8546         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8547         * s390/s390.c: Include langhooks.h.
8548         (s390_build_va_list): Use langhook.
8549         * stormy16/stormy16.c: Include langhooks.h.
8550         (stormy16_build_va_list): Use langhook.
8551
8552 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8553
8554         PR c++/5964
8555         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8556         attributes.
8557         (length): Compute variable length for branches/calls/jumps here.
8558         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8559         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8560         define branch_type attribute.
8561         (divsi3_sp32): Maximum length is 6 not 7.
8562         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8563         call_address_untyped_struct_value_sp32,
8564         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8565         * config/sparc/sparc.c (empty_delay_slot): New function.
8566         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8567         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8568
8569 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8570
8571         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8572         nonzero_bits if not needed.
8573         (nonzero_bits) [XOR]: Likewise.
8574         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8575         reg_last_set_mode and mode are both MODE_INT, but not equal.
8576         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8577         in nonzero_bits_mode for MODE_INT modes.
8578
8579 2002-03-28  Richard Henderson  <rth@redhat.com>
8580
8581         PR target/5715
8582         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8583         to GAS.  Correct drift between alternatives.
8584
8585 2002-03-28  Richard Henderson  <rth@redhat.com>
8586
8587         PR target/6087
8588         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8589
8590 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8591
8592         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8593         emulation to the linker.
8594
8595 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8596
8597         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8598         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8599
8600 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8601
8602         * combine.c (simplify_and_const_int): Make sure to apply mask
8603         when force_to_mode returns a constant integer.  PR3311.
8604
8605 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8606
8607         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8608
8609 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8610
8611         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8612         and Objective-C Dialect Options.
8613
8614 2002-03-28  Richard Henderson  <rth@redhat.com>
8615
8616         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8617         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8618
8619 2002-03-28  Richard Henderson  <rth@redhat.com>
8620
8621         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8622         on to c_expand_body.
8623         * c-tree.h (finish_function): Update decl.
8624         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8625
8626 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8627
8628         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8629
8630 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8631
8632         * rtlanal.c: Include flags.h
8633         (may_trap_p): Do not mark FP operations if trapping
8634         if !flag_trapping_math
8635         * Makefile.in (rtlanal.o): Add dependency on flag.h
8636         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8637
8638 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8639
8640         * mips.md: Use dconst1, not 1.0, as first argument of
8641         REAL_VALUE_LDEXP.  Don't use union real_extract.
8642
8643 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8644
8645         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8646         rather than $target.  Heed program_prefix and
8647         program_transform_name.  Search for gas in cross-compiler case too.
8648         "test -x" rather than "test -f".
8649         (gcc_cv_ld): Likewise.
8650         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8651         (gcc_cv_objdump): Likewise.
8652         * configure: Regenerate.
8653
8654 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8655
8656         * Makefile.in (attribs.o): Update.
8657         * attribs.c: Include langhooks.h.
8658         (decl_attributes): Use langhook.
8659         * c-decl.c (insert_default_attributes): Rename.
8660         * c-tree.h (c_insert_default_attributes): New.
8661         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8662         (LANG_HOOKS_INITIALIZER): Update.
8663         * langhooks.h (struct lang_hooks): New hook.
8664         * tree.h (insert_default_attributes): Remove.
8665 objc:
8666         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8667
8668 2002-03-27  Andreas Schwab  <schwab@suse.de>
8669
8670         * config/i386/i386.c (classify_argument): Also check for
8671         QUAL_UNION_TYPE.
8672
8673 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8674
8675         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8676         any more.
8677
8678 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8679
8680         * i960.md (ret): Set PC.
8681         (nonlocal_goto): Fix expander.
8682         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8683         some jump or call.
8684
8685 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8686
8687         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8688         of libcall regions.
8689
8690 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8691
8692         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8693         assigning to BLOCK_FOR_INSN directly.
8694
8695 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8696
8697         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8698
8699 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8700
8701         * c-common.c (c_expand_expr): Fix prototype.
8702         * c-common.h (c_expand_expr): Always declare, update.
8703         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8704         * c-objc-common.c (c_objc_common_init): No global hook.
8705         * expr.c (expand_expr): Use langhook.
8706         * expr.h (enum expand_modifier): Conditionally declare.
8707         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8708         (LANG_HOOKS_INITIALIZER): Update.
8709         * langhooks.c (lhd_expand_expr): New.
8710         * langhooks.h (struct lang_hooks): New hook.
8711         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8712         (lang_independent_init): Don't default hook.
8713 objc:
8714         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8715
8716 2002-03-27  Richard Henderson  <rth@redhat.com>
8717
8718         PR target/6054
8719         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8720         TARGET_CONST_GP.  Simplify conditions.
8721
8722 2002-03-27  Richard Henderson  <rth@redhat.com>
8723
8724         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8725         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8726         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8727
8728 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8729
8730         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8731         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8732         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8733         Remove unnecessary masks.
8734         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8735         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8736         -mwindows, -mdll switches and their negations.
8737
8738 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8739
8740         * gcc-common.c (lang_mark_false_label_stack): Remove.
8741         * ggc.h (lang_mark_false_label_stack): Similarly.
8742
8743 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8744
8745         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8746
8747         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8748         or __rtems_ is defined.
8749
8750 2002-03-26  Richard Henderson  <rth@redhat.com>
8751
8752         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8753         if a non-trivial load was emitted.
8754         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8755         in high+extra+low case.
8756
8757 2002-03-26  Richard Henderson  <rth@redhat.com>
8758
8759         * config.gcc (sparc*-solaris): Use float_format=sparc.
8760
8761 2002-03-26  Richard Henderson  <rth@redhat.com>
8762
8763         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8764         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8765         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8766         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8767         (WINT_TYPE_SIZE): Fix at 32.
8768
8769 2002-03-26  Richard Henderson  <rth@redhat.com>
8770
8771         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8772         until after eh landing pad generation.
8773         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8774         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8775
8776 2002-03-26  Richard Henderson  <rth@redhat.com>
8777
8778         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8779
8780 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8781
8782         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8783         and warning switches.
8784         (cc1_options):  Likewise.
8785
8786 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8787
8788         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8789         Restore more of the signal context.  Set no_reg_stack_frame.
8790         * config/ia64/unwind-ia64.c (unw_state_record):
8791         Add no_reg_stack_frame, comments.
8792         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8793         (uw_update_context): Adjust bsp when unwinding from leaf,
8794         but not signal frame.
8795
8796 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8797
8798         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8799
8800 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8801
8802         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8803
8804 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8805
8806         PR target/5621
8807         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8808         "Add a pool_range attribute", which was lost during the ARM/Thumb
8809         merge.
8810
8811 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8812
8813         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8814         a register into the MAC16 accumulator.
8815
8816 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8817
8818         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8819         (Warning Options): Document -Wswitch-enum.
8820         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8821         -Wswitch.
8822         (warn_switch_enum): Define variables.
8823         * flags.h (warn_switch_enum): Declare variables.
8824         * stmt.c (expand_end_case_type): When warn_switch_enum /
8825         -Wswitch-enum, perform switch checks.
8826         Fix PR c/5044.
8827
8828 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8829
8830         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8831         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8832         (reload_muladdsi_compare0_scratch): Delete.
8833
8834 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8835
8836         * doc/install.texi (*-*-freebsd*): Update.
8837
8838 2002-03-26  Richard Henderson  <rth@redhat.com>
8839
8840         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8841         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8842
8843         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8844         types from the normal argument frame.
8845
8846         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8847         variable sized objects by reference.
8848         (sparc_va_arg): Receive them by reference too.
8849
8850 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8851
8852         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8853         code to not restoring global registers.
8854
8855 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8856
8857         * Makefile.in (ggc-common.o): Update.
8858         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8859         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8860         * c-tree.h (c_mark_tree): New.
8861         * ggc-common.c: Include langhooks.h.
8862         (gcc_mark_trees): Use new langhook.
8863         * ggc-callbacks.c: Delete file.
8864         * ggc.h (lang_mark_tree): Remove.
8865         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8866         (LANG_HOOKS_INITIALIZER): Update.
8867         * langhooks.h (struct lang_hooks): New hook.
8868 objc:
8869         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8870
8871 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8872
8873         * doc/cpp.texi: Exclude entire Top node from printed manual.
8874         Move option index after directive index.  Insert page breaks
8875         before GFDL and concept index.  Index environment variables
8876         with command line options.
8877         * doc/cppenv.texi: Use @vtable for environment variable list.
8878         Add paragraph explaining semantics of empty elements in path
8879         variables.  Exclude a cross-reference to Fishkill from the
8880         manpage.  Remove an unnecessary cross-reference of the entry
8881         right above the referer.  Don't use @anchor in text that goes
8882         into manpage.
8883         * doc/cppopts.texi: Cross-reference the environment variables
8884         section, not the specific environment variable, for consistency.
8885
8886 2002-03-25  Richard Henderson  <rth@redhat.com>
8887
8888         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8889         anywhere in the block.  Don't refer to insns that have been
8890         removed from the chain.  Iterate backward through the new insns.
8891         Don't refer to edges that have been removed.
8892
8893 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8894
8895         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8896         test for overflow of constant.
8897
8898 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8899
8900         PR target/2623
8901         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8902         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8903         these patterns on arm_archv4.
8904
8905 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8906
8907         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8908         int".
8909
8910 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8911
8912         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8913         float_handled, float_handler, float_signal, set_float_handler,
8914         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8915         * toplev.h: Don't prototype do_float_handler.
8916
8917         * c-lex.c: Fold parse_float into lex_number.  Make warning
8918         about portability of hex float constants more informative, and
8919         don't issue it on top of a syntax error.
8920         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8921         their callers.
8922         * real.h: Define REAL_VALUE_ABS here...
8923         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8924         simplify_unary_real, simplify_binary_real, and
8925         simplify_binary_is2orm1 into their callers.
8926         * tree.c: Fold build_real_from_int_cst_1 into caller.
8927
8928         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8929
8930         * tsystem.h: Include float.h here...
8931         * libgcc2.c: ... not here.
8932
8933 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8934
8935         Fixes for: PR bootstrap/3591, target/5676
8936         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8937         defined.  Do not disable exceptions or rtti.
8938         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8939         mcore.h.  Disable exceptions and rtti, since they are not
8940         supported by EPOC.
8941
8942 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8943
8944         * c-decl.c (maybe_build_cleanup): Remove.
8945         * expr.c (expand_expr): Use langhook.
8946         * langhooks-def.h (lhd_return_null_tree,
8947         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8948         (LANGHOOKS_INITIALIZER): Update.
8949         * langhooks.c (lhd_return_null_tree): New.
8950         * langhooks.h (struct lang_hooks): New hook.
8951         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8952         * tree.h (maybe_build_cleanup): Remove.
8953
8954 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8955
8956         * regrename.c (build_def_use): Move recog_memoized
8957         before extract_insn.
8958
8959 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8960
8961         PR target/6043
8962         * expr.c (emit_group_store): Handle storing into CONCAT.
8963
8964 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8965
8966         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8967         corresponding MATCH_DUP.
8968
8969 2002-03-24  Richard Henderson  <rth@redhat.com>
8970
8971         * unroll.c (unroll_loop): Zero label_map.
8972
8973         * gcse.c: Include except.h.
8974         * Makefile.in (gcse.o): Update.
8975
8976 2002-03-24  Richard Henderson  <rth@redhat.com>
8977
8978         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8979         Do resolve_unique_section before shared data clause.
8980
8981 2002-03-24  Richard Henderson  <rth@redhat.com>
8982
8983         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8984
8985 2002-03-24  Richard Henderson  <rth@redhat.com>
8986
8987         * recog.c (peephole2_optimize): Split blocks when EH insns are
8988         generated in the middle of a block.  Do global life update if
8989         zapped EH edges.
8990
8991 2002-03-24  Richard Henderson  <rth@redhat.com>
8992
8993         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8994
8995 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8996
8997         preprocessor/3951
8998         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8999         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
9000         (init_dependency_output): Don't make no_output decision here.
9001
9002 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
9003
9004         * stmt.c (check_for_full_enumeration_handling): Remove tests of
9005         warn_switch.  Update description.
9006         (expand_end_case_type): Call check_for_full_enumeration_handling
9007         when warn_switch.
9008
9009 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9010
9011         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
9012         (m68hc11_split_move): Call it to see if the source and destination
9013         operands use the same direction auto inc/dec mode, otherwise make the
9014         source an offsetable memory operand and generate an add.
9015
9016 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9017
9018         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
9019         register for operand 2.
9020         ("*subsi3_zero_extendqi"): Likewise.
9021         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
9022         bits so that it is compatible with a pop.
9023         ("*andhi3_gen"): Likewise.
9024         ("xorhi3"): Likewise.
9025
9026 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9027
9028         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
9029         -pedantic here...
9030         (cpp_post_options): ... not here.
9031
9032 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9033             Aldy Hernandez  <aldyh@redhat.com>
9034
9035         Removal of separate preprocessor cpp0.
9036
9037         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
9038         cpp0, install-common): Update.
9039         * c-common.c (flag_preprocess_only): New.
9040         (c_common_init): Preprocess for -E.
9041         * c-common.h (flag_preprocess_only): New.
9042         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
9043         * c-objc-common.c (c_init_decl_processing): Exit quickly
9044         for NULL return from c_common_init.
9045         * cpplib.h (cpp_preprocess_file): New.
9046         * cppmain.c (main, general_init, pfile, progname): Remove.
9047         (do_preprocessing): Rename cpp_preprocess_file, don't call
9048         cpp_finish.  Don't close stdout here.
9049         (setup_callbacks): Update prototype.
9050         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
9051         Update.
9052         * tradcpp.c (main): Ignore -quiet.
9053 objc:
9054         * lang-specs.h (default_compilers): Preprocess with cc1obj.
9055
9056 2002-03-24  Richard Henderson  <rth@redhat.com>
9057
9058         PR optimization/5742
9059         * machmode.def: Add inner mode field to complex modes.
9060         * config/mips/mips.c (mips_function_value): Always define.  Add
9061         new argument to handle libcalls.
9062         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
9063         (FUNCTION_VALUE): Likewise.
9064         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
9065         * config/mips/mips-protos.h: Update.
9066
9067 2002-03-23  Richard Henderson  <rth@redhat.com>
9068
9069         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
9070         * config/sparc/sparc-protos.h: Update.
9071         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
9072
9073 2002-03-23  Richard Henderson  <rth@redhat.com>
9074
9075         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
9076         _start or _init begins the text segment.
9077
9078 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
9079
9080         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
9081         not HOST_WIDEST_INT.
9082         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
9083
9084 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
9085
9086         PR java/5489
9087         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
9088         operand argument to output_return_instruction.
9089         * arm.c (arm_print_operand, case 'd'): If the operand is
9090         const_true_rtx then just return.
9091         (arm_print_operand, case 'D'): If the operand is const_true_rtx
9092         then abort.
9093
9094 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9095
9096         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
9097         (Warning Options): Document -Wswitch-default.
9098         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
9099         -Wswitch.
9100         (warn_switch_default): Define variable.
9101         (warn_switch): Update comment.
9102         * flags.h (warn_switch_default): Declare variable.
9103         (warn_switch): Update comment.
9104         * stmt.c (expand_end_case): Check for and, when
9105         warn_switch_no_default, warn of a missing default case.
9106
9107 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
9108
9109         * real.h (N): Special case 128 bit doubles.
9110
9111         * combine.c (simplify_comparison): When widening modes, ignore
9112         sign extension on CONST_INTs.
9113
9114 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
9115
9116         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
9117         passed to adjust_address.  Fix comment formatting.
9118
9119
9120 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
9121
9122         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
9123         Always make REAL_VALUE_TYPE a struct containing an array of
9124         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
9125         big it is.  Don't declare or use union real_extract.
9126
9127         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
9128         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
9129         (print_operand), config/arm/arm.c (output_move_double),
9130         config/arm/arm.md (consttable_4, consttable_8),
9131         config/romp/romp.c (output_fpops), config/s390/s390.h
9132         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
9133         (xtensa_output_literal): Don't use union real_extract.
9134
9135         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
9136         (sfmode_constant_to_ulong), config/ns32k/merlin.h
9137         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
9138         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
9139         (PRINT_OPERAND): Don't use local version of union
9140         real_extract.
9141
9142         * config/convex/convex.c (check_float_value), config/vax/vax.c
9143         (vax_float_literal), config/m88k/m88k.md (divdf3),
9144         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
9145         config/pdp11/pdp11.c (output_move_quad): Don't do host
9146         arithmetic on target floating point quantities.
9147
9148         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
9149         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
9150
9151         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
9152         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
9153
9154         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
9155         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
9156         INFINITY.
9157         * print-rtl.c (print_rtx): Disable code which needs
9158         floating-point emulator.
9159         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
9160         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
9161         depending on HOST_FLOAT_FORMAT to be defined properly.
9162
9163         * config/1750a/1750a.c (get_double, float_label): Delete.
9164         (print_operand): Delete huge commented-out chunk.  Use
9165         REAL_VALUE_TO_DECIMAL.
9166         * config/1750a/1750a-protos.h: Delete prototypes of deleted
9167         functions.
9168         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
9169         IEEE_FLOAT_FORMAT.
9170         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
9171         Use REAL_VALUE_TO_DECIMAL as ELF version does.
9172         * config/m88k/m88k.c (real_power_of_2_operand,
9173         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
9174         real_extract out of the union; run the input through
9175         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
9176         from that into the union.
9177         * config/pdp11/pdp11.c (output_move_double): Rearrange
9178         parentheses to make automatic indenter happy.
9179
9180         * doc/tm.texi (Cross-compilation): Rename node to "Floating
9181         Point" and rewrite to describe current situation.  Also adjust
9182         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
9183         match code.
9184         * doc/rtl.texi: Adjust cross reference.
9185
9186 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
9187
9188         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
9189         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
9190         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
9191         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
9192         prevent use of sp as a reload register.
9193         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
9194         non_acc_reg_operand.
9195         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
9196         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
9197         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
9198         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
9199
9200 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9201
9202         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
9203         * cpplex.c (unterminated): Delete.
9204         (parse_string): No string literal may extend over multiple
9205         lines.  Suppress the error when preprocessing assembly.
9206         * cppmain.c (scan_translation_unit): Strings are single-line.
9207
9208         * doc/cpp.texi: Update to match.
9209
9210 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9211
9212         PR optimization/5854
9213         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
9214         Shut up warnings.
9215         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
9216         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
9217         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
9218         const0 if scratch register was not allocated.
9219         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
9220         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
9221         with GEN_INT (...).
9222         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
9223         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
9224         with GEN_INT (...) everywhere.  Remove constraints in define_split
9225         patterns.
9226         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9227         require scratch register for setting 0 into regs/non-pushable memory.
9228
9229 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9230
9231         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9232         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9233
9234 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
9235
9236         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
9237         * cppinit.c (cpp_create_reader):  On by default.
9238         (cpp_handle_option):  Handle -W[no-]endif-labels.
9239         (cpp_post_options):  Also enable if -pedantic.
9240         * cpplib.c (do_else):  Use it.
9241         (do_endif):  Likewise.
9242         * doc/cppopts.texi:  Document new option.
9243         * doc/invoke.texi:  Document new option.
9244
9245 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
9246
9247         * config/i386/i386.c, config/i386/i386.md: Change all occurences
9248         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9249
9250 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9251
9252         * flow.c (calculate_global_regs_live): Clear aux fields of
9253         ENTRY and EXIT.
9254
9255 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9256
9257         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9258         REG or MEM subregs, pass rtx * instead of rtx to it.
9259         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9260         rtx * instead of rtx to alter_subreg.
9261         * config/m32r/m32r.c (gen_split_move_double): Likewise.
9262         * config/pj/pj.c (pj_output_rval): Likewise.
9263
9264 2002-03-22  Richard Henderson  <rth@redhat.com>
9265
9266         PR target/3177
9267         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9268         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9269         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9270         (ia64_expand_prologue): Look at int_regs, not words, for number
9271         of incomming int regs.
9272
9273 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
9274
9275         * expr.c (expand_expr): A RESULT_DECL is part of a call.
9276
9277 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
9278
9279         * toplev.c (flag_loop_optimize, flag_crossjumping):
9280         New static variables.
9281         (rest_of_compilation): Conditionalize crossjumping and
9282         loop optimizer.
9283         (parse_options_and_default_flags): Default loop_optimize and
9284         crossjumping.
9285         (lang_independent_options): Add -fcrossjumping and -floop-optimize
9286         * invoke.texi (crossjumping, loop-optimize): Document.
9287
9288 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9289
9290         * real.c (eiisneg): Move outside #ifdef NANS.
9291
9292 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
9293
9294         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9295         frequencies match; avoid match on different loop depths.
9296         (try_crossjump_to_bb): Kill tests that no longer brings time
9297         savings.
9298         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9299         updating code.
9300         (split_edge): Likewise.
9301
9302         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9303         variable.
9304
9305         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9306         * cfgrtl.c: Include insn-config.h
9307         (split_block) Dirtify block in presence of conditional execution
9308
9309 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9310
9311         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9312         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9313         (function_arg): Constify CUMULATIVE_ARGS.
9314         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9315         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9316         (UNITS_PER_DOUBLE): New macro.
9317         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
9318         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
9319         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
9320         fp_regs and stack_words.
9321         (EABI_FLOAT_VARARGS_P): New macro.
9322         * config/mips/mips.c (struct mips_arg_info): New.
9323         (mips_arg_info): New function.
9324         (function_arg_advance): Use it.  Add adjustment instructions here
9325         rather than in function_arg.
9326         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
9327         for VOIDmode at the beginning of the function.
9328         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
9329         (function_arg_pass_by_reference): Likewise.
9330         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9331         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9332         (mips_va_start): Likewise.  Use the new stack_words field of
9333         CUMULATIVE_ARGS to set up overflow area.  Reformat.
9334         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
9335         doubles and other types, aligning the overflow pointer for non-doubles
9336         too.  Remove some code duplication.  Replace hard-coded constants.
9337
9338 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9339
9340         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9341         (CLASS_UNITS): Undefine.
9342         (CLASS_MAX_NREGS): Use FP_INC.
9343         * config/mips/mips.c (compute_frame_size): Likewise.
9344         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9345
9346 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9347
9348         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9349         prototype, and handle lexing numbers and identifiers.
9350         (parse_identifier): Update to new form of parse_slow.
9351         (parse_number): Fast path only, use parse_slow otherwise.
9352         (_cpp_lex_direct): Update calls to parse_number.
9353
9354 2002-03-21  DJ Delorie  <dj@redhat.com>
9355
9356         * bb-reorder.c (make_reorder_chain_1): Protect against
9357         when redundant edges are omitted.
9358         * predict.c (dump_prediction): Likewise.
9359
9360 2002-03-21  Richard Henderson  <rth@redhat.com>
9361
9362         PR target/5996
9363         * fixinc/inclhack.def (solaris_stdio_tag): New.
9364         * fixinc/fixincl.x: Regenerate.
9365
9366 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9367
9368         PR c/5597
9369         * c-typeck.c (process_init_element): Flag non-static
9370         initialization of a flexible array member as illegal.
9371
9372 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
9373
9374         * config/rs6000/t-linux64: New.
9375         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9376         t-ppccomm.  Use t-rs6000 and t-linux64.
9377         (powerpc64-*-gnu* <tmake_file>): Likewise.
9378         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9379         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9380         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9381
9382 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
9383
9384         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9385         flag_really_no_inline instead of optimize == 0.
9386
9387         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9388
9389         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9390
9391         * flags.h (flag_really_no_inline): New.
9392
9393         * c-common.c (c_common_post_options): Initialize
9394         flag_really_no_inline.
9395
9396         * toplev.c (flag_really_no_inline): New.
9397
9398 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9399
9400         * config/avr/avr.md (length): Fix length computation for
9401         conditional branches.
9402
9403 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9404
9405         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9406         sdbout.o, profile.o): Update.
9407         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9408         langhook.
9409         * c-common.h (gettags): Move here from tree.h.
9410         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9411         insert_block, getdecls, kept_level_p, global_bindings_p): New.
9412         * dbxout.c (dbxout_init): Use getdecls langhook.
9413         * expr.c (expand_expr): Use insert_block langhook.
9414         * fold-const.c: Include langhooks.h.
9415         (fold_range_test, fold_binary_op_with_conditional_arg,
9416         fold): Use global_bindings_p langhook.
9417         * integrate.c (expand_inline_function): Use insert_block langhook.
9418         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9419         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9420         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9421         LANG_HOOKS_GETDECLS): New.
9422         (LANG_HOOKS_INITIALIZER): Update.
9423         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9424         langhook.
9425         * langhooks.h (struct lang_hooks_for_decls): New.
9426         (struct lang_hooks): Update.
9427         * profile.c: Include langhooks.h.
9428         (output_func_start_profiler): Use new langhooks.
9429         * sdbout.c: Include langhooks.h.
9430         (sdbout_init, sdbout_finish): Use getdecls langhook.
9431         * stmt.c: Include langhooks.h.
9432         (expand_fixup, fixup_gotos): Use new langhooks.
9433         * stor-layout.c: Include langhooks.h.
9434         (variable_size): Use global_bindings_p langhook.
9435         * toplev.c (compile_file): Use getdecls langhook.
9436         * tree-inline.c (remap_block): Use insert_block langhook.
9437         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9438         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9439
9440 2002-03-21  Richard Henderson  <rth@redhat.com>
9441
9442         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9443         constants in .data when -fpic.
9444
9445 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9446
9447         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9448         where appropriate.
9449
9450 2002-03-21  Tom Tromey  <tromey@redhat.com>
9451
9452         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
9453
9454 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9455
9456         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9457
9458         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9459
9460 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9461             Richard Henderson  <rth@redhat.com>
9462
9463         PR c/5354
9464         * c-common.c (c_expand_expr): Preserve result of a statement
9465         expression if needed.
9466
9467 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9468
9469         PR bootstrap/4195
9470         * genrecog.c (maybe_both_true_mode): Remove.
9471         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9472         * machmode.def (Pmode): Likewise.
9473
9474 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
9475
9476         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9477         (nonlocal_mentioned_p_1): New function.
9478         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9479         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9480         (mark_constant_function): Recognize pure functions.
9481         * rtl.h (global_reg_mentioned_p): New prototype.
9482         * rtlanal.c (global_reg_mentioned_p,
9483         global_reg_mentioned_p_1): New function.
9484
9485 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9486
9487         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9488         UNIX assert.h.
9489         * fixinc/fixincl.x: Regenerate.
9490
9491 2002-03-20  Jason Merrill  <jason@redhat.com>
9492
9493         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9494
9495 2002-03-20  Michael Meissner  <meissner@redhat.com>
9496
9497         * doc/invoke.texi (Optimize Options): Document that -O2 sets
9498         -fstrict-aliasing.
9499
9500 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9501
9502         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9503         ".literal_position" directive before the constant pool.
9504
9505 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9506
9507         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9508         Add Craig Rodrigues.
9509         Add Brad Lucier to testers.
9510
9511 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9512
9513         PR target/4792
9514         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9515         to if_then_else.
9516         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9517         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9518         instead of insn_extract.
9519
9520 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9521
9522         PR bootstrap/4192
9523         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9524
9525         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9526         stmt if some case has been output.
9527
9528 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9529
9530         PR c/5972
9531         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9532         movsfcc_1, movdfcc_1): Add %O2.
9533         * config/i386/i386.c (print_operand): Handle %ON.
9534         Print . before float condition codes in Sun as cmov syntax.
9535         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9536         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9537         no longer true.
9538
9539 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9540
9541         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9542         return instruction if PC was popped.
9543
9544 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9545
9546         * config/xtensa/xtensa.md: Remove unused type attributes.
9547         (adddi_carry, subddi_carry): Change type attribute to "multi".
9548
9549 2002-03-19  Dale Johannesen  <dalej@apple.com>
9550
9551         PR optimization/5999, middle-end/5731
9552         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9553         multiplications by reciprocals.
9554
9555 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9556
9557         * Makefile.in: Update.
9558         * c-common.c: Include langhooks.h.
9559         (inline_forbidden_p): Use new hook.
9560         * diagnostic.c: Include langhooks.h.
9561         (format_with_decl, announce_function,
9562         default_print_error_function): Use new hook.
9563         * dwarf2out.c (dwarf2_name): Use new hook.
9564         * function.c: Include langhooks.h.
9565         (init_function_start): Use new hook.
9566         * langhooks-def.h (lhd_decl_printable_name): New.
9567         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9568         (LANGHOOKS_INITIALIZER): Update.
9569         * langhooks.c (lhd_decl_printable_name): New.
9570         * langhooks.h (struct lang_hooks): New hook.
9571         * toplev.c (decl_name, decl_printable_name): Remove.
9572         (open_dump_file): Use new hook.
9573         (process_options): Remove old hook.
9574         * tree.h (decl_printable_name): Remove.
9575 objc:
9576         * objc-act.c (objc_init): Remove old hook.
9577         (objc_printable_name): Export.
9578         * objc-act.h (objc_printable_name): New.
9579         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9580
9581 2002-03-19  Jim Blandy  <jimb@redhat.com>
9582
9583         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9584         the start_source_file debug hook, not the current line number.
9585
9586 2002-03-19  Richard Henderson  <rth@redhat.com>
9587
9588         * flow.c (EH_USES): Provide default.
9589         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9590         * doc/tm.texi (EH_USES): New.
9591
9592         * config/ia64/ia64.c (ia64_eh_uses): New.
9593         * config/ia64/ia64-protos.h: Update.
9594         * config/ia64/ia64.h (EH_USES): New.
9595
9596 2002-03-19  Richard Henderson  <rth@redhat.com>
9597
9598         * varasm.c (output_constant_def): Fix stupid typo.
9599
9600 2002-03-19  Richard Henderson  <rth@redhat.com>
9601
9602         PR 5879
9603         * except.c (current_function_has_exception_handlers): New.
9604         * except.h: Declare it.
9605         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9606         Combine tests that disable all sibcalls for the function.
9607
9608 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9609
9610         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9611         for INTEGER_CST.
9612
9613 2002-03-19  Richard Henderson  <rth@redhat.com>
9614
9615         PR 5977, 5991
9616         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9617         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9618
9619 2002-03-19  Jim Blandy  <jimb@redhat.com>
9620
9621         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9622         name, even if the replacement list contains no tokens, as required
9623         by Dwarf.
9624
9625 2002-03-19  Jason Merrill  <jason@redhat.com>
9626
9627         * varasm.c (globalize_decl): Get the name from the RTL, not
9628         DECL_ASSEMBLER_NAME.
9629
9630         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9631
9632 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9633
9634         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9635         subdi_carry): Define.
9636
9637 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9638
9639         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9640         about -fpic/-fPIC if extra_warnings set.
9641
9642 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9643
9644         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9645         TREE_STRING_POINTER.
9646         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9647
9648 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9649
9650         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9651         in favor of SP if FRAME_POINTER_REQUIRED is false.
9652
9653 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9654
9655         * emit-rtl.c (gen_int_mode): New function.
9656         * rtl.h: Prototype for it.
9657         * combine.c (make_extraction, simplify_comparison), expmed.c
9658         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9659         (convert_modes, store_field), optabs.c (expand_fix),
9660         simplify-rtx.c (neg_const_int, simplify_unary_real),
9661
9662         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9663         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9664
9665 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9666
9667         PR c/5656
9668         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9669         convert_parm_for_inlining.
9670         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9671         Define.
9672         * langhooks-def.h: Likewise.
9673         * objc/objc-lang.c: Likewise.
9674         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9675         function.
9676         * tree-inline.c (initialize_inlined_parameters):
9677         Call convert_parm_for_inlining lang hook if needed.
9678         * c-typeck.c (c_convert_parm_for_inlining): New function.
9679         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9680
9681 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9682
9683         * calls.c (precompute_arguments): Do not assume that temporaries
9684         can be destroyed after expanding the argument.
9685         (expand_call): Likewise.
9686
9687 2002-03-15  Eric Christopher  <echristo@redhat.com>
9688
9689         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9690         Fix register preference on last change.
9691         * config/mips/mips.c (mips_return_in_memory): New function.
9692         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9693         * config/mips/mips-protos.h: Declare.
9694         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9695         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9696
9697 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9698
9699         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9700         a register too.
9701         (anddi3, iorsi3): Likewise.
9702
9703         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9704         use %gprel for symbols that are going to be placed in linkonce
9705         sections.
9706
9707         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9708         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9709         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9710         not needed.  Disregard leaf_function_p().
9711         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9712         mips16 frame pointer.
9713         * config/mips/mips.md (store ra): Only to small SP offsets.
9714         2001-08-22  Graham Stott  <grahams@redhat.com>
9715         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9716         return a REG rtx for the return address register.
9717
9718 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9719
9720         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9721         constant-pool addresses as "mode-dependent".
9722         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9723
9724 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9725
9726         PR target/5740
9727         * expr.c (emit_group_load): Use extract_bit_field if
9728         needed for CONCAT arguments.
9729
9730 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9731
9732         PR target/4863
9733         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9734         offset to the base of the table.
9735         (thumb_tablejump): Matcher for Thumb tablejump insn.
9736         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9737         as the difference of two labels.
9738         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9739         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9740         tables in the code.
9741         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9742         * arm.c (get_jump_table_size): If the table is not in the text
9743         section, return zero.
9744
9745 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9746
9747         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9748         of gen_rtx_SUBREG.
9749         (arm_reload_out_hi): Use gen_lowpart instead of
9750         gen_rtx_SUBREG to access QImode components.
9751         * config/arm/arm.md: Disable zero_extend split for QImode
9752         subregs in BIG_ENDIAN mode.
9753         (storehi_bigend): Match use of least significant byte.
9754         (storeinthi): Remove extraneous SUBREG.
9755         Add missing construction of operands[2].
9756         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9757         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9758         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9759
9760 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9761
9762         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9763         any_operand.
9764
9765 2002-03-17  Richard Henderson  <rth@redhat.com>
9766
9767         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9768         explicitly.
9769
9770 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9771
9772         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9773         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9774
9775 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9776
9777         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9778
9779         * predict.c (estimate_bb_frequencies): Delete unused variables.
9780
9781 2002-03-17  Richard Henderson  <rth@redhat.com>
9782
9783         * config/ia64/ia64.c (ia64_attribute_table): Move before
9784         targetm definition.  Make static.
9785
9786 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9787
9788         * c-common.h (yyparse, c_common_parse_file): New.
9789         * c-lang.c: Include c-common.h.
9790         (LANG_HOOKS_PARSE_FILE): Redefine.
9791         * c-lex.c: Include c-common.h.
9792         (yyparse): Rename c_common_parse_file.  Call yyparse.
9793         * c-parse.in (yyparse): Remove macro.
9794         * c-tree.h (yyparse_1): Remove.
9795         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9796         (LANG_HOOKS_INITIALIZER): Update.
9797         * langhooks.h (struct lang_hoooks): New hook parse_file.
9798         * toplev.c (compile_file): Use parse_file hook.
9799         * tree.h (yyparse): Remove.
9800         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9801
9802 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9803
9804         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9805         float_truncate, not fix.
9806         ("*truncdfsf2_real"): Ditto.
9807         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9808
9809         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9810
9811 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9812
9813         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9814         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9815         where appropriate.  Make the second reference to
9816         leaf_function_p a function call, as intended.  Reindented.
9817
9818         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9819         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9820
9821         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9822         add register to non-constant into sp.
9823
9824         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9825         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9826         (mips16_gp_pseudo_rtx): Lose.
9827         (INIT_EXPANDERS): Deleted.
9828         * config/mips/mips.c (mips_init_machine_status): New.
9829         (mips_free_machine_status): New.
9830         (mips_mark_machine_status): New.
9831         (override_options): Set them.
9832         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9833         (struct machine_function): ... new.  Replaced all references.
9834         (mips_add_gc_roots): Don't mark them.
9835         (embedded_pic_fnaddr_reg): New, extracted from...
9836         (embedded_pic_offset): ... here.
9837         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9838         (movsi): Likewise.
9839
9840 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9841
9842         * cppinit.c: Revert -MD removal.
9843
9844 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9845
9846         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9847         soft registers by default for 68HC12.
9848         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9849         when compiling with -fomit-frame-pointer.
9850         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9851         (expand_epilogue): Likewise.
9852         (m68hc11_gen_rotate): Use exg when rotating by 8.
9853
9854 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9855
9856         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9857         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9858         (splits): Remove unused add splits.
9859         ("*addhi3_68hc12"): Tune constraints.
9860         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9861         constant fits in 8-bits and D is dead use abx/aby instructions.
9862         ("*addhi3"): Remove extern declaration of ix_reg.
9863         ("*subsi3"): Optimize and provide new split.
9864         ("subhi3"): Cleanup.
9865         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9866         (arith splits): For 68hc12 save the address register on the stack
9867         and do the arithmetic operation with a pop.
9868
9869 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9870
9871         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9872         allocating QImode in address registers.
9873         ("*movqi_m68hc11"): Likewise.
9874
9875 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9876
9877         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9878
9879 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9880
9881         * cppinit.c (print_help): Display -MD and -MMD.
9882         Don't display usage string.  Update assertion syntax and
9883         typo.
9884         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9885         (cpp_handle_option): Update.
9886
9887 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9888
9889         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9890         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9891         and define it so that regardless of target CPU size,
9892         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9893         of "int" rather than "long."
9894
9895 2002-03-15  Richard Henderson  <rth@redhat.com>
9896
9897         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9898         size as a tree.
9899
9900 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9901
9902         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9903         ("tstqi" split): Avoid using memory for tstqi on address register.
9904         (splits): Remove constraints.
9905         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9906         ("cmpdf", "cmpsf"): Remove since not used.
9907         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9908         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9909
9910 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9911
9912         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9913         ("neghi2"): Tighten constraints.
9914         ("one_cmplsi2"): Optimize and simplify split.
9915         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9916
9917 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9918
9919         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9920         and split of AND operation to clear the upper bits.
9921         ("*logicalsi3_zextqi"): Likewise.
9922         ("*logicallhi3_zexthi_ashift8"): Likewise.
9923         ("*logicalsi3_silshr16"): Likewise.
9924         ("logicalsi3_silshl16"): Likewise.
9925         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9926
9927 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9928
9929         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9930         (m68hc11_indirect_p): New function.
9931         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9932         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9933         TARGET_M6812.
9934         (asm_print_register): Likewise.
9935         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9936         (m68hc11_indirect_p): Declare.
9937         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9938         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9939         (TARGET_SWITCHES): New option -mrelax.
9940         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9941         destination.
9942         ("iorsi3", "xorsi3"): Likewise.
9943         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9944         ("*andhi3_mem"): New to handle destination in memory with bclr
9945         and a scratch register.
9946         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9947         ("*andhi3_const"): New when operand2 is constant.
9948         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9949         ("*andhi3_gen"): Cleanup of the old "andhi3".
9950         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9951         ("xorqi3"): Update constraints.
9952
9953 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9954
9955         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9956         for reg_equiv_memory_loc when the operand is a register that does
9957         not get a hard register (stack location).
9958         (tst_operand): After reload, accept all memory operand.
9959         (symbolic_memory_operand): Fix detection of symbolic references.
9960         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9961         accept symbols and any constant.
9962
9963 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9964
9965         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9966         note on the insn that sets the soft frame register.
9967         (must_parenthesize): ix and iy are also reserved names.
9968         (print_operand_address): One more place where parenthesis are required
9969         to avoid confusion with register names.
9970         (m68hc11_gen_movhi): Allow push of stack pointer.
9971         (m68hc11_check_z_replacement): Fix handling of parallel with a
9972         clobber.
9973         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9974         the replacement register is.
9975         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9976         and D8_REGS classes.
9977         (MODES_TIEABLE_P): All modes are tieable except QImode.
9978
9979 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9980
9981         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9982         (___subdi3): Likewise.
9983         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9984         (__map_data_section): Optimize 68hc11 case.
9985
9986 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9987
9988         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9989         than a shift to avoid adding a register with itself.
9990         (m68hc11_memory_move_cost): Take into account NO_REGS.
9991         (m68hc11_register_move_cost): Update and use memory move cost
9992         for soft registers.
9993         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9994         it gives more opportunities to cse to optimize.
9995         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9996         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9997
9998 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9999
10000         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
10001         * c-common.def (CLEANUP_STMT): New tree node.
10002         * c-common.h (CLEANUP_DECL): New macro.
10003         (CLEANUP_EXPR): Likewise.
10004         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
10005         * expr.c (expand_expr): Tidy.
10006         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
10007         * tree-inline.c (initialize_inlined_parameters): Clean up
10008         new local variables.
10009
10010 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
10011
10012         PR bootstrap/4128
10013         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
10014         before movrXX only, use reg_overlap_mentioned_p.
10015         Only special case NE if just one insn can be generated.
10016
10017 2002-03-15  Jason Merrill  <jason@redhat.com>
10018
10019         * varasm.c (assemble_variable): Call resolve_unique_section before
10020         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
10021         of error_mark_node.
10022
10023 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
10024
10025         PR target/5170
10026         * arm.md (split pattern for thumb shiftable immediates): Add comment
10027         explaining non-obvious test.
10028
10029 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
10030
10031         PR target/5712
10032         * arm.md (movaddr, movaddr_insn): Delete.
10033
10034 2002-03-15  Jason Merrill  <jason@redhat.com>
10035
10036         * toplev.c (wrapup_global_declarations): Clarify variable handling.
10037         -fkeep-static-consts doesn't apply to comdats.
10038
10039 2002-03-14  Richard Henderson  <rth@redhat.com>
10040
10041         * c-decl.c: Include c-pragma.h.
10042         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
10043         (finish_function): Tidy.
10044         * c-pragma.c: Include c-common.h.
10045         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
10046         (handle_pragma_weak): Use them.
10047         (init_pragma): Register pending_weaks.
10048         * c-pragma.h (maybe_apply_pragma_weak): Declare.
10049         * print-tree.c (print_node): Print DECL_WEAK.
10050         * varasm.c (mark_weak_decls): Remove.
10051         (remove_from_pending_weak_list): Remove.
10052         (add_weak): Remove.
10053         (asm_emit_uninitialised): Call globalize_decl for weak commons.
10054         (weak_decls): Make a tree_list.
10055         (declare_weak): Cons weak_decls directly.
10056         (globalize_decl): Remove weak_decls elements directly.
10057         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
10058         symbols.  Don't pretend to handle aliases.
10059         (init_varasm_once): Update weak_decls registry.
10060         * Makefile.in: Update dependencies.
10061
10062 2002-03-14  Richard Henderson  <rth@redhat.com>
10063
10064         PR target/5312
10065         * config/ia64/ia64.c: Include tm_p.h last.
10066         (gen_nop_type): Remove duplicate definition.
10067         (cycle_end_fill_slots): Set sched_data for second L slot.
10068         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
10069         (nop_cycles_until): Fix typos.
10070
10071 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
10072
10073         PR optimization/5891
10074         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
10075
10076 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
10077
10078         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
10079           descriptors correctly.
10080
10081 2002-03-14  Michael Meissner  <meissner@redhat.com>
10082
10083         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
10084         100, allowing MAX_UNROLLED_INSNS to be overridden.
10085
10086         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
10087         --param.
10088
10089         * unroll.c (params.h): Include.
10090         (MAX_UNROLLED_INSNS): Delete, now in params.h.
10091
10092         * doc/invoke.texi (--param max-unroll-insns): Document.
10093
10094         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
10095
10096 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
10097
10098         * arm.md: Fix warnings about constraints in peepholes and splits.
10099
10100 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
10101
10102         * cpphash.h (struct lexer_state): Remove line_extension member.
10103         * cpplib.c (dequote_string, do_linemarker): New functions.
10104         (linemarker_dir): New data object.
10105         (DIRECTIVE_TABLE): No longer need to interpret #line in
10106         preprocessed source.  Delete obsolete comment about return
10107         values of handlers.
10108         (end_directive, directive_diagnostics, _cpp_handle_directive):
10109         Don't muck with line_extension.
10110         (directive_diagnostics): No need to issue warnings for
10111         linemarkers here.
10112         (_cpp_handle_directive): Issue warnings for linemarkers here,
10113         when appropriate.  Dispatch linemarkers to do_linemarker, not
10114         do_line.
10115         (do_line): Code to handle linemarkers split out to do_linemarker.
10116         Convert escape sequences in filename argument, both places.
10117
10118         * cppmacro.c (quote_string): Rename cpp_quote_string and
10119         export.  All callers changed.
10120         * cpplib.h (cpp_quote_string): Prototype.
10121         * cppmain.c (print_line): Call cpp_quote_string on to_file
10122         before printing it.
10123
10124         * doc/cpp.texi: Document that escapes are now interpreted in
10125         #line and in linemarkers, and that non-printing characters are
10126         converted to octal escapes when linemarkers are generated.
10127
10128 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10129
10130         * emit-rtl.c (try_split): Use delete_insns.
10131         * recog.c (split_all_insns): Fix terminating condition.
10132
10133 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
10134             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10135
10136         PR target/5828
10137         * arm.c (arm_output_epilogue): Fix floating-point register save
10138         adjustment when using a frame pointer.
10139
10140 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
10141
10142         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
10143         * config/mips/mips.c (compute_frame_size): Retrofit them here.
10144         (save_restore_insns, mips_expand_epilogue): And here.
10145         (build_mips16_call_stub): And here.
10146         (mips_function_value): Use the new macros to decide whether a single
10147         or complex float can be returned in floating-point registers.  Return
10148         a parallel rtx in the complex case.
10149
10150 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
10151
10152         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
10153         call after liveness analysis.
10154
10155         * recog.c (split_insn): Use delete_insn_and_edges.
10156
10157         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
10158         instructions to have branch prediction notes.
10159         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
10160
10161 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
10162
10163         * configure.in: Don't pass -Wno-long-long to a ADA compiler
10164         that doesn't support it.
10165         * configure: Regenerate.
10166
10167 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10168
10169         PR target/5626
10170         * config/sparc/sparc.md (normal_branch, inverted_branch,
10171         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10172         inverted_fp_branch): Adjust calls to output_cbranch.
10173         Set length attribute.
10174         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
10175         output_v9branch.  Set length attribute.
10176         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
10177         predicates.
10178         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
10179         (output_cbranch): Likewise.  Handle far branches.
10180         (output_v9branch): Handle far branches.
10181         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
10182         Adjust prototypes.
10183         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
10184         noov_compare64_op predicates.
10185
10186 2002-03-13  Jason Merrill  <jason@redhat.com>
10187
10188         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
10189         into the function and constify it.
10190         * gthr-dce.h, gthr-solaris.h: Likewise.
10191
10192 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
10193
10194         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
10195         * config/rs6000/rs6000.c (rs6000_va_arg): Use
10196         std_expand_builtin_va_arg if not ABI_V4.
10197
10198 2002-03-13  Jason Merrill  <jason@redhat.com>
10199
10200         * varasm.c (globalize_decl): New fn.
10201         (assemble_start_function): Use it.
10202         (asm_emit_uninitialized): Use it.
10203         (assemble_alias): Use it.
10204         (assemble_variable): Use it.
10205
10206 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
10207
10208         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
10209         2002-03-12 internal visibility change.
10210         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
10211         visibility into SYMBOL_REF_FLAG.
10212
10213 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
10214
10215         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
10216         VOIDmode operand.  Add compile-time optimization for constant results.
10217
10218 2002-03-12  Jason Merrill  <jason@redhat.com>
10219
10220         * c-typeck.c (convert_for_assignment): Don't allow conversions
10221         between pointers and references.  Only allow lvalues to convert to
10222         reference.
10223
10224 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
10225
10226         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10227         before prologue, to avoid scheduling problems.
10228
10229 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10230
10231         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10232         (ELIMINABLE_REGS): Add sfp->sp.
10233         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10234
10235 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10236
10237         PR optimization/5892
10238         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10239
10240 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10241
10242         * loop.c (basic_induction_var): Don't call convert_modes if mode
10243         classes are different.
10244
10245 2002-03-12  Richard Henderson  <rth@redhat.com>
10246
10247         PR optimization/5901
10248         * function.c (reposition_prologue_and_epilogue_notes): Position
10249         the markers after/before the last/first insn not deleted.
10250
10251 2002-03-12  Richard Henderson  <rth@redhat.com>
10252
10253         PR optimization/5878
10254         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10255         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10256         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10257
10258         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10259         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10260         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10261
10262         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10263         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10264         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10265         also.  Don't set it if not flag_pic.
10266         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10267         to be INVALID_REGNUM when not used.
10268
10269 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
10270
10271         * expmed.c (store_bit_field): Reset alias set for memory.
10272         (extract_bit_field): Same.
10273
10274 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10275
10276         * c-common.c (c_tree_code_type, c_tree_code_length,
10277         c_tree_code_name, add_c_tree_codes): Delete.
10278         * c-common.h (add_c_tree_codes): Delete.
10279         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10280         Define.
10281         * c-objc-common.c (c_objc_common_init): Don't call
10282         add_c_tree_codes, instead set lang_unsafe_for_reeval.
10283         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10284         objc_tree_code_name, add_objc_tree_codes): Delete.
10285         (objc_init): Don't call add_objc_tree_codes.
10286         * objc/objc-lang.c (tree_code_type, tree_code_length,
10287         tree_code_name): Define.
10288         * toplev.c (lang_independent_init): Don't set
10289         tree_code_length[IDENTIFIER_NODE].
10290         * tree.c (tree_code_type, tree_code_length, tree_code_name):
10291         Delete definitions, moved to language front-ends.
10292         * tree.def (IDENTIFIER_NODE): Hardwire the length.
10293         * tree.h (tree_code_type, tree_code_length, tree_code_name):
10294         Const-ify.
10295         (tree_code_length): Change type to unsigned char.
10296
10297 2002-03-12  Richard Henderson  <rth@redhat.com>
10298
10299         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10300         internal visibility change.
10301
10302 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10303
10304         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10305         validize_mem() instead of change_address to avoid clobbering
10306         memory attributes.
10307
10308 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10309
10310         * c-lex.h (position_after_whitespace): Remove.
10311
10312 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
10313
10314         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10315         (lex_string): Use unsigned char pointers.
10316
10317 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10318
10319         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10320         is not a valid memory_operand.
10321
10322 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10323
10324         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10325         * config/xtensa/lib1funcs.asm: Fix copyright to include
10326         special case for libgcc files.
10327         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10328         (__divsi3): Likewise.
10329         (__umodsi3): Likewise.
10330         (__modsi3): Likewise.
10331         * config/xtensa/lib2funcs.S: Fix copyright to include
10332         special case for libgcc files.
10333
10334 2002-03-12  Tom Rix  <trix@redhat.com>
10335
10336         * collect2.c (resolve_lib_name): Move outside of
10337         OBJECT_FORMAT_COFF ifdef.
10338         (ignore_library): Same.
10339
10340 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10341
10342         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10343
10344 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10345
10346         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10347         to function_section before writing out the constant pool.
10348
10349 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
10350
10351         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10352         zero_constant.
10353         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10354
10355 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
10356
10357         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10358         (adddi3): Likewise.
10359         (movdf): Likewise.
10360         (movdi): Likewise.
10361         (cmpsi splitter): Likewise.
10362         (modsi3): Fail if <= 0.
10363         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10364         redundant test when HOST_BITS_PER_WIDE_INT != 32.
10365         (reg_or_sub_cint64_operand): Likewise.
10366         (num_insns_constant_wide): Optimize sign extension.
10367         (rs6000_legitimize_address): Likewise.
10368
10369 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10370
10371         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10372         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10373
10374 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10375
10376         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10377         address calculation.
10378
10379 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10380
10381         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10382         scratch register to DImode / TImode.
10383         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10384         register used does not overlap the target.
10385
10386 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10387
10388         * Makefile.in (debug.o): Depend on debug.h.
10389         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10390         * debug.c (do_nothing_debug_hooks): Likewise.
10391         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10392         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10393         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10394         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10395         * dwarfout.c (dwarf_debug_hooks): Likewise.
10396         * integrate.c (output_inline_function): Likewise.
10397         * objc/objc-act.c (synth_module_prologue): Likewise.
10398         * sdbout.c (sdb_debug_hooks): Likewise.
10399         * toplev.c (debug_hooks): Likewise.
10400         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10401
10402 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10403
10404         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10405         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10406         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10407         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10408         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10409         * defaults.h (POINTER_SIZE): Define.
10410         * doc/tm.texi (POINTER_SIZE): Document default.
10411
10412 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10413
10414         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10415
10416 2002-03-11  Richard Henderson  <rth@redhat.com>
10417
10418         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10419         if rebuild_label_notes_after_reload.
10420
10421 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
10422
10423         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
10424         emit pic register load if "internal" visibility.
10425         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10426         (cris_expand_builtin_va_arg): Do all computations on trees.
10427
10428 2002-03-11  Richard Henderson  <rth@redhat.com>
10429
10430         * rtlanal.c: Include recog.h.
10431         (keep_with_call_p): Fix thinko.
10432         * Makefile.in (rtlanal.o): Update dependencies.
10433
10434 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
10435
10436         * genflags.c (gen_insn): Use IS_VSPACE.
10437         * genoutput.c (output_insn_data): Likewise.
10438         (process_template): Likewise.
10439
10440 2002-03-11  Richard Henderson  <rth@redhat.com>
10441
10442         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10443
10444 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10445
10446         * Makefile.in: Update.
10447         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10448         Update documentation.
10449         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10450         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10451
10452 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
10453
10454         * Makefile.in: Give texi2pod its input file as a command line
10455         argument, not on stdin.
10456
10457 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
10458             Daniel Berlin  <dan@dberlin.org>
10459
10460         C++ alias analysis improvement.
10461         * alias.c (record_component_aliases): Record aliases for base
10462         classes too.
10463
10464 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
10465
10466         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10467
10468 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
10469
10470         * toplev.c (vms_fopen): Remove, not needed.
10471
10472         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10473
10474         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10475
10476         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10477         for FP, already done later.
10478
10479         * toplev.c (debug_args): Add entry for VMS_DEBUG.
10480         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10481
10482 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
10483
10484         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10485         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10486         LARGEST_EXPONENT_IS_NORMAL for the given mode.
10487         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10488         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10489         (ediv, emul, eldexp, esqrt): Likewise.
10490         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10491         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10492         (saturate): New function.
10493         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10494         (make_nan): Use a saturation value instead of a NaN if
10495         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
10496         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10497         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
10498         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
10499         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10500         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10501         !ROUND_TOWARDS_ZERO.
10502         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10503         (ROUND_TOWARDS_ZERO): Document.
10504
10505 2002-03-11  Andreas Jaeger  <aj@suse.de>
10506
10507         * cfg.c (dump_flow_info): Remove unused variable.
10508
10509 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
10510
10511         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10512         computations on trees.
10513
10514 2002-03-10  Richard Henderson  <rth@redhat.com>
10515
10516         PR 5693:
10517         * reload.c (copy_replacements_1): New.
10518         (copy_replacements): Use it to recurse through the rtx.
10519
10520 2002-03-10  Richard Henderson  <rth@redhat.com>
10521
10522         * loop.c (strength_reduce): Compute number of iterations as
10523         unsigned HOST_WIDE_INT.
10524
10525 2002-03-10  Richard Henderson  <rth@redhat.com>
10526
10527         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10528         to move away from the end of the block.
10529
10530 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10531
10532         PR preprocessor/5899
10533         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10534
10535 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10536
10537         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10538
10539         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10540
10541 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10542
10543         * config/mmix/mmix.c: Improve comments.
10544         (mmix_target_asm_function_prologue): Drop variable
10545         empty_stack_frame.  Don't allocate unused slot above fp.
10546         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10547         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10548         brace in first column.
10549         (enum reg_class): Ditto.
10550         (FIRST_PARM_OFFSET): Now 0.
10551         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10552
10553 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10554
10555         * combine.c (make_extraction): Fix error in last change.
10556
10557 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10558
10559         * c4x.c (c4x_fp_reglist): Const-ify.
10560         * cris.c (cris_print_operand): Likewise.
10561         * i386.c (ix86_va_arg): Likewise.
10562         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10563         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10564         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10565         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10566         * mcore.h (regno_reg_class): Likewise.
10567         * mips.c (gen_int_relational): Likewise.
10568         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10569         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10570         * pdp11.c (move_costs): Likewise.
10571         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10572         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10573         Likewise.
10574         * s390.h (regclass_map): Likewise.
10575         * sh.c (shift_amounts): Likewise.
10576         * sh.md (rotlsi3): Likewise.
10577
10578 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10579
10580         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10581         (ne0+5): Use new clobber to generate proper shift pattern.
10582         Patch by Michael Matz <matz@kde.org>.
10583
10584 2002-03-09  Andreas Schwab  <schwab@suse.de>
10585
10586         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10587
10588 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10589
10590         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10591
10592 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10593
10594         PR middle-end/5877
10595         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10596         even for non-representable constants.
10597
10598 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10599
10600         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10601         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10602         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10603         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10604         (pop_function_context): Compute MAY_SHARE parameter for
10605         fixup_var_refs.
10606         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10607         (gen_mem_addressof): Call fixup_var_refs with new parm.
10608
10609         * combine.c (make_extraction): Don't make extension of CONST_INT.
10610
10611 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10612
10613         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10614         in o32 and o64 ABIs.
10615         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10616         but getting fixed-size structs passed in registers regardless of
10617         padding in o32 and o64 ABIs.
10618
10619         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10620         offset before loading address of argument passed by transparent
10621         reference.
10622
10623 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10624
10625         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10626
10627 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10628
10629         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10630         marker such that registers after it are saved.
10631
10632 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10633
10634         * sparc.c (arith_4096_operand): Fix error in last change.
10635
10636 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10637
10638         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10639         defaults for MEABI.
10640
10641 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10642
10643         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10644         vectors.
10645
10646 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10647
10648         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10649
10650 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10651
10652         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10653         removed; fix return value.
10654         * combine.c (combine_instructions): Dirtify blocks where we failed to
10655         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10656         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10657
10658 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10659
10660         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10661
10662 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10663
10664         * recog.c (peephole2_optimize): Re-distribute EH edges.
10665
10666 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10667
10668         * expr.c (expand_expr): Use unsave lang hook.
10669         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10670         (LANG_HOOKS_INITIALIZER): Update.
10671         * langhooks.h (struct lang_hooks): New hook unsave.
10672         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10673         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10674         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10675         (unsave_expr_now): Remove.
10676         * tree.h (unsave_expr_now, lang_unsave,
10677         lang_unsave_expr_now): Remove.
10678         (lhd_unsave): New.
10679
10680 2002-03-08  Andreas Jaeger  <aj@suse.de>
10681
10682         * flow.c (propagate_block_delete_insn): Remove unused variable.
10683
10684 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10685
10686         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10687         insn length for memory load/store.
10688
10689 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10690
10691         * doc/install.texi (--with-libiconv-prefix): Document.
10692
10693 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10694
10695         * doc/sourcebuild.texi: Fix typo.
10696
10697 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10698
10699         PR c/3711
10700         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10701         trees.
10702
10703 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10704
10705         * rtl.c (copy_most_rtx): Move from here ...
10706         * emit-rtl.c (copy_most_rtx): ... to here.
10707
10708 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10709
10710         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10711         SUBTARGET_CPP_SIZE_SPEC.
10712         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10713
10714         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10715
10716 2002-03-07  Matt Hiller  <hiller@redhat.com>
10717
10718         * gensupport.c (first_dir_md_include): Renamed from include;
10719         change all references.
10720         (last_dir_md_include): Renamed from last_include; change all
10721         references.
10722         (init_md_reader): Unconditionally initialize base_dir whether or
10723         not filename is a relative path.
10724
10725 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10726
10727         * config/fp-bit.c (_unord_f2): Compile it in even if
10728         US_SOFTWARE_GOFAST is enabled.
10729
10730         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10731         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10732         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10733         NULL_RTX, try reversing the comparison and the operands.
10734
10735 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10736
10737         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10738         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10739         and MATCH_OP_DUP.
10740
10741 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10742
10743         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10744
10745 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10746
10747         * basic-block.h (fixup_abnormal_edges): Declare.
10748         * reload1.c (fixup_abnormal_edges): New function.
10749         * reg-stack.c (convert_regs): Use it.
10750
10751         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10752
10753         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10754
10755 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10756
10757         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10758         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10759         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10760         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10761         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10762         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10763         unless x and y could be infinite.
10764         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10765         Check that the common type of both arguments is a real, even for
10766         targets without unordered comparisons.  Allow an integer argument
10767         to be compared against a real.
10768         (expand_tree_builtin): Use expand_unordered_cmp.
10769         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10770         * cse.c (fold_rtx): Likewise.  Fix indentation.
10771         * fold-const.c (fold_real_zero_addition_p): New.
10772         (fold): Use it, and the new HONOR_... macros.
10773         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10774         * jump.c (reversed_comparison_code_parts): After searching for
10775         the true comparison mode, use HONOR_NANS to decide whether it
10776         can be safely reversed.
10777         (reverse_condition_maybe_unordered): Remove IEEE check.
10778         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10779         to decide which simplifications are valid.  Allow the following
10780         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10781         and (a - -b) to (a + b).
10782         (simplify_relational_operation): Use HONOR_NANS.
10783         * doc/tm.texi: Document the MODE_HAS_... macros.
10784
10785 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10786
10787         * combine.c (simplify_comparison): If simplifying a logical shift
10788         right and compare with constant, force the comparison to unsigned.
10789
10790 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10791
10792         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10793
10794         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10795         -mabi=no-altivec
10796         (alt_reg_names): Remove % for vrsave.
10797
10798 2002-03-06  Richard Henderson  <rth@redhat.com>
10799
10800         PR optimization/5844
10801         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10802         if used indicates we've already emitted one copy of an operand.
10803         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10804         (gen_split): Supply a non-null used.
10805
10806 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10807
10808         * reload1.c (reload): Unshare all rtl after reload is done.
10809
10810         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10811         but simply fail if the expression is too complex to simplify.
10812         (simplify_gen_binary): Handle simplify_plus_minus failures.
10813
10814 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10815
10816         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10817         consistently call delete_trivially_dead_insns after CSE and GCSE;
10818         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10819         after liveness2; update comment in last crossjumping.
10820         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10821
10822 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10823
10824         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10825         after completing fast dead code elimination.
10826
10827         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10828         COMPARE operator.
10829
10830 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10831
10832         * version.c:  Fix misplaced leading blanks on first line.
10833
10834 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10835
10836         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10837
10838 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10839
10840         * cfgcleanup.c (mentions_nonequal_regs): New function.
10841         (thread_jump): Use it.
10842         * toplev.c (rest_of_compilation): Run jump threading after
10843         liveness.
10844
10845 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10846
10847         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10848         patch.
10849
10850 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10851
10852         * predict.c (estimate_bb_frequencies): Do not reload the
10853         frequencies from notes.
10854
10855 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10856
10857         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10858         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10859
10860         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10861         delete_noop_moves): Return indeger.
10862         * flow.c (ndead): New variable.
10863         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10864         BB argument; update callers.
10865         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10866         (life_analysis): Do not call purge_all_dead_edges.
10867         (update_life_info): Return number of deleted insns; print statistics.
10868         (update_life_info_in_dirty_blocks): likewise.
10869         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10870         return number of insns deleted.
10871
10872         * cse.c: Include timevar.h
10873         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10874         iterate until stabilizes; print statistics; return number of killed
10875         insns.
10876         * Makefile.in: (cse.o): Add timevar.h dependency
10877         * rtl.h (delete_trivially_dead_insns): New.
10878         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10879         * toplev.c (rest_of_compilation): Update callers.
10880
10881         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10882         (try_optimize_cfg): Do not update liveness.
10883         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10884         removal stabilizes; use delete_trivially_dead_insns.
10885
10886         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10887
10888 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10889
10890         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10891         callbacks when processing assembly language.
10892
10893 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10894
10895         * pa.h (ASM_FILE_END): Define.
10896         * som.h (ASM_FILE_END): Delete.
10897
10898         * pa.c (function_arg): Don't pass floats in general registers in
10899         indirect calls if TARGET_ELF32.
10900
10901 2002-03-05  Richard Henderson  <rth@redhat.com>
10902
10903         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10904
10905 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10906
10907         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10908
10909 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10910
10911         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10912         -r command line.  Don't hide any symbols if not building
10913         shared libgcc.
10914
10915 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10916
10917         * cfg.c (dump_flow_info): Warn about profile mismatches.
10918         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10919         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10920
10921 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10922
10923         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10924         wide volatile memory by parts.
10925
10926 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10927
10928         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10929         is NULL.
10930
10931 2002-03-05  Richard Henderson  <rth@redhat.com>
10932
10933         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10934
10935 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10936
10937         * toplev.c (documented_lang_options): Document more
10938         language-specific options.
10939         * doc/invoke.texi (Warning Options): Correct documentation for
10940         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10941         * c-decl.c (c_decode_option): Use a table to handle warning options.
10942
10943 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10944
10945         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10946         parameter to mmix_encode_section_info.
10947         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10948         relocatably.  Always produce ELF, not mmo if linking relocatably.
10949         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10950         first is non-zero, don't add symbol prefix.
10951         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10952         prototype accordingly.
10953
10954 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10955
10956         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10957
10958 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10959
10960         * configure.in: Increase required makeinfo version to 4.1.
10961         * configure: Regenerate.
10962
10963 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10964
10965         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10966         elsewhere now.
10967
10968 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10969
10970         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10971         * doc/invoke.texi: Fix @math uses.
10972
10973 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10974
10975         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10976         removal
10977
10978 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10979
10980         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10981         (powerpc-*-eabisimaltivec*): Same.
10982
10983         * config/rs6000/t-ppcendian: New.
10984
10985 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10986
10987         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10988         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10989         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10990
10991 2002-03-03  Richard Henderson  <rth@redhat.com>
10992
10993         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10994
10995 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10996
10997         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10998         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10999         tree.c, config/m68k/m68k.c:
11000         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
11001         REAL_ARITHMETIC blocks unconditional.  Delete some further
11002         #ifdef blocks predicated on REAL_ARITHMETIC.
11003         * flags.h, toplev.c: Delete remaining references to
11004         flag_pretend_float.
11005
11006         * doc/invoke.texi: Remove documentation of -fpretend-float.
11007         * doc/tm.texi: Describe the various REAL_* macros as provided by
11008         real.h, not by the target configuration files.
11009
11010         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
11011         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
11012         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11013         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
11014         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
11015         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
11016         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
11017         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
11018         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11019         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
11020         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11021         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
11022         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
11023         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
11024         config/xtensa/xtensa.h:
11025         Do not define, undefine, or mention in comments any of
11026         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
11027         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
11028         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
11029         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
11030         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
11031         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
11032         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
11033         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
11034         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
11035
11036 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11037
11038         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
11039         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
11040         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
11041         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
11042         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
11043         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
11044         Delete.
11045         * defaults.h (BITS_PER_WORD): Define.
11046         * doc/tm.texi (BITS_PER_WORD): Document default value.
11047
11048         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
11049         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
11050         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
11051
11052 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11053
11054         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
11055         lieu of explicit sizeof/sizeof.
11056         * i386.c (override_options, ix86_init_mmx_sse_builtins,
11057         ix86_expand_builtin): Likewise.
11058         * mips.c (mips_add_gc_roots): Likewise.
11059         * mmix.c (mmix_output_condition): Likewise.
11060         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
11061         altivec_init_builtins): Likewise.
11062         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
11063         * cppexp.c (Nsuff, parse_number): Likewise.
11064         * cppinit.c (builtin_array_end): Likewise.
11065         * gcc.c (n_default_compilers, process_command): Likewise.
11066         * genpreds.c (output_predicate_decls): Likewise.
11067         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
11068         * lcm.c (N_ENTITIES): Likewise.
11069         * stor-layout.c (set_sizetype): Likewise.
11070
11071 2002-03-03  Richard Henderson  <rth@redhat.com>
11072
11073         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
11074         for types or labels.
11075
11076 2002-03-03  Richard Henderson  <rth@redhat.com>
11077
11078         * c-decl.c (start_decl): Initialized variables are not common.
11079
11080 2002-03-02  Per Bothner  <per@bothner.com>
11081
11082         * gcc.c (option_map):  Suport new --bootclasspath option.
11083         --CLASSPATH is now just an alias for --classpath.
11084
11085 2002-03-02  Richard Henderson  <rth@redhat.com>
11086
11087         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
11088         load if "internal" visibility.
11089         * doc/extend.texi: Document visibility meanings.
11090
11091 2002-03-02  Richard Henderson  <rth@redhat.com>
11092
11093         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
11094         to functions as well.
11095
11096 2002-03-02  Richard Henderson  <rth@redhat.com>
11097
11098         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
11099         (handle_visibility_attribute): Don't call assemble_visibility.
11100         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
11101         without asmspec.  Invoke assemble_alias when needed.
11102         * varasm.c (maybe_assemble_visibility): New.
11103         (assemble_start_function, assemble_variable, assemble_alias): Use it.
11104
11105 2002-03-02  Richard Henderson  <rth@redhat.com>
11106
11107         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
11108         invoke ENCODE_SECTION_INFO with first call flag.
11109
11110         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
11111         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
11112         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
11113         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
11114         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
11115         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11116         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
11117         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
11118         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
11119         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
11120         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11121         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
11122         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
11123         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
11124         config/mcore/mcore-protos.h, config/mcore/mcore.c,
11125         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
11126         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
11127         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11128         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
11129         config/sh/sh.h, config/sparc/sparc.h,
11130         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
11131         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
11132         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
11133         FIRST argument.  As needed, examine it and do nothing.
11134
11135         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
11136         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11137         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
11138
11139         * config/arm/t-pe (pe.o): Add dependencies.
11140
11141 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11142
11143         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
11144         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
11145         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
11146         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
11147         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
11148         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
11149         * defaults.h (BITS_PER_UNIT): Define.
11150         * doc/tm.texi (BITS_PER_UNIT): Document default value.
11151
11152 2002-03-02  Kazu Hirata  <kazu@hxi.com>
11153
11154         * config/h8300/h8300-protos.h: Add a prototype for
11155         compute_a_shift_length.
11156         * config/h8300/h8300.c (h8300_asm_insn_count): New.
11157         (compute_a_shift_length): Likewise.
11158         (h8300_adjust_insn_length): Do not adjust insn length of shift
11159         insns.
11160         * config/h8300/h8300.md (anonymous shift patterns): Use
11161         compute_a_shift_length.
11162
11163 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11164
11165         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
11166         trunc_int_for_mode.
11167
11168         * emit-rtl.c (offset_address): Call update_temp_slot_address.
11169
11170 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11171
11172         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
11173         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
11174         * flags.h (flag_zero_initialized_in_bss): Declare.
11175         * toplev.c (flag_zero_initialized_in_bss): New flag.
11176         (lang_independent_options): Add flag_zero_initialized_in_bss.
11177         * tree.c (initializer_zerop): New function.
11178         * tree.h (initializer_zerop): Declare.
11179         * varasm.c (assemble_variable): If we can emit bss, put zero
11180         initializers in the bss section.
11181
11182 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
11183
11184         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
11185         like more than one symbol per .weak directive.
11186
11187 2002-03-01  Richard Henderson  <rth@redhat.com>
11188
11189         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
11190         adjust argument_pointer by pretend_args_size.
11191         (ia64_va_start): Adjust va_start address by -pretend_args_size.
11192
11193 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11194
11195         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
11196
11197 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
11198
11199         * toplev.c (rest_of_compilation): Delete dead jumptables before
11200         loop.
11201         * flow.c (delete_dead_jumptables): Make global.
11202         * rtl.h (delete_dead_jumptables): Declare.
11203
11204 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
11205
11206         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
11207         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
11208         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
11209
11210 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11211
11212         * config/h8300/h8300-protos.h: Fix formatting.
11213         * config/h8300/h8300.c: Likewise.
11214         * config/h8300/h8300.h: Likewise.
11215
11216 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11217
11218         * config/h8300/h8300.c (print_operand): Support 16-bit
11219         constant addresses.
11220         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
11221
11222 2002-02-28  Richard Henderson  <rth@redhat.com>
11223
11224         * expmed.c (store_bit_field): Prevent generation of CONCATs;
11225         pun complex values as integers; use gen_lowpart instead of
11226         gen_rtx_SUBREG.
11227         (extract_bit_field): Likewise.
11228
11229 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
11230             David Edelsohn  <edelsohn@gnu.org>
11231
11232         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11233         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11234         (SUPPORTS_WEAK): Likewise.
11235         * output.h (add_weak): Add tree param.
11236         * varasm.c (add_weak): Likewise.  Save decl.
11237         (struct weak_syms): Add decl field.
11238         (mark_weak_decls): New function.
11239         (init_varasm_once): ggc_add_root mark_weak_decls.
11240         (assemble_start_function): Use ASM_WEAKEN_DECL.
11241         (assemble_variable): Likewise.
11242         (assemble_alias): Likewise.
11243         (declare_weak): Pass decl to add_weak.
11244         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11245         (remove_from_pending_weak_list): Declare and define for
11246         ASM_WEAKEN_DECL.
11247         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11248         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11249         * defaults.h (SUPPORTS_WEAK): Likewise.
11250         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11251         .weak for code sym.  Do emit .size for descriptor sym.
11252         (ASM_DECLARE_FUNCTION_SIZE): Define.
11253         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11254         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
11255         .lglobl unless TARGET_XCOFF.  Formatting fixes.
11256         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11257         .weak for code sym.
11258         (HANDLE_PRAGMA_WEAK): Remove.
11259         (ASM_WEAKEN_LABEL): Remove.
11260         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11261
11262 2002-03-01  Jason Merrill  <jason@redhat.com>
11263
11264         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11265         (TARGET_EXPR_CLEANUP): New macro.
11266
11267 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
11268
11269         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11270         to take ptr_extend into account as third type of extension.
11271         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11272         fields used by SUBREG_PROMOTED_UNSIGNED_P.
11273         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11274         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11275         * calls.c (precompute_arguments): Use new macro.
11276         (expand_call): Ditto.
11277         * combine.c (nonzero_bits): Ditto.
11278         (record_promoted_value): Ditto.
11279         * expr.c (store_expr): Ditto.
11280         (expand_expr): Ditto.
11281         * function.c (assign_parms): Ditto.
11282
11283 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
11284
11285         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11286         override -shared and -shared-libgcc.
11287
11288 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
11289
11290         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11291         of "ultrasparc".
11292         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
11293         to be broken.
11294
11295 2002-02-28  Richard Henderson  <rth@redhat.com>
11296
11297         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11298         4 cycle latency from MM producers.
11299         (ia64_internal_sched_reorder): Likewise with pipeline flush.
11300
11301 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
11302
11303         * mklibgcc.in: Don't use GNU make extension.
11304
11305 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11306
11307         * c-parse.in (STATIC): New terminal.
11308         (scspec): New non-terminal.  Update productions accordingly.
11309         (program): Remove bogus ifc / end ifc.
11310         (array_declarator): Simplify production using STATIC.
11311
11312 2002-02-28  Jim Meyering  <meyering@lucent.com>
11313
11314         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11315         \a still means TARGET_BELL.
11316
11317 2002-02-28  Richard Henderson  <rth@redhat.com>
11318
11319         * haifa-sched.c (sched_emit_insn): New.
11320         (schedule_block): Use last_scheduled_insn to track last insn.
11321         * sched-int.h (sched_emit_insn): Prototype.
11322         * config/ia64/ia64.c (last_issued): Remove.
11323         (ia64_variable_issue): Don't set it.
11324         (nop_cycles_until): Use sched_emit_insn.
11325
11326 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
11327
11328         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11329         extended constants.
11330
11331 2002-02-28  Kazu Hirata  <kazu@hxi.com>
11332
11333         * config/h8300/h8300.c: Fix formatting.
11334         * config/h8300/h8300.h: Likewise.
11335
11336 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11337
11338         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11339         which may overwrite the high byte of the frame pointer.
11340
11341 2002-02-28  Bo Thorsen  <bo@suse.de>
11342
11343         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11344         (STARTFILE_SPEC): Add 64 bit files.
11345         (ENDFILE_SPEC): Likewise.
11346
11347 2002-02-28  Jason Merrill  <jason@redhat.com>
11348
11349         * c-decl.c (finish_function): Only warn about missing return
11350         statement with -Wreturn-type.
11351
11352 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11353
11354         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11355
11356         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11357         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11358
11359 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11360
11361         * basic-block.h (BB_REACHABLE): Renumber.
11362         (BB_DIRTY, BB_NEW): New flags.
11363         (clear_bb_flags): Declare.
11364         (update_life_info_in_dirty_blocks): Declare.
11365         * cfg.c (clear_bb_flags): New function.
11366         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11367         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11368         reorder_insns, emit_insn_after): Mark block as dirty.
11369         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11370         (update_life_info_in_dirty_blocks): New function.
11371         * recog.c (apply_change_group): Dirtify block.
11372
11373         * cse.c (cse_insn): Reorder emitting of jump insn to keep
11374         cfg consistent.
11375         * gcse.c (delete_null_pointer_checks): Likewise.
11376
11377         * toplev.c (dump_file_index): Move cse2 after bp,
11378         add DFI_null
11379         (dump_file_info): Similary.
11380         (rest_of_compilation): Avoid most of CFG rebuilds;
11381         do first if converision after null pointer checks, do cse2
11382         after branch prediction; avoid full liveness rebuild after
11383         initializing subregs.
11384         * invoke.texi (-d options): Document -du, renumber.
11385
11386         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11387         (notice_new_block): Do not set BB_UPDATE_LIFE.
11388         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11389          merge_blocks_move_successor_nojumps, merge_blocks,
11390          try_crossjump_to_edge): Likewise.
11391         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11392         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11393         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11394         (merge_of_block): Do not use life_data_ok.
11395         (find_if_case_1): Do not use SET_UPDATE_LIFE.
11396         (if_convert): Use BB_DIRTY mechanizm to update life.
11397         * lcm.c (optimize_mode_switching): Update
11398         update_life_info_in_dirty_blocks
11399
11400 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11401
11402         * Makefile.in (integrate.o): Update.
11403         * c-decl.c (copy_lang_decl): Rename.
11404         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11405         * integrate.c: Include langhooks.h.
11406         (copy_decl_for_inlining): Update to use langhook.
11407         * langhooks-def.h (lhd_do_nothing_t,
11408         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11409         (LANG_HOOKS_INITIALIZER): Update.
11410         * langhooks.c (lhd_do_nothing_t): New.
11411         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11412         * tree.h (copy_lang_decl): Remove.
11413 objc:
11414         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11415
11416 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
11417
11418         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11419         POST_DEC, and POST_MODIFY.
11420
11421 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11422
11423         * c-typeck.c (digest_init): Remove unused parameter; all
11424         callers changed.
11425
11426 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
11427
11428         * expmed.c (expand_shift): Correctly test for low part of a
11429         subreg.
11430
11431 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
11432
11433         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11434         insn UIDs with insn addresses.
11435
11436 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11437
11438         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11439         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11440         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11441         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11442         gcc.c, toplev.c: Delete code implementing -traditional mode.
11443
11444         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11445         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11446         Document removal of -traditional mode for compilation, and
11447         remove documentation only relevant to that mode.
11448
11449         * config/nextstep.h, config/ptx4.h, config/svr4.h,
11450         config/convex/convex.h, config/d30v/d30v.h,
11451         config/i386/dgux.h, config/i386/osf1elf.h,
11452         config/i386/osfelf.h, config/i386/osfrose.h,
11453         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11454         config/m68k/hp310.h, config/m88k/dgux.h,
11455         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11456         config/m88k/m88k.h, config/m88k/openbsd.h,
11457         config/mips/abi64.h, config/mips/osfrose.h,
11458         config/mips/svr4-5.h, config/mips/svr4-t.h,
11459         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11460         config/stormy16/stormy16.h: Remove all references to
11461         -traditional from target specs.  Delete all mention of the
11462         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
11463         delete a couple of commented-out definitions of
11464         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11465         to -traditional.
11466
11467         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11468         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11469
11470 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11471
11472         * mklibgcc.in: Don't use \n in a line subject to
11473         interpretation by echo.
11474
11475 2002-02-27  Graham Stott  <grahams@redhat.com>
11476
11477         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11478         Constify NAME.
11479
11480         * loop.c (prescan_loop): Handle PARALLEL.
11481
11482         * unroll.c (loop_iterations): Return 0 if the add_val for
11483         a BIV is REG.
11484
11485         * final.c (output_operand_lossage): Constify PFX_STR.
11486
11487         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11488
11489 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11490
11491         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11492         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11493
11494 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
11495
11496         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11497
11498 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11499
11500         * cpplex.c (_cpp_lex_token): Handle directives in macro
11501         arguments.
11502         * cpplib.c (_cpp_handle_directive): Save and restore state
11503         if parsing macro args when entering a directive.
11504         * cppmacro.c (collect_args): No need to handle directives
11505         in macro arguments.
11506         (enter_macro_context, replace_args): Use the original macro
11507         definition in case it was redefined whilst collecting arguments.
11508 doc:
11509         * cpp.texi: Update.
11510
11511 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
11512
11513         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11514         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11515         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11516         method on AIX.
11517         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11518         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11519         (load_toc_v4_PIC_2): Same.
11520
11521 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
11522
11523         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11524
11525 2002-02-26  Richard Henderson  <rth@redhat.com>
11526
11527         * config/alpha/alpha.md (ashldi_se): Re-enable.
11528
11529 2002-02-26  Richard Henderson  <rth@redhat.com>
11530
11531         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11532         MODULE_LOCAL_P; improve commentary.
11533
11534 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11535
11536         * doc/cpp.texi: Clarify documentation of relationship between
11537         #line and #include.
11538
11539 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11540
11541         * config/h8300/h8300-protos.h: Update the prototype for
11542         compute_logical_op_length.  Add the prototype for
11543         compute_logical_op_cc.
11544         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11545         code from operands.
11546         (compute_logical_op_cc): New.
11547         * config/h8300/h8300.md: Combine all the logical op patterns
11548         in HImode and SImode.  Use compute_logical_op_cc.
11549
11550 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11551
11552         * config/i386/i386.c (print_operand): Don't append ATT-style
11553         length suffixs to x87 opcodes when in Intel mode.
11554
11555 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11556
11557         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11558         (init_emit_once): Update calls.
11559         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11560         (init_syntax_once): Prototype.
11561
11562 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11563
11564         * pa-linux.h (LIB_SPEC): Update definition.
11565         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11566
11567 2002-02-26  Richard Henderson  <rth@redhat.com>
11568
11569         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11570         if we emitted a stop bit.
11571
11572 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11573
11574         * configure.in (libgcc_visibility): Substitute.
11575         * configure: Rebuilt.
11576         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11577         defined symbols .hidden.
11578
11579 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11580
11581         * attribs.c (c_common_attribute_table): Add visibility.
11582         (handle_visibility_attribute): New function.
11583         * varasm.c (assemble_visibility): New function.
11584         * output.h (assemble_visibility): Add prototype.
11585         * tree.h (MODULE_LOCAL_P): Define.
11586         * crtstuff.c (__dso_handle): Use visibility attribute.
11587         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11588         for MODULE_LOCAL_P symbols too.
11589         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11590         MODULE_LOCAL_P symbols the same way as local symbols.
11591         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11592         into .sdata/.sbss by the user.
11593         * doc/extend.texi (Function Attributes): Document visibility
11594         attribute.
11595
11596 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11597
11598         PR debug/5770
11599         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11600         STRING_CST initializer spanning the whole variable without
11601         embedded zeros.
11602         If expand_expr returned MEM, don't use it.
11603
11604 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11605
11606         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11607         generate a die for the lexical block.
11608
11609 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11610
11611         * config/h8300/h8300-protos.h: Add a prototype for
11612         compute_logical_op_length.
11613         * config/h8300/h8300.c (compute_logical_op_length): New.
11614         * config/h8300/h8300.md (anonymous logical patterns): Use
11615         compute_logical_op_length for length.
11616
11617 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11618
11619         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11620         for vectors.
11621         (gen_type_die): Same.
11622
11623         * attribs.c (handle_vector_size_attribute): Set debug information.
11624
11625 2002-02-26  Daniel Egger  <degger@fhm.edu>
11626
11627         * config/rs6000/rs6000.md: Swap define_insn attributes to
11628         fix incorrect generation of merge high instructions instead
11629         of merge low.
11630
11631 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11632
11633         * c-typeck.c (really_start_incremental_init): Use
11634         bitsize_zero_node for vectors.
11635
11636 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11637
11638         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11639         ("*set_vrsave_internal"): Same.
11640
11641 2002-02-25  Richard Henderson  <rth@redhat.com>
11642
11643         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11644         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11645
11646 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11647
11648         PR target/5755
11649         * config/i386/i386.c (ix86_return_pops_args): Only pop
11650         fake structure return argument if it was passed on the stack.
11651
11652 2002-02-25  Jason Merrill  <jason@redhat.com>
11653
11654         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11655         RESULT_DECL.
11656
11657 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11658
11659         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11660         link with shared_name only.
11661         * doc/invoke.texi (Link Options): Document new behavior.
11662
11663 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11664
11665         * c-typeck.c (push_init_level): Handle vectors.
11666
11667 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11668
11669         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11670         operands of SPARC_SETHI_P.
11671         (input_operand): Likewise.
11672         (sparc_emit_set_const32): Likewise.
11673         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11674         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11675         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11676         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11677         (movdi_insn_sp64_vis): Likewise.
11678         (movdi split, movdf split): Use SETHI32.
11679         * doc/md.texi: Document SPARC constraints L, M and N.
11680
11681 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11682
11683         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11684         ("*set_vrsave_internal"): use mfspr for Darwin.
11685
11686         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11687         gen_get_vrsave_internal.
11688
11689 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11690
11691         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11692
11693 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11694
11695         * cpplex.c (cpp_interpret_charconst): Get signedness or
11696         otherwise of wide character constants correct.
11697         * cppexp.c (lex): Get signedness of wide charconsts correct.
11698
11699 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11700
11701         * optabs.c (widen_operand): Only call convert_modes for
11702         promoted SUBREG if signedness matches.
11703         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11704
11705 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11706
11707         * cpplib.c (glue_header_name): Use local buffer to build up
11708         header name.
11709
11710 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11711
11712         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11713
11714 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11715
11716         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11717         H8/300[HS] separately.
11718         * config/h8300/h8300.md: Remove the early clobber constraint
11719         from bit field patterns.
11720
11721 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11722
11723         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11724         register_operand.
11725         (mulhisi3): Likewise.
11726         (umulqisi3): Likewise.
11727         (umulhisi3): Likewise.
11728
11729 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11730
11731         * cppinit.c (output_deps): Correct test for stdout output.
11732         (init_dependency_output): Cure warning.
11733
11734 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11735
11736         * expr.c (store_expr): When converting expression to promoted
11737         equivalent type, allow using SUBREG_REG of TARGET as the target
11738         of the expansion of EXP.
11739         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11740         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11741         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11742         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11743         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11744
11745 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11746
11747         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11748         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11749         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11750
11751 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11752
11753         PR optimization/5747
11754         * loop.c (scan_loop): Update reg info if move_movables created new
11755         pseudos.
11756
11757 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11758
11759         * gcc.c (init_gcc_spec): Revert last change.
11760
11761 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11762
11763         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11764         gpc_reg_operand constraint.
11765
11766 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11767
11768         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11769         Simplify comparison of `low'.
11770         (add_operand): Fix formatting.
11771         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11772         (mask_operand): Disallow mask to wrap in 64-bit mode.
11773         (rs6000_stack_info): Remove redundant test setting push_p.
11774         (output_toc): Fix formatting.
11775         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11776         cc_reg_not_cr0_operand constraint.
11777         (booldi3, boolcdi3 splitters): Same.
11778
11779 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11780
11781         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11782
11783 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11784
11785         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11786         gcc invoked with -shared-libgcc.
11787
11788 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11789
11790         PR c++/5748
11791         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11792         decl if any of elements was TREE_USED.
11793
11794 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11795
11796         * config/sparc/sol2.h: Don't include sys/mman.h.
11797         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11798         (arith_4096_operand): Don't throw high bits away.
11799         (const64_operand): Take sign extension of CONST_INTs into account.
11800         (const64_high_operand, sparc_emit_set_const32): Likewise.
11801         (GEN_HIGHINT64): Likewise.
11802         (sparc_emit_set_const64_quick1): Likewise.
11803         (const64_is_2insns): Likewise.
11804         (print_operand): Use trunc_int_for_mode for sign extension.
11805         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11806         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11807         chars.  Assume CONST_INT is already properly sign-extended.
11808         (movdi split): Sign-extend each SImode part.
11809         (andsi3 split): Don't mask high bits off, so that result
11810         remains properly sign-extend.
11811         (iorsi3 split): Likewise.
11812         (xorsi3 split): Likewise.
11813
11814 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11815
11816         * fold-const.c (fold): Fix typo in comments.
11817
11818 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11819
11820         * Makefile.in (langhooks.o): Update dependencies.
11821
11822 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11823
11824         * langhooks.c: Include flags.h.
11825
11826 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11827
11828         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11829
11830         * c-common.c (c_common_post_options): Set inline trees by
11831         default.
11832
11833         * doc/extend.texi (Function Attributes): Document always_inline
11834         attribute.
11835         Update documentation about inlining when not optimizing.
11836
11837         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11838
11839         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11840         unless DECL_ALWAYS_INLINE.
11841
11842         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11843         unless DECL_ALWAYS_INLINE.
11844         (c_disregard_inline_limits): Disregard if always_inline set.
11845
11846         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11847         Disregard if always_inline set.
11848         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11849         unless DECL_ALWAYS_INLINE.
11850
11851         * attribs.c (handle_always_inline_attribute): New.
11852         (c_common_attribute_table): Add always_inline.
11853
11854         * config/rs6000/altivec.h: Add prototypes for builtins
11855         requiring the always_inline attribute.
11856
11857 2002-02-21  Eric Christopher  <echristo@redhat.com>
11858
11859         * expmed.c (store_bit_field): Try to simplify the subreg
11860         before generating a new one when when the mode size of
11861         value is less than maxmode.
11862
11863 2002-02-21  Richard Henderson  <rth@redhat.com>
11864
11865         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11866         than gen_rtx_PLUS to form the sum.
11867         * explow.c (force_reg): Rearrange to not allocate new pseudo
11868         when force_operand returns a register.
11869         * expr.c (expand_assignment): Allow offset_rtx expansion to
11870         return a sum.  Do not force addresses into registers.
11871         (expand_expr): Likewise.
11872         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11873         to canonicalize arithmetic that didn't simpify.
11874         (simplify_plus_minus): New argument force; update
11875         all callers.  Don't split CONST unless we can do something with it,
11876         and wouldn't lose the constness of the operands.
11877
11878         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11879         that we generated earlier.
11880
11881 2002-02-21  Tom Tromey  <tromey@redhat.com>
11882
11883         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11884         (output_line_info): Use constant `1', with a long explanatory
11885         comment.
11886         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11887
11888 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11889
11890         * jump.c (redirect_jump): If old label has no UID, don't try to
11891         delete it.
11892
11893 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11894
11895         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11896         If input is constant, do shifts at compile time.
11897
11898 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11899
11900         * doc/extend.texi: Fix some more overfull hboxes.
11901
11902 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11903
11904         PR optimization/4994
11905         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11906         register moves.
11907
11908 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11909
11910         PR c++/4574
11911         * expr.h (expand_and): Add mode argument.
11912         * expmed.c (expand_and): Add mode argument.
11913         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11914         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11915         * except.c (expand_builtin_extract_return_addr): Likewise.
11916         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11917         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11918         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11919         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11920         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11921         gen_rtx (CONST_INT, VOIDmode, x).
11922
11923 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11924
11925         PR c/4697:
11926         * stmt.c (warn_if_unused_value): Move side effects test once more.
11927
11928 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11929
11930         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11931         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11932
11933 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11934
11935         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11936         SUBREG or ZERO_EXTEND.
11937
11938 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11939
11940         * sh.h (current_function_anonymous_args): Remove.
11941         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11942         of current_function_varargs and current_function_stdarg is set.
11943         * sh.c (sh_expand_prologue): Check current_function_varargs /
11944         current_function_stdarg / TARGET_SH5 instead of
11945         current_function_anonymous_args.
11946
11947         * sh64.h (TARGET_VERSION): Define.
11948
11949 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11950
11951         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11952         VRSAVE_REGNO on TARGET_ALTIVEC.
11953
11954 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11955
11956         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11957         bits of SImode const_int.
11958         (includes_rshift_p): Likewise.
11959         (print_operand): Call mask_operand and mask64_operand with correct
11960         mode.
11961         (rs6000_output_function_epilogue): Pad traceback table to word.
11962         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11963         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11964         mask64_operand with correct mode.
11965         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11966
11967 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11968
11969         PR debug/4461
11970         * varasm.c (get_pool_constant_mark): New.
11971         * rtl.h (get_pool_constant_mark): Add prototype.
11972         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11973         be represented if it has not been output.
11974
11975 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11976
11977         * combine.c (do_SUBST): Sanity check substitutions of
11978         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11979         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11980         CONST_INT into its operand.
11981         (known_cond): Likewise, for ZERO_EXTEND.
11982         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11983         allow for simplification of wide modes.  Reject CONST_INTs in
11984         ZERO_EXTEND when their actual mode is not given.
11985
11986 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11987
11988         * c-decl.c (pushdecl): If no global declaration is found for an
11989         extern declaration in block scope, try a limbo one.
11990
11991 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11992
11993         PR c++/4401
11994         * c-common.c (pointer_int_sum): Moved from...
11995         * c-typeck.c (pointer_int_sum): ...here.
11996         * c-common.h (pointer_int_sum): Add prototype.
11997
11998 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11999
12000         PR c++/5713
12001         * c-decl.c (duplicate_decls): Return 0 if issued error about
12002         redeclaration.
12003
12004 2002-02-20  Roger Sayle  <roger@eyesopen.com>
12005             Jakub Jelinek  <jakub@redhat.com>
12006
12007         PR c/4389
12008         * tree.c (host_integerp): Ensure that the constant integer is
12009         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
12010         when pos is zero or non-zero respectively.  Clarify comment.
12011         * c-format.c (check_format_info_recurse): Fix host_integerp
12012         usage; the pos argument should be zero when assigning to a
12013         signed HOST_WIDE_INT.
12014
12015 2002-02-20  Richard Henderson  <rth@redhat.com>
12016
12017         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
12018         of the operand, rather than assuming TImode.
12019         (ix86_expand_binop_builtin): Cope with commutative patterns
12020         using nonimmediate_operand for both operands.
12021         (ix86_expand_timode_binop_builtin): Likewise.
12022         (ix86_expand_store_builtin): Validate operand 1.
12023         (ix86_expand_unop1_builtin): Likewise.
12024
12025 2002-02-20  Philip Blundell  <philb@gnu.org>
12026
12027         PR 5705
12028         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
12029
12030 2002-02-20  Richard Henderson  <rth@redhat.com>
12031
12032         PR c/5615
12033         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
12034
12035 2002-02-20  Tom Tromey  <tromey@redhat.com>
12036
12037         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12038         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12039         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12040         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12041         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
12042         unconditionally.
12043
12044 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
12045
12046         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
12047           for (const_int 0) in X not just INTVAL.
12048
12049 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
12050
12051         * doc/extend.texi: Avoid or reduce overfull hboxes.
12052
12053 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
12054
12055         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
12056         operations if the field does not start at a mode boundary.
12057
12058 2001-02-20      Joel Sherrill <joel@OARcorp.com>
12059
12060         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
12061         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
12062         Also done for -Acpu and -Amachine.
12063
12064 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12065
12066         * cppinit.c (init_dependency_output): Take deps output file
12067         from -o if none given with -MF.  Suppress normal output.
12068         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
12069         * doc/cpp.texi, doc/invoke.texi: Update.
12070
12071 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
12072
12073         * toplev.c (output_quoted_string): Write unprintable
12074         characters with octal escapes.
12075
12076 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
12077
12078         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
12079         really_call_used[VRSAVE_REGNO] if not Altivec.
12080
12081 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
12082
12083         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
12084         MODE_MASK.
12085         (constant_pool_expr_1): Fix formatting.
12086         (rs6000_legitimize_reload_address): Likewise.
12087
12088 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12089
12090         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
12091         now that we have one.
12092
12093 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
12094
12095         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
12096         end of first block of bitfields (which was only seven bits);
12097         rename dummy to unused_1; remove comment which is no longer true.
12098
12099 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
12100
12101         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
12102
12103 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
12104
12105         PR 5399
12106         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
12107         if generating PIC.
12108
12109         PR 5054
12110         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
12111         arm_is_longcall_p rather than inspecting call-type cookie
12112         directly.
12113         (call_value_insn) [TARGET_THUMB]: Likewise.
12114
12115 2002-02-19  Graham Stott  <grahams@redhat.com>
12116
12117         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
12118
12119 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
12120
12121         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
12122         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
12123         (FP_SAVE_INLINE): Delete.
12124
12125         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
12126         * config/rs6000/eabi.asm: Remove ABI save restore routines.
12127         * config/rs6000/t-ppccomm: Build crtsavres.o.
12128         * config/rs6000/crtsavres.asm: New file.
12129
12130 2002-02-19  Philip Blundell  <philb@gnu.org>
12131
12132         * config/arm/arm.c (use_return_insn): Don't reject interrupt
12133         functions.
12134         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
12135         (output_return_instruction): Allow interrupt functions to return with
12136         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
12137         (arm_expand_prologue): Subtract 4 before stacking LR in an
12138         interrupt function.
12139
12140 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
12141
12142         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
12143         decl, not just FUNCTION_DECL.
12144         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
12145         (arm_assemble_integer): Likewise.
12146         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
12147         marked local.
12148
12149 2002-02-19  matthew green  <mrg@eterna.com.au>
12150
12151         * config.gcc (sparc-*-netbsdelf*): Enable target.
12152         (sparc64-*-netbsd*): New target.
12153         * config/sparc/netbsd-elf.h: New file.
12154         * config/sparc/t-netbsd64: New file.
12155
12156 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
12157
12158         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
12159
12160 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
12161
12162         * doc/invoke.texi: explicitly list the style guidelines that
12163         -Weffc++ checks for.
12164
12165 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
12166
12167         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
12168
12169 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12170
12171         PR other/5718
12172         * gcc.c (cpp_unique_options): Treat -o as indicating object file
12173         only if not -E.  If -E, pass -o through to the preprocessor.
12174
12175 2002-02-19  Kazu Hirata  <kazu@hxi.com>
12176
12177         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
12178         register number with an appropriate macro.
12179
12180 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12181
12182         * doc/rtl.texi (Constants): Close @code tag.
12183
12184 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
12185
12186         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
12187         ("mmx_uavgv4hi3"): Same.
12188         ("pmulhrwv4hi3"): Same.
12189
12190         * tree-inline.c (walk_tree): Handle vectors.
12191
12192         * c-common.c (constant_expression_warning): Handle vectors.
12193         (overflow_warning): Same.
12194
12195         * sched-deps.c (sched_analyze_2): Handle vectors.
12196
12197         * rtlanal.c (rtx_unstable_p): Handle vectors.
12198         (rtx_varies_p): Same.
12199         (count_occurrences): Same.
12200         (regs_set_between_p): Same.
12201         (modified_between_p): Same.
12202         (modified_in_p): Same.
12203         (volatile_insn_p): Same.
12204         (volatile_refs_p): Same.
12205         (side_effects_p): Same.
12206         (may_trap_p): Same.
12207         (inequality_comparisons_p): Same.
12208         (replace_regs): Same.
12209         (computed_jump_p_1): Same.
12210
12211         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
12212         argument.
12213         (inner_mode_array): New.
12214         (copy_rtx): Handle vectors.
12215         (copy_most_rtx): Same.
12216         (rtx_equal_p): Same.
12217         (get_mode_alignment): Adjust for vectors.
12218
12219         * resource.c (mark_referenced_resources): Handle vectors.
12220         (mark_set_resources): Same.
12221
12222         * reload1.c (eliminate_regs): Handle vectors.
12223         (elimination_effects): Same.
12224         (scan_paradoxical_subregs): Same.
12225
12226         * reload.c (subst_reg_equivs): Handle vectors.
12227
12228         * regrename.c (scan_rtx): Handle vectors.
12229
12230         * regclass.c (reg_scan_mark_refs): Handle vectors.
12231
12232         * recog.c (find_single_use_1): Handle vectors.
12233
12234         * local-alloc.c (equiv_init_varies_p): Handle vectors.
12235         (contains_replace_regs): Same.
12236         (memref_referenced_p): Same.
12237
12238         * integrate.c (copy_rtx_and_substitute): Handle vectors.
12239         (subst_constants): Same.
12240
12241         * genattrtab.c (attr_copy_rtx): Handle vectors.
12242         (encode_units_mask): Same.
12243         (clear_struct_flag): Same.
12244         (count_sub_rtxs): Same.
12245
12246         * gcse.c (want_to_gcse_p): Handle vectors.
12247         (oprs_unchanged_p): Same.
12248         (hash_expr_1): Same.
12249         (oprs_not_set_p): Same.
12250         (expr_killed_p): Same.
12251         (compute_transp): Same.
12252         (store_ops_ok): Same.
12253
12254         * function.c (purge_addressof_1): Do not allow paradoxical subregs
12255         of vectors.
12256         (fixup_var_refs_1): Same.
12257         (instantiate_virtual_regs_1): Same.
12258
12259         * fold-const.c (operand_equal_p): Handle vectors.
12260         (fold): Same.
12261         (rtl_expr_nonnegative_p): Same.
12262
12263         * flow.c (mark_used_regs): Handle vectors.
12264
12265         * df.c (df_uses_record): Handle vectors.
12266
12267         * cselib.c (cselib_subst_to_values): Handle vectors.
12268         (cselib_mem_conflict_p): Same.
12269         (hash_rtx): Same.
12270
12271         * cse.c (canon_reg): Handle vectors.
12272         (fold_rt): Same.
12273         (cse_process_notes): Same.
12274         (count_reg_usage): Same.
12275         (canon_hash): Same.
12276
12277         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12278
12279         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12280
12281         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12282         (gen_rtx): Handle CONST_VECTOR.
12283         (gen_const_vector_0): New.
12284         (copy_rtx_if_shared): CONST_VECTORs can be shared.
12285         (reset_used_flags): Same.
12286         (copy_insn_1): Same.
12287         (initializer_constant_valid_p): Handle VECTOR_CST.
12288
12289         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12290
12291         * doc/rtl.texi (Constants): Document const_vector.
12292         (CONST0_RTX): Update for vectors.
12293         (RTL sharing): Same.
12294
12295         * print-tree.c (print_node): Add case for VECTOR_CST.
12296
12297         * tree.h (TREE_VECTOR_CST_ELTS): New.
12298         (struct tree_vector): New.
12299         (union tree_node): Add vector node.
12300         (build_vector): Add prototype.
12301
12302         * tree.def (VECTOR_CST): New.
12303
12304         * tree.c (build_vector): New.
12305
12306         * expmed.c (make_tree): Handle CONST_VECTOR.
12307
12308         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12309         (CONST_VECTOR_ELT): New.
12310         (CONST_VECTOR_NUNITS): New.
12311
12312         * machmode.h (GET_MODE_INNER): New.
12313         (DEF_MACHMODE): Accept 8th arg.
12314
12315         * machmode.def: Add 8th argument for vector inner mode.
12316         Add inner vector modes for vectors.
12317
12318         * rtl.def (VEC_CONST): Remove.
12319         (CONST_VECTOR): New.
12320
12321         * expr.c (clear_storage): Allow vectors.
12322         (is_zeros_p): Handle VECTOR_CST.
12323
12324         * varasm.c (output_constant_pool): Handle vectors.
12325         (rtx_const): Add veclo and vechi fields.
12326         (kind): Add RTX_VECTOR.
12327         (decode_rtx_const): Add case for vector.
12328
12329         * config/rs6000/rs6000-protos.h: Add zero_constant.
12330
12331         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12332         constants.  Force easy vector constants into memory.
12333         (easy_vector_constant): New.
12334         (emit_easy_vector_constant): New.
12335         (rs6000_legitimize_reload_address): Do not generate bad reloads on
12336         darwin.
12337
12338         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12339         instruction does.
12340         ("altivec_lvxl"): Same.
12341         (altivec_lvebx): Same.
12342         (altivec_lvehx): Same.
12343         (altivec_lvewx): Same.
12344         ("*movv4si_const0"): New.
12345         ("*movv4sf_const0"): New.
12346         ("*movv8hi_const0"): New.
12347         ("*movv16qi_const0"): New.
12348
12349 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12350
12351         * config/h8300/h8300.c (notice_update_cc): Use
12352         cc_status.value2.
12353
12354 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12355
12356         * config/h8300/h8300.md (divmod patterns): Change the
12357         constraints for operands[1] to register_operand.
12358
12359 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12360
12361         * config/h8300/h8300-protos.h: Remove the prototype for
12362         p_operand.
12363         * config/h8300/h8300.c (p_operand): Remove.
12364         * config/h8300/h8300.md: Replace p_operand with
12365         const_int_operand.
12366
12367 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12368
12369         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12370         comment.
12371         (output_return_instruction): Allow use of LDR to unstack
12372         return addresss even for interrupt handlers or when
12373         interworking.  If compiling for ARMv5, use interworking-safe
12374         return instructions by default.  Remove duplicated code and
12375         lengthy "strcat" sequences.
12376
12377 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12378
12379         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12380         (LINK_EH_SPEC): Define.
12381         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12382
12383 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
12384
12385         * config/s390/s390.c (s390_emit_prologue): Do not set the
12386         frame_related flag for call-clobbered registers.
12387
12388 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12389
12390         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12391         (construct_container): Fix handling of SSE operands.
12392         (ix86_expand_builtin): Fix handling of 64bit pointers.
12393         (mmx_maskmovq_rex): New pattern.
12394
12395 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12396
12397         * regrename.c (kill_set_value): Handle subregs properly.
12398
12399 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
12400
12401         * objc/objc-act.c (handle_impent): Remove leading '*'
12402         from objc_class_name.
12403
12404 2002-02-17  Richard Henderson  <rth@redhat.com>
12405
12406         * config/alpha/alpha.c (some_small_symbolic_operand,
12407         some_small_symbolic_operand_1, split_small_symbolic_operand,
12408         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12409         Handle small SYMBOL_REFs anywhere, not just inside memories.
12410         * config/alpha/alpha-protos.h: Update.
12411         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12412         * config/alpha/alpha.md (small symbolic operand splitter): Update.
12413
12414 2002-02-17  Roland McGrath  <roland@frob.com>
12415
12416         * config.gcc (powerpc-*-gnu-gnualtivec*,
12417         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12418         * config/rs6000/gnu.h: New file.
12419         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12420         Grok "gnu" in rs6000_abi_name.
12421         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12422         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12423         Grok -mcall-gnu analogous to -mcall-linux et al.
12424         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12425         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12426         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12427
12428 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
12429
12430         PR c/3444:
12431         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12432         shortening.
12433
12434 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12435
12436         * config/cris/cris.h: Undefine STARTFILE_SPEC and
12437         ENDFILE_SPEC before (re)defining them.
12438
12439 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12440
12441         * config/h8300/h8300.c: Fix formatting.
12442         * config/h8300/h8300.h: Likewise.
12443
12444 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12445
12446         * doc/tm.texi: Explain why empty strings should not be
12447         marked for translation.
12448
12449 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12450
12451         * final.c (output_operand_lossage): Changed to accept
12452         printf style arguments. Change calls where necessary.
12453         * output.h (output_operand_lossage): Change declaration
12454         accordingly. Update copyright.
12455         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12456         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12457         Update copyright date where necessary.
12458
12459         * config/i386/i386.c (print_operand): Likewise. Remove use of
12460         sprintf.
12461
12462         * config/cris/cris.c (cris_operand_lossage): Likewise.
12463         Rename parameter so that exgettext recognizes it as
12464         translatable message.
12465         (LOSE_AND_RETURN): Rename parameter to msgid.
12466
12467 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12468
12469         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12470         hard coded register number with an appropriate macro.
12471         (HARD_REGNO_MODE_OK): Likewise.
12472         (ARG_POINTER_REGNUM): Likewise.
12473         (STATIC_CHAIN_REGNUM): Likewise.
12474         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12475         * config/h8300/h8300.md (define_constants): Define more
12476         register numbers.
12477
12478 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12479
12480         * config/i386/i386.h: Don't mark empty strings for translation.
12481
12482 2002-02-16  H.J. Lu <hjl@gnu.org>
12483
12484         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12485
12486 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
12487
12488         * cppinit.c (merge_include_chains): Check for brack being
12489         NULL before attempting to merge it with qtail.
12490
12491 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12492
12493         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12494         DBX_DEBUG.
12495
12496 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12497
12498         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12499
12500 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12501
12502         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12503         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12504         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12505
12506 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12507
12508         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12509         now only if !TARGET_FIX.
12510         (*movsi_nt_vms_fix): New pattern.
12511
12512 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
12513
12514         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12515         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12516         (alpha_sa_mask, alpha_sa_size): Reflect above change.
12517         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12518         (alpha_start_function, alpha_expand_epilogue): Likewise.
12519         (unicosmk_gen_dsib): Likewise.
12520
12521 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12522
12523         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12524
12525 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
12526
12527         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12528         check_and_change_labels, s390_final_chunkify): Delete.
12529         (s390_split_branches, s390_chunkify_pool): New functions.
12530         (s390_function_prologue): Call them.
12531
12532         * config/s390/s390.h (S390_REL_MAX): Delete.
12533         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12534
12535         * config/s390/s390.md (cjump, icjump, jump): Fix length
12536         attribute calculation.
12537
12538
12539 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12540
12541         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12542         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12543
12544 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12545
12546         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12547         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12548         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12549
12550 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12551
12552         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12553
12554 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12555
12556         * reload.c (find_dummy_reload): Check that an output register
12557         is valid for its mode.
12558
12559 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12560
12561         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12562         to simplify it.
12563
12564         * function.c (assign_parms): Demote promoted argument passed by
12565         transparent reference.
12566
12567 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12568
12569         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12570         -Acpu() and -Amachine() to eliminate warnings.
12571
12572 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12573
12574         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12575
12576 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12577
12578         * config/h8300/h8300-protos.h: Update the prototype for
12579         const_costs.
12580         * config/h8300/h8300.c (const_costs): Treat SET as a little
12581         more expensive operation.
12582         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12583         reference to const_costs.
12584
12585 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12586
12587         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12588
12589 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12590
12591         PR c/5503:
12592         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12593         use arguments from newtype.
12594
12595 2002-02-13  Eric Christopher  <echristo@redhat.com>
12596
12597         * config/mips/mips.c (override_options): Add check for march/mipsX
12598         on the same command line. Fix error message in cpu processing.
12599         Remove architecture and ISA checks.
12600
12601 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12602
12603         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12604
12605         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12606
12607 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12608
12609         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12610         alternatives.
12611         ("*movv8hi_internal1"): Same.
12612         ("*movv16qi_internal1"): Same.
12613         ("*movv4sf_internal1"): Same.
12614
12615         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12616         not push_reload for altivec modes.
12617
12618 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12619
12620         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12621         all RTEMS targets including removal of #includes from config/*/rtems*.h
12622         file and adding them to tm_file setting. Added xm_defines=POSIX to
12623         many targets.
12624         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12625         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12626         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12627         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12628         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12629         config/m68k/rtemself.h: Ditto.
12630         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12631         config/mips/rtems64.h: Ditto.
12632         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12633         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12634         Ditto.
12635         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12636         config/sparc/rtemself.h: Ditto.
12637         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12638         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12639         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12640         more like arm-elf.
12641         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12642         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12643         target made more similar to i386-elf.
12644         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12645         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12646         be similar to config/m68k/t-m68kelf.
12647         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12648
12649 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12650
12651         * regmove.c (kill_value): Handle subregs.
12652
12653 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12654
12655         * i386.md (mul patterns): Allow memory operand to be first;
12656         add expanders where needed; fix constraints.
12657         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12658         Allow memory operand to be the first.
12659
12660         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12661         operands.
12662
12663 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12664
12665         PR c/5681:
12666         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12667         GET_MODE (x).
12668
12669 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12670
12671         PR optimization/5547:
12672         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12673         all valid IA-32 address modes involving non-scaled %ebx and
12674         GOT/GOTOFF as displacement.
12675
12676 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12677
12678         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12679         after emitting ltorg insns.
12680
12681         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12682         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12683         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12684         *abssf2): Fix "op_type" attribute.
12685
12686 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12687
12688         * mkconfig.sh: Avoid using a subshell redirect.
12689         ($output.T): Change to $(output)T.
12690         (ENABLE_NLS): Remove unneeded undef.
12691
12692         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12693         * config/alpha/x-vms (libsubdir): Define.
12694
12695         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12696         register frame procedures. Optimize retrieving context.
12697
12698         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12699         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12700         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12701
12702 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12703
12704         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12705         Make same change as for find_base_value.
12706
12707 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12708
12709         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12710         of QImode and SImode.
12711
12712 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12713
12714         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12715         length computation of movsi.
12716         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12717
12718 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12719
12720         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12721         operands[2] to register_operand.
12722
12723 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12724
12725         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12726
12727 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12728
12729         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12730         for altivec_lvx* and altivec_stvx*.
12731         ("*movv4si_internal"): Add constraint for loading from GPRs.
12732         ("*movv8hi_internal1"): Same.
12733         ("*movv16qi_internal1"): Same.
12734         ("*movv4sf_internal1"): Same.
12735
12736         * config/rs6000/rs6000.c (altivec_register_operand): New.
12737
12738         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12739         altivec_register_operand.
12740
12741 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12742
12743         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12744         handle SYMBOL_REF.
12745
12746 2002-02-13  Stan Shebs  <shebs@apple.com>
12747
12748         * c-typeck.c (digest_init): Handle vectors.
12749         (really_start_incremental_init): Same.
12750         (pop_init_level): Same.
12751         (process_init_element): Same.
12752
12753         * varasm.c (output_constant): Same.
12754
12755         * expr.c (clear_storage): Same.
12756         (store_constructor): Same.
12757
12758 2002-02-12  Eric Christopher  <echristo@redhat.com>
12759
12760         * explow.c (hard_function_value): Add comment explaining
12761         signed/unsigned comparison.
12762
12763 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12764
12765         * jump.c (never_reached_warning): Add finish argument.
12766         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12767         real insn after end.
12768         * rtl.h (never_reached_warning): Adjust prototype.
12769         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12770         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12771         never_reached_warning.
12772
12773 2002-02-12  Graham Stott  <grahams@redhat.com>
12774
12775         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12776
12777 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12778
12779         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12780         logical shifts on H8/300.
12781         (shift_alg_si): Improve several shifts on H8/300.
12782         (get_shift_alg): Likewise.
12783
12784 2002-02-12  Graham Stott  <grahams@redhat.com>
12785
12786         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12787
12788 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12789
12790         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12791         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12792
12793 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12794
12795         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12796         non-CONST_INT through default_assemble_integer.
12797         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12798         <case 8>: Abort for CONST_DOUBLE.
12799
12800 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12801
12802         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12803         is specified.
12804         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12805         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12806
12807 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12808
12809         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12810
12811 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12812
12813         * regrename.c (regrename_optimize): Don't accept a
12814         part-clobbered register if the replaced register is not part
12815         clobbered.
12816
12817         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12818         take padding into account when computing the argument value.
12819
12820         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12821
12822         * combine.c (try_combine): Apply substitutions in
12823         CALL_INSN_FUNCTION_USAGE too.
12824
12825 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12826
12827         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12828         __builtin_altivec_abs*.
12829         (bdesc_abs): New.
12830
12831         * config/rs6000/rs6000.h (rs6000_builtins): Add
12832         ALTIVEC_BUILTIN_ABS*.
12833
12834         * config/rs6000/altivec.h: Use const char for builtins expecting
12835         literals.
12836         (vec_abs): New versions for C and C++.
12837         (vec_abss): Same.
12838
12839 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12840
12841         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12842         using Pmode.
12843
12844 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12845
12846         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12847         constant definition from h8300.md.
12848         (FRAME_POINTER_REGNUM): Likewise.
12849         * config/h8300/h8300.md (define_constants): Add FP_REG.
12850
12851 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12852
12853         * config/h8300/h8300.c (print_operand): Remove redundant code.
12854
12855 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12856
12857         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12858         * config/h8300/h8300.c (byte_reg): Make it static.
12859
12860 2002-02-10  Richard Henderson  <rth@redhat.com>
12861
12862         PR c/5623
12863         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12864
12865 2002-02-10  Richard Henderson  <rth@redhat.com>
12866
12867         PR c++/5624
12868         * tree.c (append_random_chars): Don't abort if main_input_filename
12869         does not exist.
12870
12871 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12872
12873         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12874
12875 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12876
12877         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12878         (pushhi1): Likewise.
12879
12880 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12881
12882         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12883         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12884
12885 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12886
12887         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12888         remove MASK_VIS.
12889         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12890
12891 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12892
12893         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12894         a half of an SImode register on H8/300.
12895
12896 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12897
12898         * i386.md (movdi_2): Add missing '!'.
12899
12900 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12901
12902         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12903         definitions.
12904
12905 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12906
12907         * config/h8300/h8300.md (length): Correct the distance valid
12908         for the short branch.
12909
12910 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12911
12912         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12913
12914 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12915
12916         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12917         registers in SImode.
12918         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12919         part-clobbered.
12920
12921         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12922         patch.
12923
12924         Contribute sh64-elf.
12925         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12926         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12927         (sh_cannot_modify_jumps_p): New function.
12928         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12929         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12930         (sh_ms_bitfield_layout_p): New function.
12931         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12932                     Zack Weinberg  <zack@codesourcery.com>
12933         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12934         expand_simple_binop instead of expand_binop.
12935         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12936         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12937         use of .quad and .uaquad.
12938         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12939         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12940         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12941         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12942         movdi_const_16bit): Make sure all CONSTs have modes.
12943         (sym2PIC): Ditto, but by adjusting all callers.
12944         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12945         if the prologue calls the SHmedia argument decoder or register
12946         saver.
12947         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12948         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12949         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12950         (sh_expand_epilogue): Don't emit USE of return target register.
12951         (prepare_move_operands): Legitimize DImode PIC addresses.
12952         (sh_media_register_for_return): Skip tr0, used to initialize the
12953         PIC register.
12954         (sh_expand_prologue): Remove explicit USE of return register.
12955         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12956         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12957         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12958         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12959         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12960         EXTRA_CONSTRAINT_T.
12961         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12962         (MOVI_SHORI_BASE_OPERAND_P): New.
12963         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12964         (EXTRA_CONSTRAINT_T): Define in terms of them.
12965         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12966         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12967         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12968         alternatives supporting TARGET_REGS.
12969         (UNSPEC_GOTPLT): New constant.
12970         (movdi split): Move incrementing of LABEL_NUSES...
12971         (movdi_const, movdi_const_32bit): Here.  Use
12972         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12973         (movdi_const_16bit): New.
12974         (call, call_value) [flag_pic]: Use GOTPLT.
12975         (call_pop, call_value_pop): New expands.
12976         (call_pop_compact, call_pop_rettramp): New insns.
12977         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12978         (sibcall) [flag_pic]: Use GOT.
12979         (builtint_setjmp_receiver): Remove bogus, unused expand.
12980         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12981         (*pt, *ptb, ptrel): New insns.
12982         (sym2GOT): Handle DImode GOT.
12983         (sym2GOTPLT, symGOTPLT2reg): New expands.
12984         (sym2PIC): New expand.
12985         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12986         (shcompact_return_tramp_i): Use return register explicitly.
12987         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12988         disable flag_reorder_blocks.
12989         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12990         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12991         clobbers, for clarity.
12992         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12993         restoring of r0 in macl as MAYBE_DEAD.
12994         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12995         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12996         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12997         alter_subreg all over.
12998         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12999         reload, instead of emitting instructions that would require
13000         reloading.
13001         (casesi_load_media): Add missing modes.
13002         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
13003         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
13004         as used if the argument decoder is called.
13005         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
13006         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
13007         Pmode, then extend it to DImode if necessary.
13008         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
13009         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
13010         constants in FPU-enabled SHmedia, let them be loaded from memory.
13011         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
13012         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
13013         Adjust whitespace in assembly output templates.
13014         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
13015         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
13016         mode of if_then_else.
13017         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
13018         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
13019         sh.h.
13020         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
13021                     Joern Rennecke <amylaar@redhat.com>
13022         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
13023         (SUBTARGET_CPP_PTR_SPEC): New.
13024         (SUBTARGET_CPP_SPEC): Remove.
13025         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
13026         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
13027         Fix typo in previous checkin.
13028         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
13029         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
13030         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
13031                     Alexandre Oliva  <aoliva@redhat.com>
13032         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
13033         what single FP register can hold for SHmedia target.
13034         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
13035                     Alexandre Oliva  <aoliva@redhat.com>
13036         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
13037         Do not split into SUBREG.
13038         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
13039         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
13040         and added new functions as specified in SH5 ABI r9.
13041         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
13042         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
13043         8-byte boundary.
13044         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
13045         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
13046         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
13047         and consttable_window_ends.
13048         2001-06-03  Graham Stott  <grahams@redhat,com>
13049         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
13050         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
13051         * config/sh/sh.c (print_operand): Handle floating-point pair,
13052         vector and matrix registers.
13053         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
13054         vector modes into account.
13055         * config/sh/sh.md (movv2sf): Split move between registers into
13056         movdf.
13057         (movv4sf, movv16sf): Introduce insns that get split only after
13058         reload.
13059         * config/sh/shmedia.h: Fix Copyright dates.
13060         * config/sh/ushmedia.h: Likewise.  Move loop counter
13061         declarations into conditionals that uses them.
13062         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
13063         loop boundary.
13064         * config/sh/sshmedia.h: Fix Copyright dates.
13065         (sh_media_PUTCFG): Fix constraints.
13066         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
13067         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
13068         ptrmemfunc_vbit_in_delta for SH5.
13069         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
13070         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
13071         * invoke.texi: Likewise.
13072         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
13073         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
13074         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
13075         GCC_pop_shmedia_regs_nofpu): New global symbols.
13076         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
13077         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
13078         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
13079         compact function with nonlocal labels.
13080         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
13081         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
13082         (initial_elimination_offset): Account for their stack space.
13083         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
13084         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
13085         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
13086         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
13087         least one of the operands to be a register.
13088         (movv2sf): Likewise.  Renamed to movv2sf_i.
13089         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
13090         prepare_move_operands() before emitting SHmedia insns.
13091         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
13092         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
13093         Don't save nor initialize r12.  Don't mis-align the stack.
13094         Pad the code with a nop.
13095         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
13096         stack.
13097         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
13098         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
13099         [__SHMEDIA__]: Implement.
13100         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
13101         * config/sh/sh.md: Set latency of `pt' closer to reality.
13102         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
13103         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
13104         Set move, load and store type attributes.
13105         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
13106         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
13107         profiling.
13108         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
13109         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
13110         * config/sh/sh.c (sh_media_register_for_return): New function.
13111         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
13112         branch-target register.
13113         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
13114         * config/sh/sh.md (return_media_i): Use any call-clobbered
13115         branch-target register.
13116         (return_media): If r18 wasn't copied in the prologue, copy it
13117         here.
13118         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
13119         Clear class FP0_REGS.
13120         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
13121         from elf.h.
13122         2001-03-08  DJ Delorie  <dj@redhat.com>
13123         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
13124         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
13125         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
13126         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
13127         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
13128         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
13129         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
13130         return value correctly for call_cookie.
13131         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
13132         * config/sh/crt1.asm (start): Modified so as to call
13133         ___setup_argv_and_call_main.
13134         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
13135         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
13136         SHmedia mode.
13137         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
13138         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
13139         (STRIP_NAME_ENCODING): Use it.
13140         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
13141         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
13142         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
13143         prepare_scc_operands().
13144         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
13145         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
13146         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
13147         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
13148         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
13149         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
13150         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
13151         used in shcompact_incoming_args.
13152         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
13153         change.
13154         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
13155         mode.
13156         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
13157         Adjust accordingly.
13158         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
13159         Simplify.  Adjust.  Add sanity check.
13160         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
13161         FPU_SINGLE_BIT.
13162         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
13163         TARGET_SHCOMPACT.
13164         (udivsi3, divsi3): Use them.
13165         (force_mode_for_call): New insn.
13166         (call, call_value, sibcall_value): Emit it before SHcompact
13167         calls.
13168         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
13169         * config/sh/sh.md (call, call_value, sibcall): Make sure the
13170         call cookie is non-NULL before taking its value.
13171         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
13172         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
13173         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
13174         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
13175         block.
13176         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
13177         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
13178         temporary for stack adjusts.  Use MACL and MACH to pass
13179         arguments to shcompact_incoming_args.
13180         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
13181         clobber r1.
13182         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
13183         (nested_trampoline): Load static chain address into r1.
13184         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
13185         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
13186         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
13187         fp_arith_reg_operand().
13188         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
13189         * config/sh/sh.md (casesi): Sign-extend the first two operands,
13190         and use signed compares for them.
13191         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
13192         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
13193         ones properly aligned.
13194         (find_barrier): Account for extra alignment needed for 8-byte wide
13195         constants.
13196         (machine_dependent_reorg): Require a label for the second 4-byte
13197         constant after an 8-byte one.
13198         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
13199         change.
13200         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13201         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
13202         last_float when switching float modes.
13203         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
13204         auto-increment for general-purpose registers.
13205         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
13206         result.
13207         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
13208         for stack adjust.
13209         * config/sh/sh.c (sh_builtin_saveregs): Support using all
13210         registers for varargs.
13211         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
13212         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
13213         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
13214         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
13215         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
13216         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
13217         call_cookie accordingly.
13218         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
13219         (SHCOMPACT_BYREF): Likewise.
13220         (SHCOMPACT_FORCE_ON_STACK): New macro.
13221         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
13222         (sh_builtin_saveregs): Likewise.
13223         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13224         shcompact_incoming_args): Use new shift values.  Support
13225         sequences of consecutive and non-consecutive pushes/pops.
13226         * config/sh/sh.md (return): Don't explicitly use PR_REG.
13227         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
13228         * config/sh/sh.h (TEXT_SECTION): Define.
13229         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13230         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13231         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13232         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13233         return values on FPU-enabled SHmedia.
13234         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13235         FPU-enabled SHmedia.
13236         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13237         value is returned in a non-FP reg and is not returned by
13238         reference.
13239         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13240         jump_ind.
13241         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
13242         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13243         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13244         quad-aligned to be passed by callee-copy reference.
13245         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
13246         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13247         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13248         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
13249         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13250         copying low-numbered FP regs to r7 and r8.
13251         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13252         FP regs to general-purpose regs only if the copy was passed on the
13253         stack.
13254         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13255         copying FP reg to r9.
13256         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13257         copy FP regs to general-purpose regs only in outgoing calls.
13258         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13259         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
13260         HOST_WIDE_INT.
13261         * config/sh/sh.h (struct sh_args): Document all fields.
13262         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13263         passed partially on the stack should not consider making
13264         sibcalls.
13265         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13266         stack_regs only for incoming calls.  When passing FP args,
13267         make sure there are FP regs available before modifying
13268         call_cookie.
13269         (SHCOMPACT_BYREF): Pass double args in general-purpose
13270         registers by reference.
13271         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
13272         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13273         attempt to generate sibcalls if the caller got any arguments
13274         by reference.
13275         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13276         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13277         to 8-byte boundaries.
13278         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13279         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13280         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13281         stored in the stack.
13282         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13283         for the offsets to have the ISA bit set.
13284         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
13285         invocation.  Use beq instead of bgt to mark end of sequence of
13286         loads.
13287         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
13288         bgt to mark end of sequence of stores.
13289         * config/sh/sh.c (arith_operand): Don't check whether
13290         CONST_OK_FOR_J for now.
13291         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13292         instead of long for conversion.
13293         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
13294         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13295         before passing it to fprintf.
13296         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
13297         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13298         Call set_fpscr before reading/writing SR.
13299         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13300         Call set_fpscr.
13301         * config/sh/lib1funcs.asm: Add `.align 2' directives before
13302         SHmedia code.
13303         (FMOVD_WORKS): Define on SH5 with FPU.
13304         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
13305         setting.
13306         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13307         _fpscr_values.
13308         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
13309         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13310         address.
13311         (ia_main_table): Ditto.
13312         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
13313         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13314         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13315         the definitions from sh.h.
13316         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13317         TARGET_SH5.
13318         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13319         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13320         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13321         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
13322         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13323         Increment LABEL_NUSES.
13324
13325         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13326         TARGET_SH5.
13327         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13328         defined.
13329         * config/sh/elf.h (SIZE_TYPE): Likewise.
13330         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13331         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13332         shcompact_incoming_args): Load switch table addresses using
13333         datalabel.
13334         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13335         (NO_BUILTIN_SIZE_TYPE): Define.
13336         (SIZE_TYPE): Don't define.
13337         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13338         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13339         definition of __SH5__=32 for -m5-compact-nofpu.
13340         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13341         ADDR_DIFF_VEC.
13342         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
13343         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13344         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
13345         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13346         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13347         (INSN_LENGTH_ALIGNMENT): Likewise.
13348         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13349         * config/sh/sh.md (call, call_value, sibcall): Simplify
13350         copying of non-branch-target register.
13351         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13352         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
13353         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13354         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13355         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13356         floating-point values as structs.
13357         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13358         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13359         general-purpose register.
13360         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13361         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13362         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13363         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13364         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13365         (ENCODE_SECTION_INFO): Enclose variables and constants in
13366         DATALABEL unspecs.
13367         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13368         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13369         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13370         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13371         only for LABEL_REFs.  For SYMBOL_REFs, prepend
13372         SH_DATALABEL_ENCODING to the symbol name.
13373         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13374         convert_mode().
13375         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13376         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13377         UNSPEC_DATALABEL.
13378         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13379         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13380         (DATALABEL_REF_P): Don't require CONST.
13381         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13382         REL label.
13383         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
13384         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13385         right.
13386         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13387         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13388         Use shallow_copy_rtx and PUT_MODE to change the mode of
13389         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13390         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13391         on SHmedia using GENERAL_REGs.
13392         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13393         bltu_media_i): Fix reversion of conditions.
13394         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13395         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13396         * config/sh/sh.c (output_far_jump): Save r13 in macl.
13397         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
13398         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13399         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13400         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13401         (GCC_nested_trampoline): Likewise.
13402         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13403         * config/sh/sh.c (gen_datalabel_ref): Define.
13404         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13405         (INITIALIZE_TRAMPOLINE): Likewise.
13406         (TRAMPOLINE_ADJUST_ADDRESS): Define.
13407         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13408         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13409         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13410         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13411         (ic_invalidate): Adjust for SH5.
13412         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13413         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13414         _nested_trampoline.
13415         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
13416         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13417         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13418         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13419         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13420         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13421         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13422         * config/sh/sh.c (target_reg_operand): Match only target-branch
13423         registers and pseudos that aren't virtual registers.
13424         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13425         Copy operands that don't match target_reg_operand to pseudos.
13426         (call_media, call_value_media, sibcall_media): Use
13427         target_reg_operand instead of target_operand.
13428         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
13429         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13430         * config/sh/sh.c (target_reg_operand): Match hardware registers
13431         other than branch-target registers.
13432         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13433         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13434         (fpscr_values) [SH5 == 32]: Define.
13435         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13436         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13437         Handle function addresses coming in SUBREGs.
13438         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
13439         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13440         shcompact_return_trampoline): Use datalabel where appropriate.
13441         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
13442         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13443         general-purpose register to copy one branch-target register to
13444         another.
13445         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13446         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13447         SYMBOL_REFs with VOIDmode.
13448         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13449         bltu_media_i): New insns.
13450         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13451         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13452         (INIT_CUMULATIVE_ARGS): Likewise.
13453         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13454         * machmode.def (V16SFmode): New mode.
13455         * c-common.c (type_for_mode): Support V2SF and V16SF.
13456         * tree.c (build_common_tree_nodes_2): Likewise.
13457         * tree.h (tree_index): Likewise.
13458         * calls.c (emit_call_1): Take args_so_far.  Adjust all
13459         callers.  Introduce CALL_POPS_ARGS.
13460         * tm.texi (CALL_POPS_ARGS): Document.
13461         * config/sh/crt1.asm: Implement in SHmedia mode.
13462         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13463         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13464         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13465         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13466         Implement divsi and udivsi in SHmedia mode.  Introduce
13467         SHcompact trampolines.
13468         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13469         only in SHmedia64.
13470         (regno_reg_class): Rewrite.
13471         (fp_reg_names): Remove.
13472         (sh_register_names, sh_additional_register_names): New.
13473         (print_operand): Added `u'.  Support SUBREGs in addresses.
13474         Add parentheses around shifted CONSTs.
13475         (output_file_start): Output .mode and .abi directives.
13476         (shiftcosts, addsubcosts, multcosts): Adjust.
13477         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
13478         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
13479         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
13480         bytes, not registers.  Take into account the need for the
13481         SHcompact incoming args trampoline.  Adjust all callers.
13482         (sh_expand_prologue): Take stack_regs into account.  Call
13483         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
13484         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
13485         stack aligned as per SH5 ABI.
13486         (sh_builtin_saveregs): Support SH5 ABI.
13487         (sh_build_va_list, sh_va_start): Likewise.
13488         (initial_elimination_offset): Take alignment into account.
13489         Compute location of PR according to the SH5 stack frame.
13490         (arith_reg_operand): Reject branch-target registers.
13491         (shmedia_6bit_operand): New.
13492         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13493         (target_reg_operand): Match DImode only.  Accept SUBREGs.
13494         (target_operand): New.
13495         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13496         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
13497         SIBCALL_REGS for SHmedia.
13498         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13499         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13500         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13501         (TARGET_SWITCHES): New SH5 flags.
13502         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
13503         VALID_REGISTER_P to disable unsupported registers.
13504         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13505         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13506         (FUNCTION_ARG_PADDING): Define.
13507         (FASTEST_ALIGNMENT): Adjust.
13508         (SH_REGISTER_NAMES_INITIALIZER): New.
13509         (sh_register_names): Declare.
13510         (DEBUG_REGISTER_NAMES): Define.
13511         (REGISTER_NAMES): Define based on sh_register_names.
13512         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13513         (sh_additional_register_names): Declare.
13514         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13515         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13516         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13517         (REGISTER_NATURAL_MODE): Define.
13518         (FIRST_PSEUDO_REGISTER): Adjust.
13519         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13520         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13521         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13522         (VECTOR_MODE_SUPPORTED_P): Define.
13523         (REG_CLASS_CONTENTS): Adjust.
13524         (SMALL_REGISTER_CLASSES): Adjust.
13525         (REG_ALLOC_ORDER): Adjust.
13526         (INDEX_REG_CLASS): Adjust.
13527         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13528         (CONST_OK_FOR_LETTER_P): Adjust.
13529         (PREFERRED_RELOAD_CLASS): Adjust.
13530         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13531         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13532         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13533         (FIRST_FP_PARM_REG): Adjust.
13534         (CALL_POPS_ARGS): Define.
13535         (FUNCTION_ARG_REGNO_P): Adjust.
13536         (struct sh_args): New fields.
13537         (GET_SH_ARG_CLASS): Adjust.
13538         (INIT_CUMULATIVE_ARGS): Adjust.
13539         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13540         (FUNCTION_ARG_ADVANCE): Adjust.
13541         (FUNCTION_ARG): Adjust.
13542         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13543         (FUNCTION_ARG_CALLEE_COPIES): Define.
13544         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13545         (STRICT_ARGUMENT_NAMING): Define.
13546         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13547         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13548         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13549         (SETUP_INCOMING_VARARGS): Adjust.
13550         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13551         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13552         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13553         (SUBREG_OK_FOR_INDEX_P): Adjust.
13554         (EXTRA_CONSTRAINT_S): Update.
13555         (EXTRA_CONSTRAINT_T): New.
13556         (EXTRA_CONSTRAINT): Adjust.
13557         (GO_IF_LEGITIMATE_INDEX): Adjust.
13558         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13559         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13560         (MOVE_MAX): Adjust.
13561         (MAX_MOVE_MAX): Define.
13562         (Pmode): Adjust.
13563         (CONST_COSTS): Adjust.
13564         (REGISTER_MOVE_COST): Adjust.
13565         (BRANCH_COST): Adjust.
13566         (TEXT_SECTION_ASM_OP): Adjust.
13567         (DBX_REGISTER_NUMBER): Adjust.
13568         (ASM_OUTPUT_DOUBLE_INT): New.
13569         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13570         (PREDICATE_CODES): Adjust.
13571         (PROMOTE_MODE): Adjust.
13572         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13573         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13574         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13575         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13576         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13577         (TR0_REG, TR1_REG, TR2_REG): New.
13578         (XD0_REG): Renumber.
13579         (UNSPEC_COMPACT_ARGS): New.
13580         (type): Added pt and ptabs.
13581         (length): Default to 4 on SHmedia.  Default pt length to 12
13582         and     20 on SHmedia32 and SHmedia64, respectively.
13583         (pt): New function unit.
13584         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13585         Add whitespace between operands of SHmedia instructions.
13586         (movdicc): Fix.
13587         (adddi3_media, addsi3_media): Adjust constraints.
13588         (subsi3) [SHmedia]: Force operand 1 into a register.
13589         (udivsi3_i1_media, udivsi3_i4_media): New.
13590         (udivsi3): Support SHmedia.
13591         (divsi3_i1_media, divsi3_i4_media): New.
13592         (divsi3): Support SHmedia.
13593         (anddi3, iordi3, xordi3): Adjust constraints.
13594         (zero_extendhidi2, zero_extendqidi2): New.
13595         (extendsidi2, extendhidi2, extendqidi2): New.
13596         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13597         (pop_e, pop_fpul, pop_4): Likewise.
13598         (movsi_media): Support FP and BT registers.
13599         (movsi_media_nofpu): New.  Adjust splits to DImode.
13600         (lduw, ldub): Renamed to zero_extend* above.
13601         (movqi_media): Fix typo.
13602         (movdi_media): Support FP and BT registers.
13603         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13604         (movdi_const_32bit): New.
13605         (shori_media): Require immediate operand.  Use `u' for output.
13606         (movdf_media, movsf_media): Simplified.
13607         (movdf_media_nofpu, movsf_media_nofpu): New.
13608         (movdf, movsf): Adjust
13609         (movv2sf, movv2sf, movv16sf): New.
13610         (beq_media, beq_media_i): Adjust constraints.  Don't use
13611         scratch BT register.
13612         (bne_media, bne_media_i): Likewise.
13613         (bgt_media, bgt_media_i): Likewise.
13614         (bge_media, bge_media_i): Likewise.
13615         (bgtu_media, bgtu_media_i): Likewise.
13616         (bgeu_media, bgeu_media_i): Likewise.
13617         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13618         bunordered): Emit jump insn.  Force operands to registers when
13619         needed.
13620         (jump_media, jump): Simplify.
13621         (call_compact, call_compact_rettramp): New.
13622         (call_value_compact, call_value_compact_rettramp): New.
13623         (call_media, call_value_media): Simplify.
13624         (sibcall_compact, sibcall_media): New.
13625         (call, call_value): Adjust for SHmedia and SHcompact.
13626         (sibcall, sibcall_value, untyped_call): Likewise.
13627         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13628         (indirect_jump): Adjust for SHmedia.
13629         (casesi_jump_media): New.
13630         (nop): Re-enable for SHmedia.
13631         (call_site): Restrict to SH1.
13632         (casesi): Adjust for SHmedia.
13633         (casesi_shift_media, casesi_load_media): New.
13634         (return): Explicitly use PR register.  Call return trampoline
13635         on SHcompact.
13636         (return_i): Explicitly use PR register.
13637         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13638         (return_media): Adjust.
13639         (shcompact_incoming_args): New.
13640         (epilogue): Adjust.
13641         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13642         (movstrsi): Disable on SH5.
13643         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13644         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13645         (subsf3, subsf3_media): Likewise.
13646         (mulsf3, mulsf3_media, mac_media): Likewise.
13647         (divsf3, divsf3_media): Likewise.
13648         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13649         (floatsisf2, fux_truncsfsi2): Likewise.
13650         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13651         constraints.
13652         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13653         (cmpunsf_media, cmpsf): Likewise.
13654         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13655         (abssf2, abssf2_media): Likewise.
13656         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13657         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13658         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13659         (floatsidf2, fix_truncdfsi2): Likewise.
13660         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13661         constraints.
13662         (cmpeqdf_media, cmpgtdf_media): Likewise.
13663         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13664         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13665         (absdf2, absdf2_media): Likewise.
13666         (extendsfdf2, extendsfdf2_media): Likewise.
13667         (truncsfdf2, truncsfdf2_media): Likewise.
13668         * config/sh/sh64.h: New file.
13669         * config/sh/t-sh64: New file.
13670         * config/sh/shmedia.h: New file.
13671         * config/sh/ushmedia.h: New file.
13672         * config/sh/sshmedia.h: New file.
13673         * configure.in: Added sh64-*-elf.
13674         * configure: Rebuilt.
13675         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13676         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13677         (reg_class_from_letter): Use `b' for TARGET_REGS.
13678         (print_operand): Support `%M', `%m', `AND' and
13679         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13680         (andcosts): Adjust for SHmedia.
13681         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13682         Likewise.
13683         (target_reg_operand): New function.
13684         * config/sh/sh-protos.h (target_reg_operand): Declare.
13685         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13686         FP registers on SH5.
13687         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13688         on SH4.
13689         (TARGET_REGISTER_P): New macro.
13690         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13691         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13692         (EXTRA_CONSTRAINT_S): New macro.
13693         (EXTRA_CONSTRAINT): Adjust.
13694         (FLOAT_TYPE_SIZE): Define to 32.
13695         (Pmode): DImode on SHmedia.
13696         (CONST_COSTS): Adjust for SHmedia literals.
13697         (PREDICATE_CODES): Added target_reg_operand.
13698         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13699         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13700         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13701         (cmpdi): Accept SHmedia.
13702         (movdicc_false, movdicc_true): New insns.
13703         (movdicc): New expand.
13704         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13705         no_new_pseudos.
13706         (addsi3_media): Match `S' constraint.
13707         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13708         (negdi2): Expand for SHmedia.
13709         (one_cmpldi2): New expand.
13710         (zero_extendsidi2): Change from expand to insn.
13711         (extendsidi2): Add constraints.
13712         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13713         LD/ST address.  Fix SI immediate loading split.
13714         (movhi_media, movqi_media, lduw, ldub): New insns.
13715         (movhi, movqi): Accept SHmedia.
13716         (shori_media, movdi_media): Relax input constraints.  Split
13717         symbolic constants.
13718         (movdf_media, movsf_media): New insn.  New split to movdi.
13719         (movdf, movsf): Match on SHmedia.
13720         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13721         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13722         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13723         (bunordered): New expand.
13724         (jump_compact): Renamed from `jump'.
13725         (jump_media): New insn.
13726         (jump): New expand.
13727         (call_media, call_value_media): New insns.
13728         (call, call_value): Adjust.
13729         (indirect_jump_compact): Renamed from `indirect_jump'.
13730         (indirect_jump_media): New insn.
13731         (indirect_jump): New expand.
13732         (untyped_call, return): Accept SHmedia.
13733         (return_media): New insn.
13734         (prologue, epilogue, blockage): Accept SHmedia.
13735         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13736         (sunordered): New expand.
13737         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13738         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13739         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13740         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13741         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13742         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13743         abssf2_media): New insns.
13744         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13745         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13746         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13747         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13748         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13749         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13750         absdf2_media): New insns.
13751         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13752         (extendsfdf2_media, truncdfsf2_media): New insns.
13753         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13754         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13755         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13756         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13757         * config/sh/sh.md (adddi3): New expand.
13758         (adddi3_media, adddi3z_media): New insns.
13759         (adddi3_compact): Renamed from adddi3.
13760         (addsi3_media): Use add.l r63 to add constant zero.
13761         (subdi3): New expand.
13762         (subdi3_media): New insn.
13763         (subdi3_compact): Renamed from subdi3.
13764         (mulsidi3): New expand.
13765         (mulsidi3_media): New insn.
13766         (mulsidi3_compact): Renamed from mulsidi3.
13767         (umulsidi3): New expand.
13768         (umulsidi3_media): New insn.
13769         (umulsidi3_compact): Renamed from umulsidi3.
13770         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13771         (ashlsi3, ashrsi3, lshrsi3): Use them.
13772         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13773         (ashldi3, ashrdi3, lshrdi3): Use them.
13774         (zero_extendsidi2): New expand.
13775         (extendsidi2): New insn.
13776         (movsi_media): New insn.  Split to movdi to load constants.
13777         (movsi): Enable for shmedia.
13778         (movdi_media): New insn.  Use shori_media to load wide constants.
13779         (short_media): New insn.
13780         (movdi): Enable for shmedia.
13781         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13782         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13783         (SUBTARGET_CPP_SPEC): Added `!m5'.
13784         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13785         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13786         to all other SH variants.
13787         (TARGET_DEFAULT): Set to SH1_BIT.
13788         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13789         (BITS_PER_WORD): Raise to 64 on shmedia.
13790         (MAX_BITS_PER_WORD): Change to 64.
13791         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13792         (INT_TYPE_SIZE): Keep as 32.
13793         (UNITS_PER_WORD): Raise to 8 on shmedia.
13794         (MIN_UNITS_PER_WORD): Keep as 4.
13795         (POINTER_SIZE): Raise to 64 on shmedia.
13796         (CONST_OK_FOR_J): New macro.
13797         (CONST_OK_FOR_LETTER_P): Use it.
13798         (processor_type): Add PROCESSOR_SH5.
13799         * config/sh/sh.md: Conditionalize all expands, insns and
13800         splits to TARGET_SH1.
13801         (cpu): Added sh5.
13802         (addsi3_compact): Renamed from...
13803         (addsi3): Now an expand.
13804         (addsi3_media, subsi3_media): New insns.
13805         (subsi3): Don't negate constants with SHmedia.
13806
13807         * hooks.c: New file.
13808         * hooks.h: New file.
13809         * Makefile.in (HOOKS_H): New.
13810         (TARGET_DEF_H): Added $(HOOKS_H).
13811         (OBJS): Added hooks.o.
13812         (cfgcleanup.o, bb-reorder.o): Added target.h.
13813         (hooks.o): Added dependencies.
13814         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13815         (TARGET_INITIALIZER): this.
13816         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13817         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13818         * bb-reorder.c: Include target.h.
13819         (reorder_basic_blocks): Skip if cannot modify jumps.
13820         * cfgcleanup.c: Include target.h.
13821         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13822
13823 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13824
13825         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13826         Protect jump delay slot instructions with .set noreorder and
13827         .set nomacro.
13828
13829 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13830
13831         * config/mips/mips.md (casesi_internal_di): Calculate
13832         the index into the target offset table correctly.
13833
13834 2002-02-08  Richard Henderson  <rth@redhat.com>
13835
13836         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13837         * final.c (output_addr_const): Accept and discard SUBREG.
13838         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13839         mark them unknown instead.
13840         (simplify_subtraction): Handle RTX_UNKNOWN.
13841         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13842
13843 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13844
13845         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13846
13847 2002-02-08  Richard Henderson  <rth@redhat.com>
13848
13849         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13850
13851 2002-02-08  Andreas Jaeger  <aj@suse.de>
13852
13853         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13854         * config/i386/t-linux64: New file.
13855
13856 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13857
13858         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13859         * c-parse.in (compstmt): Clear last_expr_type.
13860
13861 2002-02-07  Richard Henderson  <rth@redhat.com>
13862
13863         * loop.c (strength_reduce): Sink final_value when not
13864         eliminating a biv.
13865
13866 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13867
13868         * config/sparc/freebsd.h: Fix mismatched spec {.
13869
13870 2002-02-07  Richard Henderson  <rth@redhat.com>
13871
13872         * cfgrtl.c: Include recog.h and insn-config.h.
13873         (keep_with_call_p): Fix general_operand invocation.
13874         * Makefile.in (cfgrtl.o): Update dependencies.
13875
13876 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13877
13878         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13879         comment.  Accept HImode only if TARGET_H8300.
13880
13881 2002-02-07  Eric Christopher  <echristo@redhat.com>
13882
13883         * config/mips/crtn.asm: Cleanup #ifdefs.
13884
13885 2002-02-07  Eric Christopher  <echristo@redhat.com>
13886
13887         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13888         register 7 as RA instead of $31.
13889         * config/mips/crtn.asm: Ditto.
13890         * config/mips/mips.c (mips_move_2words): Add case for
13891         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13892         (compute_frame_size): Fix typo.
13893         (save_restore_insns): Ditto.  Make documentation about using
13894         register $7 as return register more precise.
13895         (mips_expand_epilogue): Fix comment. Add code to work around not
13896         being able to add to the stack pointer directly.
13897         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13898         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13899         epilogue.
13900
13901 2002-02-07  Tom Rix  <trix@redhat.com>
13902
13903         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13904         immediates in ldu and stdu DS opcode field.
13905         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13906         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13907         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13908
13909 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13910
13911         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13912         offset for stack bias.
13913
13914 2002-02-07  H.J. Lu <hjl@gnu.org>
13915
13916         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13917
13918 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13919
13920         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13921
13922 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13923
13924         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13925         * i386.c (x86_order_regs_for_local_alloc): New global function.
13926         * i386.h (REG_ALLOC_ORDER): CLeanup.
13927         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13928
13929 2002-02-07  Richard Henderson  <rth@redhat.com>
13930
13931         PR optimization/2463
13932         * alias.c (find_base_value): Recall base values for fixed hard regs.
13933         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13934
13935 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13936
13937         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13938         length.
13939
13940 2002-02-06  Richard Henderson  <rth@redhat.com>
13941
13942         PR c/5609
13943         * stmt.c (resolve_operand_name_1): Take more care with mixed
13944         named and unnamed operands.
13945
13946 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13947             Jan Hubicka  <jh@suse.cz>
13948
13949         * loop.c (remove_constant_addition): Avoid clobbering a shared
13950         CONST expression.
13951
13952 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13953
13954         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13955         * config/s390/t-linux64: New file.
13956         * config/s390/libgcc-glibc.ver: New file.
13957
13958 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13959
13960         * config/s390/linux64.h: Delete file.
13961         * config/s390/s390x.h: New file.
13962         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13963         as target header file.
13964         * config/s390/linux.h (TARGET_VERSION): Define depending on
13965         DEFAULT_TARGET_64BIT.
13966         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13967         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13968         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13969         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13970         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13971         (EXTRA_SPEC): New define.
13972         * config/s390/s390.h (TARGET_VERSION): Define depending on
13973         DEFAULT_TARGET_64BIT.
13974         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13975
13976 2002-02-06  Jason Merrill  <jason@redhat.com>
13977
13978         * c-decl.c (finish_function): Warn about a non-void function with
13979         no return statement and no abnormal exit.
13980         (current_function_returns_abnormally): New variable.
13981         (start_function): Clear it.
13982         (struct c_language_function): Add returns_abnormally.
13983         (push_c_function_context): Save it.
13984         (pop_c_function_context): Restore it.
13985         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13986         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13987         an explicit return type.
13988         * c-tree.h: Declare current_function_returns_abnormally.
13989         (C_FUNCTION_IMPLICIT_INT): New macro.
13990         * c-typeck.c (build_function_call): Set it.
13991         (c_expand_return): Set current_function_returns_value even if the
13992         value is erroneous.
13993
13994 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13995
13996         PR c/5420:
13997         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13998         unsafe for reevaluation.
13999
14000 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
14001
14002         PR c/5482:
14003         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
14004         EXPR_STMT, but COMPOUND_STMT, recurse into it.
14005
14006 2002-02-06  Richard Henderson  <rth@redhat.com>
14007
14008         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
14009         be a general_operand.  Dest for function value must be a pseudo.
14010
14011 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
14012
14013         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
14014         as SYMBOL_REFs from the constant pool.
14015
14016 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
14017
14018         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
14019         passed by invisible reference.
14020
14021 2002-02-05  Richard Henderson  <rth@redhat.com>
14022
14023         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
14024
14025 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
14026
14027         Implement using "base addresses" in insn operands as default.
14028         * config/mmix/mmix.c (mmix_conditional_register_usage): if
14029         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
14030         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
14031         used to read the rtx value.
14032         (mmix_target_asm_function_epilogue): Fix spacing.
14033         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
14034         (mmix_legitimate_address): Ditto.
14035         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
14036         should be loaded with a GETA insn.  Don't allocate needless extra
14037         char for nul termination and fix misleading comment.
14038         (mmix_print_operand_address): Handle constants if
14039         TARGET_BASE_ADDRESSES.
14040         (mmix_output_register_setting): Use base addressing if
14041         TARGET_BASE_ADDRESSES and the number of insns is 3.
14042         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
14043         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
14044         to use R as constraint, add LDA to match s.
14045         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
14046         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
14047         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
14048         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
14049         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
14050         order with other fixed registers.
14051         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
14052         other parameter/call-clobbered registers.
14053         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
14054         -mbase-addresses, -mno-base-addresses.
14055         (MMIX Options): Ditto.
14056
14057 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14058
14059         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
14060
14061 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
14062
14063         * config/rs6000/altivec.h: Change elem to _S_elem.
14064
14065 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
14066
14067         * config/netbsd.h (WCHAR_TYPE): Define.
14068         (WCHAR_TYPE_SIZE): Ditto.
14069         (WINT_TYPE): Ditto.
14070         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
14071         (WCHAR_UNSIGNED): Ditto.
14072         (WCHAR_TYPE_SIZE): Ditto.
14073         (WINT_TYPE): Ditto.
14074         * config/arm/netbsd.h: Likewise.
14075         * config/i386/netbsd-elf.h: Likewise.
14076         * config/i386/netbsd.h: Likewise.
14077         * config/m68k/netbsd-elf.h: Likewise.
14078         * config/m68k/netbsd.h: Likewise.
14079         * config/ns32k/netbsd.h: Likewise.
14080         * config/sparc/netbsd.h: Likewise.
14081         * config/vax/netbsd.: Likewise.
14082
14083 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
14084
14085         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
14086         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
14087         (TARGET_INITIALIZER): this.
14088         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
14089         (BITFIELD_NBYTES_LIMITED): Markup fix.
14090         * tree.h (default_ms_bitfield_layout_p): Declare.
14091         (record_layout_info): Added prev_field.
14092         * tree.c (default_ms_bitfield_layout_p): New fn.
14093         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
14094         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
14095         * stor-layout.c: Include target.h.
14096         (start_record_layout): Initialize prev_field.
14097         (place_field): Handle MS bit-field layout, and disregard
14098         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
14099         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
14100         * Makefile.in (stor-layout.o): Adjust dependencies.
14101
14102 2002-02-05  Jason Merrill  <jason@redhat.com>
14103
14104         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
14105
14106 2002-02-05  Andreas Jaeger  <aj@suse.de>
14107
14108         * crtstuff.c: Fix comments.
14109
14110 2002-02-05  Richard Henderson  <rth@redhat.com>
14111
14112         PR fortran/3393
14113         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
14114         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
14115
14116         PR fortran/3392
14117         * config/mips/mips.c (function_arg): Handle TImode.
14118         (function_arg_advance): Likewise.
14119
14120 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14121
14122         * config/rs6000/altivec.h (vec_step_help): Rename to
14123         __vec_step_help.
14124
14125 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14126
14127         * config/rs6000/altivec.h: Fix typos.
14128
14129 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
14130
14131         * config/arm/netbsd.h: Correct a comment.
14132
14133 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14134
14135         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
14136         building void typed builtins.
14137
14138         * config/rs6000/altivec.h (vec_ld*): Fix typos.
14139         (vec_step): Implement for C++.
14140
14141 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14142
14143         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
14144
14145 2002-02-04  Richard Henderson  <rth@redhat.com>
14146
14147         * combine.c (nonzero_bits): Re-introduce special case for
14148         sp/fp/ap wrt REGNO_POINTER_ALIGN.
14149
14150 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14151
14152         * doc/extend.texi: Warn about unsupported usage of altivec
14153         builtins.
14154
14155         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
14156         (altivec_predicate_*): New.
14157
14158         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
14159         Add C++ version of vec_*() functions.
14160
14161         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
14162         (bdesc_2arg): Remove altivec predicates.
14163         (altivec_expand_builtin): Handle predicates.
14164         (altivec_init_builtins): Handle predicates.
14165         (altivec_expand_predicate_builtin): New.
14166
14167 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14168
14169         * pa.c (DO_FRAME_NOTES): Move forward.
14170         (store_reg): Revise handling of frame notes.
14171         (load_reg): Likewise.
14172         (set_reg_plus_d): Likewise.
14173         (hppa_expand_prologue): Likewise.
14174         (hppa_expand_epilogue): Likewise.
14175
14176 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14177
14178         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
14179
14180 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14181
14182         PR c/4475, c++/3780:
14183         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
14184         * c-common.h (SWITCH_TYPE): Define.
14185         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
14186         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
14187         Rename spareness variable to sparseness.
14188         (expand_end_case_type): Renamed from expand_end_case, use orig_type
14189         if non-NULL instead of TREE_TYPE (orig_index).
14190         * tree.h (expand_end_case_type): Renamed from expand_end_case.
14191         (expand_end_case): Define using expand_end_case_type.
14192         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
14193         to expand_end_case_type.
14194         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
14195
14196 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14197
14198         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
14199         (BIGGEST_ALIGNMENT): Change to 128.
14200
14201 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14202
14203         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
14204
14205 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14206
14207         * pa.md (call_internal_reg_64bit): Remove unused variable.
14208
14209 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
14210
14211         * config/arm/arm.h (machine_function): Add uses_anonymous_args
14212         field.
14213         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
14214         * config/arm/arm.c (current_function_anonymous_args): Delete,
14215         replace uses with cfun->machine->uses_anonymous_args.
14216         (arm_reorg): Do not reset uses_anonymous_args.
14217
14218         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
14219         any geenral register.
14220
14221 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
14222
14223         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
14224         the entry block.
14225
14226 2002-02-04  Richard Henderson  <rth@redhat.com>
14227
14228         * combine.c (force_to_mode): Remove STACK_BIAS code.
14229         (nonzero_bits): Likewise.  Replace sp/fp special case with
14230         REGNO_POINTER_ALIGN.
14231
14232         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14233         (HARD_FRAME_POINTER_REGNUM): New.
14234         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14235         (FIXED_REGS, CALL_USED_REGS): Update.
14236         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14237         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14238         (HARD_REGNO_NREGS): Update for SFP.
14239         (STACK_POINTER_OFFSET): Include bias here ...
14240         (FIRST_PARM_OFFSET): ... not here.
14241         (STACK_BIAS): Remove.
14242         (INIT_EXPANDERS): New.
14243         (STARTING_FRAME_OFFSET): Do not include bias.
14244         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14245         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14246         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14247         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14248         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14249         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14250         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14251         (MUST_SAVE_REGISTER): Likewise.
14252         (sparc_flat_function_prologue): Likewise.
14253         (sparc_flat_function_epilogue): Likewise.
14254         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14255         (sparc_init_modes): SFP is GENERAL_REGS.
14256         (sparc_builtin_saveregs): SFP does not have bias applied.
14257
14258 2002-02-04  Richard Henderson  <rth@redhat.com>
14259
14260         * config/alpha/alpha.c (current_function_is_thunk): Don't check
14261         current_function_is_thunk.
14262         (alpha_sa_mask): Distinguish between current_function_is_thunk
14263         called from ASM_OUTPUT_MI_THUNK and not.
14264         (alpha_does_function_need_gp): Thunks always need gp.
14265         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14266         (alpha_output_mi_thunk_osf): New.
14267         * config/alpha/alpha-protos.h: Update.
14268         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14269
14270 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
14271
14272         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14273         function types, not when they're taken away.
14274
14275 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
14276
14277         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14278         CODE_LABEL and jump table when replacing a table jump with a
14279         simple jump.
14280
14281 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14282
14283         * config/s390/s390-protos.h (legitimize_la_operand,
14284         s390_secondary_input_reload_class, s390_plus_operand,
14285         s390_expand_plus_operand): Add prototypes.
14286
14287         config/s390/s390.c (s390_secondary_input_reload_class,
14288         s390_plus_operand, s390_expand_plus_operand): New functions.
14289
14290         (struct s390_address): New member 'pointer'.
14291         (s390_decompose_address): Compute it.
14292         (legitimate_la_operand_p): Use it.
14293         (legitimize_la_operand): New function.
14294         (movti, movdi, movdf splitters): Call it.
14295
14296         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14297         (PREDICATE_CODES): Add s390_plus_operand.
14298
14299         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14300         (la_ccclobber): Allow GENERAL_REGS as output operand.
14301
14302         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14303         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14304         (*la_64, *la_31, reload_indi, reload_insi): ... these.
14305
14306 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14307
14308         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14309         register names for regular asm () construct.
14310
14311 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14312
14313         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14314         registers.
14315
14316 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14317
14318         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14319         pat for recog.
14320
14321 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
14322
14323         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14324         constant pool to be identical by string address and index.
14325
14326 2002-02-04  Anthony Green  <green@redhat.com>
14327
14328         * output.h (SECTION_OVERRIDE): Define.
14329         * varasm.c (named_section): Obey SECTION_OVERRIDE.
14330
14331 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14332
14333         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14334         by existing arm*-*-netbsd* (a.out) target.
14335         (ns32k-*-netbsdelf*): Likewise.
14336         (sparc-*-netbsdelf*): Likewise.
14337         (vax-*-netbsdelf*): Likewise.
14338
14339 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
14340
14341         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14342         headers and libobjc headers.
14343
14344 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
14345
14346         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14347         (_mingw.h): Remove duplicate include.
14348
14349 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14350
14351         * config.gcc: Set cpu_type to m68k for 68010, as well.
14352         (m68010-*-netbsdelf*): New...
14353         (m68k*-*-netbsdelf*): ...targets.
14354         * config/m68k/netbsd-elf.h: New file.
14355
14356 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14357
14358         * config/h8300/h8300.c (hand_list): Move inside function_arg.
14359
14360 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14361
14362         * config/h8300/h8300.c (h8_push_ops): Move inside
14363         h8300_init_once.
14364         (h8_pop_ops): Likewise.
14365         (h8_move_ops): Likewise.
14366
14367 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14368
14369         * config/h8300/h8300.c (os_task): Make it static.
14370         (monitor): Likewise.
14371         (pragma_saveall): Likewise.
14372
14373 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
14374
14375         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14376         constant is a valid sign-extension for Pmode.
14377
14378 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14379
14380         * config/h8300/h8300.c: Fix formatting.
14381
14382 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14383
14384         * config/h8300/h8300.md: Fix formatting.
14385
14386 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14387
14388         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14389         predicates of operands[1].  Split the patterns for each
14390         processor variant.
14391
14392 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14393
14394         * config/h8300/h8300.md (xor patterns): Tighten the predicates
14395         of operands[1] to register_operand.
14396
14397 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14398
14399         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14400         * cpphash.c (_cpp_init_hashtable): Similarly.
14401         * cppinit.c (cpp_create_reader): Default the signed_char flag.
14402         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14403         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14404         (cpp_handle_option): Handle the new options.
14405         * cpplex.c (cpp_interpret_charconst): Use new flag.
14406         * cpplib.h (struct cpp_options): New member signed_char.
14407         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14408         (cpp_options): Handle -fsigned-char and -funsigned-char.
14409         (static_specs): Remove signed_char_spec.
14410         (do_spec1): Don't handle %c.
14411         * system.h: Poison SIGNED_CHAR_SPEC.
14412         * tradcif.y (yylex): Use flag_signed_char.
14413         * tradcpp.h (flag_signed_char): New.
14414         * tradcpp.c (flag_signed_char): New.
14415         (main): Handle new command-line options.
14416         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14417 config:
14418         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14419         * avr/avr.h: Remove old comments.
14420         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14421         (CC1_SPEC): Pass -fsigned-char if -mic*.
14422         (SIGNED_CHAR_SPEC): Remove.
14423 doc:
14424         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14425
14426 2002-02-01  Eric Christopher  <echristo@redhat.com>
14427
14428         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14429         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14430         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14431         (ASM_OUTPUT_REG_POP): Ditto.
14432
14433 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14434
14435         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14436         patch.
14437
14438 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14439
14440         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14441
14442 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14443
14444         PR c/5304:
14445         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14446         unconditionally.
14447
14448 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14449
14450         * cfganal.c: Include tm_p.h.
14451         (keep_with_call_p): Fix the test that determines if a register holds
14452         the return value of a call.
14453
14454 2002-02-01  DJ Delorie  <dj@redhat.com>
14455
14456         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14457         we are given conflicting registers, switch to the other one we
14458         had allocated for us.
14459         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14460         as TImode so we know when the "other" register is available.
14461
14462 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
14463
14464         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14465         sparc/sparc_bi.h.
14466
14467 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14468
14469         * cfganal.c (keep_with_call_p): New function.
14470         (flow_call_edges_add): Prevent splitting a block between a call and
14471         a single-set instruction that should be kept in the same block.
14472
14473 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14474
14475         * doc/install.texi (avr): Update outdated URL.
14476
14477 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
14478
14479         * config/stormy16/stormy16.md (pushqi): New.
14480         (popqi): New.
14481         (pushhi): New.
14482         (pophi): New.
14483         (movhi): Remove stack operands.
14484         (movqi): Likewise.
14485         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14486         nonimmediate_nonstack_operand.
14487         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14488         New.
14489         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14490         New.
14491
14492 2002-01-31  Jason Merrill  <jason@redhat.com>
14493
14494         * Makefile.in (c-parse.c): Handle .output file.
14495         * objc/Make-lang.in (objc-parse.c): Likewise.
14496
14497 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
14498
14499         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14500         the -me[lb] option is given.  Don't output the default flag
14501         twice.
14502
14503 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
14504
14505         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14506         the primary source file; this has not been done yet.
14507         * c-decl.c (c_expand_body): Reset input_filename from
14508         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14509
14510 2002-01-31  Kazu Hirata  <kazu@hxi.com>
14511
14512         * rtlanal.c (subreg_regno_offset): Do not use
14513         SUBREG_REGNO_OFFSET.
14514         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14515         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14516
14517 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14518
14519         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
14520         version rather than GNATS version in --version output.
14521
14522 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
14523
14524         * ifcvt.c (noce_process_if_block): Make a copy of the destination
14525         when copying back from a temporary.
14526
14527 2002-01-30  Richard Henderson  <rth@redhat.com>
14528
14529         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14530         and new_dest are the same.
14531
14532 2002-01-30  Richard Henderson  <rth@redhat.com>
14533
14534         PR opt/5076
14535         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14536         * rtl.c (note_insn_name): Update.
14537         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14538         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14539         to perform loop rotation.
14540         (expand_exit_loop_top_cond): New.
14541         * tree.h (expand_exit_loop_top_cond): Declare it.
14542         * c-semantics.c (genrtl_while_stmt): Use it.
14543         (genrtl_for_stmt): Likewise.
14544
14545 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14546
14547         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14548         arguments to 64-bit boundaries on 64-bit ABIs.
14549
14550 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14551
14552         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14553
14554 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14555
14556         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14557         invalid type.
14558
14559 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14560
14561         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14562         * config/sparc/sparc_bi.h: Remove file.
14563         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14564
14565 2002-01-30  Richard Henderson  <rth@redhat.com>
14566
14567         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14568
14569 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14570
14571         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14572
14573 2002-01-30  Jason Merrill  <jason@redhat.com>
14574
14575         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14576         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14577         (reg_save): Use DW_CFA_offset_extended_sf instead.
14578
14579         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14580
14581 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14582
14583         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14584         in cselib_lookup.
14585
14586 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14587
14588         * rs6000.md ("*call_value_local32"): Remove constraints.
14589         ("*call_value_local64"): Same.
14590         ("*call_value_indirect_nonlocal_aix32"): Same.
14591         ("*call_value_nonlocal_aix32"): Same.
14592         ("*call_value_indirect_nonlocal_aix64"): Same.
14593         ("*call_value_nonlocal_aix64"): Same.
14594         ("*call_value_nonlocal_sysv"): Same.
14595
14596 2002-01-29  Richard Henderson  <rth@redhat.com>
14597
14598         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14599
14600 2002-01-29  Richard Henderson  <rth@redhat.com>
14601
14602         * expr.c (force_operand): Ignore flag_pic for detecting pic
14603         address loads.
14604         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14605         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14606         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14607         instead of open-coded loop.
14608         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14609         be fixed when in use.
14610
14611 2002-01-29  Richard Henderson  <rth@redhat.com>
14612
14613         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14614         * sched-rgn.c (propagate_deps): Update them.
14615         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14616         clobbers list when either gets too long.
14617
14618 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14619
14620         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14621         and INDEX_REGS the same as GENERAL_REGS.
14622         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14623
14624 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14625
14626         * tree.c (build_nonstandard_integer_type): Correct prototype.
14627
14628 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14629
14630         * config/s390/s390.md (movstrsico, movstrdix_64,
14631         movstrsix_31): Remove, replace by ...
14632         (movstrdi_short, movstrsi_short, movstrdi_long,
14633         movstrsi_long): ... these.  New.
14634         (movstrdi, movstrsi): Adapt.
14635
14636         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14637         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14638         Remove unnecessary CC clobber.
14639         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14640         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14641
14642         (divmoddi4): Don't partially initialize TImode register.
14643
14644 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14645
14646         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14647
14648 2002-01-29  Richard Henderson  <rth@redhat.com>
14649
14650         * flow.c (print_rtl_and_abort): Remove.
14651         (print_rtl_and_abort_fcn): Remove.
14652         (verify_local_live_at_start): Use dump_bb instead.
14653         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14654         (verify_wide_reg_1): Return 2 on mode test failure.
14655
14656 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14657
14658         PR c/3325, c/3326, c/2511, c/3347
14659         * c-decl.c (enum_decl_context): Remove BITFIELD.
14660         (grokdeclarator): Take bitfield width as an input.
14661         Ensure bitfields are given the correct type.  Perform
14662         bitfield width validation with build_bitfield_integer_type
14663         rather than waiting for finish_struct.
14664         (grok_typename, grok_typename_in_parm_context, start_decl,
14665         push_parmdecl, grokfield, start_function): Update calls to
14666         grokdeclarator.
14667         (build_bitfield_integer_type): New function.
14668         (finish_struct): Move bitfield validation to grokdeclarator
14669         and build_bitfield_integer_type.
14670         * tree.c (build_nonstandard_integer_type): New function.
14671         * tree.h (build_nonstandard_integer_type): New prototype.
14672 objc:
14673         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14674
14675 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14676
14677         PR other/1502:
14678         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14679         don't ignore unrecognized -W* options.
14680         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14681         * cpplib.h (cpp_handle_option): Adjust prototype.
14682         * c-decl.c (c_decode_options): Pass 0 as last argument to
14683         cpp_handle_option.
14684
14685         PR c/2896:
14686         * gcc.c (cpp_unique_options): Split from cpp_options.
14687         (cpp_options): Source cpp_unique_options.
14688         (default_compilers): Use cpp_unique_options instead of cpp_options
14689         when used together with cc1_options.
14690         (static_specs): Add cpp_unique_options.
14691         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14692         when used together with cc1_options.
14693
14694 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14695
14696         * config/h8300/h8300-protos.h: Update the prototype of
14697         output_a_shift.
14698         * config/h8300/h8300.c (output_a_shift): Remove an unused
14699         argument 'insn'.  Remove redundant code.
14700         * config/h8300/h8300.md: Adust to the new prototype of
14701         output_a_shift.
14702
14703 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14704
14705         * config/h8300/h8300-protos.h: Update the prototypes of
14706         emit_a_rotate and expand_a_rotate.
14707         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14708         first argument to 'enum rtx_code'.
14709         (expand_a_rotate): Likewise.
14710
14711 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14712
14713         * config/h8300/h8300-protos.h: Update the prototype of
14714         output_simode_bld.
14715         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14716         'log2'.
14717         * config/h8300/h8300.md: Adjust to the new prototype.
14718
14719 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14720
14721         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14722         redundant code.
14723
14724 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14725
14726         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14727         is a fixed register before returning pic_offset_table_rtx.
14728         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14729         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14730
14731 2002-01-28  Jason Merrill  <jason@redhat.com>
14732
14733         * dwarf2.h: Sync with src version.
14734
14735 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14736
14737         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14738         BT_FN_VOID_PTR_VAR.
14739         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14740         * doc/extend.texi (__builtin_prefetch): Update documentation:
14741         first argument is now const void ptr.
14742
14743 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14744
14745         * config/h8300/h8300-protos.h: Remove an unused prototype.
14746
14747 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14748
14749         * toplev.c (lang_independent_init): Round up identifier size.
14750
14751 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14752
14753         * config.gcc: Revert previous change.
14754
14755 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14756
14757         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14758
14759 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14760
14761         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14762         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14763         other non-elf netbsd config frags.
14764         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14765         collect2 will does that.
14766         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14767         shared-lib frobbing will work.
14768
14769 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14770
14771         * config/h8300/h8300.h: Fix formatting.
14772         * config/h8300/h8300.md: Likewise.
14773
14774 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14775
14776         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14777         the old, removed AAA_standards fix.
14778         * fixinc/fixincl.x: Rebuilt.
14779
14780 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14781
14782         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14783         atexit call in crtbegin, hooked in after call to frame_dummy;
14784         register EH before registering __fini__start.
14785
14786 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14787
14788         * config/rs6000/altivec.h: Remove spurious semicolons.
14789
14790 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14791
14792         * config/h8300/h8300.md: Replace dead bit extraction patterns
14793         with ones that work.
14794
14795 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14796
14797         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14798         if not STRICT_ALIGNMENT.
14799         * rtl.h (MEM_ALIGN): Likewise.
14800
14801 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14802
14803         * doc/invoke.texi (-fdump-translation-unit): Revert this
14804         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14805
14806 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14807
14808         * config/h8300/h8300.md (define_constants): New.
14809         (anonymous patterns) Use defined constants appropriately.
14810
14811 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14812
14813         * config/h8300/h8300.c (function_arg): Remove redundant code.
14814
14815 2002-01-26  Richard Henderson  <rth@redhat.com>
14816
14817         * sched-deps.c (reg_pending_uses_head): New.
14818         (reg_pending_barrier): Rename from reg_pending_sets_all.
14819         (find_insn_list): Don't mark inline.
14820         (find_insn_mem_list): Remove.
14821         (add_dependence_list, add_dependence_list_and_free): New.
14822         (flush_pending_lists): Replace only_write param with separate
14823         for_read and for_write parameters.  Update all callers.  Use
14824         add_dependence_list_and_free.
14825         (sched_analyze_1): Do not add reg dependencies here; just set
14826         the pending bits.  Use add_dependence_list.
14827         (sched_analyze_2): Likewise.
14828         (sched_analyze_insn): Replace schedule_barrier_found with
14829         reg_pending_barrier.  Add all dependencies for pending reg
14830         uses, sets, and clobbers.
14831         (sched_analyze): Don't add reg dependencies for calls, just
14832         set pending bits.  Use regs_invalidated_by_call.  Treat
14833         sched_before_next_call as a normal list, not a fake insn.
14834         (init_deps): No funny init for sched_before_next_call.
14835         (free_deps): Free pending mems lists.  Don't zero reg_last.
14836         (init_deps_global): Init reg_pending_uses.
14837         (finish_deps_global): Free it.
14838         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14839         (find_insn_mem_list): Remove.
14840         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14841         (propagate_deps): Use them.  Zero temp mem lists.
14842
14843 2002-01-26  Richard Henderson  <rth@redhat.com>
14844
14845         * Makefile.in (CRTSTUFF_CFLAGS): New.
14846         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14847         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14848         crtstuff.c instead of alpha assembly version.
14849         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14850         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14851         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14852         (__do_global_dtors_aux): Mark used.
14853         (frame_dummy, __do_global_ctors_aux): Mark used.
14854         (fini_dummy, init_dummy): Remove.
14855
14856         * config/alpha/crtbegin.asm: Remove file.
14857         * config/alpha/crtend.asm: Remove file.
14858         * config/alpha/t-crtbe: Remove file.
14859         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14860         (LINK_EH_SPEC): New.
14861
14862         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14863         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14864         calling constructors.
14865         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14866
14867         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14868         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14869         CRT_END_INIT_DUMMY hack.
14870         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14871         FORCE_{INIT,FINI}_SECTION_ALIGN.
14872
14873         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14874         FORCE_{INIT,FINI}_SECTION_ALIGN.
14875
14876         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14877         invocation sequence.
14878         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14879
14880         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14881         (FORCE_CODE_SECTION_ALIGN): New.
14882
14883 2002-01-26  Richard Henderson  <rth@redhat.com>
14884
14885         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14886
14887 2002-01-26  Richard Henderson  <rth@redhat.com>
14888
14889         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14890         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14891
14892 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14893
14894         * config/h8300/h8300.md: Remove bit extraction patterns that
14895         cannot be triggered.
14896         Restrict each bit extraction pattern to a variant on which the
14897         pattern is tested.
14898
14899 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14900
14901         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14902
14903 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14904
14905         * config/h8300/h8300.md: Remove bit test patterns that cannot
14906         be triggered.
14907         Restrict each bit test pattern to a variant on which the
14908         pattern is tested.
14909
14910 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14911
14912         * builtins.c (expand_builtin_strncat): Remove redundant check for
14913         INTEGER_CST.
14914
14915 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14916
14917         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14918         default setting.
14919         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14920         existing setting.
14921
14922 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14923
14924         * dbxout.c (dbxout_init): Use assemble_name rather than just
14925         stripping off the first character.
14926         (dbxout_source_file): Likewise.
14927
14928 2002-01-25  DJ Delorie  <dj@redhat.com>
14929
14930         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14931         using rtx_equal_p, not by comparing pointers.
14932
14933 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14934
14935         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14936         for PIC_OFFSET_TABLE_REGNUM.
14937         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14938
14939 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14940
14941         * config.gcc (x86_64-*-freebsd*): New target.
14942         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14943         value.
14944         (i[34567]86-*-freebsd*): Don't include svr4.h.
14945         * config/i386/freebsd64.h: New file.
14946
14947 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14948
14949         * config/alpha/x-vms (version): Make static.
14950
14951         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14952         in previous checkin.
14953
14954         * Makefile.in (install-headers-cp): New target.
14955         * config.gcc (alpha-dec-*vms*): Install headers with
14956         install-headers-cp
14957
14958 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14959
14960         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14961         avoid it's copies.
14962
14963 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14964
14965         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14966         of compare_tree_int.
14967         (expand_builtin_strncat): Likewise.
14968         * c-decl.c (finish_struct): Use tree_low_cst.
14969         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14970         * tree.c (compare_tree_int): Likewise.
14971
14972 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14973
14974         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14975         adjustments even if they are implemented by more than two insns.
14976
14977 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14978
14979         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14980         * df.h (struct ref): Kill B.
14981         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14982
14983         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14984         * flow.c (propagate_one_insn): Use it.
14985         (mark_used_regs): Handle NIL.
14986
14987 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14988
14989         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14990         to help folding.
14991
14992 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14993
14994         * rs6000.md (prefetch): Make address V4SI mode so that the address
14995         is restricted to legitimate form for instruction.
14996
14997 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14998
14999         * doc/install.texi (xtensa-*-elf): New target.
15000         (xtensa-*-linux*): New target.
15001         * doc/contrib.texi: Add myself.
15002
15003 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
15004
15005         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
15006         purpose register to hold an SImode (or smaller) value.
15007
15008 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
15009
15010         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
15011         registry only.
15012         * crtstuff.c: Likewise.
15013
15014 2002-01-25  Kazu Hirata  <kazu@hxi.com>
15015
15016         * config/h8300/h8300.md (negation patterns): Tighten
15017         predicates to register_operand.
15018
15019 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
15020
15021         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
15022         mode, not Pmode.
15023
15024         * builtins.c (expand_builtin_prefetch): Same.
15025
15026 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15027
15028         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
15029         modes.
15030
15031 2002-01-24  Kazu Hirata  <kazu@hxi.com>
15032
15033         * config/h8300/h8300.c (print_operand): Remove support for
15034         operand character 'A'.
15035         * config/h8300/h8300.md (three anonymous patterns): Replace
15036         operand character 'A' with either 'T' or 'S'.
15037
15038 2002-01-24  Kazu Hirata  <kazu@hxi.com>
15039
15040         * config/h8300/h8300.c (print_operand): Remove support for
15041         operand character 'U'.
15042
15043 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
15044
15045         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
15046
15047 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
15048
15049         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
15050         values to be assigned to the stack pointer.
15051
15052 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15053
15054         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
15055         to const_double needs to be done right for big-endian systems.
15056
15057 2002-01-24  Jason Merrill  <jason@redhat.com>
15058
15059         PR c++/2432
15060         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
15061         to can_throw_internal.
15062
15063 2002-01-23  Richard Henderson  <rth@redhat.com>
15064
15065         * fold-const.c (fold): Change UINT_MAX test to check vs precision
15066         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
15067
15068 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15069
15070         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
15071         (symGOT2reg): Use them, then set as GOT value as unchanging.
15072         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
15073         as a temporary, if possible.
15074         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
15075         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
15076
15077 2002-01-23  Kazu Hirata  <kazu@hxi.com>
15078
15079         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
15080         accept to accept 0x80 as operands[2].
15081
15082 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15083
15084         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
15085
15086 2002-01-23  Richard Henderson  <rth@redhat.com>
15087
15088         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
15089
15090 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
15091
15092         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
15093         (parmlist_or_identifiers_1): Verify that only a parmlist follows
15094         an attribute.
15095
15096 2002-01-23  Richard Henderson  <rth@redhat.com>
15097
15098         * expr.c (move_by_pieces_1): Extend size before negation.
15099
15100         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
15101         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
15102         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
15103         * config/m68k/t-m68kelf: Likewise.
15104
15105 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
15106
15107         * config/xtensa/elf.h: New file.
15108         * config/xtensa/lib1funcs.asm: New file.
15109         * config/xtensa/lib2funcs.S: New file.
15110         * config/xtensa/linux.h: New file.
15111         * config/xtensa/t-xtensa: New file.
15112         * config/xtensa/xtensa-config.h: New file.
15113         * config/xtensa/xtensa-protos.h: New file.
15114         * config/xtensa/xtensa.c: New file.
15115         * config/xtensa/xtensa.h: New file.
15116         * config/xtensa/xtensa.md: New file.
15117         * config.gcc (xtensa-*-elf*): New target.
15118         (xtensa-*-linux*): New target.
15119         * cse.c (canon_hash): Compare rtx pointers instead of register
15120         numbers.  This is required for the Xtensa port.
15121         * integrate.c (copy_insn_list): Handle case where the static
15122         chain is in memory and the memory address has to be copied to
15123         a register.
15124         * doc/invoke.texi (Option Summary): Add Xtensa options.
15125         (Xtensa Options): New node.
15126         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
15127
15128 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
15129
15130         * diagnostic.c (internal_error): Do ICE suppression only
15131         when ENABLE_CHECKING is not defined.
15132
15133         * c-typeck.c (require_complete_type): Return error_mark_node
15134         if type is error_mark_node.
15135
15136 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
15137
15138         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
15139         -Os and issue a warning.
15140
15141 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
15142
15143         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
15144         current (lack of) need for host configuration by hand.
15145
15146         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
15147         references.  Documentation of some target macros moved from
15148         hostconfig.texi to tm.texi.
15149
15150 2002-01-23  Will Cohen  <wcohen@redhat.com>
15151
15152         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
15153         defined.
15154
15155 2002-01-23  Kazu Hirata  <kazu@hxi.com>
15156
15157         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
15158         operand[3].
15159
15160 2002-01-23  Jason Merrill  <jason@redhat.com>
15161
15162         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
15163
15164         * function.c (assign_parms): Don't put args of inline functions
15165         into registers when not optimizing.
15166
15167 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
15168
15169         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
15170         (prologue_use): New pattern.
15171         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
15172         preference to gen_rtx_USE.
15173         (thumb_expand_prologue): Use gen_prologue_use in preference to
15174         gen_rtx_USE.
15175         (thumb_expand_epilogue): Use gen_prologue_use in preference to
15176         gen_rtx_USE.
15177
15178 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
15179
15180         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
15181
15182 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15183
15184         PR c/3504
15185         * doc/extend.texi: Correct documentation of __alignof__.
15186
15187 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
15188
15189         * params.h: Rename arguments of DEFPARAM so that it will be
15190         recognized as a translation keyword.
15191
15192 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15193
15194         * extend.texi: Document altivec functions.
15195         Fix N-bit adjectives in X86 builtin documentation.
15196
15197 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15198
15199         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
15200         auto_inc_dec values.
15201
15202 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
15203
15204         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
15205         after backslash.
15206         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
15207
15208 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15209
15210         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
15211
15212 2002-01-22  Richard Henderson  <rth@redhat.com>
15213
15214         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
15215         copy_insn not copy_rtx.
15216
15217 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
15218
15219         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
15220         "nonzero" as that might add "1" bits.  Ensure "constop" is
15221         properly sign extened.
15222         (force_to_mode): Tweak for sign extended constop.
15223
15224 2002-01-22  Richard Henderson  <rth@redhat.com>
15225
15226         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15227         for_each_rtx instead of assuming we're already looking at the MEM.
15228         (split_small_symbolic_mem_operand): Likewise.
15229         * config/alpha/alpha.h (PREDICATE_CODES): Update.
15230         * config/alpha/alpha.md (small symbolic memory splitters): Update.
15231
15232 2002-01-22  Richard Henderson  <rth@redhat.com>
15233
15234         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15235         sequence number for the literal.
15236         (divmoddi_internal_er): Likewise.
15237
15238 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15239
15240         PR java/4972
15241         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15242         in LIBICONV variable.
15243         * configure: Regenerated.
15244
15245 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
15246
15247         * dependence.c (build_def_use): Remove array_idx.
15248
15249         * dwarfout.c (last_filename): Remove.
15250         (output_compile_unit_die): Remove last_filename.
15251
15252 2002-01-22  Roger Sayle  <roger@eyesopen.com>
15253             Richard Henderson  <rth@redhat.com>
15254
15255         PR opt/3640
15256         * fold-const.c (fold): Optimize unsigned comparisons against
15257         UINT_MAX (and similar unsigned constants).
15258
15259 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
15260
15261         * Makefile.in (loop.o): Depend on OPTABS_H.
15262         * loop.c (emit_prefetch_instructions): Check the prefetch operand
15263         against the predicate.
15264
15265         PR target/5379
15266         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15267         for the address operand.
15268
15269 2002-01-22  Richard Henderson  <rth@redhat.com>
15270
15271         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15272
15273 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15274
15275         PR other/5450
15276         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15277         preprocessor flags.
15278
15279 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
15280
15281         * config.gcc (x86_64-*-netbsd*): New target.
15282         * config/i386/netbsd64.h: New file.
15283
15284 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15285
15286         * regrename.c (kill_value): Fix typo.
15287
15288 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15289
15290         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15291
15292         * config/rs6000/rs6000.h: Same.
15293
15294         * function.c (instantiate_virtual_regs): Remove
15295         STARTING_FRAME_PHASE.
15296         (assign_stack_local_1): Same.
15297         Calculate frame phase.
15298
15299 2002-01-22  Nick Clifton  <nickc@redhat.com>
15300
15301         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15302         variable declaration to outer scope in order to simplify
15303         future extensions.
15304         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15305         arm_hard_regno_mode_ok.
15306         * config/arm/arm-protos.h: Add a prototype for
15307         arm_hard_regno_mode_ok.
15308         * config/arm/arm.c (soft_df_operand): Remove now redundant
15309         check for DImode values using IP_REGNUM.
15310         (nonimmediate_soft_df_operand): Remove now redundant check for
15311         DImode values using IP_REGNUM.
15312         (arm_hard_regno_mode_ok): New function. New check: make sure
15313         that DImode values are not stored in IP_REGNUM.
15314
15315         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15316         note with a USE.
15317         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15318
15319 2002-01-22  Jason Merrill  <jason@redhat.com>
15320
15321         * c-semantics.c (genrtl_compound_stmt): Only check nesting
15322         consistency if this COMPOUND_STMT is scoped.
15323
15324 2002-01-22  Kazu Hirata  <kazu@hxi.com>
15325
15326         * predict.c: Fix formatting.
15327         * print-tree.c: Likewise.
15328         * protoize.c: Likewise.
15329         * real.h: Likewise.
15330         * rtl.h: Likewise.
15331         * sbitmap.h: Likewise.
15332         * scan.c: Likewise.
15333         * sched-deps.c: Likewise.
15334         * sched-vis.c: Likewise.
15335         * sdbout.c: Likewise.
15336         * sibcall.c: Likewise.
15337         * ssa.c: Likewise.
15338         * ssa-ccp.c: Likewise.
15339         * ssa-dce.c: Likewise.
15340         * stmt.c: Likewise.
15341         * stor-layout.c: Likewise.
15342         * system.h: Likewise.
15343
15344 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15345
15346         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15347         if fits in bounds of base type.
15348
15349         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15350         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15351         (add_bound_info, default): If can't find a context, make a
15352         SAVE_EXPR.
15353         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15354
15355 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
15356
15357         * c-typeck.c (parser_build_binary_op): If result from
15358         build_binary_op is ERROR_MARK just return error_mark_node without
15359         further processing.
15360
15361 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
15362
15363         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15364         Split a.out-specific bits into...
15365         * config/netbsd-aout.h: ...this.
15366         * config/netbsd-elf.h: New file.
15367         * config/alpha/netbsd-elf.h: Remove.
15368         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15369         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15370         (STARTFILE_SPEC): Remove redundant definition.
15371         (ENDFILE_SPEC): Likewise.
15372         (LINK_SPEC): Likewise.
15373         (CPP_SPEC): Likewise.
15374         (ASM_SPEC): Likewise.
15375         (LIB_SPEC): Likewise.
15376         (SWITCH_TAKES_ARG): Likewise.
15377         (TARGET_MEM_FUNCTIONS): Likewise.
15378         (CPP_PREDEFINES): Redefine.
15379         (ASM_FINAL_SPEC): Remove redefinition.
15380         (ASM_COMMENT_START): Redefine.
15381         (FUNCTION_PROFILER): Define.
15382         (TARGET_VERSION): Redefine.
15383         Comment and formatting cleanup.
15384         * config/i386/netbsd.h: Include <netbsd-aout.h>.
15385         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15386         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15387         big- or little-endian.
15388         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15389         * config.gcc (*-*-netbsd*): Add definitions common to all
15390         NetBSD configs.
15391         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15392         gnu_ld definitions.  Add netbsd-elf.h to and remove
15393         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
15394         tmake_file, and don't lose previous tmake_file contents.
15395         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15396         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15397         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
15398         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15399         (mipsel-*-netbsd*): Rename this to...
15400         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
15401         mips/little.h to tm_file for mips*el-*.
15402         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15403         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15404         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15405
15406 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15407
15408         * pa-protos.h (reg_before_reload_operand): New function prototype.
15409         * pa.c (reg_before_reload_operand): New function implementation.
15410         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
15411         contraints to "*m".
15412
15413 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15414
15415         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15416
15417 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15418
15419         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15420         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15421         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15422         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15423         (ENDFILE_SPEC): Undefine.
15424         (STARTFILE_SPEC): Redefine for PA.
15425
15426 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15427
15428         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15429
15430 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
15431
15432         * config.gcc: Add entries to supported PowerPC --with-cpu
15433         types.
15434
15435 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
15436
15437         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15438         true for 64-bit mode only SSE registers in 32-bit mode.
15439
15440 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15441
15442         * unwind-dw2.c: Fix formatting.
15443         * unwind-dw2-fde.c: Likewise.
15444         * unwind-dw2-fde.h: Likewise.
15445         * unwind-pe.h: Likewise.
15446         * varasm.c: Likewise.
15447         * varray.h: Likewise.
15448
15449 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
15450
15451         Remove workaround for register stack overwrite bug in mmix.
15452         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15453         support for TARGET_REG_STACK_FILL_BUG.
15454         * config/mmix/mmix.h: Remove member has_call_without_parameters.
15455         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15456         Delete.
15457         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15458         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15459         -mno-reg-stack-fill-bug-workaround.
15460         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15461         machine member has_call_without_parameters.
15462         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15463         -mreg-stack-fill-bug-workaround and
15464         -mno-reg-stack-fill-bug-workaround.
15465         (MMIX Options): Ditto.
15466
15467 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15468
15469         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15470         as appropriate.
15471         Remove redundant code.
15472
15473 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15474
15475         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15476         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15477         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15478         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15479         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15480         out target macro definitions and non-target-specific comments
15481         mostly taken from old versions of the manual.
15482
15483 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15484
15485         * config/h8300/h8300.h: Fix comment formatting.
15486         * config/ia64/aix.h: Likewise.
15487         * config/ia64/ia64-protos.h: Likewise.
15488         * config/ia64/ia64.c: Likewise.
15489         * config/ia64/ia64.h: Likewise.
15490         * config/ia64/ia64intrin.h: Likewise.
15491         * config/ia64/linux.h: Likewise.
15492         * config/ia64/unwind-aix.c: Likewise.
15493         * config/ia64/unwind-ia64.c: Likewise.
15494
15495 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15496
15497         * config/h8300/h8300.c: Revise comments about shift code.
15498
15499 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15500
15501         * config/h8300/h8300.c (function_arg): Update a comment.
15502
15503 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15504
15505         * config/h8300/h8300.md: Update the comments at the beginning
15506         of the file.
15507
15508 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15509
15510         * config/i370/i370.c: Fix comment formatting.
15511         * config/i370/i370.h: Likewise.
15512         * config/i370/i370.md: Likewise.
15513         * config/i370/linux.h: Likewise.
15514
15515 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15516
15517         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15518
15519         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15520         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15521         in incomplete case.
15522
15523 2002-01-20  Graham Stott  <grahams@redhat.com>
15524
15525         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15526
15527 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15528
15529         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15530
15531 2002-01-19  Tom Rix  <trix@redhat.com>
15532
15533         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15534
15535 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15536
15537         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15538
15539         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15540         STARTING_FRAME_PHASE.
15541         (STARTING_FRAME_PHASE): New.
15542         (instantiate_virtual_regs): Check saneness of
15543         STARTING_FRAME_PHASE.
15544
15545         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15546
15547 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15548
15549         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15550
15551 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15552
15553         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15554         be used for bootstrapping GCC 3.0.
15555
15556 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15557
15558         * config/h8300/h8300.md: Fix an insn length.
15559
15560 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15561
15562         * bitmap.h: Fix comment formatting.
15563         * combine.c: Likewise.
15564         * cppfiles.c: Likewise.
15565         * c-pragma.h: Likewise.
15566         * c-typeck.c: Likewise.
15567         * df.c: Likewise.
15568         * dwarf2out.c: Likewise.
15569         * function.c: Likewise.
15570         * gcc.c: Likewise.
15571         * genattrtab.c: Likewise.
15572         * gthr-win32.h: Likewise.
15573         * haifa-sched.c: Likewise.
15574         * predict.c: Likewise.
15575         * rtlanal.c: Likewise.
15576         * rtl.h: Likewise.
15577         * unwind-dw2-fde.h: Likewise.
15578         * unwind-pe.h: Likewise.
15579         * vmsdbgout.c: Likewise.
15580
15581 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15582
15583         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15584         if type_required and passed decl.
15585
15586 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15587
15588         * config.gcc (cpu_type): Include altivec.h in powerpc
15589         extra_headers.
15590         Same for darwin.
15591
15592         * config/rs6000/altivec.h: New.
15593
15594 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15595
15596         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15597         handling information.
15598         * doc/trouble.texi (Interoperation): Add libstdc++ information
15599         for AIX.
15600         (Misunderstandings): Add template instantiation and static template
15601         member information for AIX.
15602
15603 2002-01-17  Jason Merrill  <jason@redhat.com>
15604
15605         * dbxout.c (dbxout_type): Support const and volatile.
15606
15607         * except.c (add_partial_entry): Remove backwards compatibility code.
15608         (end_protect_partials): Likewise.
15609
15610 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15611
15612         * config/ia64/ia64.md (prologue_use): New.
15613         * config/ia64/ia64.c (ia64_expand_prologue): Use
15614         gen_prologue_use instead of gen_rtx_USE.
15615         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15616         as CODE_FOR_pred_rel_mutex.
15617         (ia64_sched_reorder2): Likewise.
15618
15619 2002-01-16  Eric Christopher  <echristo@redhat.com>
15620
15621         * config/mips/r3900.h: Reformat.
15622         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15623         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15624         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15625         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15626         * config/mips/t-elf: Remove mips3 multilib.
15627
15628 2002-01-16  H.J. Lu <hjl@gnu.org>
15629
15630         * config/mips/linux.h: Include "mips/abi64.h".
15631
15632 2002-01-16  H.J. Lu <hjl@gnu.org>
15633
15634         * config/mips/t-linux: New.
15635
15636         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15637
15638         * config/mips/linux.h: Don't include "gofast.h".
15639         (INIT_SUBTARGET_OPTABS): Removed.
15640
15641 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15642
15643         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15644         output_a_shift.
15645         * config/h8300/h8300.c: Likewise.
15646         * config/h8300/h8300.md: Likewise.
15647
15648 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15649
15650         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15651         spaces after an opcode name.
15652         (pushqi1_h8300hs): Likewise.
15653         (pushhi1_h8300hs): Likewise.
15654
15655 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15656
15657         * doc/extend.texi: Replace "option" with "attribute"
15658         appropriately.
15659
15660 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15661
15662         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15663         (and:DI () (const_int -8)).
15664         (split_small_symbolic_mem_operand): Split
15665         (mem (and:DI () (const_int -8)).
15666
15667 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15668
15669         PR target/5309:
15670         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15671         same way as TYPE_IMUL.
15672         (ultrasparc_sched_reorder): Likewise.
15673         * config/sparc/sparc.md (type): Add comment to update
15674         ultrasparc_sched_reorder when making changes.
15675
15676 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15677
15678         * doc/invoke.texi: Change the dump file name of block
15679         reordering pass from 28.bbro to 29.bbro.
15680         Mention -dk option.
15681
15682 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15683
15684         * i386.md (minsf splitter): Fix pasto.
15685
15686 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15687
15688         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15689         to frame pointer initialisation instruction.
15690         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15691         initialisation instruction.
15692         (soft_df_operand): Do not accept the IP register.
15693         (nonimmediate_soft_df_operand): Do not accept the IP register.
15694
15695 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15696
15697         PR target/5357:
15698         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15699         MASK_V8 being both set.
15700
15701 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15702
15703         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15704         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15705         config/s390/s390.md (call, call_value): Add GOT register to
15706         CALL_INSN_FUNCTION_USAGE where needed.
15707         (call_exp, call_value_exp): New.
15708
15709 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15710
15711         * config/arm/arm.c: General formatting tidy up.
15712
15713 2002-01-16  Graham Stott  <grahams@redhat.com>
15714
15715         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15716         cast and when casting an integer literal to "rtx" pointer.
15717         (expand_call): Likewise.
15718         * flow.c (try_pre_increment): Likewise.
15719         (find_use_as_address): Likewise.
15720         * integrate.c (expand_iline_function): Likewise.
15721         * regmove.c (try_auto_increment): Likewise.
15722
15723 2002-01-16  Graham Stott  <grahams@redhat.com>
15724
15725         * sched-rgn.c (passed): Use sbitmap_free.
15726         (header): Likewise.
15727         (inner): Likewise.
15728         (in_queue): Likewise.
15729         (in_stack): Likewise.
15730
15731 2002-01-15  Eric Christopher  <echristo@redhat.com>
15732
15733         * flow.c (propagate_one_insn): Change to use fatal_insn.
15734
15735 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15736
15737         * expmed.c (extract_fixed_bit_field): Remove unused code.
15738         * system.h: Poison SLOW_ZERO_EXTEND.
15739         * doc/tm.texi: Remove.
15740         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15741         * config/arm/arm.h: Likewise.
15742         * config/avr/avr.h: Likewise.
15743         * config/clipper/clipper.h: Likewise.
15744         * config/convex/convex.h: Likewise.
15745         * config/d30v/d30v.h: Likewise.
15746         * config/dsp16xx/dsp16xx.h: Likewise.
15747         * config/elxsi/elxsi.h: Likewise.
15748         * config/fr30/fr30.h: Likewise.
15749         * config/h8300/h8300.h: Likewise.
15750         * config/i370/i370.h: Likewise.
15751         * config/i386/i386.h: Likewise.
15752         * config/m68k/m68k.h: Likewise.
15753         * config/mips/mips.h: Likewise.
15754         * config/ns32k/ns32k.h: Likewise.
15755         * config/pdp11/pdp11.h: Likewise.
15756         * config/pj/pj.h: Likewise.
15757         * config/s390/s390.h: Likewise.
15758         * config/sh/sh.h: Likewise.
15759         * config/stormy16/stormy16.h: Likewise.
15760         * config/v850/v850.h: Likewise.
15761         * config/vax/vax.h: Likewise.
15762         * config/we32k/we32k.h: Likewise.
15763
15764 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15765
15766         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15767         (altivec_lvsl): Change constraint to b.
15768         (altivec_lvsr): Same.
15769         (altivec_lvebx): Same.
15770         (altivec_lvehx): Same.
15771         (altivec_lvewx): Same.
15772         (altivec_lvxl): Same.
15773         (altivec_lvx): Same.
15774         (altivec_stvx): Add parallel.
15775         (altivec_stvxl): Same.
15776         (altivec_stvehx): Same.
15777         (altivec_stvebx): Same.
15778         (altivec_stvebx): Same.
15779
15780 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15781
15782         * config.gcc: Change altivec.h to altivec-defs.h.
15783
15784         * config/rs6000/altivec.h: Delete.
15785
15786         * config/rs6000/altivec-defs.h: Add.
15787
15788 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15789
15790         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15791         and UMOD modes.
15792
15793         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15794         less than or equal to eight bytes.
15795
15796         * vax.md (andsi3): Remove constraints and change SET destination
15797         operand type to nonimmediate_operand.
15798         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15799         when it is a CONST_INT.
15800
15801 2002-01-15  Jason Merrill  <jason@redhat.com>
15802
15803         * c-common.def (FILE_STMT): New code.
15804         * c-common.c (statement_code_p): It's a statement.
15805         * c-common.h (stmt_tree_s): Add x_last_filename.
15806         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15807         (last_expr_filename): New macro.
15808         * c-semantics.c (begin_stmt_tree): Initialize it.
15809         (add_stmt): If the filename changed, also insert a
15810         FILE_STMT.
15811         (expand_stmt): Handle seeing one.
15812
15813 2002-01-15  Eric Christopher  <echristo@redhat.com>
15814
15815         * flow.c (propagate_one_insn): Add error message and print out
15816         insn for debugging.
15817
15818 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15819
15820         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15821         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15822         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15823         TRAMPOLINE_ALIGNMENT.
15824         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15825         to be in bits.
15826         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15827         PCC_BITFIELD_TYPE_MATTERS.
15828         * config/interix.h (STDC_VALUE): Remove.  Use
15829         STDC_0_IN_SYSTEM_HEADERS.
15830         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15831         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15832         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15833
15834 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15835
15836         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15837         not work on this platform currently.
15838
15839 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15840
15841         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15842         readonly_warning in _().
15843
15844 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15845
15846         * gcc.c (delete_if_ordinary): Backout previous change.
15847
15848 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15849
15850         * config/h8300/h8300.c (print_operand): Remove support for
15851         unused operand characters.
15852
15853         * read-rtl.c: Fix formatting.
15854         * real.c: Likewise.
15855         * recog.c: Likewise.
15856         * regclass.c: Likewise.
15857         * regmove.c: Likewise.
15858         * reg-stack.c: Likewise.
15859         * reload1.c: Likewise.
15860         * rtlanal.c: Likewise.
15861
15862 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15863
15864         * config/i386/i386.c: Fix formatting.
15865
15866 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15867
15868         * c-typeck.c (process_init_element): Don't save_expr
15869         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15870
15871 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15872
15873         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15874         emit optional traceback table if optimize_size or TARGET_ELF.
15875         * config/rs6000/rs6000.md (prefetch): New.
15876
15877 2002-01-15  Andreas Jaeger  <aj@suse.de>
15878
15879         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15880
15881 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15882
15883         * mips-tfile.c: Fix formatting.
15884
15885 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15886
15887         * unroll.c (final_reg_note_copy): Fix previous commit.
15888
15889 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15890
15891         * config/h8300/h8300-protos.h: Remove the prototype for
15892         eq_operator.
15893         * config/h8300/h8300.c (eq_operator): Remove.
15894
15895 2002-01-14  Richard Henderson  <rth@redhat.com>
15896
15897         * config/i386/i386.md (prefetch): Tidy.
15898         (prefetch_3dnow): Fix locality operand.
15899
15900 2002-01-14  Richard Henderson  <rth@redhat.com>
15901
15902         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15903         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15904
15905 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15906
15907         * reload1.c (reload_combine): Pass reg_sum replacement through
15908         copy_rtx in loop performing multiple changes.
15909
15910 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15911
15912         * except.c (remove_unreachable_regions): New.
15913         (free_eh_status): Clear exception_handler_labels.
15914         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15915         (find_exception_handler_labels): Don't add the same label more than
15916         once.
15917         (remove_exception_handler_label): Don't die if
15918         find_exception_handler_labels hasn't been called for the current
15919         function yet.
15920
15921 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15922
15923         * toplev.c (rest_of_compilation): Rebuild jump labels after
15924         gcse.
15925
15926 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15927
15928         * doc/extend.texi: Move documentation of X86 built-in functions
15929         here.
15930         * doc/invoke.texi: From here.
15931         * doc/sourcebuild.texi: Document location of documentation for
15932         machine built-in functions.
15933
15934 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15935
15936         * cppfiles.c (TEST_THRESHOLD): New macro.
15937         (SHOULD_MMAP): Ditto.
15938         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15939         be used.
15940
15941 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15942
15943         * unroll.c (final_reg_note_copy): Properly handle
15944         REG_LABEL
15945         (unroll_loops): Fix LOOP_CONDITION heuristics.
15946
15947 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15948
15949         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15950         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15951
15952 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15953
15954         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15955         threaded loop.
15956
15957 2002-01-14  Tom Rix  <trix@redhat.com>
15958
15959         * config/rs6000/rs6000.md: Fix typo with sradi.
15960
15961 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15962
15963         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15964         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15965         (clrstrdi, clrstrsi): Adapt callers.
15966
15967         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15968
15969         (movti splitter): Never use register 0 as base register.
15970
15971 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15972
15973         * combine.c (simplify_shift_const): Always generate new rtx
15974         for shift expression instead of reusing given expression.
15975
15976 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15977
15978         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15979         alpha_legitimize_address unless mode is Pmode.
15980
15981 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15982
15983         * doc/md.texi (Modifiers): Document the '*' constraint for the
15984         user.
15985
15986         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15987         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15988         for xstormy16 too.
15989
15990 2002-01-13  Richard Henderson  <rth@redhat.com>
15991
15992         * reload.c (find_reloads): Use a hard reg destination as reload reg
15993         for an input reload of the source.
15994
15995 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15996
15997         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15998         more generic.
15999
16000 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
16001
16002         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
16003         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
16004
16005         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
16006
16007 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16008
16009         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
16010
16011 2002-01-12  Tom Rix  <trix@redhat.com>
16012
16013         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
16014         TARGET_POWERPC64.
16015
16016 2002-01-12  Richard Henderson  <rth@redhat.com>
16017
16018         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
16019
16020         * doc/invoke.texi: Update Alpha options.
16021
16022         * doc/invoke.texi: Update i386 built-in function lists.
16023
16024 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
16025
16026         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
16027         referencing outside.
16028
16029 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16030
16031         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
16032         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
16033         offsets, and change line folding.
16034         * optabs.c (expand_binop): Remove warnings.
16035         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
16036
16037 2002-01-12  Graham Stott <grahams@redhat.com>
16038
16039         * attribs.c (handle_deprecated_attribute): constify WHAT.
16040         * diagnostic.c (warn_deprecated_use): Add braces, fixes
16041         dangling else warning and constify WHAT.
16042         * except.h (struct function, struct inline_remap): Move
16043         struct tag forward defs before all prototypes.
16044         (duplicate_eh_regions): Whitespace.
16045
16046 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
16047
16048         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16049         MODE_BASE_REG_CLASS.
16050         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
16051
16052 2002-01-12  Richard Henderson  <rth@redhat.com>
16053
16054         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
16055         (ix86_expand_vector_move): New.
16056         (bdesc_2arg): Remove andps, andnps, orps, xorps.
16057         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
16058         Remove old prefetch builtins.  Special case the logicals removed above.
16059         (ix86_expand_builtin): Likewise.
16060         (safe_vector_operand): Use V4SFmode, not TImode.
16061         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
16062         (ix86_expand_timode_binop_builtin): New.
16063         * config/i386/i386-protos.h: Update.
16064         * config/i386/i386.h (enum ix86_builtins): Update.
16065         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
16066         Use ix86_expand_vector_move in vector move expanders.
16067         (movti_internal, movti_rex64): Add xorps alternative.
16068         (sse_clrv4sf): Rename and adjust from sse_clrti.
16069         (prefetch): Don't work so hard.
16070         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
16071         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
16072         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
16073
16074 2002-01-11  Richard Henderson  <rth@redhat.com>
16075
16076         * config/i386/mmintrin.h: New file.
16077         * config/i386/xmmintrin.h: New file.
16078         * config.gcc (i?86-*-*): Add extra_headers.
16079         * simplify-rtx.c (simplify_unary_operation): Handle saturating
16080         truncation codes.
16081         (simplify_binary_operation): Handle saturating arithmetic codes.
16082         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
16083         not the lowpart subreg.
16084         (ix86_expand_builtin): Return a TImode dummy register instead of 0
16085         on error.
16086         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
16087
16088 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16089
16090         * conflict.c (conflict_graph_compute): Free regsets when finished.
16091         * ssa.c (compute_coalesced_reg_partition): Likewise.
16092
16093 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16094
16095         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
16096         every where we allocate a register.
16097
16098 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16099
16100         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
16101         * lcm.c (compute_earliest, compute_farthest): Likewise.
16102
16103 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
16104
16105         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
16106
16107 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
16108
16109         * doc/rtl.texi (Insns): Fix 2 typos.
16110
16111 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
16112
16113         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
16114         options.  Use @table @gcctabopt for MMIX options.  Add index
16115         entries for MMIX options.  Start new paragraph with first
16116         heading of the machine-dependent options.
16117
16118 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16119
16120         PR other/5299
16121         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
16122         * combine.c (force_to_mode): Same.
16123         * reload1.c (clear_reload_reg_in_use): Same.
16124
16125 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
16126
16127         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
16128         and 'subtargets'.
16129
16130 2002-01-11  Andreas Jaeger  <aj@suse.de>,
16131             Brad Lucier <lucier@math.purdue.edu>
16132
16133         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
16134         mcpu.
16135
16136 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
16137
16138         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
16139         Protect with IN_LIBGCC.
16140         (LINK_EH_SPEC): Add required trailing space.
16141
16142 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16143
16144         * c-tree.h: Move function declarations so that they are listed
16145         under the filename which contains them.
16146         (check_identifier, finish_decl_top_level,
16147         lookup_name_current_level_global, shadow_record_fields): Remove.
16148
16149 2002-01-11  Andreas Jaeger  <aj@suse.de>
16150
16151         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
16152         march.
16153
16154 2002-01-10  Richard Henderson  <rth@redhat.com>
16155
16156         * config/alpha/alpha.c (print_operand): Add 'J'.
16157         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
16158         new operand with the sequence number for the lituse.  When splitting
16159         the insns, use gen_movdi_er_high_g and generate a sequence number.
16160         (gen_movdi_er_high_g): Print the sequence number if non-zero.
16161
16162 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
16163
16164         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
16165         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
16166         stvxl.
16167         (altivec_expand_builtin): Same.
16168         (altivec_expand_stv_builtin): New.
16169
16170         * config/rs6000/rs6000.h (rs6000_builtins): Same.
16171
16172         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
16173         ("altivec_lvehx"): New.
16174         ("altivec_lvewx"): New.
16175         ("altivec_lvxl"): New.
16176         ("altivec_lvx"): New.
16177         ("altivec_stvx"): New.
16178         ("altivec_stvebx"): New.
16179         ("altivec_stvehx"): New.
16180         ("altivec_stvewx"): New.
16181         ("altivec_stvxl"): New.
16182
16183 2002-01-10  Richard Henderson  <rth@redhat.com>
16184
16185         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
16186         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
16187         care not to delete instructions twice.
16188
16189 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16190
16191         * toplev.c: Don't declare environ (it's not used anywhere).
16192         * configure.in: Don't check for declaration of environ.
16193         * config/i386/xm-mingw32.h: Don't #define environ.
16194         * config.in, configure: Regenerate.
16195
16196 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16197
16198         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
16199         * configure: Regenerate.
16200
16201         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
16202         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
16203         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
16204         alpha/xm-vms.h.
16205         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
16206         LIMITS_H_TEST here, not in m68k/x-next.
16207         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
16208         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
16209
16210         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
16211         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
16212         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
16213
16214         * config/i386/x-djgpp: Renamed i386/t-djgpp.
16215         * config/m88k/x-dolph: Renamed m88k/t-dolph.
16216         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
16217         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
16218         replacement of quadlib.asm with quadlib.c.
16219
16220         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
16221         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
16222         config/rs6000/xm-beos.h: Delete file.
16223
16224         * config.gcc: Update to match above changes.
16225
16226 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16227
16228         * config/h8300/h8300.h: Fix comment typos.
16229         * config/h8300/h8300.md: Likewise.
16230         * config/h8300/lib1funcs.asm: Likewise.
16231
16232 2002-01-10  Dale Johannesen  <dalej@apple.com>
16233
16234         PR optimization/5269
16235         * unroll.c (precondition_loop_p): Make *increment be the correct
16236         sign when n_iterations known, to avoid confusing caller.
16237
16238 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16239
16240         * doc/extend.texi (deprecated): Fix a typo.
16241
16242 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16243
16244         * basic-block.h (update_br_prob_note): Declare.
16245         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16246         (try_forward_edges): Care negative frequencies and update note.
16247         (outgoing_edges_match): Tweek conditional merging heuristics.
16248         (try_crossjump_to_edge): use update_br_prob_note.
16249         * cfglayout.c (fixup_reorder_chain): Likewise.
16250         * cfrtl.c (update_br_prob_note): New.
16251         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16252
16253         * i386.c (ix86_decompose_address): Return -1 if address contains
16254         shift.
16255         (legitimate_address_p): Require ix86_decompose_address to return 1.
16256
16257         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16258         (cprop_insn): Likewise.
16259
16260 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16261
16262         * toplev.c: Fix formatting.
16263         * tree.c: Likewise.
16264         * tree-dump.c: Likewise.
16265         * unroll.c: Likewise.
16266         * unwind-dw2.c: Likewise.
16267         * unwind-dw2-fde.c: Likewise.
16268         * unwind-dw2-fde-glibc.c: Likewise.
16269         * unwind-sjlj.c: Likewise.
16270
16271 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16272
16273         * doc/invoke.texi: Document PDP-11 options.
16274
16275 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16276
16277         * config/h8300/h8300.h: Fix formatting.
16278
16279 2002-01-10  Ira Ruben   <ira@apple.com>
16280
16281         Add __attribute__ ((deprecated)).
16282         * extend.texi: Document __attribute__ ((deprecated)).
16283         * invoke.texi: Document -Wno-deprecated-declarations.
16284         * testsuite/g++.dg/other/deprecated.C: New C++ test.
16285         * testsuite/gcc.dg/deprecated.c: New C test.
16286         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16287         (c_common_attribute_table): Add "deprecated" entry.
16288         (handle_deprecated_attribute): New function.
16289         * c-decl.c (deprecated_states): New enum.
16290         deprecated_state: State of "deprecated" handling.
16291         (start_decl): Set deprecated_state based on attributes.
16292         (grokdeclarator): Test for deprecated uses, propagate attribute.
16293         * c-typeck.c (build_component_ref): Test for deprecated fields.
16294         (build_external_ref): Test for deprecated primaries.
16295         * diagnostic.c (warn_deprecated_use) New function to issue
16296         warnings about __attribute__ ((depricated)) references.
16297         * flags.h (warn_deprecated_decl): Extern declared for
16298         -W[no-]deprecated-declarations option.
16299         * print-tree.c (print_node): Show deprecated flag status.
16300         * toplev.c (warn_deprecated_decl): Defined.
16301         (W_options): Added "deprecated-declaration".
16302         * toplev.h (warn_deprecated_use): Extern declared.
16303         * tree.h (struct tree_common): Define deprecated_flag.
16304         (TREE_DEPRECATED): New macro to access flag.
16305         * cp/call.c (build_call): Test for deprecated calls.
16306         * cp/class.c (add_implicitly_declared_members): Set global
16307         flag to tell grokdeclarator to not issue deprecated warnings.
16308         * cp/cp-tree.h: Add extern for adding_implicit_members.
16309         * cp/decl.c (deprecated_states): New enum.
16310         (start_decl): Set deprecated_state based on attributes.
16311         (grokdeclarator): Test for deprecated uses, propagate attribute.
16312         * cp/lex.c (do_identifier): Test for deprecated primaries.
16313         * cp/typeck.c (build_component_ref): Test for deprecated fields.
16314
16315 2002-01-10  Ira Ruben   <ira@apple.com>
16316
16317         Fix to assign attributes to inline member functions.
16318         * cp/decl.c (start_method): Handle attrlist.
16319
16320 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16321
16322         * combine.c (expand_field_assignment): Use subreg_lsb().
16323
16324 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
16325
16326         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16327         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16328         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16329         Recurse for any operand of AND as long as constant is non-zero.
16330
16331 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16332
16333         * config/h8300/h8300.md: Remove constraints from expanders.
16334
16335 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16336
16337         * varasm.c: Fix formatting.
16338         * varray.c: Likewise.
16339         * vmsdbgout.c: Likewise.
16340         * xcoffout.c: Likewise.
16341
16342 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
16343
16344         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16345         update edge probabilities to match.
16346
16347 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16348
16349         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16350         dependencies.
16351         * doc/languages.texi, doc/sourcebuild.texi: New files.
16352         * doc/configfiles.texi: Make a subsubsection.  Update.
16353         * doc/configterms.texi: Add @node.  Remove warning that this isn't
16354         instructions for building GCC.
16355         * doc/makefile.texi: Make a subsection.
16356         * doc/gccint.texi: Update.
16357
16358 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
16359
16360         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16361
16362 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16363
16364         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16365
16366 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
16367
16368         * optabs.c (expand_fix): Look for wider integer modes first.
16369
16370         * i386.md (mov?f): Avoid the fake const double trick for medium
16371         memory model.
16372         (min?f*/max?f*): Prohibit memory operands for i387 variant.
16373         (fop_df_4): Disable for SSE compilation.
16374
16375 2002-01-10  Graham Stott  <grahams@redhat.com>
16376
16377         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16378         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16379
16380 2002-01-10  Richard Henderson  <rth@redhat.com>
16381
16382         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16383
16384 2002-01-10  Richard Henderson  <rth@redhat.com>
16385
16386         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16387         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
16388
16389 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16390
16391         * combine.c (can_combine_p): Fix a comment typo.
16392
16393 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
16394
16395         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16396         empty list correctly.  Change loop index $t to $f for
16397         consistency with rest of Makefile.
16398
16399 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
16400
16401         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16402         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16403
16404         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16405         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16406         (altivec_init_builtins): Same.
16407         (altivec_expand_unop_builtin): Return NULL_RTX on error.
16408         (altivec_expand_binop_builtin): Same.
16409         (altivec_expand_ternop_builtin): Same.
16410         (bdesc_dst): New.
16411
16412         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16413         ("altivec_vctuxs"): Fix typo.
16414         ("altivec_vnmsubfp"): Same.
16415         ("altivec_dssall"): New.
16416         ("altivec_mfvscr"): New.
16417         ("altivec_dss"): New.
16418         ("altivec_lvsl"): New.
16419         ("altivec_lvsr"): New.
16420         ("altivec_dstt"): New.
16421         ("altivec_dstst"): New.
16422         ("altivec_dststt"): New.
16423         ("altivec_dst"): New.
16424
16425         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16426         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16427
16428 2002-01-09  Richard Henderson  <rth@redhat.com>
16429
16430         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16431
16432 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
16433
16434         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16435         function.
16436         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16437         prototype.
16438         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16439
16440 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16441
16442         * read-rtl.c: Fix formatting.
16443         * real.c: Likewise.
16444         * regclass.c: Likewise.
16445         * regrename.c: Likewise.
16446         * reg-stack.c: Likewise.
16447         * reload1.c: Likewise.
16448         * reload.c: Likewise.
16449         * rtl.c: Likewise.
16450
16451 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16452
16453         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16454         to extract items in the expr_list chain.
16455
16456 2002-01-09  Richard Henderson  <rth@redhat.com>
16457
16458         * config/vax/vax.c (vax_rtx_cost): Never abort.
16459
16460         * config/vax/vax.h (REAL_ARITHMETIC): Define.
16461
16462 2002-01-09  Jan Hubicka  <jh@suse.cz>
16463
16464         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16465
16466 2002-01-09  Richard Henderson  <rth@redhat.com>
16467
16468         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16469         Unify code from various alternatives.
16470
16471 2002-01-09  Richard Henderson  <rth@redhat.com>
16472
16473         * regrename.c (copy_value): Ignore the copy if the source register
16474         is present in the value chain with a narrower mode.
16475
16476 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
16477
16478         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16479         for the c4x target. Also improve layout.
16480
16481 2002-01-09  Richard Henderson  <rth@redhat.com>
16482
16483         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16484         * config/m32r/m32r.md (and ior xor splitters): Swap operands
16485         to match insn patterns.
16486
16487 2002-01-09  Richard Henderson  <rth@redhat.com>
16488
16489         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16490         (copyprop_hardreg_forward_1): Likewise.
16491
16492 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16493
16494         * pa.md (decrement_and_branch_until_zero): Change predicate for
16495         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16496
16497 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16498
16499         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16500         gets undefined. For Darwin.
16501
16502 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16503
16504         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16505
16506 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16507
16508         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16509
16510 2002-01-08  Richard Henderson  <rth@redhat.com>
16511
16512         * regrename.c (copy_value): Ignore overlapping copies.
16513
16514 2002-01-08  Richard Henderson  <rth@redhat.com>
16515
16516         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16517         as needed to avoid shared structure.
16518
16519 2002-01-08  Kazu Hirata  <kazu@hxi.com>
16520
16521         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16522         H8/300H and H8/S.
16523
16524 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16525
16526         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16527         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16528         documentation of obsolete macros.
16529         * system.h: Poison these macros.
16530         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16531         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16532         config/c4x/c4x.h, config/clipper/clipper.h,
16533         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16534         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16535         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16536         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16537         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16538         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16539         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16540         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16541         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16542         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16543         config/sparc/sparc.h, config/stormy16/stormy16.h,
16544         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16545         definitions and commented out definitions of obsolete macros.
16546         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16547         of MAX_INT_TYPE_SIZE.
16548
16549 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16550
16551         * config/s390/s390.c (s390_preferred_reload_class): Never
16552         return ADDR_REGS if it isn't a subset of the given class.
16553         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16554         FP_REGS, but all superclasses as well.
16555
16556         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16557
16558         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16559         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16560         must not be a const_int.
16561
16562 2002-01-08  Richard Henderson  <rth@redhat.com>
16563
16564         * Makefile.in (toplev.o): Depend on options.h.
16565         (gcc.o): Depend on specs.h.
16566
16567 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16568
16569         * expr.c (store_expr): Convert VOIDmode constants back to target's
16570         mode.
16571
16572 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16573
16574         * doc/invoke.texi: Markup gcc as @command.  Refer to
16575         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16576         of http://gcc.gnu.org/thanks.html.
16577
16578 2002-01-08  Dale Johannesen  <dalej@apple.com>
16579
16580         * config/rs6000/rs6000.md: Add missing int register
16581         target case to movdf_low.
16582
16583 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16584
16585         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16586         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16587         (cppinit.o): Depend on except.h.
16588         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16589         s-specs): New rules.
16590
16591         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16592         Don't create specs.h/options.h/gencheck.h here.  Remove
16593         unnecessary variable settings from last argument of AC_OUTPUT.
16594         * config.in, configure: Regenerate.
16595         * intl.c: Hardcode package name as "gcc".
16596
16597         * cppinit.c: Include except.h.
16598         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16599         appropriate.
16600         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16601         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16602         (!)USING_SJLJ_EXCEPTIONS.
16603         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16604
16605 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16606
16607         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16608         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16609         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16610         documentation of obsolete macros.
16611         * system.h: Poison these macros.
16612         * config/d30v/d30v.h, config/ns32k/encore.h,
16613         config/stormy16/stormy16.h: Remove definitions and commented out
16614         definitions of obsolete macros.
16615
16616 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16617
16618         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16619         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16620         warnings.
16621
16622 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16623
16624         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16625         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16626         to insn adjusting stack/frame pointer.
16627         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16628         accept operands that cause the insn to be non-splittable.
16629
16630 2002-01-08  Graham Stott  <grahams@redhat.com>
16631
16632         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16633         (C_TYPE_FIELDS_VOLATILE): Likewise.
16634         (C_TYPE_BEING_DEFINED): Likewise.
16635         (C_IS_RESERVED_WORD): Likewise.
16636         (C_TYPE_VARIABLE_SIZE): Likewise.
16637         (C_DECL_VARIABLE_SIZE): Likewise.
16638         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16639         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16640         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16641         parenthesis.
16642         (C_DECL_ANTICIPATED): Likewise.
16643         (c_build_type_variant): Add parenthesis.
16644
16645 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16646
16647         * gcc.c (option_map): Remove --version.
16648         (process_command): Handle -fversion following the GNU Coding
16649         Standards.  Partially addresses PR other/704.
16650
16651 2002-01-08  Graham Stott  <grahams@redhat.com>
16652
16653         * combine.c (combine_instructions): Fix typo.
16654
16655 2002-01-08  Graham Stott  <grahams@redhat.com>
16656
16657         * debug.h: Use "tree" and "rtx" throughout.
16658
16659         * debug.c: Likewise.
16660
16661 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16662
16663         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16664         constant pool, use the pool's version of the symbol instead.
16665
16666 2002-01-07  Richard Henderson  <rth@redhat.com>
16667
16668         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16669         the original register was copied in a mode with a fewer number of
16670         hard registers than the desired mode.
16671         (copyprop_hardreg_forward_1): Likewise.
16672         (debug_value_data): Fix loop test.
16673         * toplev.c (parse_options_and_default_flags): Reenable
16674         -fcprop-registers at -O1.
16675
16676 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16677
16678         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16679         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16680
16681         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16682         predicates.
16683
16684         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16685
16686 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16687
16688         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16689         (pa_output_function_prologue): Output local label at the beginning of
16690         the prologue when profiling.
16691         (hppa_profile_hook): Use the local label rather than the function label.
16692         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16693
16694 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16695
16696         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16697         (altivec_expand_unop_builtin): Fix thinko.
16698         (altivec_expand_binop_builtin): Same.
16699         (altivec_expand_ternop_builtin): Same.
16700         (altivec_expand_builtin): Same.
16701
16702 2002-01-07  Richard Henderson  <rth@redhat.com>
16703
16704         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16705
16706 2002-01-07  Jason Merrill  <jason@redhat.com>
16707
16708         * unwind-dw2.c (execute_cfa_program): Use < again.
16709
16710 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16711
16712         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16713
16714 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16715
16716         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16717         Don't allow -1 - x -> ~x simplifications in the first pass.
16718
16719 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16720
16721         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16722         arguments.
16723         (altivec_expand_binop_builtin): Same.
16724         (altivec_expand_unop_builtin): Same.
16725         (print_operand): Fix typo.
16726         (bdesc_1arg): Add vupk* variants.
16727
16728         * rs6000.h (rs6000_builtins): Add vupk* enums.
16729
16730         * rs6000.md: Add altivec_vupk* variants.
16731
16732 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16733
16734         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16735         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16736         and last update dates.
16737
16738 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16739
16740         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16741
16742 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16743
16744         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16745         * config/avr/avr.h (CPP_SPEC): Likewise.
16746         (LINK_SPEC): Likewise.
16747         (CRT_BINUTILS_SPECS): Likewise.
16748         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16749         * doc/invoke.texi (AVR Options): Document them.
16750
16751 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16752
16753         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16754         LABEL_NUSES.
16755
16756 2002-01-07  Graham Stott  <grahams@redhat.com>
16757
16758         * config/i386/i386.h: Update copyright date.
16759         (HALF_PIC_PTR): Add parenthesis.
16760         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16761         (CONSTANT_ALIGNMENT): Add parenthesis.
16762         (DATA_ALIGNMENT): Likewise.
16763         (LOCAL_ALIGNMENT): Likewise.
16764         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16765         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16766         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16767         (HARD_REGNO_NREGS): Add paranethesis.
16768         (VALID_SSE_REG_MODE): Whitespace.
16769         (VALID_MMX_REG_MODE): Whitespace.
16770         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16771         (ix86_hard_regno_mode_ok): Add parenthesis.
16772         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16773         (RETURN_IN_MEMORY): Whitespace.
16774         (N_REG_CLASSES): Add parenthesis.
16775         (INTEGER_CLASS_P): Add parenthesis and wrap.
16776         (FLOAT_CLASS_P): Likewise.
16777         (SSE_CLASS_P): Likewise.
16778         (MMX_CLASS_P): Likewise.
16779         (MAYBE_INTEGER_CLASS_P): Likewise.
16780         (MAYBE_FLOAT_CLASS_P): Likewise.
16781         (MAYBE_SSE_CLASS_P): Likewise.
16782         (MAYBE_MMX_CLASS_P): Likewise.
16783         (Q_CLASS_P): Likewise.
16784         (GENERAL_REGNO_P): Uppercase macro parameter.
16785         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16786         (FP_REGNO_P): Likewise.
16787         (ANY_FP_REGNO_P): Uppercase macro parameter.
16788         (SSE_REGNO_P): Likewise.
16789         (SSE_REGNO): Likewise.
16790         (SSE_REG_P): Likewise.
16791         (SSE_FLOAT_MODE_P): Likewise.
16792         (MMX_REGNO_P): Likewise.
16793         (MMX_REG_P):Likewise.
16794         (STACK_REG_P): Likewise.
16795         (NON_STACK_REG_P): Likewise.
16796         (STACK_TOP_P): Likewise.
16797         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16798         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16799         (SECONDARY_MEMORY_NEEDED): Likewise.
16800         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16801         (MD_ASM_CLOBBERS): Whitespace and wrap.
16802         (MUST_PASS_IN_STACK): Whitespace and wrap.
16803         (RETURN_POPS_ARGS): Add parenthesis.
16804         (INIT_CUMULATIVE_ARGS): Likewise.
16805         (FUNCTION_ARG): Likewise.
16806         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16807         (SETUP_INCOMING_VARARGS): Likewise.
16808         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16809         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16810         parenthsis.
16811         (EXPAND_BUILTIN_VA_ARG): Likewise.
16812         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16813         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16814         (INITIAL_ELIMINATION_OFFSET): Likewise.
16815         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16816         (REGNO_OK_FOR_BASE_P): Likewise.
16817         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16818         (REGNO_OK_FOR_DIREG_P): Likewise.
16819         (REG_OK_FOR_INDEX_P): Whitespace.
16820         (REG_OK_FOR_BASE_P): Whitespace.
16821         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16822         parenthesis.
16823         (FIND_BASE_TERM): Fix typo.
16824         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16825         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16826         (SYMBOLIC_CONST; Whitespace.
16827         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16828         (ENCODE_SECTION_INFO): Whitespace.
16829         (FINALIZE_PIC): Remove do { ... } while (0).
16830         (PROMOTE_MODE): Wrap in do { ... } while (0).
16831         (CONST_COSTS): Whitespace.
16832         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16833         (REGISTER_MOVE_COST): Add parenthesis.
16834         (MEMORY_MOVE_COST): Likewise.
16835         (EXTRA_CC_MODES): Whitespace.
16836         (SELECT_CC_MODE): Add parenthesis and whitespace.
16837         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16838         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16839         (ASM_OUTPUT_LABEL): Add paramethesis.
16840         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16841         (ASM_OUTPUT_REG_POP): Likewise.
16842         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16843         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16844
16845         * config/i386/i386.c: Update copyright.
16846         (CHECK_STACK_LIMIT): Add parenthesis.
16847         (AT_BP): Uppercase macro parameter.
16848         (x86_64_int_parameter_registers): Constify.
16849         (x86_64_int_return_registers): Likewise.
16850         (ix86_compare_op0): Use rtx.
16851         (construct_container): Constify INTREG parameter.
16852         (function_arg): Use rtx.
16853
16854         * diagnostic.h: Update copyright date.
16855         (output_buffer_state): Add parenthesis.
16856         (output_buffer_format_args): Likewise.
16857
16858         * combine.c (combine_instructions): Replace XEXP (links, 0)
16859         with link.
16860
16861 2002-01-06  H.J. Lu <hjl@gnu.org>
16862
16863         * cfgcleanup.c (thread_jump): Fix 2 typos.
16864
16865 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16866
16867         * config.gcc: Add support for --enable-altivec.
16868
16869 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16870
16871         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16872
16873 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16874
16875         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16876         __objc_class_name_*.
16877
16878 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16879
16880         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16881
16882 2002-01-06  Richard Henderson  <rth@redhat.com>
16883
16884         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16885         nop them out.  Increment label reference count for REG_LABEL.
16886         (fill_slots_from_thread): Frob label reference count around
16887         delete_related_insns.
16888
16889 2002-01-05  Richard Henderson  <rth@redhat.com>
16890
16891         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16892         jump threading.
16893
16894 2002-01-05  Richard Henderson  <rth@redhat.com>
16895
16896         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16897         * integrate.c (output_inline_function): Likewise.
16898         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16899         to remove_unnecessary_notes after emitting abstract instance.
16900         Force an emitted nested function to have its parent emited as well.
16901         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16902         for null.
16903         (rtl_for_decl_location): Do not look at reload data structures
16904         before reload has run.
16905
16906 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16907
16908         * cse.c: Fix formatting.
16909         * dwarf2asm.c: Likewise.
16910         * dwarf2out.c: Likewise.
16911         * explow.c: Likewise.
16912         * expmed.c: Likewise.
16913         * function.c: Likewise.
16914         * gcov.c: Likewise.
16915         * gencheck.c: Likewise.
16916         * genrecog.c: Likewise.
16917         * ggc-common.c: Likewise.
16918         * ggc-page.c: Likewise.
16919         * global.c: Likewise.
16920
16921 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16922
16923         * combine.c: Fix formatting.
16924
16925 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16926
16927         PR middle-end/1557
16928         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16929
16930 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16931
16932         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16933         as 1 for __powerpc64__ as well.
16934
16935         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16936
16937         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16938         return it.
16939
16940 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16941
16942         * lcm.c: Revert change, due to performance regression it causes on
16943         SPEC because it's slightly more conservative (sigh, I hate
16944         edge-based LCM).
16945
16946 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16947
16948         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16949
16950 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16951
16952         * doc/cppinternals.texi: Update.
16953
16954 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16955
16956         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16957         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16958         negatives.
16959         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16960         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16961         kludge for pre-october-14th mmix versions to handle new-found bug
16962         with PUSHJ/PUSHGO and the register stack.
16963         * config/mmix/mmix.h (struct machine_function): Rename member
16964         has_call_value_without_parameters to has_call_without_parameters.
16965         All referers changed.
16966         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16967         TARGET_MASK_BRANCH_PREDICT): New macros.
16968         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16969         -mno-reg-stack-fill-bug-workaround.
16970         * config/mmix/mmix.md ("call"): Set struct machine member
16971         has_call_without_parameters.
16972
16973 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16974
16975         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16976
16977 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16978
16979         * cfgcleanup.c: Include tm_p.h
16980         (mark_effect): Fix handling of hard register; fix handling of SET
16981
16982 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16983
16984         * config/h8300/h8300.md (anonymous patterns): Check that
16985         operands are registers before using REGNO on them.
16986
16987 2002-01-03  Roland McGrath  <roland@frob.com>
16988
16989         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16990
16991 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16992
16993         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16994         * c-common.h (genrtl_expr_stmt_value): Likewise.
16995         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16996         (expand_expr_stmt_value): Add maybe_last argument.
16997         Don't warn about statement with no effect if it is the last statement
16998         in expression statement.
16999         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
17000         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
17001         expand_expr_stmt_value.
17002         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
17003         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
17004         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
17005         as maybe_last to expand_expr_stmt_value.
17006
17007 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
17008
17009         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
17010         be passed in, do not build it.
17011         (c_begin_if_stmt): New function.
17012         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
17013         * c-common.h (c_expand_start_cond): Update prototype.
17014         (c_begin_if_stmt): Prototype new function.
17015         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
17016         * c-parse.in (if_prefix): Use c_begin_if_stmt,
17017         c_begin_while_stmt and c_finish_while_stmt_cond.
17018
17019 2002-01-04  William Cohen  <wcohen@redhat.com>
17020
17021         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
17022         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17023         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17024         * config/pa/som.h (ASM_FILE_START): Likewise.
17025
17026 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
17027
17028         * lcm.c: Include df.h.
17029         Add available_transfer_function prototype.
17030         (compute_available): Rework to use iterative dataflow framework.
17031         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
17032         with bb_info in df.h
17033         (available_transfer_function): New function.
17034
17035         * Makefile.in (lcm.o): add df.h to dependencies.
17036
17037 2002-01-04  Richard Henderson  <rth@redhat.com>
17038
17039         * config/alpha/alpha.c (some_operand): Accept HIGH.
17040         (input_operand): Likewise; accept simple references to globals.
17041         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
17042         (alpha_const_double_ok_for_letter_p): Likewise.
17043         (alpha_extra_constraint): Likewise.
17044         (alpha_preferred_reload_class): Likewise.  Do not force
17045         symbolic constants to memory.
17046         (alpha_legitimate_address_p): Accept simple references
17047         to small_symbolic_operand.
17048         (alpha_legitimize_address): New arg scratch.  Be prepared to be
17049         called when no_new_pseudos.  Emit simple symbolic references.
17050         Split integers into low, high, and rest.
17051         (alpha_expand_mov): Use alpha_legitimize_address.
17052         (some_small_symbolic_mem_operand): New.
17053         (split_small_symbolic_mem_operand): New.
17054         * config/alpha/alpha-protos.h: Update.
17055         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
17056         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
17057         (EXTRA_CONSTRAINT): Likewise.
17058         (PREFERRED_RELOAD_CLASS): Likewise.
17059         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
17060         (PREDICATE_CODES): Update.
17061         * config/alpha/alpha.md: New post-reload splitters to convert
17062         simplfied symbolic operands to the form that references $29.
17063         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
17064         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
17065
17066 2002-01-03  Richard Henderson  <rth@redhat.com>
17067
17068         * local-alloc.c (function_invariant_p): Update commentary.
17069
17070 2002-01-04  H.J. Lu <hjl@gnu.org>
17071
17072         * toplev.c (rest_of_compilation): Fix a typo when calling
17073         cleanup_cfg.
17074
17075 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17076
17077         * c-common.c: Fix formatting.
17078         * diagnostic.c: Likewise.
17079         * doloop.c: Likewise.
17080         * dwarf2out.c: Likewise.
17081
17082 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17083
17084         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
17085         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
17086
17087 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
17088
17089         * cpperror.c: Update comments and copyright.
17090         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
17091         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
17092
17093 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17094
17095         * collect2.c (main): Use strcmp when testing for "-shared".
17096
17097 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
17098
17099         * cppmacro.c: Don't include intl.h.  Update comments.
17100         (new_number_token): Allocate enough buffer for 64-bit unsigned
17101         integers; update prototype.
17102         * cppmain.c: Update comments.
17103
17104 2002-01-03  William Cohen  <wcohen@redhat.com>
17105
17106         * function.h (struct function): Add profile.
17107         (current_function_profile): New.
17108         doc/extend.texi: Update documentation.
17109         * final.c (final_start_function): Use current_function_profile
17110         instead of profile_flag.
17111         (profile_after_prologue): Likewise.
17112         * function.c (expand_function_start): Likewise.
17113         (expand_function_start): Likewise.
17114         * config/alpha/alpha.c (direct_call_operand):
17115         (alpha_does_function_need_gp): Likewise.
17116         (alpha_expand_prologue): Likewise.
17117         * config/arm/arm.c (arm_expand_prologue): Likewise.
17118         thumb_expand_prologue: Likewise.
17119         * config/d30v/d30v.c (d30v_stack_info): Likewise.
17120         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
17121         (fr30_expand_prologue): Likewise.
17122         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
17123         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
17124         * config/i386/i386.h (FINALIZE_PIC): Likewise.
17125         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
17126         * config/i960/i960.c (i960_output_function_prologue): Likewise.
17127         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
17128         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
17129         (m32r_expand_prologue): Likewise.
17130         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
17131         (m88k_expand_prologue): Likewise.
17132         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
17133         * config/mips/mips.c (compute_frame_size): Likewise.
17134         (mips_expand_prologue): Likewise.
17135         (mips_can_use_return_insn): Likewise.
17136         * config/pa/elf.h (ASM_FILE_START): Likewise.
17137         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17138         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17139         * config/pa/som.h (ASM_FILE_START): Likewise.
17140         * config/romp/romp.c (romp_using_r14): Likewise.
17141         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
17142         (rs6000_stack_info): Likewise.
17143         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17144         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
17145         * config/v850/v850.c (compute_register_save_size): Likewise.
17146
17147 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
17148
17149         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
17150         gen_lowpart_common fails, use gen_lowpart_SUBREG.
17151
17152 2002-01-03  Turly O'Connor  <turly@apple.com>
17153
17154         * darwin.c (machopic_output_possible_stub_label): Don't generate
17155         stub routines for pseudo-stubs which we've just defined.
17156
17157 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17158
17159         * builtins.c: Fix formatting.
17160         * c-typeck.c: Likewise.
17161         * combine.c: Likewise.
17162         * expr.c: Likewise.
17163         * loop.c: Likewise.
17164
17165 2002-01-03  Andreas Schwab  <schwab@suse.de>
17166
17167         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
17168         and return true if _cpp_push_next_buffer pushed a new include
17169         file.
17170         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
17171         _cpp_pop_file_buffer did not push a new file.
17172         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
17173
17174 2002-01-02  Eric Christopher  <echristo@redhat.com>
17175
17176         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
17177         FIND_REG_INC_NOTE call. Update copyright.
17178         * loop.c (canonicalize_condition): Ditto.
17179         * reorg.c (delete_scheduled_jump): Ditto.
17180
17181 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17182
17183         * gcse.c: Fix formatting.
17184
17185 2002-01-03  Graham Stott  <grahams@redhat.com>
17186
17187         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
17188         forward defs for struct tags rtx_def, union_tree, rtvec_def
17189         also output corresponding typedefs for rtx, tree, and rtvec.
17190
17191         * system.h: Move forward defs for struct tags rtx_def, union_tree,
17192         rtvec_def along with corresponding typedefs for rtx, tree, and
17193         rtvec to config.h, hconfig.h, tconfig.h.
17194
17195 2002-01-03  Graham Stott  <grahams@redhat.com>
17196
17197         * tree.h: Update copyright date.
17198         (IS_EXPR_CODE_CLASS): Add parenthesis.
17199         (TREE_SET_CODE): Add whitespace.
17200         (TREE_CHECK): Add parenthesis.
17201         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
17202         (CST_OR_CONSTRUCTOR_CHECK):
17203         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
17204         (TREE_SYMBOL_REFERENCED): Whitespace.
17205         (INT_CST_LT): Likewise.
17206         (INT_CST_LT_UNSIGNED): Likewise.
17207         (tree_real_cst): Unwrap comment.
17208         (tree_string): Likewise.
17209         (tree_complex): Likewise.
17210         (IDENTIFIER_POINTER): correct cast.
17211         (SAVE_EXPR_CONTEXT): Whitespace.
17212         (EXPR_WFL_FILENAME_NODE): Likewise.
17213         (EXPR_WFL_FILENAME): Remove parenthesis.
17214         (DECL_ORIGIN): Add parenthesis.
17215         (DECL_FROM_INLINE): Use NULL_TREE.
17216         (build_int_2): Whitespace.
17217         (build_type_variant): Add parenthesis.
17218
17219         * gcc/jcf-parse.c: Update copyright date.
17220         (yyparse): Constify resource_filename.
17221
17222 2002-01-03  Graham Stott  <grahams@redhat.com>
17223
17224         * rtl.h: Update copyright date.
17225         (RTL_CHECK1): Wrap long line.
17226         (RTL_CHECK2): Likewise.
17227         (RTL_CHECKC1): Wrap long line and whitespace.
17228         (RTL_CHECKC2): Likewise.
17229         (XWINT): Whitespace.
17230         (XINT): Likewise.
17231         (XSTR): Likewise.
17232         (XEXP): Likewise.
17233         (XVEC): Likewise.
17234         (XMODE): Likewise.
17235         (XBITMAP): Likewise.
17236         (XTREE): Likewise.
17237         (XBBDEF): Likewise.
17238         (XTMPL): Likewise.
17239         (X0WINT): Likewise.
17240         (X0INT):Likewise.
17241         (X0UINT): Likewise.
17242         (X0STR): Likewise.
17243         (X0EXP): Likewise.
17244         (X0VEC): Likewise.
17245         (X0MODE): Likewise.
17246         (X0BITMAP): Likewise.
17247         (X0TREE): Likewise.
17248         (X0BBDEF): Likewise.
17249         (X0ADVFLAGS): Likewise.
17250         (X0CSELIB): Likewise.
17251         (X0MEMATTR): Likewise.
17252         (XCWINT): Likewise.
17253         (XCINT): Likewise.
17254         (XCUINT): Likewise.
17255         (XCSTR): Likewise.
17256         (XCEXP): Likewise.
17257         (XCVEC): Likewise.
17258         (XCMODE): Likewise.
17259         (XCBITMAP): Likewise.
17260         (XCTREE): Likewise.
17261         (XCBBDEF): Likewise.
17262         (XCADVFLAGS): Likewise.
17263         (XCCSELIB): Likewise.
17264         (XC2EXP): Likewise.
17265         (INSN_UID): Likewise.
17266         (PREV_INSN): Likewise.
17267         (PATTERN): Likewise.
17268         (INSN_CODE): Likewise.
17269         (PUT_REG_NOTE_KIND): Likewise.
17270         (CODE_LABEL_NUMBER): Likewise.
17271         (NOTE_SOURCE_FILE): Likewise.
17272         (NOTE_BLOCK): Likewise.
17273         (NOTE_EH_HANDLER): Likewise.
17274         (NOTE_RANGE_INFO): Likewise.
17275         (NOTE_LIVE_INFO): Likewise.
17276         (NOTE_BASIC_BLOCK): Likewise.
17277         (NOTE_EXPECTED_VALUE): Likewise.
17278         (NOTE_LINE_NUMBER): Likewise.
17279         (LABEL_NAME): Likewise.
17280         (LABEL_NUSES): Likewise.
17281         (LABEL_ALTERNATE_NAME): Likewise.
17282         (ADDRESSOF_DECL): Likewise.
17283         (JUMP_LABEL): Likewise.
17284         (LABEL_NEXTREF): Likewise.
17285         (REGNO): Likewise.
17286         (ORIGINAL_REGNO: Likewise.
17287         (HARD_REGISTER_NUM_P): Add parenthesis.
17288         (SUBREG_REG): Whitespace.
17289         (SUBREG_BYTE): Likewise.
17290         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17291         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17292         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17293         (ASM_OPERANDS_INPUT_VEC): Likewise.
17294         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17295         (ASM_OPERANDS_INPUT): Likewise.
17296         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17297         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17298         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17299         (ASM_OPERANDS_INPUT_MODE): Likewise.
17300         (ASM_OPERANDS_SOURCE_FILE): Likewise.
17301         (ASM_OPERANDS_SOURCE_LINE): Likewise.
17302         (MEM_SET_IN_STRUCT_P): Minor reformat.
17303         (TRAP_CONDITION): Whitespace.
17304         (TRAP_CODE): Likewise.
17305         (COND_EXEC_TEST): Likewise.
17306         (COND_EXEC_CODE): Likewise.
17307         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17308         (PHI_NODE_P): Add parenthesis.
17309         (plus_constant): Whitespace and add parenthesis.
17310
17311 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17312
17313         * config/avr/avr.c: Fix comment typos.
17314         * config/c4x/c4x.md: Likewise.
17315         * config/dsp16xx/dsp16xx.h: Likewise.
17316         * config/dsp16xx/dsp16xx.md: Likewise.
17317         * config/i386/i386.md: Likewise.
17318         * config/ia64/ia64.c: Likewise.
17319         * config/m32r/m32r.h: Likewise.
17320         * config/m68hc11/m68hc11.md: Likewise.
17321         * config/mmix/mmix.c: Likewise.
17322         * config/mn10200/mn10200.c: Likewise.
17323         * config/romp/romp.c: Likewise.
17324         * config/sh/sh.c: Likewise.
17325         * config/stormy16/stormy16.c: Likewise.
17326         * config/stormy16/stormy16.h: Likewise.
17327         * config/stormy16/stormy16.md: Likewise.
17328
17329 2002-01-03  Graham Stott  <grahams@redhat.com>
17330
17331         * loop.h: Update copyright date.
17332         (LOOP_MOVABLES): Fix typo.
17333         (LOOP_REGS): Likewise.
17334         (LOOP_IVS): Likewise.
17335
17336 2002-01-03  Graham Stott  <grahams@redhat.com>
17337
17338         * cppinit.c: Update copyright date.
17339         Don't include output.h
17340         * Makefile.in: Update copyright date.
17341         Update dependency.
17342
17343 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17344
17345         PR c/5226
17346         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17347         (-pthread) Add to RS/6000 options.
17348
17349 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17350
17351         * except.c: Fix comment typos.
17352         * loop.c: Likewise.
17353         * varasm.c: Likewise.
17354         * doc/tm.texi: Fix a typo.
17355
17356 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
17357
17358         * c-typeck.c (output_init_element): Allow initializing static storage
17359         duration objects with compound literals.
17360
17361 2002-01-02  Richard Henderson  <rth@redhat.com>
17362
17363         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17364         after abusing it.
17365
17366 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17367
17368         * gcc.c (default_compilers): Const-ify.
17369         * mips-tdump.c (stab_names): Likewise.
17370         * mips-tfile.c (map_coff_types, map_coff_storage,
17371         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17372         pseudo_ops_t, pseudo_ops): Likewise.
17373         * protoize.c (default_include): Likewise
17374
17375         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17376         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17377         Add array size in declaration.
17378         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17379         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17380         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17381         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17382         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17383         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17384         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17385         emtens, make_nan): Const-ify.
17386         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17387         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17388
17389 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
17390
17391         * config.gcc (ia64-*-*): Set extra_headers.
17392         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
17393         * config/alpha/t-osf: Remove.
17394         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17395
17396 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
17397
17398         * config/rs6000/t-aix43: Revert previous change.
17399
17400 2002-01-02  Jason Merrill  <jason@redhat.com>
17401
17402         * c-decl.c (c_expand_body): Call outlining_inline_function when
17403         emitting an inline function out of line.
17404
17405 2002-01-02  Richard Henderson  <rth@redhat.com>
17406
17407         * dwarf2out.c (limbo_die_node): Add created_for member.
17408         (new_die): New argument created_for.  Update all callers.
17409         (mark_limbo_die_list): New.
17410         (dwarf2out_init): Register limbo_die_list as a root.
17411         (dwarf2out_finish): Force insert limbo dies into their function
17412         context.
17413
17414 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
17415
17416         PR c++/5089
17417         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17418
17419 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17420
17421         * config/h8300/fixunssfsi.c: Update copyright.
17422         Fix comment typos.
17423         Fix formatting.
17424         * config/h8300/h8300.c: Update copyright.
17425         Eliminate warnings.
17426
17427 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17428
17429         * config/romp/romp.c: Fix comment formatting.
17430         * config/romp/romp.h: Likewise.
17431         * config/romp/romp.md: Likewise.
17432         * config/s390/s390.c: Likewise.
17433         * config/stormy16/stormy16.c: Likewise.
17434         * config/stormy16/stormy16.h: Likewise.
17435
17436 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
17437
17438         * c-common.h (genrtl_expr_stmt_value): Declare.
17439         * c-semantics.c (genrtl_goto_stmt): Redirect to...
17440         (genrtl_goto_stmt_value): ... this new function.  Pass new
17441         argument down to expand_expr_stmt_value, taking
17442         TREE_ADDRESSABLE into account.
17443         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17444         STMT_EXPR as addressable, i.e., one whose result we want.
17445         * expr.c (expand_expr): Don't save expression statement value
17446         of labeled_blocks or loop_exprs.
17447         * stmt.c (expand_expr_stmt): Redirect to...
17448         (expand_expr_stmt_value): ... this new function.  Use new
17449         argument to tell whether to save expression value.
17450         (expand_end_stmt_expr): Reset last_expr_type and
17451         last_expr_value if we don't have either.
17452         * tree-inline.c (declare_return_variable): Mark its use
17453         statement as addressable.
17454         * tree.h: Document new use of TREE_ADDRESSABLE.
17455         (expand_expr_stmt_value): Declare.
17456
17457 2002-01-01  Tom Rix  <trix@redhat.com>
17458
17459         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17460         rs6000_emit_allocate_stack.
17461
17462 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
17463
17464         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17465         ${srcdir}/ginclude/ to every entry in extra_headers.
17466         * configure: Regenerate.
17467         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17468         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17469         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17470         * ginclude/proto.h: Rename to config/convex/proto.h.
17471
17472 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17473
17474         * attribs.c (handle_vector_size_attribute): Use host_integerp
17475         and tree_int_cst; remove warnings.
17476         * caller-save.c (insert_restore): Add cast to get rid of warning.
17477         (insert_save): Likewise.
17478         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17479         * regmove.c (find_matches): Add temporary var to kill a warning.
17480
17481 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
17482
17483         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17484         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17485         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17486         (vms-dwarf2eh.o): Add Makefile rule.
17487         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17488         * config/alpha/vms-dwarf2eh.asm: New file.
17489
17490         * gcc.c (delete_if_ordinary): Delete all versions.
17491
17492 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
17493
17494         * config/mmix/mmix.md: Update FIXME to not mention
17495         define_constants.
17496         (MMIX_rJ_REGNUM): New define_constants constant.
17497         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17498         "*movdicc_real"): Adjust contraints formatting.
17499         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17500         for branch prediction.
17501         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17502         output template.
17503         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17504         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17505         number.  Delete related FIXMEs.
17506         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17507         from number to MMIX_rJ_REGNUM.
17508         (TARGET_MASK_BRANCH_PREDICT): New.
17509         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17510         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
17511         value.  Add -mbranch-predict and -mno-branch-predict.
17512         (TARGET_VERSION): Drop date.
17513         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17514         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17515         for finding out global symbols.
17516         (mmix_asm_output_labelref): Revert condition for global symbol.
17517         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17518         (mmix_print_operand_punct_valid_p): A '+' is valid.
17519
17520 See ChangeLog.6 for earlier changes.