OSDN Git Service

* fixinc/fixincl.x: Rebuilt.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-06-02  Tom Tromey  <tromey@redhat.com>
2
3         * fixinc/fixincl.x: Rebuilt.
4         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
5
6 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7
8 config/i370:
9         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
10         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
11         * mvs.h: Similarly.
12         * oe.h: Similarly.
13
14 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
15
16         * final.c (final):  Allow notes to not have computed addresses;
17         kill no longer needed STACK_REGS ifdef.
18
19 2002-06-02  Richard Henderson  <rth@redhat.com>
20
21         * gcse.c (bypass_conditional_jumps): Fix typo last change.
22
23 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
24
25         * loop.c (emit_prefetch_instructions): Properly place the address
26         computation.
27
28 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
29
30         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
31         (set_block_for_insn): Turn into macro.
32         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
33         * cfglayout.c (insn_scopes): Kill.
34         (scope_to_insns_initialize): Do not use insn_scopes.
35         (scope_to_insns_finalize): Likewise.
36         (duplicate_insn_chain): Likewise.
37         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
38         * cfgrtl.c (basic_block_for_insn): Kill.
39         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
40         (create_basic_block_structure): Use reorder_insns.
41         (compute_bb_for_insn): Do not use basic_block_for_insn.
42         (merge_blocks_nomove): Likewise.
43         (update_bb_for_insn): Likewise.
44         (verify_flow_info): Likewise.
45         (set_block_for_insn): Kill.
46         * combine.c (try_combine): Update gen_rtx_INSN call.
47         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
48         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
49         scopes and BBs.
50         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
51         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
52         Clear BB.
53         (emit_insns_after): Simplify.
54         (emit_copy_of_insn_after): Copy scope.
55         * final.c (final_start_function): Lower scopes.
56         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
57         * integrate.c (copy_insn_list): Cope scopes.
58         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
59         * loop.c (loop_optimize): Do not care block notes.
60         * print-rtl.c (print_rtx): Print BB.
61         * recog.c (apply_change_group): Simplify.
62         * rtl.c (copy_rtx): Handle 'B'.
63         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
64         * rtl.h (Field accessors): Update indexes.
65         * sched-ebb.c (schedule_ebbs): Do not lower notes.
66         * sched-rgn.c (schedule_insns): Likewise.
67         * toplev.c (rest_of_compilation): Lower notes.
68         * unroll.c (unroll_loop): Do not care scoping notes.
69         (copy_loop_body): Copy scopes.
70
71 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
72
73 config/h8300:
74         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
75         SUBTARGET_SPEC.
76         * rtems.h: Similarly.
77         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
78         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
79         (TARGET_CPU_CPP_BUILTINS): Use.
80
81 2002-06-02  Richard Henderson  <rth@redhat.com>
82
83         * alias.c: Include target.h.
84         (mark_constant_function): Use targetm.binds_local_p instead
85         of checking TREE_PUBLIC ourselves.
86         * Makefile.in (alias.o): Add TARGET_H.
87
88 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
89
90         * c-lex.c: Update copyright and file description.
91
92 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
93
94         * config/fr30/fr30.h: Update to new CPP macros.
95
96 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
97
98         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
99
100 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
101             Zack Weinberg <zack@codesourcery.com>
102
103         * c-common.c (c_common_init): Override cpplib's default
104         warn_long_long setting.
105         * c-lex.c (lex_number): Replace with interpret_integer,
106         interpret_float, narrowest_unsigned_type and
107         narrowest_signed_type, taking advantage of the new
108         cpplib functionality.
109         * cpperror.c (_cpp_begin_message): If a warning is turned
110         into an error, avoid printing "warning:".
111         * cppexp.c (cpp_num_sign_extend): New.
112         * cppinit.c: Update comment.
113         * cpplib.h (cpp_num_sign_extend): New.
114         * tree.h: Update comment.
115
116 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
117
118         * diagnostic.h (struct diagnostic_context):  Add new member
119         internal_error. 
120         (internal_error_function): Remove declaration.
121         * diagnostic.c (internal_error_function): Remove definition..
122         (internal_error): Adjust use.
123
124 2002-06-02  Richard Henderson  <rth@redhat.com>
125
126         * rtl.h (CC0_P): New.
127         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
128         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
129         (bypass_block): Save old dest block for dump text.
130         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
131         Allow only true SET insns, not single_set.
132
133 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
134
135         * diagnostic.c (diagnostic_finish): Rename to output_flush.
136         (clear_disgnostic_info): Rename to output_clear_data.  Use false
137         instead of 0 for boolean value.
138         Adjust function call throughout.
139
140 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
141
142         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
143         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
144
145 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
146
147         * d30v.h (CPP_PREDEFINES): Replace with
148         (TARGET_CPU_CPP_BUILTINS): New.
149
150 2002-06-02  Roger Sayle  <roger@eyesopen.com>
151
152         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
153
154 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
155
156         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
157
158 2002-06-02  Richard Henderson  <rth@redhat.com>
159
160         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
161
162 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
163
164         Support for C++ constructors/destructors.
165         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
166         instead of looping if main() returns.
167         (asm_file_start): Output global symbols that cause .data and .bss
168         initialization code to be linked in, unconditionally for now.
169         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
170         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
171         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
172         (LIBSTDCXX): New.
173         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
174         (__tablejump__): New.
175         (__do_copy_data, __do_clear_bss): New.
176         (__do_global_ctors, __do_global_dtors): New.
177         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
178         _ctors, _dtors.
179
180 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
181
182         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
183         (CPP_SPEC, CPP_PREDEFINES): Kill.
184         * c4x/rtems.h (CPP_PREDEFINES): Kill.
185         (TARGET_OS_CPP_BUILTINS): New.
186
187 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
188
189         * Makefile.in (tracer.o): New.
190         * params.def (TRACER_*): New options.
191         * rtl.h (tracer): Declare.
192         * timevar.def (TV_TRACER): New.
193         * toplev.c (dump_file_index): Add DFI_tracer.
194         (dump_file_info): Add tracer.
195         (flag_tracer): New.
196         (lang_indepdenent_options): Add tracer.
197         (rest_of_compilation): Call tracer.
198         * tracer.c: New file.
199         * invoke.texi (-ftracer): Document.
200         (--param tracer-*): Document.
201
202 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
203
204         * tree-inline.c (expand_call_inline): Make the statement
205         expression we generate have a COMPOUND_STMT.    
206
207 2002-06-01  Roger Sayle  <roger@eyesopen.com>
208
209         * gcse.c (cprop_cc0_jump): Function deleted.
210         (cprop_jump): Take an additional argument which is the possibly
211         NULL cc setting insn immediately before the conditional jump.
212         When a MODE_CC set is present, substitute it into the JUMP_INSN
213         before attempting the constant propagation.
214         (cprop_insn):  Recognize cc setters followed by conditional jumps
215         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
216         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
217         (find_bypass_set): New function based upon find_avail_set used by
218         cprop, but finds constant expressions available at the end of
219         basic blocks.
220         (bypass_block): New function.  Given a basic block that begins
221         with a conditional jump and multiple incoming edges, perform
222         the jump bypass optimization.
223         (bypass_conditional_jumps): New function.  Call bypass_block with
224         each suitable basic block in the CFG using a simple single pass.
225
226 2002-06-01  Roger Sayle  <roger@eyesopen.com>
227
228         * tree.c (real_minus_onep): New function to test for -1.0.
229         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
230
231 2002-06-01  Roger Sayle  <roger@eyesopen.com>
232
233         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
234         and "!p && !q" into "(p|q) == 0" under suitable conditions.
235
236 2002-06-01  Andreas Jaeger  <aj@suse.de>
237
238         * cppexp.c (cpp_classify_number): Cast precission to int for
239         correct printf format.
240
241 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
242
243         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
244         expected, but don't really exist: atmega83, atmega85, attiny10.
245         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
246         emulations for all devices.
247         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
248         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
249
250 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
251
252         * config/h8300/h8300-protos.h: Add a prototype for
253         h8300_shift_needs_scratch_p.
254         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
255         * config/h8300/h8300.h (OK_FOR_R): New.
256         (OK_FOR_S): Likewise.
257         (OK_FOR_T): Likewise.
258         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
259         * config/h8300/h8300.md (anonymous shift patterns): Use
260         constraints R, S, and T.
261
262 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
263
264         * basic-block.h (struct basic_block_def): New field loop_father.
265         (BB_VISITED): New flag.
266         (struct loop): New field pred, removed field shared.
267         (struct loops): New field parray.
268         (LOOP_EXITS_DOMS): Removed.
269         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
270         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
271         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
272         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
273         verify_loop_structure): Declare.
274         * cfg.c (entry_exit_blocks): Initialize loop_father field.
275         * cfganal.c (dfs_enumerate_from): New function.
276         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
277         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
278         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
279         flow_loop_dump, flow_loops_dump, flow_loops_free,
280         flow_loop_tree_node_add, flow_loop_level_compute,
281         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
282         flow_loop_outside_edge_p): Modified for new infrastructure.
283         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
284         redirect_edge_with_latch_update, flow_loop_free): New static functions.
285         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
286         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
287         find_common_loop, verify_loop_structure, loop_latch_edge,
288         loop_preheader_edge): New functions.
289         (flow_loops_cfg_dump): Do not show dominators, as this information
290         does not remain up to date long.
291         (flow_loops_find): Store results in new format.
292         * predict.c (propagate_freq, estimate_probability,
293         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
294         infrastructure.
295
296 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
297
298         * except.c (nothrow_function_p): Walk epilogue delay list
299         checking the insn, not the chain for potential throws.
300
301 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
302
303         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
304         (install): Refer to install-cpp directly.
305         (uninstall-cpp): Folded into uninstall rule.
306         * configure.in: Delete all code relating to --disable-cpp.
307         * configure: Regenerate.
308         * config/t-install-cpp: Delete.
309
310 2002-05-31  Richard Henderson  <rth@redhat.com>
311
312         * configure.in (HAVE_AS_TLS): Add alpha tests.
313         * configure: Rebuild.
314         * config/alpha/alpha.c (TARGET_AS_TLS): New.
315         (alpha_tls_size, alpha_tls_size_string): New.
316         (overide_options): Set it.  Always install machine_status hooks.
317         (input_operand): Accept got tls predicates.
318         (local_symbol_p): Merge into ...
319         (local_symbolic_operand): ... here.  Reject tls symbols.
320         (global_symbolic_operand): Likewise.
321         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
322         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
323         (tp16_symbolic_operand, tp32_symbolic_operand): New.
324         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
325         (alpha_encode_section_info): Handle TLS symbols.
326         (alpha_strip_name_encoding): Likewise.
327         (alpha_legitimate_address_p): Likewise.
328         (alpha_legitimize_address): Likewise.
329         (alpha_expand_mov): Early exit to avoid nop moves.
330         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
331         (alpha_init_machine_status, alpha_mark_machine_status,
332         alpha_free_machine_status): Always define.
333         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
334         (print_operand, print_operand_address): Add TLS relocs.
335         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
336         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
337         (TARGET_SWITCHES): Add -mtls-kernel.
338         (alpha_tls_size, alpha_tls_size_string): New.
339         (TARGET_OPTIONS): Add -mtls-size=.
340         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
341         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
342         (ASM_OUTPUT_LABELREF): Skip %.
343         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
344         (PREDICATE_CODES): Update.
345         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
346         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
347         UNSPEC_TP, UNSPECV_SET_TP): New.
348         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
349         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
350         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
351         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
352         (call_value_osf_2_er): Accept anything as op4.
353         * config/alpha/alpha-protos.h: Update.
354         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
355
356 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
357
358         * cppinit.c (append_include_chain): Always pay attention to
359         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
360         marker on argument.
361
362 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
363
364         * target.h: Fix formatting.
365         * timevar.h: Likewise.
366         * tlink.c: Likewise.
367         * toplev.c: Likewise.
368         * toplev.h: Likewise.
369         * tree.c: Likewise.
370         * tree-dump.h: Likewise.
371         * tree.h: Likewise.
372         * tree-inline.h: Likewise.
373         * unroll.c: Likewise.
374         * unwind-dw2.c: Likewise.
375         * unwind-dw2-fde.c: Likewise.
376         * unwind-dw2-fde-glibc.c: Likewise.
377         * unwind-dw2-fde.h: Likewise.
378         * unwind.h: Likewise.
379         * unwind-sjlj.c: Likewise.
380         * varasm.c: Likewise.
381         * varray.h: Likewise.
382         * vmsdbg.h: Likewise.
383         * vmsdbgout.c: Likewise.
384         * xcoffout.h: Likewise.
385
386 2002-05-31  Igor Shevlyakov <igor@microunity.com>
387
388         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
389         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
390
391 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
392
393         * gcc.c (cpp_unique_options): Remove "-d" options.
394         (cpp_debug_options): New spec string.
395         (default_compilers): Use it.
396         * objc/lang-specs.h: Likewise.
397
398 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
399
400         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
401         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
402         * gcc/mklibgcc.in: Likewise.
403         * gcc/config/arc/t-arc: Likewise.
404         * gcc/configure.in: Likewise.
405         * gcc/configure: Regenerate.
406
407 2002-05-31  Stan Shebs  <shebs@apple.com>
408             Turly O'Connor  <turly@apple.com>
409
410         * c-decl.c (struct binding_level): Change int field n_incomplete
411         to tree list incomplete_list.
412         (clear_binding_level): Init field with NULL.
413         (pushdecl): Add incomplete type to list.
414         (mark_binding_level): Mark the incomplete list.
415         (finish_struct): Scan the incomplete list for types instead
416         of all decls in the current binding level.
417
418 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
419
420         * pa.c (output_millicode_call): Add missing '%' characters.
421         (output_call): Likewise.
422
423 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
424
425         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
426         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
427
428 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
429
430         * varasm.c (mark_constant_pool): Walk epilogue delay list
431         checking the insn, not the chain for potential constants.
432
433 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
434
435         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
436
437 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
438
439         * i386.c (classify_argument): Properly handle base types.
440
441         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
442         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
443         registers.
444
445 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
446
447         * gcse.c (gcse_emit_move_after): New.
448         (pre_delete, hoist_store): Use it.
449
450         * reload1.c (emit_input_reload_insns): Use constrain_operands
451         instead of constraint_accepts_reg_p to verify optimization.
452         (constraint_accepts_reg_p): Kill
453
454         * reload1.c (reload_cse_delete_noop_set): Kill.
455         (reload_cse_simplify): use delte_insn_and_edges.
456
457 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
458
459         * cfgloop.c (flow_loops_find): Initialize first and last fields
460         correctly.
461
462 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
463
464         * c-common.c (builtin_define_std): Correct logic.
465
466 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
467
468         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
469         (output_call): Likewise.
470
471 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
472
473         * pa.c: Move output.h include after tree.h include.
474         (pa_asm_output_mi_thunk): Constify identifier lab.
475
476 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
477
478         * config/ns32k/ns32k.h: Define named constants for the
479         bits in target_flags and use them.
480         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
481
482 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
483
484         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
485         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
486         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
487         default scheduling model.
488         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
489         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
490         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
491         * doc/install.texi (hppa*-*-*): Document default scheduling.
492
493 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
494
495         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
496
497 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
498
499         * config.gcc (ns32k-*-netbsd*): Set tm_file to
500         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
501         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
502         netbsd.h, or netbsd-aout.h.
503
504 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
505
506         * longlong.h (count_trailing_zeros): Add missing \, and clean up
507         whitespace in __ns32000__ case.
508
509 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
510
511         * expr.c (expand_expr): Output partially zeroed out vectors with
512         output_constant_def.
513
514 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
515
516         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
517         (sh-*-netbsdelf*)
518         (shl*-*-netbsdelf*): New targets.
519         * config/sh/netbsd-elf.h: New file.
520
521 2002-05-30  Richard Henderson  <rth@redhat.com>
522             Eric Botcazou  <ebotcazou@multimania.com>
523
524         PR optimization/6822
525         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
526         to unsigned int for op1 comparisons.  Use gen_int_mode.
527
528 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
529
530         * expmed.c (const_mult_add_overflow_p): New.
531         * expr.h: Declare it.
532         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
533         Don't eliminate the biv if the giv has a constant multiplier and
534         the rhs argument of the comparison does satisfy the predicate.
535         Use expand_mult_add to compute the replacement constant.
536
537 2002-05-30  Osku Salerma  <osku@iki.fi>
538
539         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
540         (c_common_get_alias_set): Handle it.
541         * doc/extend.texi: Document it.
542
543 2002-05-30  Richard Henderson  <rth@redhat.com>
544
545         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
546         * toplev.c (process_options): Don't check it.
547         * doc/tm.texi: Don't document it.
548         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
549         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
550         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
551         frame pointer optimization if current_function_profile.
552
553 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
554
555         * langhooks.c: Fix formatting.
556         * langhooks.h: Likewise.
557         * lcm.c: Likewise.
558         * libgcc2.c: Likewise.
559         * lists.c: Likewise.
560         * local-alloc.c: Likewise.
561         * loop.c: Likewise.
562         * loop.h: Likewise.
563
564 2002-05-30  Marc Espie <espie@openbsd.org>
565
566         * config.gcc (sparc64-*-openbsd*): New.
567         * config/sparc/openbsd1-64.h: New.
568         * config/sparc/openbsd64.h: New.
569
570 2002-05-30  Jeff Law <law@redhat.com>
571
572         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
573         a dead insn with a REG_RETVAL note when the entire libcall is not
574         dead and remove the associated REG_LIBCALL note at the same time.
575
576 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
577
578         * lcm.c (output.h): #include.
579         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
580         as an ordinary block.
581         (optimize_mode_switching): Don't pretend that the exit block is
582         an ordinary block, or handle sucessors of entry block specially.
583         Instead, split edges from entry block and to exit block, and
584         put a computing definition on the thus gained post-entry-block,
585         and a need on the pre-exit-block.
586
587 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
588
589         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
590         * rtl.texi: Document 'B'
591
592 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
593
594         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
595         at run-time.
596         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
597
598 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
599
600         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
601         const0_rtx instead of NULL_RTX when in error.
602         (altivec_expand_abs_builtin): Same.
603         (rs6000_expand_binop_builtin): Same.
604         (altivec_expand_predicate_builtin): Same.
605         (altivec_expand_stv_builtin): Same.
606         (rs6000_expand_ternop_builtin): Same.
607         (altivec_expand_builtin): Same.
608
609 2002-05-29  David S. Miller  <davem@redhat.com>
610
611         * rtl.h (clear_emit_caches): Delete.
612         * integrate.c (output_inline_function): Don't call it.
613         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
614         (clear_emit_caches): Delete definition.
615         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
616
617 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
618
619         * config/mmix/mmix.c: Include real.h.
620         (mmix_constant_address_p): Remove redundant test before switch.
621
622 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
623
624         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
625         only if not already defined.
626
627 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
628
629         * config/h8300/h8300-protos.h: Remove prototypes for
630         ok_for_bclr and small_power_of_two.
631         * config/h8300/h8300.c (small_power_of_two): Remove.
632         (ok_for_blcr): Likewise.
633         (fix_bit_operand): Make WHAT deal with an integer instead of a
634         constraint character.
635         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
636         (CONST_OK_FOR_P): Likewise.
637         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
638         CONST_OK_FOR_P any more.
639         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
640         of fix_bit_operand.
641         (iorqi3): Likewise.
642         (xorqi3): Likewise.
643
644 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
645
646         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
647         (CPP_PREDEFINES): Make sure this is undefined.
648         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
649         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
650         or -U__MIPSEB__ before defining one or the other.  Instead,
651         use %(subtarget_endian_default) if neither -EB nor -EL are
652         specified.
653         (SUBTARGET_EXTRA_SPECS): Define.
654         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
655         %(netbsd_cpp_spec).
656
657 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
658
659         * doc/md.texi (Patterns): Note pattern condition pitfall
660         for unnamed insn.
661
662 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
663
664         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
665         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
666         ternary operations from here...
667         (rs6000_expand_builtin): ...to here.
668         New argument expandedp.
669         Change all instances of altivec_expand_binop_builtin to
670         rs6000_expand_binop_builtin.
671         (altivec_expand_unop_builtin): Rename to
672         rs6000_expand_unop_builtin.
673         (altivec_expand_binop_builtin): Rename to
674         rs6000_expand_binop_builtin.
675         (altivec_expand_ternop_builtin): Rename to
676         rs6000_expand_ternop_builtin.
677
678 2002-05-29  Richard Henderson  <rth@redhat.com>
679
680         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
681         (TARGET_BI_ARCH): Likewise.
682         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
683         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
684         (TARGET_64BIT_DEFAULT): Default to 0.
685         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
686
687 2002-05-29  Richard Henderson  <rth@redhat.com>
688
689         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
690         (get_pc_thunk_name): New.
691         (output_set_got): Use it.
692         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
693         into linkonce sections.
694
695 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
696
697         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
698         (CPP_PREDEFINES): Make sure this is undefined.
699         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
700         (CPP_SUBTARGET_SPEC): Don't provide different versions for
701         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
702         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
703         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
704         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
705         (CPP_PREDEFINES): Make sure this is undefined.
706         (SUBTARGET_EXTRA_SPECS): Define.
707         (CPP_SPEC): Use %(netbsd_cpp_spec).
708
709 2002-05-29  Jeff Law <law@redhat.com>
710
711         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
712
713         * flow.c (propagate_one_insn): Do not remove a dead insn if it
714         contains a REG_RETVAL note.
715
716         * haifa-sched (sched_analyze): Remove another useless clearing
717         of SCHED_GROUP_P I missed yesterday.
718
719         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
720         * pa.c (pa_asm_output_mi_thunk): New function.
721         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
722
723 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
724             Marek Michalkiewicz  <marekm@amelek.gda.pl>
725
726         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
727         (avr_asm_only_p): Make non-static.
728         (enum avr_arch): Remove.
729         (avr_arch_types): New.
730         (avr_mcu_types): Update.
731         (avr_override_options): Use avr_arch_types table instead of switch.
732         * avr.h (CPP_PREDEFINES): Die.
733         (avr_base_arch_macro, avr_extra_arch_macro): New.
734         (TARGET_CPU_CPP_BUILTINS): New.
735         (CPP_SPEC, EXTRA_SPECS): Simplify.
736         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
737         CPP_AVR5_SPEC): Die.
738
739 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
740
741         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
742         NETBSD_OS_CPP_BUILTINS_AOUT.
743         (SUBTARGET_EXTRA_SPECS): Define.
744         (CPP_SPEC): Use %(netbsd_cpp_spec).
745
746 2002-05-29  Richard Henderson  <rth@redhat.com>
747
748         * config/i386/i386.c (ix86_output_function_epilogue): New.
749         (TARGET_ASM_FUNCTION_EPILOGUE): New.
750         (pic_label_name): Remove.
751         (pic_labels_used): New.
752         (ix86_asm_file_end): Emit one pc load stub for each register used.
753         (output_set_got): Generate deep pc load to any register.
754         (ix86_select_alt_pic_regnum): New.
755         (ix86_save_reg): Don't save pic register if we can find a valid
756         call-clobbered replacement.
757         (ix86_expand_prologue): If we found a valid replacement, renumber
758         pic_offset_table_rtx.
759         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
760         pic_offset_table_rtx after reload.
761         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
762         * config/i386/i386.md (set_got): Make insn, not expander.
763         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
764
765 2002-05-29  Richard Henderson  <rth@redhat.com>
766
767         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
768         alignment for alloca.
769
770 2002-05-29  Richard Henderson  <rth@redhat.com>
771
772         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
773         (print_operand_address): Only add rip for symbolic addresses
774         for which we do not have another relocation type.
775
776 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
777
778         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
779         (EXTRA_SPECS): Add netbsd_cpp_spec.
780         (CPP_SPEC): Use %(netbsd_cpp_spec).
781         (CPP_PREDEFINES): Remove.
782         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
783         (EXTRA_SPECS): Define.
784         (CPP_SPEC): Use %(netbsd_cpp_spec).
785         (CPP_PREDEFINES): Remove.
786
787 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
788
789         PR preprocessor/6844
790         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
791         NUL.
792
793 2002-05-29  Eric Christopher  <echristo@redhat.com>
794
795         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
796         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
797
798 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
799
800         * config/fr30/fr30.md: Remove previous restriction on splits.
801         Enforce conformance through gen_lowpart and cont_int_operand.
802         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
803         as the assembler does not support ".bss".
804
805 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
806
807         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
808         (CPP_PREDEFINES): Remove.
809         (SUBTARGET_EXTRA_SPECS): Define.
810         (CPP_SPEC): Use %(netbsd_cpp_spec).
811         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
812         (CPP_PREDEFINES): Remove.
813         (SUBTARGET_EXTRA_SPECS): Define.
814         (CPP_SPEC): Use %(netbsd_cpp_spec).
815         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
816         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
817         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
818         Add netbsd_cpp_spec.
819         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
820
821 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
822             Zack Weinberg <zack@codesourcery.com>
823
824         * cppexp.c (cpp_num): Move to cpplib.h.
825         (CPP_ERROR): Remove.
826         (interpret_float_suffix, interpret_int_suffix): New.
827         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
828         (cpp_classify_number, cpp_interpret_integer): New.
829         (interpret_number): Remove.
830         (eval_token): Update to use new routines.
831         * cpphash.h (cpp_num_part): Move to cpplib.h.
832         * cppinit.c (cpp_post_options): Set warn_long_long.
833         * cpplib.h (struct cpp_options): Add warn_long_long.
834         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
835         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
836         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
837         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
838         cpp_interpret_integer): New.
839
840 2002-05-29  Joel Sherrill <joel@OARcorp.com>
841
842         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
843
844 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
845
846         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
847         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
848         (CPP_SUBTARGET_SPEC): Define.
849         (SUBTARGET_EXTRA_SPECS): Define.
850         (CPP_SPEC): Remove.
851
852 2002-05-29  Chris Lattner  <sabre@nondot.org>
853
854         * ssa.c (rename_insn_1): Rename uses of undefined registers to
855         prevent confusion if/when the register is defined.
856
857 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
858
859         PR target/6838
860         * config/cris/cris.md: Fix typos and thinkos in comments.
861         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
862         second alternative.
863         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
864         ("*mov_sideqi_mem"): Similar, but for operand 3.
865         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
866         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
867         Remove spurious mode specifier on operand 2.
868
869 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
870
871         * config/h8300/h8300-protos.h: Remove the prototype for
872         o_operand.
873         Add prototypes for single_one_operand and single_zero_operand.
874         * config/h8300/h8300.c (o_operand): Remove.
875         (single_one_operand): New.
876         (single_zero_operand): Likewise.
877         (print_operand): For 'V' operand, and the operand with 0xff.
878         For 'V' and 'W' operands, do not and the bit position with 7.
879         * config/h8300/h8300.md (various anonymous patterns): Replace
880         use of exact_log2 with single_one_operand/single_zero_operand.
881
882 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
883
884         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
885
886 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
887
888         * config/s390/s390.c (legitimate_pic_operand_p): Do not
889         accept symbolic LARL operands.
890         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
891         epilogue insns.
892
893 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
894
895         * config/s390/s390.md (cmpstr_64/31): Mark whole
896         input registers as used.
897
898 2002-05-28  Richard Henderson  <rth@redhat.com>
899
900         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
901         not current_function_uses_pic_offset_table and
902         current_function_uses_const_pool; examine current_function_profile.
903         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
904         input to blockage if needed.
905         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
906         (legitimize_pic_address): Likewise.  Set regs_ever_live for
907         pic_offset_table_rtx when invoked during reload.
908         * config/i386/i386.h (FINALIZE_PIC): Remove.
909         * config/i386/i386.md (tablejump): Reformat.  Do not set
910         current_function_uses_pic_offset_table.
911         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
912         (blockage): Accept anything as operand 0.
913
914 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
915
916         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
917         common CPP built-ins for all NetBSD a.out targets.
918         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
919         common CPP built-ins for all NetBSD ELF targets.
920         * config/netbsd.h: Add missing notice.
921         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
922         for all NetBSD targets.
923         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
924         for all NetBSD targets using an LP64 code model.
925         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
926         NetBSD targets.
927
928 2002-05-28  Richard Henderson  <rth@redhat.com>
929
930         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
931         update if UPDATE_LIFE_LOCAL.
932
933 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
934
935         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
936
937 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
938                           Jason R. Thorpe <thorpej@wasabisystems.com>
939
940         config/sh reorganization to factor out endianness and coff:
941
942         * config/sh/little.h: New file.
943         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
944         defined, define to 0 to select big-endian.
945         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
946         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
947         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
948         * config/sh/t-be: New file.
949         * config/sh/t-le: New file.
950
951         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
952         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
953         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
954         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
955         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
956         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
957         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
958         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
959         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
960         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
961         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
962         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
963         (LINK_SPEC): Define to SH_LINK_SPEC.
964         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
965         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
966         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
967         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
968         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
969         * config/sh/coff.h: New file.
970         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
971         (TARGET_OBJFMT_CPP_BUILTINS): Define.
972         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
973         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
974         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
975         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
976         (PTRDIFF_TYPE): Likewise.
977         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
978         (CPP_PREDEFINES): Don't define.
979         (TARGET_OBJFMT_CPP_BUILTINS): Define.
980         (LINK_SPEC): Define to SH_LINK_SPEC.
981         (LINK_EMUL_PREFIX): Redefine.
982         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
983         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
984         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
985         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
986         (TARGET_OS_CPP_BUILTINS): Define.
987         (TARGET_DEFAULT): Redefine.
988         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
989         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
990         (LINK_SPEC): Don't redefine.
991         (LINK_DEFAULT_CPU_EMUL): Redefine.
992         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
993         * sh.c (sh_asm_named_section): Don't declare / define.
994         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
995         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
996         (sh64-*-elf* tm_file): Likewise.
997         (sh-*-rtemself* tm_file): Likewise.
998         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
999         (sh-*-linux* tmake_file): Add sh/t-le.
1000         (sh-*-rtems* tm_file): Add sh/coff.h
1001         (sh-*-* tm_file): Likewise.
1002
1003 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
1004
1005         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
1006         CONSTANT_POOL_ADDRESS_P.
1007
1008         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
1009
1010 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
1011             Jeff Law <law@redhat.com>
1012
1013         * optabs.c (expand_binop): Fix nwords sign warnings.
1014         generate pseudo for add_optab.
1015
1016         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
1017         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
1018
1019 2002-05-28      Marc Espie <espie@openbsd.org>
1020
1021         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
1022         inherited from gas.h.
1023         (ASM_QUAD):  Undef.  OpenBSD does not support it.
1024
1025 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
1026
1027         * doc/install.texi (binaries): Change mingw binaries
1028         link to www.mingw.org.
1029
1030 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1031
1032         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
1033
1034 2002-05-28  Richard Henderson  <rth@redhat.com>
1035
1036         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
1037         bottom alignment for leaf functions.
1038
1039 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
1040
1041         * config/pa/milli32.S, config/pa/lib1funcs.asm,
1042         config/sparc/sol2-g1.asm: Delete unused files.
1043
1044 2002-05-28  Richard Henderson  <rth@redhat.com>
1045
1046         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
1047
1048         * flow.c (calculate_global_regs_live): Rename call_used to
1049         invalidated_by_call.  Initialize from regs_invalidated_by_call
1050         instead of call_used_regs.
1051
1052         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
1053         DECL_EXTERNAL.
1054
1055 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
1056
1057         * tree.h: Don't include real.h.
1058         Forward-declare struct realvaluetype.
1059         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
1060         contain it.
1061         (TREE_REAL_CST_PTR): New accessor.
1062         (TREE_REAL_CST): Update.
1063         * real.h: Include machmode.h.
1064         (realvaluetype): Make it struct realvaluetype, not a typedef.
1065         (build_real): Prototype here.
1066
1067         * tree.c: Include real.h.
1068         (build_real): Allocate the REAL_VALUE_TYPE as a separate
1069         object in GC memory, set TREE_REAL_CST_PTR to point to it.
1070         (build_real_from_int_cst): Use build_real.
1071         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
1072         REAL_CST.
1073
1074         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
1075         fold-const.c, print-tree.c, real.c: Include real.h.
1076         * Makefile.in: Update dependency lists.
1077
1078 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1079
1080         * basic-block.h (last_basic_block): Declare.
1081         (expunge_block_nocompact): Declaration removed.
1082         (compact_blocks): Declare.
1083         * cfg.c (last_basic_block): New variable.
1084         (expunge_block_nocompact): Removed.
1085         (expunge_block): Do not compact basic blocks.
1086         (compact_blocks): New.
1087         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
1088         longer change.
1089         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
1090         last_basic_block.
1091         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
1092         real positions of blocks.
1093         (delete_unreachable_blocks): Simplified -- quadratic behavior now
1094         cannot occur.
1095         (cleanup_cfg): Compact blocks.
1096         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
1097         basic_block_info varray.
1098         (flow_delete_block): Comment update.
1099         (back_edge_of_syntactic_loop_p): Modify position check code.
1100         (verify_flow_info): Update checking.
1101         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
1102         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1103         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
1104         indices no longer change.
1105         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
1106         last_basic_block.
1107         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
1108         * profile.c (branch_prob): Compact blocks.
1109         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
1110         last_basic_block.
1111
1112 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
1113
1114         * config/h8300/h8300.md (two anonymous patterns): New.
1115
1116 2002-05-28  David S. Miller  <davem@redhat.com>
1117
1118         * config/sparc/sparc.md (cpu): Tidy.
1119         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
1120         'trap'.
1121         (in_call_delay): Delete reference to 'return' type.
1122         (eligible_for_return_delay, in_return_delay, define_delay
1123         referencing those): Delete.
1124         (rest of file): Use new type attributes as appropriate.
1125         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
1126         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
1127         * config/sparc/ultra1_2.md (us1_single): New reservation.
1128         (us1_ialuX): Likewise.
1129         * config/sparc/ultra3.md (us3_single): Likewise.
1130         (us3_ialuX): Likewise.
1131         (us3_imul, us3_idiv): Tweak.
1132
1133 2002-05-28  Richard Henderson  <rth@redhat.com>
1134
1135         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
1136         STRING_CST.
1137
1138 2002-05-28  Richard Henderson  <rth@redhat.com>
1139
1140         * config.gcc: Obsolete mn10200.
1141
1142 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1143
1144         * cppexp.c (interpret_number): Optimize for single-digit
1145         and less-than-half-precision cases.
1146         (num_trim, num_positive, num_div_op): Cast constants.
1147
1148 2002-05-27  Bo Thorsen  <bo@suse.de>
1149
1150         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
1151         3.1 branch. The file was made by Jakub Jelinek.
1152         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1153         support so multilib doesn't break. And don't define this at all
1154         when -Dinhibit_libc is used.
1155         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
1156         * config/i386/t-linux64: Implement full multilib support. Patch
1157         originally done by Andreas Jaeger and Jakub Jelinek.
1158
1159 2002-05-27  Roger Sayle  <roger@eyesopen.com>
1160
1161         * c-common.c: Add support for __attribute__((nothrow)) to specify
1162         that a function cannot throw an exception (using TREE_NOTHROW).
1163         (handle_nothrow_attribute): New function to process this attribute.
1164
1165         * doc/extend.texi: Document the new nothrow function attribute.
1166
1167 2002-05-27  H.J. Lu  (hjl@gnu.org)
1168
1169         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
1170         (num_positive): Likewise.
1171         (num_div_op): Likewise.
1172
1173 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1174
1175         * c-common.c (c_common_init): Always use intmax_t.
1176
1177 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1178
1179         * c-common.c (c_common_init): Use intmax_t for now.
1180
1181 2002-05-24  Andrew Haley  <aph@redhat.com>
1182
1183         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
1184         if T is a boolean type.
1185
1186 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1187
1188         * basic-block.h (last_basic_block): Defined as synonym for
1189         n_basic_blocks.
1190         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1191         flow_depth_first_order_compute, flow_preorder_transversal_compute,
1192         flow_dfs_compute_reverse_init): Replaced relevant occurences of
1193         n_basic_blocks with last_basic_block.
1194         * cfgbuild.c (make_edges): Likewise.
1195         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1196         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1197         * combine.c (combine_instructions): Likewise.
1198         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1199         iterative_dataflow_bitmap): Likewise.
1200         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1201         calc_idoms, idoms_to_doms): Likewise.
1202         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1203         Likewise.
1204         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1205         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1206         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1207         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1208         delete_null_pointer_checks, compute_code_hoist_vbeinout,
1209         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1210         compute_store_table, build_store_vectors): Likewise.
1211         * haifa-sched.c (sched_init): Likewise.
1212         * ifcvt.c (if_convert): Likewise.
1213         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1214         pre_edge_lcm, compute_available, compute_nearerout,
1215         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1216         Likewise.
1217         * predict.c (estimate_probability, process_note_prediction,
1218         note_prediction_to_br_prob): Likewise.
1219         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1220         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1221         * regrename.c (copyprop_hardreg_forward): Likewise.
1222         * resource.c (init_resource_info): Likewise.
1223         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1224         init_regions, schedule_insns): Likewise.
1225         * ssa-ccp.c (ssa_const_prop): Likewise.
1226         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1227         * ssa.c (compute_dominance_frontiers,
1228         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1229
1230         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1231         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1232         sizes consistently.
1233
1234 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1235
1236         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1237         new.
1238         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1239         hoist_insn_after, hoist_insn_to_edge): New.
1240
1241 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
1242
1243         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1244         (PROP_FINAL): Include.
1245         * flow.c (life_analysis, update_life_info,
1246         init_propagate_block_info, mark_set_1, mark_used_rgs):
1247         Support SCAN_DEAD_STORE.
1248
1249 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1250
1251         * c-common.c (c_common_init): Set CPP arithmetic precision.
1252         * cppexp.c (cpp_num_part): Move typedef ...
1253         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1254         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1255         (sanity_checks): Update.
1256
1257 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
1258
1259         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1260         (mkheaders): New rule.
1261         (install-mkheaders): New rule.
1262         * configure.in (all_outputs): Add mkheaders.
1263         * configure: Regenerate.
1264         * mkheaders.in: New file.
1265
1266 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
1267
1268         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1269
1270 2002-05-26  Andreas Jaeger  <aj@suse.de>
1271
1272         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1273
1274 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1275
1276         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1277         right_shift): Remove.
1278         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1279         HIGH_PART): New.
1280         (struct op): Use cpp_num.
1281         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1282         num_part_mul, num_unary_op, num_binary_op, num_negate,
1283         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1284         num_div_op, num_lshift, num_rshift, append_digit): New.
1285         (interpret_number, parse_defined, eval_token, reduce): Update
1286         for two-integer arithmetic.
1287         (binary_handler): New typedef.
1288         (optab): Update.
1289         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1290         (_cpp_parse_expr, reduce): Update to handle two-integers.
1291         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1292
1293 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1294
1295         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1296         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1297         branch insn into account, do not assume 1.
1298         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
1299         over single word insn.  Handle upper half of I/O space too.
1300         * config/avr/avr.md (*sbrx_branch): Use it.
1301         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1302         (*sbix_branch, *sbix_branch_bit7): Likewise.
1303         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1304         Use RTL peepholes to optimize register operand sign tests.
1305
1306 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1307
1308         * config/avr/avr.c (avr_asm_only_p): New variable.
1309         (avr_override_options): Set it here if AVR1.
1310         (asm_file_start): Test it here, report an error if set.
1311
1312 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
1313
1314         * alias.c: Fix formatting.
1315         * attribs.c: Likewise.
1316         * bb-reorder.c: Likewise.
1317         * bitmap.c: Likewise.
1318         * bitmap.h: Likewise.
1319         * builtins.c: Likewise.
1320
1321 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
1322
1323         * reload.c (find_valid_class): Accept new argument DEST,
1324         choose class accordingly.
1325         (push_reload): Update callers.
1326
1327 2002-05-26  Andreas Jaeger  <aj@suse.de>
1328
1329         * combine.c (combine_instructions): Do not indent #if for
1330         traditional C.
1331
1332 2002-05-25  Richard Henderson  <rth@redhat.com>
1333
1334         * c-pragma.c (apply_pragma_weak): Convert value identifier to
1335         string for decl_attributes.
1336         (handle_pragma_weak): Call assemble_alias if we're modifying
1337         an existing decl.
1338
1339 2002-05-25  Richard Henderson  <rth@redhat.com>
1340
1341         PR target/6788
1342         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1343         using rtl instead of fprintf.
1344         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1345         * config/sparc/sparc-protos.h: Update.
1346
1347 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1348
1349         * Makefile.in (C_COMMON_H): Fix.
1350         Update other targets.
1351         * c-common.c: Don't include c-lex.h.
1352         (builtin_define_with_value): Make static and prototype.
1353         (builtin_define_std): Move from c-lex.h.
1354         * c-common.h (init_c_lex): Move from c-lex.h.
1355         * c-decl.c: Don't include c-lex.h.
1356         (make_pointer_declarator): Move from c-parse.in.
1357         * c-lex.c: Don't include c-lex.h.
1358         * c-lex.h: Remove.
1359         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1360         (make_pointer_declarator): Move to c-decl.c.
1361         * c-pragma.c: Don't include c-lex.h.
1362         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1363         * c-tree.h (make_pointer_declarator): New.
1364 doc:
1365         * passes.texi, tm.texi: Update.
1366 objc:
1367         * Make-lang.in: Update and correct.
1368         * objc-act.c: Don't include c-lex.h or cpplib.h.
1369 treelang:
1370         * treetree.c: Don't include c-lex.h.
1371 config:
1372         * darwin-c.c: Don't include c-lex.h.
1373         * c4x/c4x-c.c: Don't include c-lex.h.
1374         * c4x/t-c4x: Update.
1375         * i370/i370-c.c: Don't include c-lex.h.
1376         * i370/t-i370: Update.
1377         * i960/i960-c.c: Don't include c-lex.h.
1378         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1379         * i960/t-960bare: Update.
1380         * i960/t-vxworks: Update.
1381         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1382         * rs6000/t-darwin: Update.
1383         * rs6000/t-rs6000-c-rule: Update.
1384         * v850/v850-c.c: Don't include c-lex.h.
1385         * v850/v850.c: Don't include c-lex.h or cpplib.h.
1386
1387
1388 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1389
1390         * tree.def: Fix typos.
1391         * doc/install.texi: Likewise.
1392
1393 2002-05-25  Richard Henderson  <rth@redhat.com>
1394
1395         * configure.in (HAVE_AS_TLS): Add ia64 test.
1396         * configure: Rebuild.
1397         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1398         (override_options): Set it.
1399         (TARGET_HAVE_TLS): New.
1400         (sdata_symbolic_operand): Look for 's'.
1401         (tls_symbolic_operand): New.
1402         (ia64_expand_load_address): Abort for tls symbols.
1403         (gen_tls_get_addr): New.
1404         (gen_thread_pointer): New.
1405         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
1406         (rtx_needs_barrier): Add new unspecs.
1407         (ia64_encode_section_info): Handle tls symbols.
1408         (ia64_strip_name_encoding): Strip two encoding chars.
1409         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1410         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1411         (TARGET_OPTIONS): Add tls-size.
1412         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1413         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1414         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1415         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1416         (movsf, movdf): Likewise.
1417         (movdi_symbolic): Use match_scratch.  Don't split if we won't
1418         have a scratch availiable.
1419         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1420         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1421         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1422         * config/ia64/ia64-protos.h: Update.
1423         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1424         sdata_symbolic_operand.
1425         (ASM_OUTPUT_LABELREF): Strip two characters.
1426
1427 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1428
1429         * combine.c (simplify_set): Remove an unnecessary subreg.
1430
1431 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1432
1433         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1434
1435         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1436
1437 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1438
1439         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
1440
1441 2002-05-25  Roger Sayle  <roger@eyesopen.com>
1442
1443         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1444         (cond (compare x y) 0) into the equivalent (cond x y).
1445
1446 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1447
1448         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
1449
1450 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
1451
1452         * config.gcc: Remove all stanzas for previously obsoleted
1453         systems.  Where necessary, add explicit error stanzas to
1454         prevent removed systems from being misidentified as something
1455         else.  Begin a fresh obsoletions list, with the systems that
1456         were reprieved last round.
1457         * doc/install.texi: Remove all mention of dead targets.
1458         * fixinc/mkfixinc.sh: Likewise.
1459
1460         * config/arm/arm.h: Bit 31 of target_flags is no longer
1461         reserved.
1462
1463         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1464         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1465         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1466         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1467         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1468         config/alpha/osf12.h, config/alpha/osf2or3.h,
1469         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1470         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1471         config/clipper/clipper-protos.h, config/clipper/clipper.c,
1472         config/clipper/clipper.h, config/clipper/clipper.md,
1473         config/clipper/clix.h, config/convex/convex-protos.h,
1474         config/convex/convex.c, config/convex/convex.h,
1475         config/convex/convex.md, config/convex/fixinc.convex,
1476         config/convex/proto.h, config/elxsi/elxsi-protos.h,
1477         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1478         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1479         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1480         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1481         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1482         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1483         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1484         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1485         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1486         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1487         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1488         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1489         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1490         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1491         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1492         config/m68k/altos3068.h, config/m68k/apollo68.h,
1493         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1494         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1495         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1496         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1497         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1498         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1499         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1500         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1501         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1502         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1503         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1504         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1505         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1506         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1507         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1508         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1509         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1510         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1511         config/mips/dec-osf1.h, config/mips/elflorion.h,
1512         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1513         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1514         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1515         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1516         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1517         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1518         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1519         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1520         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1521         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1522         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1523         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1524         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1525         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1526         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1527         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1528         Delete file.
1529
1530 2002-05-24  Richard Henderson  <rth@redhat.com>
1531
1532         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1533         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1534         * config/i386/i386.c (tls_model_chars): Add leading space.
1535         (tls_symbolic_operand): Don't bias by 1.
1536         (legitimize_address): Don't unbias by 1.
1537
1538 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1539
1540         * lcm.c (optimize_mode_switching): Change bb used as indices
1541         to bb->index.
1542
1543 2002-05-24  Richard Henderson  <rth@redhat.com>
1544
1545         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1546         of update_life_info_in_dirty_blocks.
1547
1548 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1549
1550         PR other/6782
1551         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1552
1553 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1554
1555         PR preprocessor/6780
1556         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1557
1558 2002-05-24  Jim Blandy  <jimb@redhat.com>
1559
1560         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1561         entry with a type code of zero, marking the end of the compilation
1562         unit's macro info.
1563
1564 2002-05-24  Richard Henderson  <rth@redhat.com>
1565
1566         * varasm.c (asm_output_bss): Always output one byte.
1567         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1568
1569 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1570
1571         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1572         namespace.
1573
1574 2002-05-24  Andreas Jaeger  <aj@suse.de>
1575
1576         * ggc-page.c (alloc_page): Cast variables of type size_t to
1577         unsigned long, adjust printf format string.
1578         (ggc_alloc): Likewise.
1579         (ggc_print_statistics): Likewise.
1580         (ggc_print_statistics): Correct printf format string for SCALE to
1581         use unsigned long.
1582
1583 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1584
1585         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1586
1587 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1588             Zack Weinberg     <zack@codesourcery.com>
1589
1590         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1591         quoted strings.
1592         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1593         directive in assembly file.
1594         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1595         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1596         * config/pj/pj.h (ASM_FILE_START): Likewise.
1597         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1598         * config/avr/avr.c (asm_file_end): Likewise.
1599         * toplev.c (output_quoted_string): Handle possibly signed plain
1600         char.
1601         * toplev.h (output_clean_symbol_name): Declare
1602         * toplev.c (output_clean_symbol_name): Define.
1603         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1604         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1605
1606 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1607
1608         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1609
1610 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1611
1612         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1613         of size of unsigned.
1614
1615 2002-05-23  Richard Henderson  <rth@redhat.com>
1616
1617         * configure.in (HAVE_AS_TLS): New test.
1618         * config.in, configure: Rebuild.
1619         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1620         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1621         (override_options): Set it.
1622         (tls_model_chars, tls_symbolic_operand): New.
1623         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1624         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1625         (local_exec_symbolic_operand): New.
1626         (get_pic_label_name): Merge into output_set_got.
1627         (ix86_asm_file_end): Emit pic_label_name if defined.
1628         (legitimate_constant_p, constant_address_p): New.
1629         (legitimate_pic_operand_p): New.
1630         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1631         (legitimate_address_p): Likewise.
1632         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1633         (ix86_strip_name_encoding): New.
1634         (get_thread_pointer): New.
1635         (legitimize_address): Handle tls symbols.
1636         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1637         Remove UNSPEC_PLT.
1638         (struct machine_function): Add some_ld_name.
1639         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1640         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1641         (output_addr_const_extra): New.
1642         (maybe_get_pool_constant): New.
1643         (ix86_split_to_parts): Use it.
1644         (ix86_expand_move): Handle tls symbols.
1645         (ix86_tls_get_addr): New.
1646         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1647         (TARGET_OPTIONS): Add tls-dialect.
1648         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1649         (LEGITIMATE_CONSTANT_P): Likewise.
1650         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1651         (TARGET_STRIP_NAME_ENCODING): New.
1652         (ASM_OUTPUT_LABELREF): New.
1653         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1654         (OUTPUT_ADDR_CONST_EXTRA): New.
1655         (PREDICATE_CODES): Update.
1656         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1657         * config/i386/i386.md: Regroup and renumber unspec constants.
1658         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1659         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1660         (tls_global_dynamic, tls_local_dynamic_base): New.
1661         (tls_local_dynamic_once): New.
1662         * config/i386/i386-protos.h: Update.
1663
1664 2002-05-23  Richard Henderson  <rth@redhat.com>
1665
1666         * genemit.c (gen_insn): Print file:lineno comment before function.
1667         (main): likewise.
1668         * gensupport.c (struct queue_elem): Add filename member.
1669         (queue_pattern): Initialize it; update all callers.
1670         (process_include): Don't free filename.
1671         (read_md_rtx): Set read_rtx_filename.
1672
1673 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1674
1675         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1676
1677 2002-05-23  Richard Henderson  <rth@redhat.com>
1678
1679         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1680
1681 2002-05-23  Richard Henderson  <rth@redhat.com>
1682
1683         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1684         commentary from Mark.
1685
1686 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1687
1688         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1689         Use FOR_EACH_BB macros to iterate over basic block chain.
1690         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1691         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1692         Likewise.
1693         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1694         find_unreachable_blocks, create_edge_list, verify_edge_list,
1695         remove_fake_edges, add_noreturn_fake_exit_edges,
1696         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1697         Likewise.
1698         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1699         find_sub_basic_blocks): Likewise.
1700         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1701         Likewise.
1702         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1703         Likewise.
1704         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1705         Likewise.
1706         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1707         commit_edge_insertions, commit_edge_insertions_watch_calls,
1708         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1709         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1710         * conflict.c (conflict_graph_compute): Likewise.
1711         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1712         df_modified_p, df_refs_unlink, df_dump): Likewise.
1713         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1714         * final.c (compute_alignments): Likewise.
1715         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1716         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1717         count_or_remove_death_notes): Likewise.
1718         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1719         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1720         classic_gcse, compute_transp, cprop, compute_pre_data,
1721         compute_transpout, invalidate_nonnull_info,
1722         delete_null_pointer_checks_1, delete_null_pointer_checks,
1723         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1724         compute_store_table, build_store_vectors, store_motion): Likewise.
1725         * global.c (global_conflicts, mark_elimination): Likewise.
1726         * graph.c (print_rtl_graph_with_bb): Likewise.
1727         * haifa-sched.c (sched_init): Likewise.
1728         * ifcvt.c (if_convert): Likewise.
1729         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1730         compute_available, compute_nearerout, compute_rev_insert_delete,
1731         optimize_mode_switching): Likewise.
1732         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1733         * predict.c (estimate_probability, note_prediction_to_br_prob,
1734         propagate_freq, counts_to_freqs, expensive_function_p,
1735         estimate_bb_frequencies): Likewise.
1736         * profile.c (instrument_edges, get_exec_counts,
1737         compute_branch_probabilities, compute_checksum, branch_prob,
1738         find_spanning_tree): Likewise.
1739         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1740         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1741         Likewise.
1742         * regclass.c (scan_one_insn, regclass): Likewise.
1743         * regmove.c (mark_flags_life_zones, regmove_optimize,
1744         record_stack_memrefs): Likewise.
1745         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1746         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1747         * resource.c (find_basic_block): Likewise.
1748         * sched-ebb.c (schedule_ebbs): Likewise.
1749         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1750         find_single_block_region, find_rgns, schedule_insns)
1751         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1752         * ssa-ccp.c (optimize_unexecutable_edges,
1753         ssa_ccp_df_delete_unreachable_insns): Likewise.
1754         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1755         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1756         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1757         compute_coalesced_reg_partition, rename_equivalent_regs,
1758         convert_from_ssa): Likewise.
1759         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1760         process_for_unwind_directive): Likewise.
1761
1762         * df.c (FOR_ALL_BBS): Removed.
1763         * gcse.c (struct null_pointer_info): Type of current_block field
1764         changed.
1765         (struct reg_avail_info): Type of last_bb field changed.
1766         * config/ia64/ia64.c (block_num): Removed.
1767         (need_copy_state): Type changed.
1768         (last_block): New.
1769
1770 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1771
1772         * cppinit.c (mark_named_operators): Split out from init_builtins.
1773         (cpp_finish_options): Call it from here instead.
1774
1775 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1776
1777         * builtin-attrs.def: Update copyright years.
1778         (ATTR_NONNULL): New attribute identifier.
1779         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1780         attribute tree lists.
1781         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1782         format operand.
1783         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1784         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1785         attribute lists.  Chain the appropriate nonnull attribute.
1786         * c-format.c (check_format_arg): Remove null format string
1787         warning.
1788         * testsuite/gcc.dg/format/null-1.c: New test.
1789
1790 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1791
1792         * Makefile.in (ADAC): Define.
1793         (SYSLIBS): Define.
1794         (.SUFFIXES): Move before language makefile fragments.
1795         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1796
1797 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1798
1799         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1800         placed in common.
1801
1802 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1803
1804         * cfg.c (dump_flow_info): Print results of
1805         maybe_hot/probably_never_executed predicates.
1806         * toplev.c (open_dump_file): Print function frequency.
1807
1808 2002-05-23  David S. Miller  <davem@redhat.com>
1809
1810         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1811         regsets.
1812
1813 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1814
1815         * c-common.c (warn_nonnull): Declare.
1816         (c_common_attribute_table): Add "nonnull" attribute.
1817         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1818         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1819         check_function_arguments_recurse): New functions.
1820         * c-common.h (warn_nonnull): Declare extern.
1821         (check_function_arguments, check_function_arguments_recurse): New
1822         prototypes.
1823         * c-decl.c (c_decode_option): Add -Wnonnull option.
1824         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1825         format checking.
1826         (format_check_context): New structure.
1827         (check_format_info_recurse): Remove recursion and rename to...
1828         (check_format_arg): ...this.  Update comment.
1829         (check_format_info): Use check_function_arguments_recurse.
1830         * c-typeck.c (build_function_call): Call check_function_arguments
1831         instead of check_function_format.
1832         * doc/extend.texi: Document "nonnull" attribute.
1833         * doc/invoke.texi: Docuemnt -Wnonnull option.
1834         * testsuite/gcc.dg/nonnull-1.c: New test.
1835         * testsuite/gcc.dg/nonnull-2.c: New test.
1836
1837 2002-05-23  David S. Miller  <davem@redhat.com>
1838
1839         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1840         * cfgcleanup.c (cleanup_cfg): If it is set do not
1841         attempt to delete trivially dead insns.
1842         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1843         * toplev.c (rest_of_compilation): Document non-trivial aspect
1844         the RTL before optimize_save_area_alloca is run.
1845
1846 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1847
1848         * c-lex.c (indent_level): Remove.
1849         (cb_file_change, c_lex): Remove indent level handling.
1850         * c-lex.h (indent_level): Remove.
1851         * input.h (struct file_stack): Remove indent_level.
1852         * toplev.c (push_srcloc): Remove indent_level handling.
1853
1854 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1855
1856         PR target/6753
1857         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1858         of x in constraints for clarity.
1859         (sse_mov?fcc split): abort if op2 == op3.
1860         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1861         sse_movsfcc_const0_4): Add earlyclobber.
1862         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1863         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1864         Use Y instead of x in constraints.
1865
1866 2002-05-23  Richard Henderson  <rth@redhat.com>
1867
1868         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1869         (C++98 Thread-Local Edits): New subsection.
1870
1871         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1872         (ix86_arch): Set type to enum processor_type.
1873
1874         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1875         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1876
1877 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1878
1879         * configure.in: Fix as version test for binutils 2.12.1 releases
1880         (without dates).
1881         * configure: Rebuilt.
1882
1883 2002-05-23  Richard Henderson  <rth@redhat.com>
1884
1885         * config/i386/i386.c (get_pic_label_name): New.
1886         (load_pic_register): Remove.
1887         (output_set_got): New.
1888         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1889         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1890         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1891         (prologue_set_got, prologue_get_pc): Remove.
1892         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1893         (builtin_setjmp_receiver): Use gen_set_got.
1894         * config/i386/i386-protos.h: Update.
1895
1896 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1897
1898         * gcse.c (hash_expr): Do not use alias set for hashing.
1899
1900 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1901
1902         * dbxout.c (dbxout_class_name_qualifiers): New function.
1903         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1904
1905 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1906
1907         * cpperror.c (_cpp_begin_message): No special casing
1908         of CPP_FATAL_LIMIT.
1909         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1910         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1911         * cpplib.c (do_include_common): Use DL_ERROR.
1912         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1913         (DL_ICE): Renumber.
1914         * fix-header.c (read_scan_file): Update.
1915
1916 2002-05-22  Richard Henderson  <rth@redhat.com>
1917
1918         * config/i386/i386.c (ix86_expand_call): New function, extracted
1919         from md call patterns.  Add pic_offset_table_rtx to
1920         CALL_INSN_FUNCTION_USAGE when needed.
1921         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1922         (call_value_pop, call_value, untyped_call): Likewise.
1923         (call_exp, call_value_exp): Remove.
1924         * config/i386/i386-protos.h: Update.
1925
1926 2002-05-22  Richard Henderson  <rth@redhat.com>
1927
1928         * varasm.c (default_section_type_flags): Check for VAR_DECL
1929         before using DECL_THREAD_LOCAL.
1930
1931 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1932
1933         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1934         (STARTFILE_SPEC): Delete PE crt0.o.
1935         * config/rs6000/aix51.h: Same.
1936         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1937         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1938         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1939         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1940         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1941
1942 2002-05-22  Richard Henderson  <rth@redhat.com>
1943
1944         * varasm.c (default_section_type_flags): Handle tls data and
1945         default sections.
1946         (default_unique_section): Handle tls sections.
1947
1948 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1949
1950         * configure.in (CROSS): Define NATIVE_CROSS.
1951         * configure: Regenerate.
1952         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1953         (startfile_prefix_spec): New var.
1954         (static_specs): Add startfile_prefix_spec.
1955         (do_spec_2): Split out from..
1956         (do_spec): ..here.
1957         (main): Process startfile_prefix_spec.
1958         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1959         dynamic linker.
1960         (STARTFILE_PREFIX_SPEC): Define.
1961         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1962         absolute paths.
1963
1964 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1965
1966         * cpperror.c: Fix formatting.
1967         * cppexp.c: Likewise.
1968         * cppfiles.c: Likewise.
1969         * cpphash.c: Likewise.
1970         * cpphash.h: Likewise.
1971         * cppinit.c: Likewise.
1972         * cpplex.c: Likewise.
1973         * cpplib.c: Likewise.
1974         * cppmacro.c: Likewise.
1975         * cppmain.c: Likewise.
1976         * cppspec.c: Likewise.
1977
1978 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1979
1980         * combine.c (force_to_mode): Use gen_int_mode.
1981         Don't clear CONST_INT bits outside of mode.
1982
1983 2002-05-22  Richard Henderson  <rth@redhat.com>
1984
1985         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1986         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1987
1988 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1989
1990         PR c/6643
1991         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1992         if DECL_SIZE_UNIT is INTEGER_CST.
1993
1994 2002-05-22  Richard Henderson  <rth@redhat.com>
1995
1996         * flow.c (life_analysis): Delete broken reg_label check.
1997
1998 2002-05-22  Richard Henderson  <rth@redhat.com>
1999
2000         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
2001         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2002
2003 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2004
2005         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
2006         (embed-bb.c): New rule.
2007         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
2008         * config/sh/embed_bb.c: Delete.
2009
2010 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
2011
2012         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
2013
2014 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
2015
2016         * config/h8300/h8300.md (*andorqi3): New.
2017
2018 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2019
2020         PR preprocessor/6517
2021         * Makefile.in: Update.
2022         * c-common.c (c_common_post_options): Add preprocessor
2023         errors to the error count.
2024         * c-lang.c (c_post_options): Kill.
2025         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2026         * hooks.h: Add header guards.
2027         * langhooks-def.h: Include hooks.h.
2028         (LANG_HOOKS_POST_OPTIONS): Update.
2029         * langhooks.h (struct lang_hooks): Update post_options.
2030         * toplev.c (parse_options_and_default_flags): Update.
2031 objc:
2032         * objc-lang.c (objc_post_options): Kill.
2033         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2034
2035 2002-05-21  Bruce Korb  <bkorb@gnu.org>
2036
2037         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
2038         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
2039         * fixinc/fixincl.x: regen.
2040
2041 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
2042
2043         * cfgbuild.c: Fix formatting.
2044         * cfg.c: Likewise.
2045         * cfgcleanup.c: Likewise.
2046         * cfglayout.c: Likewise.
2047         * cfgloop.c: Likewise.
2048         * cfgrtl.c: Likewise.
2049
2050 2002-05-21  Richard Henderson  <rth@redhat.com>
2051
2052         * c-common.h (enum rid): Add RID_THREAD.
2053         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
2054         (grokdeclarator): Grok __thread.
2055         * c-parse.in (reswords): Add __thread.
2056         (rid_to_yy): Add RID_THREAD.
2057
2058         * tree.h (DECL_THREAD_LOCAL): New.
2059         (struct tree_decl): Add thread_local_flag.
2060         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
2061         * tree.c (staticp): TLS variables are not static.
2062
2063         * target-def.h (TARGET_HAVE_TLS): New.
2064         * target.h (have_tls): New.
2065         * output.h (SECTION_TLS): New.
2066         * varasm.c (assemble_variable): TLS variables can't be common for now.
2067         (default_section_type_flags): Handle .tdata and .tbss.
2068         (default_elf_asm_named_section): Handle SECTION_TLS.
2069         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
2070
2071         * flags.h (flag_tls_default): Declare.
2072         * toplev.c (flag_tls_default): Define.
2073         (display_help): Display help for it.
2074         (decode_f_option): Set it.
2075
2076         * doc/extend.texi (Thread-Local): New node describing language-level
2077         thread-local storage.
2078         * doc/invoke.texi (-ftls-model): Document.
2079
2080         * fixinc/inclhack.def (thread_keyword): New.
2081         * fixinc/fixincl.x: Rebuild.
2082
2083 2002-05-21  Jeffrey A Law  <law@redhat.com>
2084
2085         * optabs.c (expand_binop): For double-word integer multiplies,
2086         do not compute intermediate results into something that is
2087         not a register (such as a SUBREG or MEM).
2088
2089         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
2090         (ix86_sched_reorder): Make sure to initialize scheduling
2091         data even when there's only one insn in the ready queue.
2092
2093 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
2094
2095         * genautomata.c (reserv_sets_hash_value): Fix a typo.
2096
2097 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
2098
2099         * genautomata.c (reserv_sets_hash_value): Define hash_value as
2100         set_el_t.  Transform the hash value into unsigned.
2101         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
2102         (transform_3): Add code to process `(A,B)+(D,E)'.
2103
2104 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
2105
2106         * reload1.c (do_output_reload): Run delete_output_reload
2107         only if optimizing.
2108
2109 2002-05-21  Roger Sayle  <roger@eyesopen.com>
2110
2111         PR middle-end/6600
2112         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
2113         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
2114         (can_store_by_pieces): ... and here to limit the largest mode used.
2115         Add a comment to document this function.
2116
2117 2002-05-21  Richard Henderson  <rth@redhat.com>
2118
2119         * flow.c (life_analysis): Fix test for deleted label.
2120
2121 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2122
2123         * doc/tm.texi: Fix typo.
2124
2125 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
2126
2127         * c-common.c (c_common_init): Set options->unsigned_char from
2128         flag_signed_char.
2129         (cb_register_builtins): Define __STRICT_ANSI__ and
2130         __CHAR_UNSIGNED__ here...
2131         * cppinit.c (init_builtins): Not here.
2132         (cpp_create_reader): unsigned_char option defaults to 0, not
2133         !DEFAULT_SIGNED_CHAR.
2134         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
2135         and -funsigned-char.
2136
2137         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
2138         * cpphash.c (_cpp_init_hashtable): Don't set it.
2139         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
2140         directly.  Clarify comment.
2141
2142 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2143
2144         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
2145         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
2146         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
2147         BASIC_BLOCK (n_basic_blocks - 1).
2148         * cfganal.c (can_fallthru, flow_call_edges_add,
2149         flow_preorder_transversal_compute): Too.
2150         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
2151         find_sub_basic_blocks): Too.
2152         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
2153         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
2154         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
2155         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
2156         * combine.c (this_basic_block): Type changed to basic_block.
2157         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
2158         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2159         get_last_value, distribute_notes, distribute_links): Too.
2160         * final.c (compute_alignments): Too.
2161         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
2162         * function.c (thread_prologue_and_epilogue_insns): Too.
2163         * gcse.c (compute_code_hoist_vbeinout): Too.
2164         * global.c (build_insn_chain): Too.
2165         * ifcvt.c (find_if_block, find_cond_trap): Too.
2166         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
2167         * regmove.c (regmove_optimize): Too.
2168         * resource.c (find_basic_block): Too.
2169         * sched-ebb.c (schedule_ebbs): Too.
2170         * ssa-dce.c (find_control_dependence, find_pdom): Too.
2171
2172 2002-05-21  Andreas Jaeger  <aj@suse.de>
2173
2174         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
2175
2176 2002-05-21  Richard Henderson  <rth@redhat.com>
2177
2178         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
2179         unspec names, not numbers.
2180
2181 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2182
2183         * doc/sourcebuild.texi: Mention snapshot-README and
2184         snapshot-index.html as needing updating for new front ends.
2185
2186 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2187
2188         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2189         disabling checking, and avoid multiple evaluation of RTX.
2190
2191 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
2192
2193         * bitmap.c (bitmap_find_bit): Return early if we have the correct
2194         element cached.
2195
2196 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2197
2198         * profile.c (gen_edge_profiler):  Set alias set before the memory is
2199         used.
2200
2201 2002-05-20  David S. Miller  <davem@redhat.com>
2202
2203         * cselib.c (max_value_regs): New.
2204         (cselib_lookup, cselib_invalidate_regno): Initialize it when
2205         adding new entries to the REG_VALUES table and we are dealing with
2206         a hard register.
2207         (clear_table): Initialize it.
2208         (cselib_invalidate_regno): Use it to determine which hard
2209         registers to scan when mode is not VOIDmode.
2210
2211 2002-05-20  Duraid Madina   <duraid@fl.net.au>
2212
2213         * tradcpp.c (fixup_newlines): Use old-style function header.
2214
2215 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
2216
2217         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2218
2219 2002-05-20  H.J. Lu  (hjl@gnu.org)
2220
2221         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2222
2223         * config/mips/mips.h (DFMODE_NAN): Defined.
2224         (SFMODE_NAN): Likewise.
2225
2226 2002-05-20  Dale Johannesen  <dalej@apple.com>
2227
2228         * combine.c (cant_combine_insn_p):  Back out my
2229         previous patch.
2230
2231 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
2232
2233         * params.c: Fix formatting.
2234         * params.h: Likewise.
2235         * predict.c: Likewise.
2236         * prefix.c: Likewise.
2237         * print-rtl.c: Likewise.
2238         * print-tree.c: Likewise.
2239         * profile.c: Likewise.
2240
2241 2002-05-20  H.J. Lu  (hjl@gnu.org)
2242
2243         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2244
2245 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
2246
2247         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2248         switches straight on to the assembler, do not abbreviate them.
2249         * config/arm/elf.h (ASM_SPEC): As above.
2250         * config/arm/semi.h (ASM_SPEC): As above.
2251         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2252         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2253         -mcpu=xscale on to the assembler by default.
2254         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2255
2256 2002-05-20  Richard Henderson  <rth@redhat.com>
2257
2258         * cse.c (canon_hash): Reorder do_not_record test.  Always
2259         allow pic_offset_table_rtx.
2260
2261 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
2262
2263         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2264         (expand_binop): Ditto (3 times).
2265
2266 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
2267
2268         * Makefile.in (distclean): Remove QMTest stuff.
2269         (QMTEST_PATH): New variable.
2270         (QMTESTFLAGS): Likewise.
2271         (QMTESTRUNFLAGS): Likewise.
2272         (QMTEST): Likewise.
2273         (QMTEST_GPP_TESTS): Likewise.
2274         (QMTEST_DIR): Likewise.
2275         (QMTEST_DIR/context): New target.
2276         (qmtest-g++): Likeise.
2277         (qmtest-gui): Likewise.
2278         (QMTEST_DIR/gpp-expected.qmr): Likewise.
2279
2280 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
2281
2282         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2283         an altivec register if TARGET_ALTIVEC.
2284
2285         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2286         to ALTIVEC_VECTOR_MODE.
2287         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2288         (rs6000_va_arg): Vectors may go in registers if they are not
2289         altivec vectors.
2290
2291 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
2292
2293         * protoize.c: Fix formatting.
2294
2295 2002-05-19  Richard Henderson  <rth@redhat.com>
2296
2297         * gensupport.c (init_include_reader): Merge into ...
2298         (process_include): ... here.  Simplify composite path creation.
2299         Plug memory leaks.  Fix file/line number tracking.  Do not
2300         process_define_cond_exec.  Return void.
2301         (process_rtx): Don't check process_include return value.
2302
2303 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2304
2305         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2306         fields.
2307         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2308         traversing basic block chain.
2309         (create_basic_block_structure, create_basic_block): Declaration changed.
2310         (link_block, unlink_block): Declare.
2311         * cfg.c (entry_exit_blocks): Initialize new fields.
2312         (link_block, unlink_block): New.
2313         (expunge_block_nocompact): Unlink basic block.
2314         (dump_flow_info): Print prev_bb/next_bb fields.
2315         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2316         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2317         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2318         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2319         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2320         (verify_flow_info): Check that list agrees with numbering.
2321
2322 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2323
2324         * c-common.c (preprocessing_asm): New macro.
2325         * c-lex.h (builtin_define, builtin_assert): Use pfile.
2326 doc:
2327         * tm.texi: Update.
2328 config/alpha:
2329         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2330         (CPP_SPEC): Simplify.
2331         (TARGET_CPU_CPP_BUILTINS): Update.
2332         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2333         (CPP_SPEC): Simplify.
2334         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2335         (TARGET_OS_CPP_BUILTINS): Update.
2336         * osf.h (CPP_XFLOAT_SPEC): Kill.
2337         (TARGET_OS_CPP_BUILTINS): Update.
2338         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2339         * osf5.h (CPP_XFLOAT_SPEC): Kill.
2340         * vms.h (CPP_SUBTARGET_SPEC): Kill.
2341         (TARGET_OS_CPP_BUILTINS): Update.
2342
2343 2002-05-19  Richard Henderson  <rth@redhat.com>
2344
2345         * varasm.c (default_binds_local_p): Fix typo.
2346
2347 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2348
2349         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2350         CONST_INT operand to the correct mode after adding 1 to it.
2351
2352 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
2353
2354         * config.gcc (powerpc-wrs-windiss*): New target.
2355
2356 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2357
2358         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2359         (ashrdi3): Use it.
2360
2361 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
2362
2363         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2364         alphasort.
2365         * config.in: Regenerated.
2366         * configure: Regenerated.
2367
2368 2002-05-19  Richard Henderson  <rth@redhat.com>
2369
2370         * target-def.h (TARGET_BINDS_LOCAL_P): New.
2371         * target.h (struct gcc_target): Move boolean fields to the end.
2372         Add binds_local_p.
2373         * varasm.c (default_binds_local_p): New.
2374         * output.h: Declare it.
2375
2376         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2377         * config/cris/cris.c (cris_encode_section_info): Likewise.
2378         * config/i386/i386.c (i386_encode_section_info): Likewise.
2379         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2380         * config/sh/sh.c (sh_encode_section_info): Likewise.
2381
2382         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2383         (TARGET_BINDS_LOCAL_P): New.
2384
2385 2002-05-19  Richard Henderson  <rth@redhat.com>
2386
2387         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2388         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2389         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2390
2391         * toplev.c (display_help): Kill -a -ax help.
2392
2393         * config/1750a/1750a.h, config/alpha/alpha.h,
2394         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2395         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2396         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2397         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2398
2399         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2400         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2401
2402         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2403         (ix86_output_function_block_profiler): Kill.
2404         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2405         (m68hc11_function_block_profiler): Kill.
2406         * config/m68hc11/m68hc11-protos.h: Update.
2407         * config/m88k/m88k.c (output_block_profiler): Kill.
2408         (output_function_block_profiler): Kill.
2409         * config/m88k/m88k-protos.h: Update.
2410
2411 2002-05-19  Richard Henderson  <rth@redhat.com>
2412
2413         * system.h (STRIP_NAME_ENCODING): Poison it.
2414         * output.h (STRIP_NAME_ENCODING): Remove.
2415         (default_strip_name_encoding): Declare.
2416         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2417         * target.h (strip_name_encoding): New.
2418         * varasm.c (default_strip_name_encoding): New.
2419
2420         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2421         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2422         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2423         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2424         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2425         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2426         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2427         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2428         config/v850/v850.h: Use the hook, not the macro.
2429
2430         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2431         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2432         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2433         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2434         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2435         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2436         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2437         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2438         config/v850/v850.c, config/v850/v850.h:
2439         Move STRIP_NAME_ENCODING to out-of-line function and add
2440         TARGET_STRIP_NAME_ENCODING.
2441
2442         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2443         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2444         with TARGET_STRIP_NAME_ENCODING referencing existing function;
2445         make function static.
2446
2447         * xcoffout.c: Include target.h
2448         * Makefile.in (xcoffout.o): Update.
2449
2450         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2451         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2452         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2453         reloc argument unused.
2454         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2455
2456         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2457         STRIP_NAME_ENCODING docs.
2458
2459 2002-05-19  Andreas Jaeger  <aj@suse.de>
2460
2461         * gengenrtl.c: Add prototype for excluded_rtx.
2462
2463         * real.h: Add prototype for exact_real_truncate.
2464
2465 2002-05-18  Richard Henderson  <rth@redhat.com>
2466
2467         * system.h (ENCODE_SECTION_INFO): Poison it.
2468         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2469         * target.h (encode_section_info): New.
2470         * varasm.c (make_decl_rtl, output_constant_def): Use it.
2471         * hooks.c (hook_tree_int_void): New.
2472         * hooks.h: Declare it.
2473
2474         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2475         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2476         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2477         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2478         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2479         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2480         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2481         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2482         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2483         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2484         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2485         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2486         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2487         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2488         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2489         referencing existing function.  Make function static.
2490
2491         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2492         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2493         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2494         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2495         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2496         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2497         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2498         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2499         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2500         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2501         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2502         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2503         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2504         Move ENCODE_SECTION_INFO to out-of-line function and add
2505         TARGET_ENCODE_SECTION_INFO.
2506
2507         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2508         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2509
2510         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2511         from SUBTARGET_*
2512         (switch_to_section): Replace in_rdata case with in_readonly_data.
2513
2514         * config/h8300/h8300.c (h8300_encode_label): Make static.
2515         * config/h8300/h8300-protos.h: Update.
2516
2517         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2518         from rs6000_encode_section_info; make static.
2519         (rs6000_xcoff_encode_section_info): New.
2520
2521         * config/v850/v850.c (v850_encode_data_area): Make static.
2522         * config/v850/v850-protos.h: Update.
2523
2524         * config/vax/vax.c: Include flags.h.
2525         (vms_select_section): Fix typo.
2526
2527         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2528         ENCODE_SECTION_INFO docs.
2529
2530 2002-05-18  Richard Henderson  <rth@redhat.com>
2531
2532         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2533         REGISTER_TARGET_PRAGMAS.
2534         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2535
2536         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2537
2538 2002-05-18  Richard Henderson  <rth@redhat.com>
2539
2540         * system.h (SELECT_RTX_SECTION): Poison.
2541         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2542         * target.h (select_rtx_section): New.
2543         * varasm.c (output_constant_pool): Use it.
2544         (default_select_rtx_section, default_elf_select_rtx_section): New.
2545         * output.h: Declare them.
2546
2547         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2548         * config/darwin.c (machopic_select_rtx_section): ... here.
2549         * config/darwin-protos.h: Update.
2550
2551         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2552         * config/nextstep.c (machopic_select_rtx_section): ... here.
2553         (nextstep_select_section): Rename variable to avoid macro clash.
2554         * config/nextstep-protos.h: Update.
2555
2556         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2557         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2558         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2559         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2560         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2561         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2562         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2563         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2564         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2565         (SELECT_RTX_SECTION): Remove.
2566
2567         * config/darwin.h, config/elfos.h, config/nextstep.h,
2568         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2569         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2570         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2571         config/sparc/lynx.h, config/xtensa/xtensa.c
2572         (TARGET_ASM_SELECT_RTX_SECTION): New.
2573
2574         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2575         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2576         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2577         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2578         (ia64_aix_select_rtx_section): New.
2579         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2580         redefining.
2581         * config/mips/mips.c (mips_select_rtx_section): Make static.
2582         Support ELF SHF_MERGE features.
2583         * config/mips/mips-protos.h: Update.
2584         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2585         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2586         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2587         make static, fall back to default_elf_select_rtx_section.
2588         * config/rs6000/rs6000-protos.h: Update.
2589         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2590         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2591         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2592         * config/romp/romp.c (romp_select_rtx_section): New.
2593         * config/s390/s390.c (s390_select_rtx_section): New.
2594         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2595         declarations before target macro definition.
2596         (xtensa_emit_call): Use static buffer.
2597         (xtensa_select_rtx_section): New.
2598         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2599         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2600         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2601
2602         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2603         SELECT_RTX_SECTION docs.
2604
2605 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2606
2607         * i386.md (movsi/movdi): Fix template.
2608         (sse2 patterns): Set attributes consistently.
2609
2610         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2611
2612 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2613
2614         * optabs.c (complex_part_zero_p): New.
2615         * (expand_cmplxdiv_straight): Use it.
2616         * (expand_cmplxdiv_wide): Ditto.
2617         * (expand_binop): Ditto.
2618
2619 2002-05-18  Richard Henderson  <rth@redhat.com>
2620
2621         * final.c (HAVE_READONLY_DATA_SECTION): New.
2622         (shorten_branches): Use it instead of ifdefs.
2623         * varasm.c (enum in_section): Add in_readonly_data.
2624         (text_section, data_section): Tidy.
2625         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2626
2627         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2628         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2629         (READONLY_DATA_SECTION): Don't undef.
2630
2631         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2632         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2633         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2634
2635         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2636         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2637         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2638         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2639
2640         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2641         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2642         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2643         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2644         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2645         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2646         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2647         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2648         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2649
2650         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2651         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2652         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2653         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2654         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2655         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2656
2657         * config/elfos.h, config/netware.h, config/svr3.h,
2658         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2659         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2660         config/h8300/h8300.h, config/i386/i386-interix.h,
2661         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2662         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2663
2664         * config/elfos.h, config/netware.h, config/svr3.h,
2665         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2666         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2667         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2668         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2669
2670         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2671         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2672         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2673         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2674         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2675         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2676         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2677         config/rs6000/sysv4.h, config/v850/v850.h
2678         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2679         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2680
2681         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2682         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2683         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2684         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2685         * config/alpha/alpha.c (alpha_start_function): Likewise.
2686         (alpha_write_linkage): Likewise.
2687         * config/m32r/m32r.c (m32r_select_section): Likewise.
2688         * config/m88k/m88k.c (m88k_select_section): Likewise.
2689         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2690         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2691         (rs6000_elf_select_section): Likewise.
2692         * config/v850/v850.c (v850_select_section): Likewise.
2693
2694         * config/1750a/1750a.h, config/i860/sysv3.h
2695         (READONLY_DATA_SECTION_ASM_OP): New.
2696         READONLY_DATA_SECTION_ASM_OP.
2697         * config/i386/interix.c, config/i386/winnt.c
2698         (i386_pe_unique_section): Always use .rdata prefix.
2699         * config/pa/som.h (readonly_data): Always switch to read-only section.
2700         (READONLY_DATA_SECTION): Predicate on flag_pic.
2701         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2702         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2703         (READONLY_DATA_SECTION): Update.
2704
2705 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2706
2707         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2708         is used without -Wformat.
2709         * c-common.h (warn_format_zero_length): Declare extern.
2710         * c-decl.c (warn_options): Add "format-zero-length".
2711         * c-format.c (warn_format_zero_length): Declare.
2712         (set_Wformat): Set warn_format_zero_length for -Wformat.
2713         (check_format_info): Only warn about zero-length formats if
2714         warn_format_zero_length is true.  Include the format type
2715         name in the warning message.
2716         * doc/invoke.texi: Document -Wformat-zero-length.
2717         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2718
2719 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2720
2721         * timevar.c: Fix formatting.
2722         * tlink.c: Likewise.
2723         * toplev.c: Likewise.
2724         * tree-dump.c: Likewise.
2725         * tree-inline.c: Likewise.
2726
2727 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2728
2729         * cppinit.c (cpp_post_options): If preprocessed, turn off
2730         traditional.  If traditional, turn off column numbers.
2731         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2732         * cpptrad.c (handle_newline): Update line_base.
2733         (skip_comment): Handle -Wcomment.
2734
2735 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2736
2737         * cppinit.c (struct builtin): Remove unused fields.
2738         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2739         (operator_array): New - was second half of builtin_array.
2740         (init_builtins): Simplify loop over builtin_array/operator_array.
2741
2742 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2743
2744         * defaults.h (UNIQUE_SECTION): Remove.
2745         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2746
2747 2002-05-17  Richard Henderson  <rth@redhat.com>
2748
2749         * expr.c (init_expr_once): Don't use start/end_sequence.
2750         Use rtx_alloc instead of emit_insn.
2751         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2752         (lang_independent_init): ... not here.
2753
2754 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2755
2756         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2757
2758 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2759
2760         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2761         for fixed registers, possibly used for global register variables.
2762         (initial_elimination_offset, avr_output_function_prologue,
2763         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2764
2765 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2766
2767         * Makefile.in: Update for cpptrad.c.
2768         * cpphash.h (struct cpp_buffer): New members for buffer
2769         overlays.
2770         (struct cpp_reader): New members for traditional output.
2771         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2772         * cppinit.c (cpp_create_reader): Set trad_line.
2773         (cpp_destroy): Free trad_out_base if used.
2774         (cpp_read_main_file): Overlay an empty buffer if traditional.
2775         (cpp_finish_options): Don't do builtins.
2776         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2777         (cpp_handle_option): Handle it.
2778         * cpplex.c (continue_after_nul): New.
2779         (_cpp_lex_direct): Use handle_nul.
2780         * cpplib.h (struct cpp_options): New traditional option.
2781         * cpptrad.c: New file.
2782
2783 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2784
2785         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2786         and set the options flag.
2787         * cppinit.c (lang_flags): Remove objc.
2788         (lang_defaults): Remove OBJC and OBJCXX.
2789         (set_lang): Update.
2790         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2791         (cpp_handle_option): Remove -+ and -lang-objc++.
2792         For ObjC, just set a flag.
2793         (print_help): Update.
2794         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2795
2796 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2797
2798         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2799         bootstrap with -mips3.
2800
2801 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2802
2803         * final.c: Fix formatting.
2804         * fix-header.c: Likewise.
2805         * flow.c: Likewise.
2806         * fold-const.c: Likewise.
2807         * function.c: Likewise.
2808
2809 2002-05-17  David S. Miller  <davem@redhat.com>
2810
2811         PR c/6689, PR optimization/6615
2812         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2813         and make it a pointer to rtx.  Update comments.
2814         (update_equiv_regs): When scanning for equivalences, record
2815         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2816         it while making the equiv replacements.
2817
2818 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2819
2820         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2821
2822 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2823
2824         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2825         when encoding visibility into SYMBOL_REF_FLAG.
2826
2827 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2828
2829         * expr.c (force_operand): Fix reversed move.
2830
2831 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2832
2833         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2834         that can be ignored.
2835
2836 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2837
2838         * doc/install.texi (Final install): Recommend to install into a
2839         "clean" target directory.
2840
2841 2002-05-17  Richard Henderson  <rth@redhat.com>
2842
2843         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2844         for code blocks.  Tidy whitespace.
2845
2846 2002-05-17  Richard Henderson  <rth@redhat.com>
2847
2848         * hooks.c (hook_tree_bool_false): New.
2849         * hooks.h: Declare it.
2850         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2851         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2852         * target.h (select_section, unique_section): New.
2853         (in_small_data_p): New.
2854         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2855         (variable_section, output_constant_def_contents): Likewise.
2856         (default_select_section, default_unique_section): New.
2857         (categorize_decl_for_section, default_elf_select_section): New.
2858         * output.h: Declare them.
2859
2860         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2861         (TARGET_ASM_SELECT_SECTION): New.
2862         (SELECT_SECTION): Move ...
2863         * config/darwin.c (machopic_select_section): ... here.
2864         * config/darwin-protos.h: Update.
2865
2866         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2867         (SELECT_SECTION): Move ...
2868         * config/nextstep.c (nextstep_select_section): ... here.
2869         * config/nextstep-protos.h: Update.
2870
2871         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2872         (TARGET_ASM_SELECT_SECTION): New.
2873         * config/svr3.h (SELECT_SECTION): Remove.
2874
2875         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2876         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2877         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2878         (alpha_encode_section_info): Use it.
2879         * config/alpha/alpha-protos.h: Update.
2880         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2881         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2882         (TARGET_ASM_SELECT_SECTION): New.
2883         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2884
2885         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2886         (TARGET_ASM_UNIQUE_SECTION): New.
2887
2888         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2889         (avr_unique_section): Rename from unique_section; make static.
2890         * config/avr/avr-protos.h: Update.
2891         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2892
2893         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2894
2895         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2896         (TARGET_ASM_UNIQUE_SECTION): New.
2897         * config/i386/i386-interix.h: Likewise.
2898         * config/i386/win32.h: Likewise.
2899         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2900         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2901         * config/i386/sco5.h (SELECT_SECTION): Remove.
2902         (TARGET_ASM_SELECT_SECTION): New.
2903         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2904
2905         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2906         instead of SELECT_SECTION.
2907         * config/m68k/dpx2.h: Likewise.
2908         * config/rs6000/lynx.h: Likewise.
2909
2910         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2911         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2912         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2913         (ia64_in_small_data_p): New.
2914         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2915         (ia64_aix_select_section, ia64_aix_unique_section): New.
2916         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2917         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2918
2919         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2920         (TARGET_ASM_SELECT_SECTION): New.
2921         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2922         * config/m32r/m32r-protos.h: Update.
2923
2924         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2925         (SELECT_SECTION): Move ...
2926         * config/m88k/m88k.c (m88k_select_section): ... here.
2927
2928         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2929         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2930         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2931         (mcore_unique_section): Make static.
2932         * config/mcore/mcore-protos.h: Update.
2933
2934         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2935         (TARGET_ASM_UNIQUE_SECTION): New.
2936         * config/mips/elf64.h: Likewise.
2937         * config/mips/iris6gld.h: Likewise.
2938         * config/mips/linux.h: Likewise.
2939         * config/mips/mips-protos.h: Update.
2940         * config/mips/mips.c (mips_select_section): Add align argument.
2941         * config/mips/mips.h (SELECT_SECTION): Remove.
2942         (TARGET_ASM_SELECT_SECTION): New.
2943
2944         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2945         * config/mmix/mmix.c (mmix_select_section): Remove.
2946         (mmix_unique_section): Remove.
2947         * config/mmix/mmix-protos.h: Update.
2948
2949         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2950         (SELECT_SECTION): Move ...
2951         * config/pa/pa.c (pa_select_section): ... here.
2952         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2953
2954         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2955         from rs6000_select_section and make static.
2956         (rs6000_elf_unique_section): Similarly.
2957         (rs6000_xcoff_select_section): From xcoff.h.
2958         (rs6000_xcoff_unique_section): Likewise.
2959         * config/rs6000/rs6000-protos.h: Update.
2960         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2961         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2962         * config/rs6000/xcoff.h: Likewise.
2963
2964         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2965         (SELECT_SECTION): Move ...
2966         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2967
2968         * config/v850/v850.h (SELECT_SECTION): Move ...
2969         * config/v850/v850.c (v850_select_section): ... here.
2970         (TARGET_ASM_SELECT_SECTION): New.
2971
2972         * config/vax/vms.h (SELECT_SECTION): Move ...
2973         * config/vax/vax.c (vms_select_section): ... here.
2974         (TARGET_ASM_SELECT_SECTION): New.
2975
2976         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2977         for the target hooks.
2978
2979 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
2980
2981         * config/arm/arm.c (emit_multi_reg_push): Do not set
2982         RTX_FRAME_RELATED_P on the SEQUENCE.
2983
2984 2002-05-16  Richard Henderson  <rth@redhat.com>
2985
2986         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2987         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
2988
2989 2002-05-16  Richard Henderson  <rth@redhat.com>
2990
2991         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2992
2993         * config/ia64/ia64.c (saveable_obstack): Do not declare.
2994
2995 2002-05-16  Richard Henderson  <rth@redhat.com>
2996
2997         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2998         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2999         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
3000         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
3001         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
3002         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
3003         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
3004         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
3005         Revert "Basic block renumbering removal", and two followup patches.
3006
3007 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
3008
3009         * lcm.c (optimize_mode_switching): Revert previous change.
3010
3011 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3012
3013         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
3014         with only extant block numbers.
3015
3016 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
3017
3018         * lcm.c (optimize_mode_switching): Fix typo.
3019
3020 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3021
3022         * flow.c (calculate_global_regs_live): Queue blocks in program order.
3023
3024 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3025
3026         * doc/install.texi (Configuration): Document PWDCMD.
3027
3028 2002-05-16  Dale Johannesen  <dalej@apple.com>
3029
3030         * combine.c (cant_combine_insn_p):  Reenable combinations
3031         involving hard regs unless CLASS_LIKELY_SPILLED_P.
3032
3033 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3034
3035         * c-common.c (cb_register_builtins): Handle more built-ins
3036         here rather than in gcc.c specs.
3037         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
3038         (cpp_options): Pass -O flags even when only preprocessing.
3039         * toplev.c (set_fast_math_flags): New prototype.
3040         (fast_math_flags_set_p): New.
3041         (set_no_fast_math_flags): Remove.
3042         (decode_f_option): Update.
3043         * toplev.h (set_fast_math_flags): Update.
3044         (fast_math_flags_set_p): New.
3045         (set_no_fast_math_flags): Remove.
3046 config:
3047         * c4x/c4x.c (c4x_override_options): Update.
3048
3049 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
3050
3051         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
3052         Default-define here.
3053         (builtin_define_with_value): Can now wrap the expansion in
3054         quotation marks if such is wanted.
3055         (cb_register_builtins): Update calls to builtin_define_with_value.
3056         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
3057         here.
3058         (c_common_init): Set options->stdc_0_in_system_headers.
3059         * c-lex.h: Update prototype of builtin_define_with_value.
3060         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
3061         and REGISTER_PREFIX.
3062
3063         * cppinit.c (VERS, ULP, C, X): Kill.
3064         (builtin_array): Remove entries for __VERSION__,
3065         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
3066         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
3067         a constant.
3068         (init_builtins): Kill off a bunch of now-dead code.
3069         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
3070         -fno-leading-underscore.
3071         (cpp_handle_option): Remove code to set user_label_prefix.
3072         (cpp_post_options): Likewise.
3073
3074         * cpplib.h (struct cpp_options): Remove user_label_prefix.
3075         (stdc_0_in_system_headers): New.
3076         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
3077         stdc_0_in_system_headers) too to decide the value of __STDC__.
3078
3079         * tradcpp.c (user_label_prefix): Kill.
3080         (main): Remove code handling -f(no-)leading-underscore.
3081         (initialize_builtins): Don't define __REGISTER_PREFIX__
3082         or __USER_LABEL_PREFIX__.
3083         (install_value): Wrap compound statement in dummy loop so the
3084         macro works properly in an if statement.
3085
3086
3087 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
3088
3089         * loop.h (struct loop_info): Add member has_prefetch.
3090         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
3091         (prescan_loop): Initialize has_prefetch.
3092         (struct prefetch_info): Change prefetch_in_loop and
3093         prefetch_before_loop from bit fields to ints.
3094         (emit_prefetch_instructions): Several small fixes.
3095         (check_dbra_loop): Don't reverse loop that uses prefetch.
3096
3097 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3098
3099         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
3100         * configure.in: Likewise.
3101         * fixinc/check.tpl: Likewise.
3102         * fixinc/fixinc.dgux: Likewise.
3103         * fixinc/fixinc.svr4: Likewise.
3104         * fixinc/fixinc.winnt: Likewise.
3105         * fixinc/fixincl.sh: Likewise.
3106         * fixproto: Likewise.
3107         * configure: Regenerate.
3108
3109 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3110
3111         Basic block renumbering removal:
3112         * basic_block.h (struct basic_block_def): Renamed index to sindex,
3113         added prev_bb and next_bb fields.
3114         (n_basic_blocks): Renamed to num_basic_blocks.
3115         (last_basic_block): New, index of last basic block.
3116         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3117         traversing basic block chain.
3118         (BLOCK_NUM): index -> sindex.
3119         (create_basic_block_structure, create_basic_block): Declaration changed.
3120         (debug_num2bb): Declare.
3121         (expunge_block_nocompact): Declaration removed.
3122         (link_block, unlink_block, compact_blocks): Declare.
3123         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
3124         * cfg.c (entry_exit_blocks): Initialize new fields.
3125         (clear_edges, alloc_block, expunge_block, cached_make_edge,
3126         redirect_edge_pred, dump_flow_info, dump_edge_info,
3127         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
3128         free_aux_for_edges): Modified.
3129         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
3130         (expunge_block_nocompact): Removed.
3131         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
3132         find_unreachable_blocks, create_edge_list, print_edge_list,
3133         verify_edge_list, flow_edge_list_print, remove_fake_successors,
3134         remove_fake_edges, flow_reverse_top_sort_order_compute,
3135         flow_depth_first_order_compute, flow_preorder_transversal_compute,
3136         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
3137         flow_dfs_compute_reverse_execute): Modified.
3138         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
3139         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
3140         Modified.
3141         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3142         merge_blocks_move_predecessor_nojumps,
3143         merge_blocks_move_successor_nojumps, merge_blocks,
3144         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
3145         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
3146         * cfglayout.c (skip_insns_after_block, label_for_bb,
3147         record_effective_endpoints, scope_to_insns_finalize,
3148         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
3149         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
3150         cfg_layout_duplicate_bb): Modified.
3151         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
3152         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3153         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
3154         flow_loops_find, flow_loop_outside_edge_p): Modified.
3155         * cfgrtl.c (create_basic_block_structure, create_basic_block,
3156         flow_delete_block, compute_bb_for_insn, split_block,
3157         try_redirect_by_replacing_jump, redirect_edge_and_branch,
3158         force_nonfallthru_and_redirect, tidy_fallthru_edge,
3159         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
3160         commit_edge_insertions, commit_edge_insertions_watch_calls,
3161         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3162         purge_all_dead_edges): Modified.
3163         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
3164         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3165         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
3166         Modified.
3167         * conflict.c (conflict_graph_compute): Modified.
3168         * df.c (FOR_ALL_BBS): Removed.
3169         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3170         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
3171         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
3172         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
3173         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3174         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
3175         * final.c (compute_alignments, final_scan_insn): Modified.
3176         * flow.c (verify_local_live_at_start, update_life_info,
3177         update_life_info_in_dirty_blocks, free_basic_block_vars,
3178         delete_noop_moves, calculate_global_regs_live,
3179         initialize_uninitialized_subregs, allocate_bb_life_data,
3180         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
3181         mark_used_reg, count_or_remove_death_notes): Modified.
3182         * function.c (thread_prologue_and_epilogue_insns): Modified.
3183         * gcse.c (struct null_pointer_info): Change typo of current_block
3184         to basic_block.
3185         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3186         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3187         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3188         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3189         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3190         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3191         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3192         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3193         pre_delete, one_pre_gcse_pass, compute_transpout,
3194         invalidate_nonnull_info, delete_null_pointer_checks_1,
3195         free_code_hoist_mem, compute_code_hoist_vbeinout,
3196         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3197         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3198         compute_store_table, build_store_vectors, insert_insn_start_bb,
3199         insert_store, replace_store_insn, free_store_memory, store_motion):
3200         Modified.
3201         * global.c (global_alloc, global_conflicts, mark_elimination,
3202         build_insn_chain): Modified.
3203         * graph.c (print_rtl_graph_with_bb): Modified.
3204         * haifa-sched.c (sched_init): Modified.
3205         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3206         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3207         if_convert): Modified.
3208         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3209         compute_insert_delete, pre_edge_lcm, compute_available,
3210         compute_farthest, compute_nearerout, compute_rev_insert_delete,
3211         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3212         Modified.
3213         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3214         * loop.c (loop_dump_aux): Modified.
3215         * predict.c (combine_predictions_for_insn, estimate_probability,
3216         last_basic_block_p, process_note_prediction, process_note_predictions,
3217         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3218         expensive_function_p, estimate_bb_frequencies,
3219         compute_function_frequency): Modified.
3220         * print-rtl.c (print_rtx): Modified.
3221         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3222         get_exec_counts, compute_branch_probabilities, compute_checksum,
3223         branch_prob, find_spanning_tree): Modified.
3224         * recog.c (split_all_insns, peephole2_optimize): Modified.
3225         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3226         convert_regs_1, convert_regs_2, convert_regs): Modified.
3227         * regclass.c (scan_one_insn, regclass): Modified.
3228         * regmove.c (mark_flags_life_zones, regmove_optimize,
3229         combine_stack_adjustments): Modified.
3230         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3231         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3232         * reorg.c (dbr_schedule): Modified.
3233         * resource.c (find_basic_block, init_resource_info): Modified.
3234         * sbitmap.c (sbitmap_intersection_of_succs,
3235         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3236         sbitmap_union_of_preds): Modified.
3237         * sched-deps.c (init_dependency_caches): Modified.
3238         * sched-ebb.c (schedule_ebbs): Modified.
3239         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3240         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3241         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3242         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3243         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3244         ssa_const_prop): Modified.
3245         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3246         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3247         * ssa.c (remove_phi_alternative, find_evaluations,
3248         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3249         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3250         make_regs_equivalent_over_bad_edges,
3251         make_equivalent_phi_alternatives_equival,
3252         compute_conservative_reg_partition,
3253         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3254         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3255         Modified.
3256
3257 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
3258
3259         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3260
3261 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
3262
3263         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3264         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3265         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3266         calling CONSTANT_POOL_ADDRESS_P.
3267         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3268         to decide whether to define __arm__ or __thumb.
3269         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3270         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3271
3272 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3273
3274         * config/arc/arc.h (CPP_PREDEFINES): Remove.
3275         (CPP_SPEC): Update.
3276         (TARGET_CPU_CPP_BUILTINS): New.
3277
3278 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3279
3280         * cpphash.h (cpp_macro): Move here, and make expansion a union.
3281         * cppmacro.c (cpp_macro): Remove.
3282         (enter_macro_context, replace_args, warn_of_redefinition,
3283         _cpp_create_definition, cpp_macro_definition): Update.
3284
3285 2002-05-16  Jason Merrill  <jason@redhat.com>
3286
3287         * config/mips/mips.c (mips_output_external): Don't do sdata
3288         optimization for a variable with DECL_COMDAT set.
3289
3290 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3291
3292         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3293         Cleanups for accepting modifiers on pointers.
3294         Fix predicate typos.
3295         Allow long pointers as well as int pointers.
3296
3297 2002-05-15  Richard Henderson  <rth@redhat.com>
3298
3299         * varasm.c (merge_weak): Remove special case for extern and common.
3300
3301 2002-05-15  Matt Hiller  <hiller@redhat.com>
3302
3303         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3304         XFAILing.
3305         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3306         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3307         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3308         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3309         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3310         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3311
3312 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3313
3314         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3315
3316 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3317
3318         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3319         ("altivec_mfvscr"): Read from VSCR.
3320
3321         Add vscr sets for the following insns: altivec_vctuxs,
3322         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3323         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3324         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3325         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3326         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3327         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3328         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3329         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3330         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3331         altivec_vsum2sws, altivec_vsumsws.
3332
3333         * config/rs6000/rs6000.h: Add VSCR fixed register.
3334         (CALL_REALLY_USED_REGISTERS): Add vscr.
3335         (CALL_USED_REGISTERS): Same.
3336         (FIXED_REGISTERS): Same.
3337         (REG_ALLOC_ORDER): Same.
3338         (reg_class): Add VSCR_REGS.
3339         (REG_CLASS_NAMES): Same.
3340         (REG_CLASS_CONTENTS): Same.
3341         (VSCR_REGNO): New.
3342         (REGISTER_NAMES): Add vscr.
3343         (DEBUG_REGISTER_NAMES): Same.
3344         (ADDITIONAL_REGISTER_NAMES): Same.
3345         (FIRST_PSEUDO_REGISTER): Increment.
3346         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3347
3348 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
3349
3350         * fold-const.c (fold): Fix a typo.
3351
3352 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
3353
3354         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3355         comparison against the highest or lowest integer value before
3356         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3357         transformation and that of an unsigned comparison against 0
3358         right after.
3359
3360 2002-05-15  Richard Henderson  <rth@redhat.com>
3361
3362         * varasm.c (merge_weak): Error for any weakening after definition.
3363         Adjust weakening after use warning to catch more cases.
3364         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3365         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3366
3367 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
3368
3369         * invoke.texi (-malign-double): Re-add lost warning.
3370
3371         * i386-protos.h (x86_output_mi_thunk): Declare.
3372         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3373         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3374
3375         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3376         when flag_asynchronous_unwind_tables is set.
3377
3378         * flags.h (flag_reorder_functions): Declare.
3379         * function.c (prepare_function_start): Initialize frequnecy.
3380         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3381         * Makefile.in (predict.o): Add dependency on target.h and params.h
3382         * defaults.h (HOT_TEXT_SECTION_NAME,
3383         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3384         * predict.c (choose_function_section): New function.
3385         (estimate_bb_frequencies): Use it.
3386         * toplev.c (flag_reorder_functions): New global variable.
3387         (lang_independent_options): New.
3388         (parse_options_and_default_flags): Set.
3389         * varasm.c (assemble_start_function): Bypass functdion alignment
3390         for never executed functions.
3391         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3392         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3393         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3394         Document.
3395
3396         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3397
3398         * predict.c: Inlude profile.h
3399         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3400         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3401         Use the information about maximal counter in the program.
3402
3403         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3404
3405         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3406         probably_never_executed_bb_p): New functions.
3407         * cfgcleanup.c (outgoing_edges_match): Use them.
3408         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3409         (maybe_hot_bb_p, probably_cold_bb_p,
3410         probably_never_executed_bb_p): New functions.
3411
3412         * function.h (function): Add new field function_frequency.
3413         * predict.c (compute_function_frequency): New function.
3414         (estimate_probability): Call it.
3415
3416 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3417
3418         PR optimization/5172, optimization/5200
3419         * gcse.c (gcse_main): Disable store_motion.
3420
3421 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
3422
3423         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3424         (c_common_nodes_and_builtins): Use it.
3425         (builtin_define_with_value): New function.
3426         (cb_register_builtins): Define __SIZE_TYPE__,
3427         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3428         using builtin_define_with_value.  Use consistent notation when
3429         defining __GXX_WEAK__.
3430         (WCHAR_TYPE_SIZE): Don't redefine.
3431         (combine_strings): Don't use WCHAR_TYPE_SIZE.
3432
3433         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3434         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3435         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3436         * tradcpp.c (initialize_builtins): Likewise.
3437         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3438
3439         * c-lex.h (builtin_define_with_value): Prototype.
3440         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3441         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3442         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3443
3444         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3445         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3446         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3447         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3448         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3449         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3450         config/sparc/sol2-bi.h, config/sparc/sparc.h:
3451         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
3452         to __SIZE_TYPE__ etc from all spec strings. When this makes
3453         extra specs empty, delete them.
3454
3455 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3456
3457         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3458         for PA8000 or generating dwarf2 call frame information.
3459         (output_call): Remove DO_FRAME_NOTES check from return pointer
3460         optimization.
3461         (following_call): Return 0 when scheduling for PA8000 or generating
3462         dwarf2 call frame information.  Revise comment.
3463
3464 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3465
3466 config/alpha:
3467         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3468         and __IEEE_FP_INEXACT as appropriate.
3469         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3470         (CPP_SPEC): Remove ieee defines.
3471         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3472
3473 2002-05-14  Richard Henderson  <rth@redhat.com>
3474
3475         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3476         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3477
3478 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3479
3480         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3481         (CPP_SPEC): Update.
3482         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3483         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3484         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3485         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3486         (EXTRA_SPECS): Update.
3487         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3488         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3489         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3490         define TARGET_OS_CPP_BUILTINS if necessary.
3491
3492 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3493
3494         * gcc.c (cpp_options): Must pass -m* and -f* options
3495         to the front end even when only preprocessing.
3496         (cc1_options): Remove redundant -lang-c.
3497         * tradcpp.c (main): Ignore -m options.
3498 objc:
3499         * lang-specs.h: Similarly.
3500
3501 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3502
3503         * genautomata.c (transform_3): Add code for transformation
3504         `(A,B,...)+C -> A+C,B,...'.
3505
3506 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3507
3508         * final.c (end_final): Do not output profile_arcs constructor, when
3509         no functions are instrumented.
3510
3511 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3512
3513         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3514
3515 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3516
3517         * doc/install.texi: Remove special markup originally required for
3518         HTML generation with texi2html.
3519
3520 2002-05-14  Andreas Schwab  <schwab@suse.de>
3521
3522         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3523         SELECT_SECTION.
3524         (UNIQUE_SECTION): Define to get small data correctly.
3525
3526         * varasm.c (resolve_unique_section): Add third parameter
3527         flag_function_or_data_sections and use it instead of
3528         flag_function_sections.
3529         (assemble_start_function): Pass flag_function_sections.
3530         (asm_emit_uninitialised): Pass flag_data_sections.
3531         (assemble_variable): Likewise.
3532
3533 2002-05-14  Richard Henderson  <rth@redhat.com>
3534
3535         * config/i386/i386.md: Use define_constants for unspec numbers.
3536         * config/i386/i386.c: Likewise.
3537
3538 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3539
3540         * doc/contrib.texi: Update my entry.
3541
3542 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3543
3544         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3545         * fixinc/fixincl.x: Regenerated.
3546         * fixinc/tests/base/math.h: Update.
3547         * fixinc/tests/base/testing.h: Likewise.
3548
3549 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3550
3551         * genattr.c (gen_attr): Don't emit a comma after the last
3552         enumerator.
3553
3554 2002-05-13  Richard Henderson  <rth@redhat.com>
3555
3556         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3557         by non-local gotos.
3558         * recog.c (peephole2_optimize): Likewise.
3559
3560 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3561
3562         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3563         input to O_BINARY.
3564
3565 2002-05-13  Jeffrey A Law  (law@redhat.com)
3566
3567         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3568         Update prototype and callers.
3569         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3570         the mem_set_list which reference the stack pointer, as do
3571         calls to constant functions as they may clobber outgoing
3572         argument space.
3573
3574         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3575
3576         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3577         (ia32_multipass_dfa_lookahead): New function.
3578
3579 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3580
3581         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3582         (translate_options): Remove 'V'.
3583         (process_command): Similarly.
3584 doc:
3585         * invoke.texi: Remove documentation of 'V'.
3586
3587 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3588
3589         * config/s390/linux.h: Revert 2002-04-22 changes.
3590
3591 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3592
3593         * config/fr30/fr30.md: Only allow splits of immediate loads
3594         if the destination is a register.
3595
3596 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3597
3598         * Makefile.in (c-common.o, cppinit.o): Update.
3599         * c-common.c: Include except.h.
3600         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3601         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3602         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3603         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3604         CPP_PREDEFINES): Handle here.
3605 config:
3606         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3607         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3608         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3609         TARGET_OS_CPP_BUILTINS.
3610         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3611         (CPP_SPEC, EXTRA_SPECS): Update.
3612         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3613         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3614         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3615         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3616         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3617 doc:
3618         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3619         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3620
3621 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3622
3623         * emit-rtl.c (global_rtl): Update comment.
3624         (const_double_htab, const_double_htab_hash,
3625         const_double_htab_hash, lookup_const_double): New.
3626         (const_int_htab_hash, const_int_htab_eq): Remove const
3627         qualifiers, which cause tons of warnings with RTL checking on.
3628         (gen_rtx_CONST_DOUBLE): Deleted.
3629         (const_double_from_real_value): New function - bears some
3630         resemblance to the former immed_real_const_1.
3631         (immed_double_const): Moved here from varasm.c and
3632         simplified.
3633         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3634         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3635         (gen_rtx): Use immed_double_const.
3636         (init_emit_once): Initialize the const_double_htab.  Use
3637         REAL_VALUE_FROM_INT where possible.  Can now use
3638         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3639         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3640         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3641         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3642         (init_varasm_status, mark_varasm_status): Don't touch
3643         x_const_double_chain.
3644
3645         * output.h: Delete prototype for clear_const_double_mem.
3646         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3647         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3648         const_double_from_real_value, not immed_real_const_1, and use
3649         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3650         CONST_DOUBLE_ATOF.
3651         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3652         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3653         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3654         (gen_rtx_REG): Second arg is unsigned.
3655
3656         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3657         (excluded_rtx): New, return true for CONST_DOUBLE.
3658         (genmacro): Write nothing for excluded codes.
3659         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3660         * expr.c (expand_expr): Likewise.
3661         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3662         CONST_DOUBLE_CHAIN.
3663         * toplev.c (rest_of_compilation): Don't call
3664         clear_const_double_mem.
3665
3666         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3667         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3668         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3669         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3670         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3671         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3672         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3673         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3674
3675 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3676
3677         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3678
3679 2002-05-12  Tom Tromey  <tromey@redhat.com>
3680
3681         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3682
3683 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3684
3685         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3686         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3687         * gensupport.h: Prototype new routines.
3688         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3689         use of printf.
3690         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3691         (next_comma_elt): Use scan_comma_elt.
3692
3693         * config/i386/i386.md: Use new attribute notation to break up
3694         long lines in define_attr forms.
3695
3696 2002-05-12  Richard Henderson  <rth@redhat.com>
3697
3698         * expr.c (compress_float_constant): New.
3699         (emit_move_insn): Use it.
3700         (float_extend_from_mem): New.
3701         (init_expr_once): Initialize it.
3702         * real.c (exact_real_truncate): New.
3703
3704         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3705         dropped into memory; penalize for size.
3706         (RTX_COSTS): FLOAT_EXTEND is free.
3707         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3708         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3709
3710 2002-05-12  Richard Henderson  <rth@redhat.com>
3711
3712         * profile.h (profile_info): Add missing extern to declaration.
3713         * profile.c (profile_info): Define it.
3714
3715 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3716
3717         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3718         used for DImode and TImode.
3719
3720 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3721
3722         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3723         fake a newline.
3724
3725 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3726
3727         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3728         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3729         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3730         (rs6000_override_options): Handle -m(no-)longcall.
3731         (init_cumulative_args, output_mi_thunk): Check for both
3732         longcall and shortcall attributes on the function.
3733         (rs6000_attribute_table): Add "shortcall".
3734         (rs6000_handle_longcall_attribute): Update comment.
3735         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3736         altivec_expand_ternop_builtin): Add default clauses to switches
3737         to silence warnings.
3738
3739         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3740         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3741         (TARGET_OPTIONS): Add longcall and no-longcall.
3742
3743         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3744         call_value_nonlocal_sysv): Split by alternatives.  One pair
3745         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3746         the call cookie.  The other pair accepts only LR/CTR and has
3747         no restriction.
3748
3749         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3750         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3751         tmake_file.
3752         * config/rs6000/rs6000-c.c: New file.
3753         * config/rs6000/t-rs6000-c-rule: New file.
3754         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3755         Prototype rs6000_pragma_longcall.
3756
3757         * doc/extend.texi: Document shortcall attribute.
3758         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3759
3760 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3761
3762         * reorg.c (dbr_schedule): Remove unnecessary test.
3763
3764 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3765
3766         * i386.md (testsi to testqi spliters): New.
3767
3768         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3769
3770         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3771
3772         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3773
3774         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3775         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3776         that can be made fallthru.
3777
3778         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3779
3780         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3781         (cfg_layout_initialize): Use it.
3782
3783 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3784
3785         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3786         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3787         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3788
3789 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3790
3791         * dbxout.c: Fix formatting.
3792         * dependence.c: Likewise.
3793         * df.c: Likewise.
3794         * diagnostic.c: Likewise.
3795         * doloop.c: Likewise.
3796         * dominance.c: Likewise.
3797         * doschk.c: Likewise.
3798         * dwarf2asm.c: Likewise.
3799         * dwarf2out.c: Likewise.
3800         * dwarfout.c: Likewise.
3801
3802 2002-05-10  Richard Henderson  <rth@redhat.com>
3803
3804         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3805         Convert integers constants as needed.  Replace "nwords" field with
3806         "sizeof_bb".
3807         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3808         * function.h: Fix typo in comment.
3809         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3810
3811 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3812
3813         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3814         into the equivalent (signed char)c > 0.
3815
3816 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3817
3818         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3819         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3820         (struct prefetch_info): Fix spelling of member bytes_accessed.
3821         (emit_prefetch_instructions): Make dump messages more regular;
3822         restructure code to add more dump messages; use new macros for
3823         heuristics. (There are no code generation changes in any of this).
3824
3825 2002-05-10  David S. Miller  <davem@redhat.com>
3826
3827         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3828         (struct rtx_def): Update unchanging flag comment.
3829         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3830         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3831         to be handled to INSN too.
3832         (dbr_schedule): Likewise.
3833         * resource.c (next_insn_no_annul): Likewise.
3834
3835         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3836         casing.
3837
3838 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3839
3840         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3841         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3842         (possibly) work around broken /bin/sh.
3843
3844 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3845
3846         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3847         . as N64/N32 libgcc_s.so subdirs.
3848
3849 2002-05-10  David S. Miller  <davem@redhat.com>
3850
3851         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3852
3853         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3854         more accurately.
3855         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3856         comment.
3857         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3858         * doc/rtl.texi: Document these macros more accurately.
3859         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3860         JUMP_INSNs and CALL_INSNs.
3861         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3862         or INSN_FROM_TARGET_P if the code is appropriate.
3863
3864 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3865
3866         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3867         before using SYMBOL_REF_FLAG (addr).
3868
3869         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3870         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3871         Make non-static.  Update all callers.
3872         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3873         New insns to clear/set/test a single bit in I/O address space.
3874
3875 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3876
3877         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3878
3879 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3880
3881         * Makefile.in: Update.
3882         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3883         builtin_define_std): New.
3884         (c_common_init): Register CPP builtins callback.
3885         * c-common.h (flag_iso, flag_undef): New.
3886         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3887         * c-lex.c: Don't include target.h.
3888         (cb_register_builtins): Move to c-common.c.
3889         (init_c_lex): Don't register hook here.
3890         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3891         (cpp_define, cpp_assert): Remove.
3892         * gcc.c (cc1_options): Pass -undef to front end.
3893         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3894         (TARGET_INITIALIZER): Update.
3895         * target.h (struct cpp_reader): Don't predeclare.
3896         (struct gcc_target): Remove cpp builtin hook.
3897         * tree.c (default_register_cpp_builtins): Remove.
3898 doc:
3899         * tm.texi: Update.
3900
3901 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3902
3903         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3904
3905 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3906
3907         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3908         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3909
3910 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3911
3912         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3913         * config/sparc/libgcc-sparc-glibc.ver: New file.
3914         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3915         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3916
3917 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3918
3919         PR target/6429
3920         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3921         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3922         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3923         base multilibs.
3924         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3925         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3926         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3927         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3928
3929 2002-05-09  Richard Henderson  <rth@redhat.com>
3930
3931         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3932         * config/ia64/ia64.c: Likewise.
3933
3934 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3935
3936         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3937         (save_restore_insns): Likewise.
3938         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3939         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3940
3941 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3942
3943         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3944         * i386.md: Move scheduling information into new files.
3945
3946         * i386.md (type attribute): Add "rotate" for rotate insns.
3947         (rotate insns): Set type to "rotate".
3948         (various attributes and function units): Treat rotate like shift.
3949         (pent_pair attribute): Only rotates by one bit position are
3950         pairable.
3951         (sbb insns): Explicitly set pent_pair attribute on a couple
3952         that were missing it.
3953
3954 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3955
3956         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3957         make sure that buffer starts on odd word address.
3958         (sh_va_arg): Skip odd fp registers when reading a double precision
3959         value.
3960
3961 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3962
3963         * tree.h (preserve_data, object_permanent_p, type_precision):
3964         Remove.
3965
3966 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3967
3968         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3969         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3970 doc:
3971         * cpp.texi: Update for removal of obsolete features.
3972
3973 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
3974                           Jeffrey A Law  (law@redhat.com)
3975
3976         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
3977         the DFA interface for Pentium processors.
3978         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3979         (attr_pent_pair, ix86_pent_find_pair): Remove.
3980         (ix86_sched_reorder_pentium): Remove.
3981         (ix86_sched_reorder): Remove reordering for Pentium.
3982         * i386.md (Pentium scheduling): Rewrite using DFA description.
3983
3984 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3985
3986         * cfganal.c (can_fallthru): Fix fast path.
3987         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3988         with edges to the next block.
3989
3990 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3991                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
3992
3993         * final.c (end_final): Use C trees to output data structures for profiling.
3994
3995         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3996         (profile.o): New dependency profile.h
3997         (final.o): New dependency profile.h
3998         * profile.h: New file. New global structure profile_info.
3999         * final.h (count_edges_instrumented_now): Declare.
4000         (current_function_cfg_checksum): Declare.
4001         (function_list): New structure.
4002         (functions_head, functions_tail): New static variables.
4003         (end_final): Emits more data, removed some -ax stuff.
4004         (final): Stores function names and chcksums.
4005         * gcov-io.h (__write_gcov_string): New function.
4006         (__read_gcov_string): New function.
4007         * gcov.c (read_profile): New function.
4008         (create_program_flow_graph): Uses read_profile instead of reading
4009         da_file.
4010         (read_files): Removed da_file checking, it's done by read_profile now.
4011         * libgcc2.c (bb_function_info): New structure.
4012         (bb): New field in structure, removed some -ax stuff.
4013         (__bb_exit_func): Changed structure of da_file.
4014         * profile.c (count_edges_instrumented_now): New global variable.
4015         (current_function_cfg_checksum): New global variable.
4016         (max_counter_in_program): New global variable.
4017         (get_exec_counts): New function.
4018         (compute_checksum): New function.
4019         (instrument_edges): Sets count_edges_instrumented_now.
4020         (compute_branch_probabilities): Uses get_exec_counts instead of
4021         reading da_file.
4022         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
4023         (init_branch_prob): Removed da_file checking, done in get_exec_counts
4024         now.
4025         (end_branch_prob): Removed da_file checking, done in get_exec_counts
4026         now.
4027         * gcov.texi: Updated information about gcov file format.
4028
4029 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
4030
4031         * sbitmap.c: Fix formatting.
4032         * scan.c: Likewise.
4033         * scan-decls.c: Likewise.
4034         * sched-deps.c: Likewise.
4035         * sched-ebb.c: Likewise.
4036         * sched-rgn.c: Likewise.
4037         * sched-vis.c: Likewise.
4038         * sdbout.c: Likewise.
4039         * sibcall.c: Likewise.
4040         * simplify-rtx.c: Likewise.
4041         * ssa.c: Likewise.
4042         * ssa-ccp.c: Likewise.
4043         * ssa-dce.c: Likewise.
4044         * stmt.c: Likewise.
4045         * stor-layout.c: Likewise.
4046         * stringpool.c: Likewise.
4047
4048 2002-05-09  David S. Miller  <davem@redhat.com>
4049
4050         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
4051
4052 2002-05-07  David S. Miller  <davem@redhat.com>
4053
4054         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
4055         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
4056         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
4057         library implementation clobbers the output before the inputs
4058         are fully consumed, use stack temporary for the output.
4059
4060 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
4061
4062         * config/netbsd.h (CPP_SPEC): Remove.
4063         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
4064         * config/i386/netbsd.h (CPP_SPEC): Define.
4065         * config/ns32k/netbsd.h (CPP_SPEC): Define.
4066         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
4067         * config/sparc/netbsd.h (CPP_SPEC): Define.
4068         * config/vax/netbsd.h (CPP_SPEC): Define.
4069
4070 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
4071
4072         * read-rtl.c: Fix formatting.
4073         * real.c: Likewise.
4074         * recog.c: Likewise.
4075         * regclass.c: Likewise.
4076         * regmove.c: Likewise.
4077         * reg-stack.c: Likewise.
4078         * reload1.c: Likewise.
4079         * reload.c: Likewise.
4080         * resource.c: Likewise.
4081         * rtlanal.c: Likewise.
4082         * rtl.c: Likewise.
4083         * rtl-error.c: Likewise.
4084
4085 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4086
4087         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
4088         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
4089
4090 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
4091
4092         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
4093         use __SSE2__ macro instead.
4094         * config/i386/xmmintrin.h: Likewise.
4095
4096 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
4097
4098         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
4099         and use it in all invocations of these macros.  Clean up comments.
4100         * rtl.c (rtl_check_failed_flag): Add an argument for the name
4101         of the flag access macro whose check failed.
4102         * doc/rtl.texi (Flags): Document additional flag uses.
4103
4104 2002-05-08  Robert Spier <rspier@pobox.com>
4105             Neil Booth  <neil@daikokuya.demon.co.uk>
4106
4107         PR preprocessor/6521
4108         * cppfiles.c (handle_missing_header): Don't do anything
4109         different for <> includes.
4110 doc:
4111         * cppopts.texi: Update documentation for -MG.
4112
4113 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4114
4115         * cpplex.c (cpp_interpret_charconst): Truncate as well as
4116         sign-extend.
4117 doc:
4118         * cpp.texi: Clarify multichar charconst valuation.
4119
4120 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4121
4122         * doc/invoke.texi: Document -mwindiss option.
4123
4124 2002-05-08  Jason Merrill  <jason@redhat.com>
4125
4126         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
4127
4128         * dwarf2out.c (gen_type_die): Abort on broken recursion.
4129
4130         PR c++/6381
4131         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
4132         REAL_CST.
4133
4134 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
4135
4136         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
4137         little-endian multilibs to override arm/thumb multilibs.
4138         Do not build hardware floating point multilibs, nor apcs-26
4139         multilibs for the Thumb.
4140
4141 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4142
4143         PR c/6569.
4144         * varasm.c (mark_weak): New function.
4145         (merge_weak): Use it.  Do not call declare_weak.
4146         (declare_weak): Use merge_weak.
4147
4148 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4149
4150         * cse.c (dead_libcall_p): Update counts.
4151         (delete_trivially_dead_insns): Update call of dead_libcall_p.
4152
4153 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
4154
4155         * cfglayout.c (function_tail_eff_head): Rename to ...
4156         (function_footer): ... this one.
4157         (unlink_insn_chain): New functions.
4158         (label_for_bb): Only call block_label and emit debug message.
4159         (record_effective_endpoints): Actually unlink the headers and footers.
4160         (fixup_reorder_cahin): Re-insert the unlinked sequences.
4161         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
4162         * cfglayout.h (struct reorder_block_def): New fields footer/header;
4163         remove eff_head/eff_end.
4164         * rtl.h (set_first_insn): Declare.
4165         * emit-rtl.c (set_first_insn): New function.
4166
4167         * cfglayout.c (fixup_reorder_chain): Dump duplicated
4168         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4169         cfg_layout_duplicate_bb): New global function.
4170         (duplicate_insn_chain): New static function.
4171         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4172         cfg_layout_duplicate_bb): Declare.
4173         (struct reorder_block_def): Add "original" field.
4174         * emit-rtl.c (emit_copy_of_insn_after): New function.
4175         * rtl.h (emit_copy_of_insn_after): Declare.
4176
4177         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
4178         (fixup_reorder_chain): properly handle edges to exit block.
4179
4180 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4181                                Jan Hubicka  <jh@suse.cz>
4182
4183         * basic-block.h (note_prediction_to_br_prob): declare.
4184         * c-semantics.c: Inlucde predit.h
4185         (expand_stmt): predict GOTO_STMT as not taken.
4186         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4187         (cleanup_cfg): Do not free tail_recursion_list.
4188         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4189         (flow_delete_block): Kill predictions past end of basic block.
4190         * output.h (delete_unreachable_blocks): Declare.
4191         * predict.c (predicted_by_p, process_note_predictions,
4192         process_note_prediction, last_block_p): New function.
4193         (estimate_probability): Bypass loop on PRED_CONTINUE;
4194         do not handle noreturn heuristics; kill PRED_RETURN; add
4195         PRED_EARLY_RETURN.
4196         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4197         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4198         * predict.h (IS_TAKEN): New constant.
4199         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4200         * rtl.c (NOTE_INSN_PREDICTION): New.
4201         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4202         New macro.
4203         (insn_note): add NOTE_INSN_PREDICTION.
4204         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4205         CFG; free tail_recursion_label_list.
4206         * stmt.c: Include predict.h;
4207         (return_prediction): New.
4208         (expand_value_return): Use it.
4209         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4210
4211 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
4212
4213         * config/mips/mips.md: Name the unspecs with define_constant.
4214         (*HILO_delay): Rename to 'hilo_delay' (no star).
4215         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4216         (reload_outdi, reload_outsi): Likewise.
4217
4218 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
4219
4220         * toplev.c: Fix formatting.
4221
4222 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
4223
4224         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4225         * configure.in (ac_rtlflag_checking): New.
4226         * doc/install.texi (--enable-checking): Document RTL flag checking.
4227
4228 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4229
4230         * c-common.c (c_common_init): Set options->unsigned_wchar.
4231         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4232         group target dependencies.
4233         (init_builtins, cpp_handle_option): Update.
4234         * cpplex.c (cpp_interpret_charconst): Update.
4235         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4236         signed_char to unsigned_char, group target dependencies.
4237         * defaults.h (WCHAR_UNSIGNED): Remove.
4238         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4239 config:
4240         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4241         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4242         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4243         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4244         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4245 doc:
4246         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4247
4248 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4249
4250         * fixinc/inclhack.def (windiss_math1): New fix.
4251         (windiss_math2): Likewise.
4252         (windiss_valist): Likewise.
4253         * fixinc/fixincl.x: Regenerated.
4254
4255 2002-05-07  Andreas Jaeger  <aj@suse.de>
4256
4257         * genautomata.c (output_internal_min_issue_delay_func): Add
4258         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4259         (output_internal_trans_func): Likewise.
4260
4261 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
4262
4263         * pa.c (hppa_profile_hook): Use force_reg to get the address
4264         of the profile hook into an appropriate pseudo register.
4265
4266 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4267
4268         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4269         (LINK_START_SPEC): Handle it.
4270         (LINK_OS_SPEC): Likewise.
4271         (CPP_SPEC): Likewise.
4272         (STARTFILE_SPEC): Likewise.
4273         (LIB_SPEC): Likewise.
4274         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
4275         all platforms.
4276         (CRTSAVRES_DEFAULT_SPEC): New macro.
4277         (LIB_WINDISS_SPEC): New macro.
4278         (CPP_OS_WINDISS_SPEC): Likewise.
4279         (STARTFILE_WINDISS_SPEC): Likewise.
4280         (ENDFILE_WINDISS_SPEC): Likewise.
4281         (LINK_START_WINDISS_SPEC): Likewise.
4282         (LINK_OS_WINDISS_SPEC): Likewise.
4283         * config/rs6000/windiss.h: New file.
4284
4285 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
4286
4287         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4288
4289 2002-05-06  David S. Miller  <davem@redhat.com>
4290
4291         * config/sparc/sparc.md (shift insns): Do not mask off
4292         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4293         take care of it.
4294
4295 2002-05-06  Richard Henderson  <rth@redhat.com>
4296
4297         PR c++/6212
4298         * expr.c (highest_pow2_factor_for_type): New.
4299         (expand_assignment): Use it.
4300
4301 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
4302
4303         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4304         unspec_volatile.
4305         ("altivec_mfvscr"): Same.
4306
4307 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4308
4309         * rtl.h (struct rtx_def): Update comments.
4310         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
4311         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
4312         RTL_FLAG_CHECK macros with list of expected RTL codes.
4313         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4314         (rtl_check_failed_flag): New.
4315         * reload1.c (reload): Use REG macro before changing rtx to MEM.
4316         (reload_cse_noop_set_p): Check rtx code before using access macro.
4317         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4318         before using access macro.
4319
4320 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4321
4322         * doc/rtl.texi (Flags): Update to reflect current usage.
4323
4324 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4325
4326         PR opt/3995
4327         * fold-const.c (sign_bit_p): New function.
4328         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4329         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4330         Reapply fold when converting (A & C) == C into (A & C) != 0.
4331         (fold_binary_op_with_conditional_arg): Fix typo in comment.
4332
4333 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4334
4335         * c-common.c (warn_multichar): New.
4336         (c_common_init): Set CPP's warn_multichar.
4337         * c-common.h (warn_multichar): New.
4338         * c-decl.c (warn_multichar): Remove.
4339         * c-lex.c (lex_charconst): Update.
4340         * c-tree.h (warn_multichar): Remove.
4341         * cppexp.c (eval_token): Sign-extend charconst value.
4342         * cppinit.c (cpp_create_reader): Set warn_multichar.
4343         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4344         each character.  Update prototype.  Sign-extend the result.
4345         * cpplib.h: Fix conditions.
4346         (struct cpp_options): Add new warning flag.
4347         (cpp_interpret_charconst): Update prototype.
4348 doc:
4349         * cpp.texi: Update documentation.
4350
4351 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
4352
4353         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4354         Fix typo in usage of allof instead of unit.
4355
4356 2002-05-06  Richard Henderson  <rth@redhat.com>
4357
4358         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4359         and any jump or call for IN.
4360
4361 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
4362
4363         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4364         -msse2.
4365         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4366
4367 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4368
4369         * fold-const.c (lshift-double): Cast the high word to an unsigned
4370         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4371         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4372         avoid compiler warning.  (fold): Remove redundant code from
4373         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4374
4375 2002-05-06  Jeff Law  <law@redhat.com>
4376
4377         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4378         * pa.c (pa_adjust_cost): Remove all true dependency cost
4379         adjustments.  Also remove support for non-DFA scheduling.
4380         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4381         to adjust true dependency costs.  Update various comments.
4382         (7100lc, 7200, 7300 scheduling): Simplify by combining the
4383         FP ALU & MPY units into a single unit.
4384
4385 2002-05-06  Catherine Moore  <clm@redhat.com>
4386
4387         * config/v850/v850.c (compute_register_save_size): Make sure
4388         to count all of the registers that will be saved.
4389
4390 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4391
4392         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4393
4394 2002-05-06  David S. Miller  <davem@redhat.com>
4395
4396         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4397         allow result to overlap input operands in memory.
4398
4399 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4400
4401 doc:
4402         * cpp.texi: Update multichar charconst docs.
4403
4404 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4405
4406         * cpplex.c (cpp_interpret_charconst): Sign-extend each
4407         character.  Don't ignore excess characters.  Treat
4408         multicharacter character constants as signed.
4409         (cpp_parse_escape): Clarify diagnostic.
4410
4411 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4412
4413         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4414         use add instead of shift.
4415         (ashldi3_sp64): Likewise.
4416         (ashlsi3_const1, ashldi3_const1): Remove.
4417         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4418         * config/sparc/sparc.c (const1_operand): New.
4419
4420 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
4421
4422         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4423
4424 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4425
4426         PR target/6561
4427         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4428
4429 2002-05-05  Richard Henderson  <rth@redhat.com>
4430
4431         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4432         memory latency adjustments.
4433         (alpha_variable_issue): Remove.
4434         (alpha_use_dfa_pipeline_interface): New.
4435         (alpha_multipass_dfa_lookahead): New.
4436         * config/alpha/alpha.md: Remove define_function_unit scheduling;
4437         include new dfa scheduling.
4438         (attr type): Add none.
4439         (blockage): Use it.
4440         * config/alpha/ev4.md: New.
4441         * config/alpha/ev5.md: New.
4442         * config/alpha/ev6.md: New.
4443
4444 2002-05-05  David S. Miller  <davem@redhat.com>
4445
4446         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4447
4448 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
4449
4450         * cse.c: Fix formatting.
4451         * emit-rtl.c: Likewise.
4452
4453 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4454
4455         * genautomata.c (initiate_states): Add additional guard to
4456         initialize `units_array'.
4457
4458 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4459
4460         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4461         process_unit_to_form_the_same_automaton_unit_lists,
4462         form_the_same_automaton_unit_lists
4463         check_unit_distributions_to_automata): New prototypes and
4464         functions.
4465         (check_automata): Rename it into `check_automata_insn_issues'.
4466         (unit_decl): New fields `the_same_automaton_unit' and
4467         `the_same_automaton_message_reported_p'.
4468         (unit_decl_t): New typedef.
4469         (the_same_automaton_lists): New gloval variable.
4470         (unit_regexp, unit_set_el, units_array, units_cmp,
4471         output_get_cpu_unit_code_func): Use the typedef.
4472         (evaluate_max_reserv_cycles): Increment
4473         `description->max_insn_reserv_cycles'.
4474         (initiate_states): Don't increment `max_cycles_num'.
4475         (transform_insn_regexps): Move code around transformation of
4476         regexps from `generate'.
4477         (generate): Remove call of `transform_insn_regexps'.
4478         (expand_automata): Call `transform_insn_regexps' and
4479         `check_unit_distributions_to_automata'.  Check errors before
4480         `generate'.
4481
4482         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4483         automaton `ultrasparc3_1'.
4484
4485 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4486
4487         * c-common.c (c_common_init): Set up CPP arithmetic.
4488         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4489         something reasonable for the host.
4490         (sanity_checks): Add checks.
4491         (cpp_read_main_file): Call sanity_checks() from here...
4492         (cpp_post_options): ... not here.
4493         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4494         * cpplib.h (struct cpp_options): New member int_precision.
4495
4496 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4497
4498         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4499
4500 2002-05-04  David S. Miller  <davem@redhat.com>
4501
4502         * config/sparc/linux.h, config/sparc/linux64.h
4503         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4504
4505         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4506         more RTX codes.
4507         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4508
4509         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4510         of SETs.
4511
4512 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4513
4514         * treelang; New directory for new sample language treelang.
4515
4516 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4517
4518         * Makefile.in (c-lex.o): Update.
4519         * c-lex.c: Include target.h.
4520         (cb_register_builtins): New.
4521         (init_c_lex): Set builtins callback.
4522         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4523         * cppinit.c (init_builtins): Use callback, including for
4524         GXX_WEAK.
4525         * cpplib.h (struct cpp_callbacks): New member.
4526         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4527         (TARGET_INITIALIZER): Update.
4528         * target.h (struct gcc_target): New hook.
4529         * tree.c (default_register_cpp_builtins): New.
4530         * tree.h (default_register_cpp_builtins): New.
4531 doc:
4532         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4533
4534 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4535
4536         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4537         (cpp_post_options): Move sanity checks to...
4538         (sanity_checks): New.
4539         * cpplex.c (maybe_read_ucs): Fix prototype.
4540         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4541         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4542         if necessary.
4543
4544 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4545
4546         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4547         builtins.  Use V2DI patterns instead of TI for logical operations.
4548         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4549         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4550         (ix86_expand_builtins): Change the pattern used for movntdq.
4551         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4552         sse2_nandv2di3): New patterns.
4553         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4554         on operands.
4555         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4556         (cvtdq2pd): Correct mode on operand 1.
4557         (sse2_umulsidi3): Describe without unspec.
4558         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4559         machine modes.
4560         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4561         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4562         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4563         ashlv4si3, ashlv2di3): Use SImode for shift count.
4564         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4565         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4566         New patterns.
4567         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4568         New typedefs.
4569         (__m128i, __m128d): New macros.
4570         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4571         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4572         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4573         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4574         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4575         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4576         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4577         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4578         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4579         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4580         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4581         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4582         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4583         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4584         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4585         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4586         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4587         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4588         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4589         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4590         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4591         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4592         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4593         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4594         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4595         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4596         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4597         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4598         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4599         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4600         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4601         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4602         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4603         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4604         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4605         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4606         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4607         functions.
4608         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4609         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4610
4611 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4612
4613         * dwarf2out.c: Fix formatting.
4614         * varasm.c: Likewise.
4615
4616 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4617
4618         PR c/6543
4619         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4620         clobber and use result as temporary value.
4621
4622 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4623
4624         * expr.c (force_operand): Use expand_simple_* to handle more
4625         cases.
4626
4627 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4628
4629         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4630         and sign-extension.
4631         (lex_charconst): Update for change in prototype of
4632         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4633         appropriately.
4634         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4635         * cppinit.c (cpp_create_reader): Initialize them for no
4636         change in semantics.
4637         (cpp_post_options): Add sanity checks.
4638         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4639         and truncation issues.  Calculate in type cppchar_t.
4640         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4641         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4642         run-time dependent precision correctly.  Return whether the
4643         result is signed or not.
4644         * cpplib.c (dequote_string): Use cppchar_t; update.
4645         * cpplib.h (cppchar_signed_t): New.
4646         struct cpp_options): New precision members.
4647         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4648         * cppexp.c (eval_token): Update.
4649
4650 2002-05-03  David S. Miller  <davem@redhat.com>
4651
4652         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4653         * config/sparc/sparc.c (sparc_rtx_costs): New function
4654         implementing RTX_COSTS and CONST_COSTS.
4655         * config/sparc/sparc.h (CONST_COSTS): Delete.
4656         (RTX_COSTS_CASES): Define.
4657         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4658         the work.
4659
4660         * config/sparc/sparc.md (DFA schedulers): Split out...
4661         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4662         config/sparc/sparclet.md, config/sparc/supersparc.md,
4663         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4664
4665         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4666         checks on it, always defined for Sparc.
4667
4668         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4669         Tweak, and add more detailed comments.
4670
4671 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4672
4673         * Re-apply patch accidentally reverted with
4674         DFA scheduler merge: remove all rules and variables to slurp
4675         source files out of libiberty and rebuild them with HOST_CC.
4676         ($(HOST_PREFIX_1)varray.o): New rule.
4677         (genattrtab rule): Word wrap.
4678
4679 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4680
4681         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4682         (CPP_SUBTARGET_SPEC): Define.
4683         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4684         cpp_subtarget specs.
4685         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4686
4687 2002-05-03  David S. Miller  <davem@redhat.com>
4688
4689         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4690         * target.h (struct gcc_target): Delete cycle_display member.
4691
4692         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4693         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4694         (ia64_sched_reorder2): Mention need for cycle display handling
4695         once such notes exist.
4696
4697 2002-05-03  Richard Henderson  <rth@redhat.com>
4698
4699         * real.c (etoasc): Strip most trailing zeros for clarity.
4700         * sched-vis.c: Include real.h.
4701         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4702         * Makefile.in (sched-vis.o): Add real.h.
4703
4704 2002-05-03  David S. Miller  <davem@redhat.com>
4705
4706         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4707         no longer needed.
4708
4709 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4710
4711         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4712         when we get an out of range literal.
4713         (altivec_expand_ternop_builtin): Same.
4714         (altivec_expand_unop_builtin): Same.
4715         (altivec_expand_builtin): Same, for dss.
4716         (altivec_expand_builtin): Use trees instead of rtl when
4717         determining literal argument validity.
4718
4719 2002-05-03  David S. Miller  <davem@redhat.com>
4720
4721         Delete cycle display scheduling hook.
4722         * config/ia64/ia64.c (ia64_cycle_display,
4723         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4724         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4725         and use emit_insn_before instead of ia64_emit_insn_before.
4726         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4727         (cycle_display): Delete insn pattern.
4728         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4729         (cycle_display): Delete insn pattern.
4730         * config/sparc/sparc.c (sparc_cycle_display,
4731         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4732         * doc/md.texi (cycle_display): Don't mention.
4733         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4734
4735 2002-05-03  Richard Henderson  <rth@redhat.com>
4736
4737         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4738         * recog.h: Declare them.
4739
4740         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4741         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4742         * config/sparc/sparc-protos.h: Update.
4743
4744 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4745
4746         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4747         -D__arch64__.  Add -D_LP64.
4748         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4749         from sparc.h.
4750         (CPP_ARCH64_SPEC): Likewise.
4751         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4752         (NO_BUILTIN_SIZE_TYPE): Undef.
4753
4754 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4755
4756         * genautomata.c (min_issue_delay_pass_states): Change return type
4757         in the prototype.
4758         (min_issue_delay_pass_states): Change the algorithm.
4759         (min_issue_delay): Set up min_insn_issue_delay for the state.
4760         (output_min_issue_delay_table): Interchange the nested loops and
4761         and initiate min_insn_issue_delay for states.
4762
4763 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4764
4765         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4766         jump is simplejump.
4767
4768 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4769
4770         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4771         sequence.
4772
4773 2002-05-03  Richard Henderson  <rth@redhat.com>
4774
4775         PR opt/6534
4776         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4777         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4778         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4779         code before JUMP, not EARLIEST.
4780
4781 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4782
4783         * c-format.c (check_format_info_main): Don't check for presence of
4784         parameter for * width until after operand number has been read,
4785         and only check for it if format parameters are available.
4786         Fixes PR c/6547.
4787
4788 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4789
4790         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4791         (LINK_SPEC): Undef before defining.
4792
4793 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4794
4795         PR preprocessor/6489
4796         * tradcpp.c (fixup_newlines): New.
4797         (main, finclude): Use it.
4798
4799 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4800
4801         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4802         * config/mips/mips.c (mips_unique_section): Strip encoding from
4803         decl name.
4804
4805 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4806
4807         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4808         mode.
4809
4810 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4811
4812         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4813         (Specific): Removed buildstats references.
4814         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4815         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4816         Accomodate Solaris versions beyond 8.
4817         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4818         (Specific, *-*-solaris2.8): Removed, obsolete.
4819
4820 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4821
4822         PR target/6542
4823         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4824         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4825         fill leaf_reg_remap with identity.
4826         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4827
4828 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4829
4830         * config/h8300/crti.asm: Remove trailing spaces.
4831         * config/h8300/h8300.c: Likewise.
4832         * config/h8300/lib1funcs.asm: Likewise.
4833
4834 2002-05-02  Jason Merrill  <jason@redhat.com>
4835
4836         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4837         * c-decl.c (c_init_decl_processing): Use it.
4838         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4839         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4840         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4841
4842 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4843
4844         * regrename.c: Fix formatting.
4845         * tree.c: Likewise.
4846
4847 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4848
4849         * i386.md (attribute memory): Handle compares properly.
4850
4851 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4852
4853         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4854         to none.
4855
4856 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4857
4858         * function.c: Fix formatting.
4859
4860 2002-05-02  Jan Hubicka  <jh@suse.cz>
4861
4862         * haifa-sched.c (schedule_insn): Print table of instructions and
4863         reservations.
4864         (sched_block): Do not print ready list at verbosity level 1.
4865         * sched-vis.c (print_insn): Make global.
4866         * sched-ebb.c (ebb_print_insn): Rename from...
4867         (print_insn): ... this one.
4868         * sched-int.h (print_insn): Declare
4869
4870 2002-05-02  Richard Henderson  <rth@redhat.com>
4871
4872         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4873         emitted by cycle_display.
4874
4875 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4876
4877         * doc/install.texi (*-*-freebsd*): Update to latest status.
4878
4879 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4880
4881         PR target/6540
4882         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4883         * config/float-sparc.h: Assume 128-bit long double if
4884         __LONG_DOUBLE_128__ is defined.
4885
4886 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4887
4888         * genattrtab.c (write_function_unit_info): Add a dummy element
4889         when num_units == 0.
4890
4891 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4892
4893         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4894         TYPE_MODE (double_type_node) instead of DFmode.
4895
4896 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4897
4898         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4899         jumps post reload.
4900         * toplev.c (rest_of_compilation): Revert Richard's patch.
4901
4902 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4903
4904         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4905
4906 2002-05-02  Catherine Moore  <clm@redhat.com>
4907
4908         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4909
4910 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4911
4912         * combine.c: Fix comment typos.
4913         * expr.c: Likewise.
4914         * genautomata.c: Likewise.
4915         * stmt.c: Likewise.
4916         * tree.h: Likewise.
4917
4918 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4919
4920         * doc/install.texi: State GNAT version requirements.
4921
4922 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4923
4924         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4925         of the frame pointer or arg pointer register which strict register
4926         checking is not enabled.
4927
4928 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4929
4930         * gcc.dg/altivec-8.c: New.
4931
4932         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4933         PRE_INC and PRE_DEC for altivec modes.
4934
4935 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4936
4937         * fixinc/check.tpl(set-writable): make sure the function exists first
4938         * fixinc/inclhack.def(alpha_assert): fix test_text
4939         * fixinc/tests/base/assert.h: add in missing result
4940
4941 2002-05-01  Jeff Law  <law@redhat.com>
4942
4943         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4944         'T' constraint.
4945
4946 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4947
4948         * dbxout.c (dbxout_type): Emit size information for range types,
4949         as well, but only when using GDB extensions.
4950
4951 2002-05-01  Richard Henderson  <rth@redhat.com>
4952
4953         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4954         target-independent gnu binutils date test.
4955
4956 2002-05-01  Richard Henderson  <rth@redhat.com>
4957
4958         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4959         info before expunging the block.
4960
4961 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4962
4963         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4964         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4965         -M -or -MM is in effect.
4966
4967 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4968
4969         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4970         A29k configurations.
4971         * doc/install.texi: Update to match.
4972
4973 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4974
4975         PR bootstrap/6514
4976         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4977         for duplicates. Always loop over whole list.
4978
4979 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4980
4981         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4982
4983 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4984
4985         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4986         support routines.
4987
4988 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4989
4990         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4991
4992 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
4993
4994         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4995         (nabs_nopower): Same.
4996         (floatdisf2): New pattern.
4997         (absdi2): Convert to define_insn_and_split.
4998         (nabsdi2): Same.
4999         (trunctfsf2): Same.
5000         (floatditf2): Same.
5001         (floatsitf2): Same.
5002         (fix_trunctfdi2): Same.
5003         (fix_trunctfsi2): Same.
5004
5005 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
5006
5007         * doc/install.texi: Update Texinfo version requirement
5008         documentation.
5009
5010 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
5011
5012         PR target/6512, PR target/5628
5013         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
5014         when memory is not aligned.
5015         (movdf_insn_v9only_vis): Likewise.
5016         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
5017         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
5018         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
5019
5020 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
5021
5022         * gcc.dg/altivec-7.c: New.
5023
5024         * config/rs6000/altivec.h: Cleanup.
5025
5026 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
5027
5028         * doc/invoke.texi (Option Summary): Add -mvrsave=.
5029         (RS/6000 and PowerPC Options): Document -mvrsave=.
5030
5031         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
5032         (rs6000_altivec_vrsave_string): Same.
5033         (rs6000_override_options): Call rs6000_parse_vrsave_option.
5034         (rs6000_parse_vrsave_option): New.
5035         (rs6000_stack_info): Only generate vrsave instructions when
5036         TARGET_ALTIVEC_VRSAVE.
5037
5038         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
5039         (rs6000_altivec_vrsave_string): Define extern.
5040         (rs6000_altivec_vrsave): Same.
5041         (TARGET_ALTIVEC_VRSAVE): New.
5042
5043 2002-04-30  Richard Henderson  <rth@redhat.com>
5044
5045         PR opt/6516
5046         * toplev.c (rest_of_compilation): Don't run cross-jump before
5047         bb-reorder.
5048
5049 2002-04-30  Tom Rix  <trix@redhat.com>
5050
5051         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
5052         check which_alternative.
5053
5054 2002-04-30  Kazu Hirata  <kazu@hxi.com>
5055
5056         * cpplex.c: Fix comment formatting.
5057         * function.c: Likewise.
5058         * integrate.c: Likewise.
5059         * regrename.c: Likewise.
5060         * sibcall.c: Likewise.
5061         * simplify-rtx.c: Likewise.
5062         * tree-inline.c: Likewise.
5063
5064 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5065
5066         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
5067         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
5068         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
5069         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
5070         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
5071         * pa/x-ada: New file.  Define ADA_CFLAGS.
5072
5073 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
5074
5075         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
5076         from MMIX_LAST_REGISTER_FILE_REGNUM.
5077         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
5078         (struct machine_function): New member highest_saved_stack_register
5079         previously static variable in mmix.c.
5080         (MACHINE_DEPENDENT_REORG): Define.
5081         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
5082         (MMIX_OUTPUT_REGNO): New.
5083         (mmix_target_asm_function_prologue): Move calculation of last used
5084         saved-stack-register into...
5085         (mmix_machine_dependent_reorg): New function.  Update to also handle
5086         !TARGET_ABI_GNU.
5087         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
5088         register names, simplify somewhat by new variable regno.
5089         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
5090         register.
5091         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
5092         emitting register names.
5093         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
5094         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
5095         Remove fixed FIXME.
5096         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
5097         Declare.
5098
5099         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
5100
5101 2002-04-30  Richard Henderson  <rth@redhat.com>
5102
5103         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5104         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
5105         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
5106         emit_tfmode_cvt): New.
5107         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
5108         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
5109         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
5110         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
5111         * config/sparc/sparc-protos.h: Update.
5112
5113 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
5114
5115         * install.texi (Final install): Add to the list of info to include
5116         in a report of a successful bootstrap, and add link to 3.1 list.
5117
5118 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
5119
5120         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
5121         (mode): Add vector modes
5122         (i387): Kill attribute.
5123         (unit): New attribute.
5124         (length_immediate): Grok new types.
5125         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
5126         (modrm): Use "unit".
5127         (memory): Handle MMX/SSE properly.
5128         (scheduling descriptions): Kill uses of fop1.
5129         (sse, mmx, fp patterns): Set type and mode properly.
5130
5131 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
5132
5133         * pa.c (override_options): Default to PA8000 scheduling.
5134         * doc/invoke.texi (HP-PA options): Mention newly added 7300
5135         scheduling parameter.
5136
5137         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
5138         handling of double precision multiplies.
5139
5140         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
5141         fpdiv and fpsqrt instructions.
5142         (7200 & 7300 scheduling): Fix typo in handling of
5143         store-load and store-store penalties.
5144
5145 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5146
5147         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
5148         mips.  Add two missing commas.
5149
5150 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
5151
5152         * doc/contrib.texi (Contributors): Update Paolo Carlini's
5153         and Benjamin Kosnik's entries.
5154
5155 2002-04-29  David S. Miller  <davem@redhat.com>
5156
5157         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
5158         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5159         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
5160         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5161
5162 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5163
5164         * combine.c (find_split_point): Use gen_int_mode.
5165
5166 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5167
5168         Merging code from dfa-branch:
5169
5170         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5171
5172         * genautomata.c (output_reserv_sets): Fix typo.
5173
5174         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
5175
5176         * genautomata.c (output_reserv_sets): Remove
5177         next_cycle_output_flag.
5178
5179         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
5180
5181         * sched-rgn.c (init_ready_list): Make the DFA code handle
5182         USE/CLOBBER insns in the same way as the traditional
5183         scheduler.
5184         (new_ready): Similarly..
5185
5186         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
5187
5188         * haifa-sched.c (schedule_block): Change the DFA state only after
5189         issuing insn.
5190
5191         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
5192
5193         * pa.c (hppa_use_dfa_pipeline_interface): New function.
5194         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5195         (override_options): Add PA7300 scheduling support.
5196         (pa_adjust_cost): Update various comments.  Properly
5197         handle anti and output dependencies when using the
5198         DFA scheduler.
5199         (pa_issue_rate): Add PA7300 scheduling support.
5200         (pa_can_combine_p): Call extract_insn before calling
5201         constrain_operands (taken from mainline tree).
5202         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5203         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
5204         descriptions using DFA descriptions.  Add PA7300
5205         scheduling support.
5206
5207         2002-03-30  David S. Miller  <davem@redhat.com>
5208
5209         Add UltraSPARC-III DFA scheduling support.
5210         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5211         Update FP conditional move on register insn patterns to use it, as
5212         appropriate.
5213         (define_attr cpu): Add ultrasparc3.
5214         (define_attr us3load_type): New, update integer load patterns to
5215         set it, as appropriate.
5216         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5217         (rest): Add UltraSPARC3 scheduling description.
5218         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5219         (PROCESSOR_ULTRASPARC3): New.
5220         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5221         ({ASM,CPP}_CPU_SPEC): Likewise.
5222         (REGISTER_MOVE_COST): Likewise.
5223         (RTX_COSTS): Likewise.
5224         * config/sparc/sparc.c (sparc_override_options,
5225         sparc_initialize_trampoline, sparc64_initialize_trampoline,
5226         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5227         sparc_issue_rate): Likewise.
5228         * config/sparc/sol2.h: Likewise.
5229         * config/sparc/sol2-sld-64.h: Likewise.
5230         * config/sparc/linux64.h: Likewise.
5231
5232         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
5233
5234         * doc/md.texi: Add comments about usage the latency time for the
5235         different dependencies and about case when two or more conditions
5236         in different define_insn_reservations returns TRUE for an insn.
5237
5238         * doc/md.texi: Add reference for automaton based pipeline
5239         description.
5240
5241         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
5242
5243         * doc/passes.texi: Add missed information about genattrtab.
5244
5245         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
5246
5247         * genautomata.c (output_automata_list_transition_code): Check
5248         automata_list on NULL.
5249
5250         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
5251
5252         * genautomata.c (output_insn_code_cases,
5253         output_automata_list_min_issue_delay_code,
5254         output_automata_list_transition_code,
5255         output_automata_list_state_alts_code): Comment the functions.
5256
5257         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
5258
5259         * genautomata.c (automata_list_el_t): New typedef.
5260         (get_free_automata_list_el,free_automata_list_el,
5261         free_automata_list, automata_list_hash, automata_list_eq_p,
5262         initiate_automata_lists, automata_list_start, automata_list_add,
5263         automata_list_finish, finish_automata_lists,
5264         output_insn_code_cases, output_automata_list_min_issue_delay_code,
5265         output_automata_list_transition_code,
5266         output_automata_list_state_alts_code, add_automaton_state,
5267         form_important_insn_automata_lists): New functions and prototypes.
5268         (insn_reserv_decl): Add members important_automata_list and
5269         processed_p.
5270         (ainsn): Add members important_p.
5271         (automata_list_el): New structure.
5272         (first_free_automata_list_el, current_automata_list,
5273         automata_list_table): New global variables.
5274         (create_ainsns): Initiate member important_p.
5275         (output_internal_min_issue_delay_func): Generate the switch and
5276         call output_insn_code_cases.
5277         (output_internal_trans_func, output_internal_state_alts_func):
5278         Ditto.
5279         (generate): Call initiate_automata_lists.
5280         (automaton_states): New global variable.
5281         (expand_automata): Call form_important_insn_automata_lists.
5282         (write_automata): Call finish_automata_lists.
5283
5284         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
5285
5286         * genautomata.c (add_excls, add_presence_absence): Check that
5287         cpu units in the sets belong the same automaton.
5288
5289         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5290         about that cpu units in the sets belong the same automaton.
5291
5292         * doc/md.texi: Ditto.
5293
5294         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
5295                     Nitin Gupta  <niting@noida.hcltech.com>
5296
5297         * config/sh/sh.c (sh_use_dfa_interface): New function.
5298
5299         (sh_issue_rate): New Function.
5300         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5301         TARGET_SCHED_ISSUE_RATE: define.
5302
5303         * config/sh/sh.md: Add DFA based pipeline description for SH4.
5304
5305         (define_attr insn_class): New attribute used for DFA
5306          scheduling.
5307         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5308         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5309          cmpeqdi_t): Likewise.
5310
5311         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5312          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5313          ex_group.
5314         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5315
5316         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5317
5318         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5319         break.
5320
5321         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5322
5323         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5324         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5325         necessary.
5326         (output_dfa_start_func): Initiate new variable insn_codes_length,
5327         (write_automata): Output definition of the new variable.
5328
5329         2001-10-02  David S. Miller  <davem@redhat.com>
5330
5331         * haifa-sched.c (advance_one_cycle): New function.
5332         (schedule_block): Use it.
5333         (queue_to_ready): Use it, and also make sure to advance the DFA
5334         state on all stall cycles, not just those where insn_queue links
5335         are found.
5336
5337         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
5338
5339         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
5340         non-zero if the highest-priority instruction could be scheduled.
5341         (choose_ready): Remove last argument from max_issue call.
5342
5343         2001-09-28  David S. Miller  <davem@redhat.com>
5344
5345         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5346         ultrasparc and 3 for other multi-issue sparcs.
5347
5348         2001-09-27  David S. Miller  <davem@redhat.com>
5349
5350         * config/sparc/sparc.md (cycle_display): New pattern.
5351         * config/sparc/sparc.c (sparc_cycle_display): New.
5352         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5353
5354         2001-09-25  David S. Miller  <davem@redhat.com>
5355
5356         Convert all of Sparc scheduling to DFA
5357         * config/sparc/sparc.md: Kill all define_function_unit
5358         directives and replace with DFA equivalent.
5359         * config/sparc/sparc.c (ultrasparc_adjust_cost,
5360         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5361         ultra_fpmode_conflict_exists, ultra_find_type,
5362         ultra_build_types_avail, ultra_flush_pipeline,
5363         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5364         ultrasparc_variable_issue, ultrasparc_sched_init,
5365         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5366         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5367         ultra_cur_hist, ultra_cycles_elapsed): Kill.
5368         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5369         ultrasparc_store_bypass_p): New.
5370         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5371         Declare.
5372
5373         2001-09-24  David S. Miller  <davem@redhat.com>
5374
5375         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5376         ready->vec[foo] not ready[foo].
5377
5378         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5379
5380         * doc/md.texi: Correct examples for define_insn_reservations
5381         `mult' and `div'.
5382
5383         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5384
5385         * genautomata.c (create_automata): Print message about creation of
5386         each automaton.
5387         (generate): Remove printing meease about creation of
5388         automata.
5389
5390         2001-09-05  David S. Miller  <davem@redhat.com>
5391
5392         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5393         * config/sparc/linux64.h: Likewise.
5394
5395         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
5396
5397         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5398         schedule_block, sched_init, sched_finish): Add missed calls of
5399         use_dfa_pipeline_interface.
5400
5401         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5402         Ditto.
5403
5404         * sched-vis.c (get_visual_tbl_length): Ditto.
5405
5406         2001-08-27  Richard Henderson  <rth@redhat.com>
5407
5408         * genattr.c (main): Emit state_t even when not doing scheduling.
5409
5410         2001-08-27  Richard Henderson  <rth@redhat.com>
5411
5412         * genautomata.c (expand_automata): Always create a description.
5413
5414         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5415
5416         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5417         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5418         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5419         RTL constructions.
5420
5421         * genattr.c (main): New variable num_insn_reservations.  Increase
5422         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5423         pipeline hazard recognizer interface.
5424
5425         * genattrtab.h: New file.
5426
5427         * genattrtab.c: Include genattrtab.h.
5428         (attr_printf, check_attr_test, make_internal_attr,
5429         make_numeric_value): Move protypes into genattrtab.h.  Define them
5430         as external.
5431         (num_dfa_decls): New global variable.
5432         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5433         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5434         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5435         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5436
5437         * genautomata.c: New file.
5438
5439         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5440
5441         * sched-int.h: (curr_state): Add the external definition for
5442         automaton pipeline interface.
5443         (haifa_insn_data): Add comments for members blockage and units.
5444
5445         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5446         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5447         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5448         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5449         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5450         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5451         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5452         macros.
5453         (TARGET_SCHED): Use the new macros.
5454
5455         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5456         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5457         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5458         dfa_bubble): New members in gcc_target.sched.
5459
5460         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5461         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5462         (insn_queue): Redefine it as pointer to array.
5463         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5464         INSN_QUEUE_SIZE.
5465         (max_insn_queue_index_macro_value): New variable.
5466         (curr_state, dfa_state_size, ready_try): New varaibles for
5467         automaton interface.
5468         (ready_element, ready_remove, max_issue): New function prototypes
5469         for automaton interface.
5470         (choose_ready): New function prototype.
5471         (insn_unit, blockage_range): Add comments.
5472         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5473         FUNCTION_UNITS_SIZE == 0.
5474         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5475         actual_hazard, potential_hazard): Add comments.
5476         (insn_cost): Use cost -1 as undefined value.  Remove
5477         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5478         pipeline interface.
5479         (ready_element, ready_remove): New functions for automaton
5480         interface.
5481         (schedule_insn): Add new code for automaton pipeline interface.
5482         (queue_to_ready): Add new code for automaton pipeline interface.
5483         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5484         (debug_ready_list): Print newline when the queue is empty.
5485         (max_issue): New function for automaton pipeline interface.
5486         (choose_ready): New function.
5487         (schedule_block): Add new code for automaton pipeline interface.
5488         Print ready list before scheduling each insn.
5489         (sched_init): Add new code for automaton pipeline interface.
5490         Initiate insn cost by -1.
5491         (sched_finish): Free the current automaton state and finalize
5492         automaton pipeline interface.
5493
5494         * sched-rgn.c: Include target.h.
5495         (init_ready_list, new_ready, debug_dependencies): Add new code for
5496         automaton pipeline interface.
5497
5498         * sched-vis.c: Include target.h.
5499         (get_visual_tbl_length): Add code for automaton interface.
5500         (target_units, print_block_visualization):  Add comments.
5501
5502         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5503         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5504         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5505         (getruntime.o, genautomata.o): New entries.
5506         (genattrtab.o): Add new dependency file genattrtab.h.
5507         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5508         (getruntime.o, hashtab.o): New entries for canadian cross.
5509
5510         * doc/md.texi: Description of automaton based model.
5511
5512         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5513         Add comments.
5514         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5515         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5516         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5517         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5518         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5519         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5520         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5521         hook descriptions.
5522         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5523         MAX_DFA_ISSUE_RATE): New macro descriptions.
5524
5525         * doc/contrib.texi: Add dfa based scheduler contribution.
5526
5527         * doc/gcc.texi: Add more information about genattrtab.
5528
5529 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5530
5531         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5532         adjust_address_nv call.
5533
5534 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5535
5536         * doc/install.texi (Testing): Provide additional information, and
5537         a stronger encouragement, for running the testsuites.
5538
5539 2002-04-29  DJ Delorie  <dj@redhat.com>
5540
5541         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5542         given in upper case.
5543
5544 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5545
5546         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5547         Solaris 2 <widec.h> if missing.
5548         * fixinc/fixincl.x: Regenerate.
5549         * fixinc/tests/base/widec.h: New file.
5550
5551 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5552
5553         * toplev.c (f_options): Add "profile" switch so that
5554         -fno-profile can be used to disable -p.
5555
5556 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5557
5558         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5559         UV2DImode.
5560         * tree.c (build_common_tree_nodes_2): Likewise.
5561         * tree.h (enum tree_index): Likewise.
5562         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5563
5564         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5565         entries.
5566         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5567         (ix86_expand_builtin): Add support for SSE2 builtins.
5568         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5569         (VALID_SSE_REG_MODE): Use it.
5570         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5571         (enum ix86_builtins): Add SSE2 builtins.
5572         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5573         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5574         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5575         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5576         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5577         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5578         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5579         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5580         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5581         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5582         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5583         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5584         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5585         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5586         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5587         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5588         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5589         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5590         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5591         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5592         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5593         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5594         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5595         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5596         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5597         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5598         lfence_insn): New patterns.
5599         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5600         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5601
5602 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5603
5604         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5605
5606 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5607
5608         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5609         Janis Johnson.
5610         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5611         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5612         and CPU instead of cpu.
5613
5614 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5615
5616         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5617         variables.
5618         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5619         (rest_of_compilation): Do if conversion only when asked for.
5620         (parse_options_and_default_flags): Set new variables to 1 for -O1
5621         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5622
5623 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5624
5625         * i386.c (dbx64_register_map): Fix typo.
5626
5627 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5628
5629         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5630         real_one_half, real_bb_freq_max): New static variables.
5631         (debug_profile_bbauxs): Kill.
5632         (process_note_predictions): Kill unused variable.
5633         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5634         volatile double.
5635         (propagate_freq): Use REAL_ARITHMETICS.
5636         (estimate_bb_frequencies): Likevise; init new static variables.
5637         * Makefile.in (predict.o): Add dependency on real.h
5638
5639 2002-04-28  David S. Miller  <davem@redhat.com>
5640
5641         PR target/6500
5642         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5643         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5644         several {reads,writes} instead.
5645         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5646         Define.
5647
5648 2002-04-27  David S. Miller  <davem@redhat.com>
5649
5650         PR target/6494
5651         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5652         of the stack bias.
5653
5654         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5655         including signal.h and sys/ucontext.h, not needed.
5656
5657 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5658
5659         * varasm.c (output_constant_def): Correct test for not calling
5660         ENCODE_SECTION_INFO for INTEGER_CST.
5661
5662 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5663
5664         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5665         keep most cases as function eval_token.
5666         (eval_token): New function.
5667         (_cpp_parse_expr): Read token here for improved diagnostics.
5668         Don't use op_as_text.  Detect bad ':' here.
5669         (reduce): Don't detect bad ':' here.
5670         (op_as_text): Remove.
5671         * cpphash.h (_cpp_test_assertion): Change prototype.
5672         * cpplib.c (_cpp_test_assertion): Change prototype.
5673
5674 2002-04-28  Richard Henderson  <rth@redhat.com>
5675
5676         PR c/5154
5677         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5678         (ggc_mark_rtx_children): New.
5679
5680 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5681
5682         PR target/6496
5683         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5684         after call peepholes for UltraSPARC.
5685         (call + jump 64-bit peepholes): Remove.
5686
5687 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5688
5689         PR c/6497
5690         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5691         result as temporary value.
5692
5693 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5694
5695         PR c++/6396
5696         * toplev.c (rest_of_compilation): Only run regrename and copy
5697         propagation if optimizing.
5698
5699 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5700
5701         PR optimization/6475
5702         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5703         register of REGNO_DECL (i).
5704         * Makefile.in (reload1.o): Add $(TREE_H).
5705
5706 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5707
5708         * cppexp.c (lex): Update to use state.skip_eval.
5709         (struct op): Remove prio and flags members.
5710         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5711         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5712         (LEFT_ASSOC): New macro.
5713         (optab): New table of operator priorities and flags.
5714         (SHIFT): Update.
5715         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5716         malloc-ed parser stack.
5717         (reduce): New; reduce the operator stack.
5718         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5719         * cpphash.h (struct op): Predeclare.
5720         (struct cpp_reader): New members op_stack, op_limit.
5721         (struct lexer_state): New member skip_eval.
5722         (_cpp_parse_expr): Update.
5723         (_cpp_expand_op_stack): New.
5724         * cpplib.c (do_if): Update.
5725         * cppinit.c (cpp_create_reader): Create op stack.
5726         (cpp_destroy): And destroy it.
5727         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5728         (TTYPE_TABLE): Correct.
5729
5730 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5731
5732         PR c/6343
5733         * c-decl.c (duplicate_decls): Call merge_weak.
5734         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5735         * output.h (merge_weak): Prototype merge_weak.
5736         * varasm.c (merge_weak): New function.
5737         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5738         Mark RTL with SYMBOL_REF_WEAK.
5739
5740 2002-04-27  Kurt Garloff <garloff@suse.de>
5741
5742         * tree-inline.c (inlinable_function_p): Improve heuristics
5743         by using a smoother function to cut down allowable inlinable size.
5744         * param.def: Add parameters max-inline-insns-single,
5745         max-inline-slope, min-inline-insns that determine the exact
5746         shape of the above function.
5747         * param.h: Likewise.
5748
5749 2002-04-26  Richard Henderson  <rth@redhat.com>
5750
5751         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5752         (yyoverflow): Re-add.  Set them.
5753         (free_parser_stacks): New.
5754         * c-common.h: Declare it.
5755         * c-lex.c (c_common_parse_file): Call it.
5756
5757 2002-04-26  Richard Henderson  <rth@redhat.com>
5758
5759         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5760         for fallthru search.
5761
5762 2002-04-26  Eric Christopher  <echristo@redhat.com>
5763
5764         PR optimization/3700
5765         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5766         (TARGET_SCHED_ISSUE_RATE): Use.
5767
5768 2002-04-25  David S. Miller  <davem@redhat.com>
5769
5770         PR target/6422
5771         * reorg.c (optimize_skip): Do not allow exception causing
5772         instructions to be considered for delay slots.
5773         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5774         (relax_delay_slots): Do not try to consider exception causing
5775         instructions as redundant.
5776
5777 2002-04-26  Richard Henderson  <rth@redhat.com>
5778
5779         PR c/5225
5780         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5781
5782 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5783
5784         PR bootstrap/6445
5785         * config/i386/i386.md (untyped_call): Return the value in a float
5786         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5787         TARGET_80387.
5788
5789 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5790
5791         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5792         in unsigned-ness correctly.
5793
5794 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5795
5796         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5797         portable runtime model.
5798
5799 2002-04-26  Richard Henderson  <rth@redhat.com>
5800
5801         * c-parse.in (yyoverflow): Revert.
5802
5803 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5804             Richard Henderson  <rth@redhat.com>
5805
5806         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5807         result as temporary value.
5808
5809 2002-04-26  Richard Henderson  <rth@redhat.com>
5810
5811         PR c/3581
5812         * c-common.c (fix_string_type): Split out of ...
5813         (combine_strings): ... here.  Take a varray, not a tree list.
5814         (c_expand_builtin_printf): Use fix_string_type.
5815         * c-common.h: Update decls.
5816         * c-parse.in (string): Remove.  Update all uses to use STRING
5817         instead, and not call combine_strings.
5818         (yylexstring): New.
5819         (_yylex): Use it.
5820         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5821         (build_asm_stmt): Likewise.
5822         * objc/objc-act.c (my_build_string): Use fix_string_type.
5823         (build_objc_string_object): Build varray for combine_strings.
5824
5825 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5826
5827         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5828         x86-64.
5829
5830 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5831
5832         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5833         (HAVE_NO_R_OPERAND): Remove.
5834         (HAVE_VALUE): Remove.
5835         (op_to_prio): Update.
5836         (UNARY): Don't alter flags.
5837         (_cpp_parse_expr): want_value used to indicate whether
5838         a number or unary operator is expected next.  Distinguish
5839         unary and binary +/-.
5840         (op_as_text): Update for unary operators.
5841
5842 2002-04-25  Richard Henderson  <rth@redhat.com>
5843
5844         PR c/2161
5845         * c-parse.in (yyoverflow): New.
5846
5847 2002-04-25  Richard Henderson  <rth@redhat.com>
5848
5849         PR c/2098
5850         * c-common.c (shorten_compare): Simplfy conditions leading to
5851         the generation of a warning.
5852
5853 2002-04-25  Richard Henderson  <rth@redhat.com>
5854
5855         PR c/2035
5856         * expmed.c (extract_bit_field): Fall through to generic code rather
5857         than aborting on subreg special case.
5858
5859 2002-04-25  David S. Miller  <davem@redhat.com>
5860
5861         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5862         for DECL being NULL.
5863
5864 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5865
5866         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5867
5868 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5869
5870         * c-decl.c (grokdeclarator): Remove outdated ??? note
5871         on invalid declaration of flexible array members.
5872
5873 2002-04-25  Richard Henderson  <rth@redhat.com>
5874
5875         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5876
5877 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5878
5879         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5880         needed by the compiler, even if they are used as global regs.
5881
5882 2002-04-25  Matt Hiller  <hiller@redhat.com>
5883
5884         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5885         functions.
5886         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5887         of the corresponding functions.
5888         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5889         New prototypes.
5890
5891 2002-04-25  Matt Hiller  <hiller@redhat.com>
5892
5893         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5894
5895         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5896         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5897         registers, adjust comment accordingly.
5898         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5899         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5900         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5901         for coprocessor registers.
5902         (ADDITIONAL_REGISTER_NAMES): Include
5903         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5904
5905         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5906         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5907         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5908         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5909         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5910
5911         (mips_char_to_class): Adjust comment to include coprocessor
5912         constraint letters.
5913
5914         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5915         New functions.
5916         (mips_reg_names, mips_regno_to_class): Include coprocessor
5917         information.
5918         (mips_sw_reg_names): Ditto, make non-static.
5919         (mips_move_1word): Handle moves to and from coprocessor registers.
5920         (mips_move_2words): Handle moves to and from coprocessor
5921         registers.
5922         (mips_class_max_nregs, mips_register_move_cost): Handle
5923         coprocessor register classes.
5924         (override_options): Initialize mips_char_to_class and
5925         mips_hard_regno_mode_ok properly for coprocessor registers.
5926
5927         * config/mips/mips.md (movdi_internal, movdi_internal2,
5928         movsi_internal1, movsi_internal2): Add constraint-sets for
5929         coprocessor registers.
5930         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5931         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5932         isn't mips.
5933         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5934         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5935         isn't mips.
5936         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5937         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5938         isn't mips.
5939         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5940         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5941         isn't mips.
5942
5943         * doc/tm.texi: Document feature.
5944
5945 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5946
5947         * integrate.c (function_attribute_inlinable_p): Simplify.
5948         Check the table pointer is not NULL.
5949
5950 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5951
5952         * doc/c-tree.texi: Fix typo in introduction.
5953
5954 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5955
5956         * c-common.h (c_common_parse_file): Update.
5957         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5958         * c-lex.c (YYDEBUG): Get from c-lex.h.
5959         (c_common_parse_file): Update.
5960         * c-lex.h (YYDEBUG, yydebug): New.
5961         * c-parse.in (YYDEBUG): Get from c-lex.h.
5962         (c_set_yydebug): Remove.
5963         * c-tree.h (c_set_yydebug): Remove.
5964         * langhooks-def.h (lhd_do_nothing_i): New.
5965         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5966         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5967         * langhooks.c  (lhd_do_nothing_i): New.
5968         (lhd_set_yydebug): Remove.
5969         * langhooks.h (struct lang_hooks): Update.
5970         * toplev.c (set_yydebug): New.
5971         (compile_file): Update call to parse_file hook.
5972         (decode_d_option): Update.
5973 objc:
5974         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5975
5976 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
5977
5978         * loop.c (load_mems): Don't change the interface of called functions.
5979
5980         * calls.c (expand_call): Take current_function_pretend_args_size
5981         into account when setting argblock for sibcalls.
5982
5983 2002-04-24  Matt Hiller  <hiller@redhat.com>
5984
5985         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5986         * c-lex.c: Ditto.
5987
5988         * cpplex.c (skip_line_comment): Process comment one multibyte
5989         character at a time rather than one char at a time, if
5990         appropriate.
5991         (parse_string): Process string one multibyte character at a time
5992         rather than one char at a time, if appropriate.
5993         * c-lex.c (lex_string): Lex and copy multibyte strings
5994         appropriately.
5995         * cpplib.h (cppchar_t): Change to unsigned.
5996
5997 2002-04-24  Richard Henderson  <rth@redhat.com>
5998
5999         PR c/3467
6000         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
6001         for c99.
6002
6003 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
6004
6005         * sh.c (sh_va_arg): If argument was passed by reference,
6006         dereference the pointer.
6007
6008         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6009
6010         * sh.md (divsi3_i4_media): Use match_operand for input values
6011         rather than hard registers.
6012         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
6013         unnecessarily through hard registers.  Keep copies of pseudo
6014         registers outside of the libcall sequence.
6015
6016         * sh.md (casesi_shift_media): Add modes.
6017
6018         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
6019         values in memory.
6020
6021 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6022
6023         * attribs.c (c_common_attribute_table): Move table and handlers
6024         to c-common.c.
6025         (format_attribute_table, lang_attribute_table,
6026         lang_attribute_common): Remove.
6027         (init_attributes): Replace NULL pointers with pointers to the
6028         empty table.
6029         (handle_packed_attribute, handle_nocommon_attribute,
6030         handle_common_attribute, handle_noreturn_attribute,
6031         handle_noinline_attribute, handle_always_inline_attribute,
6032         handle_used_attribute, handle_unused_attribute,
6033         handle_const_attribute, handle_transparent_union_attribute,
6034         handle_constructor_attribute, handle_destructor_attribute,
6035         handle_mode_attribute, handle_section_attribute,
6036         handle_aligned_attribute, handle_weak_attribute,
6037         handle_alias_attribute, handle_visibility_attribute,
6038         handle_no_instrument_function_attribute, handle_malloc_attribute,
6039         handle_no_limit_stack_attribute, handle_pure_attribute,
6040         handle_deprecated_attribute, handle_vector_size_attribute,
6041         vector_size_helper): Move to c-common.c.
6042         * c-common.c (c_common_attribute_table,
6043         handle_packed_attribute, handle_nocommon_attribute,
6044         handle_common_attribute, handle_noreturn_attribute,
6045         handle_noinline_attribute, handle_always_inline_attribute,
6046         handle_used_attribute, handle_unused_attribute,
6047         handle_const_attribute, handle_transparent_union_attribute,
6048         handle_constructor_attribute, handle_destructor_attribute,
6049         handle_mode_attribute, handle_section_attribute,
6050         handle_aligned_attribute, handle_weak_attribute,
6051         handle_alias_attribute, handle_visibility_attribute,
6052         handle_no_instrument_function_attribute, handle_malloc_attribute,
6053         handle_no_limit_stack_attribute, handle_pure_attribute,
6054         handle_deprecated_attribute, handle_vector_size_attribute,
6055         vector_size_helper): Move from attribs.c.
6056         * c-common.h (c_common_attribute_table,
6057         c_common_format_attribute_table): New.
6058         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6059         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6060         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
6061         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
6062         (LANG_HOOKS_INITIALIZER): Update.
6063         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
6064         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
6065         * target.h: Update comment.
6066         * tree.c (default_target_attribute_table): Remove.
6067         * tree.h (default_target_attribute_table, format_attribute_table,
6068         lang_attribute_table, lang_attribute_common): Remove.
6069 objc:
6070         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6071         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6072
6073 2002-04-24  Jason Merrill  <jason@redhat.com>
6074
6075         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
6076         * dwarf2out.c (dwarf_attr_name): Support it.
6077         (gen_array_type_die): Emit it.
6078         (lookup_type_die): No special handling for VECTOR_TYPE.
6079         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
6080
6081 2002-04-24  Richard Henderson  <rth@redhat.com>
6082
6083         * config/mips/mips.md (movdi_usd): Renumber.
6084
6085 2002-04-24  David S. Miller  <davem@redhat.com>
6086
6087         PR target/6420
6088         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
6089         32-bit Sparc and current_function_returns_struct is true.
6090
6091 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6092
6093         * loop.c (canonicalize_condition): Use gen_int_mode.
6094
6095 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
6096
6097         * config/rs6000/altivec.h: Cleanup file.  Add non individual
6098         variants.
6099         (vec_vaddubm): New.
6100         (vec_vadduhm): New.
6101         (vec_vadduwm): New.
6102         (vec_vaddfp): New.
6103         (vec_vaddcuw): New.
6104         (vec_vaddubs): New.
6105         (vec_vaddsbs): New.
6106         (vec_vadduhs): New.
6107         (vec_vadduws): New.
6108         (vec_vaddsws): New.
6109         (vec_vand): New.
6110         (vec_vandc): New.
6111         (vec_vavgub): New.
6112         (vec_vavgsb): New.
6113         (vec_vavguh): New.
6114         (vec_vavgsh): New.
6115         (vec_vavguw): New.
6116         (vec_vavgsw): New.
6117         (vec_vrfip): New.
6118         (vec_vcmpbfp): New.
6119         (vec_vcmpequb): New.
6120         (vec_vcmpequh): New.
6121         (vec_vcmpequw): New.
6122         (vec_vcmpeqfp): New.
6123         (vec_vcmpgefp): New.
6124         (vec_vcmpgtub): New.
6125         (vec_vcmpgtsb): New.
6126         (vec_vcmpgtuh): New.
6127         (vec_vcmpgtsh): New.
6128         (vec_vcmpgtuw): New.
6129         (vec_vcmpgtsw): New.
6130         (vec_vcmpgtfp): New.
6131         (vec_vcmpgefp): New.
6132         (vec_vcfux): New.
6133         (vec_vcfsx): New.
6134         (vec_vctsxs): New.
6135         (vec_vctuxs): New.
6136         (vec_vexptefp): New.
6137         (vec_vrfim): New.
6138         (vec_lvx): New.
6139         (vec_lvebx): New.
6140         (vec_lvehx): New.
6141         (vec_lde): Add vector float variant.
6142         (vec_lvewx): New.
6143         (vec_lvxl): New.
6144         (vec_vlogefp): New.
6145         (vec_vmaddfp): New.
6146         (vec_vmhaddshs): New.
6147         (vec_vmaxub): New.
6148         (vec_vmaxsb): New.
6149         (vec_vmaxuh): New.
6150         (vec_vmaxsh): New.
6151         (vec_vmaxuw): New.
6152         (vec_vmaxsw): New.
6153         (vec_vmaxsw): New.
6154         (vec_vmaxfp): New.
6155         (vec_vmrghb): New.
6156         (vec_vmrghh): New.
6157         (vec_vmrghw): New.
6158         (vec_vmrglb): New.
6159         (vec_vmrglh): New.
6160         (vec_vmrglw): New.
6161         (vec_vminub): New.
6162         (vec_vminsb): New.
6163         (vec_vminuh): New.
6164         (vec_vminsh): New.
6165         (vec_vminuw): New.
6166         (vec_vminsw): New.
6167         (vec_vminfp): New.
6168         (vec_vmladduhm): New.
6169         (vec_vmhraddshs): New.
6170         (vec_msumubm): New.
6171         (vec_vmsummbm): New.
6172         (vec_vmsumuhm): New.
6173         (vec_vmsumshm): New.
6174         (vec_vmsumuhs): New.
6175         (vec_vmsumshs): New.
6176         (vec_vmuleub): New.
6177         (vec_vmulesb): New.
6178         (vec_vmuleuh): New.
6179         (vec_vmulesh): New.
6180         (vec_vmuloub): New.
6181         (vec_mulosb): New.
6182         (vec_vmulouh): New.
6183         (vec_vmulosh): New.
6184         (vec_vnmsubfp): New.
6185         (vec_vnor): New.
6186         (vec_vor): New.
6187         (vec_vpkuhum): New.
6188         (vec_vpkuwum): New.
6189         (vec_vpkpx): New.
6190         (vec_vpkuhus): New.
6191         (vec_vpkshss): New.
6192         (vec_vpkuwus): New.
6193         (vec_vpkswss): New.
6194         (vec_vpkshus): New.
6195         (vec_vpkswus): New.
6196         (vec_vperm): New.
6197         (vec_vrefp): New.
6198         (vec_vrlb): New.
6199         (vec_vrlh): New.
6200         (vec_vrlw): New.
6201         (vec_vrfin): New.
6202         (vec_vrsqrtefp): New.
6203         (vec_vsel): New.
6204         (vec_vslb): New.
6205         (vec_vslh): New.
6206         (vec_vslw): New.
6207         (vec_vsldoi): New.
6208         (vec_vsl): New.
6209         (vec_vslo): New.
6210         (vec_vspltb): New.
6211         (vec_vsplth): New.
6212         (vec_vspltw): New.
6213         (vec_vspltisb): New.
6214         (vec_vspltish): New.
6215         (vec_vspltisw): New.
6216         (vec_vsrb): New.
6217         (vec_vsrh): New.
6218         (vec_vsrw): New.
6219         (vec_vsrab): New.
6220         (vec_vsrah): New.
6221         (vec_vsraw): New.
6222         (vec_vsr): New.
6223         (vec_vsro): New.
6224         (vec_stvx): New.
6225         (vec_stvebx): New.
6226         (vec_stvehx): New.
6227         (vec_stvewx): New.
6228         (vec_stvxl): New.
6229         (vec_vsububm): New.
6230         (vec_vsubuhm): New.
6231         (vec_vsubuwm): New.
6232         (vec_vsubfp): New.
6233         (vec_vsubcuw): New.
6234         (vec_vsububs): New.
6235         (vec_vsubsbs): New.
6236         (vec_vsubuhs): New.
6237         (vec_vsubshs): New.
6238         (vec_vsubuws): New.
6239         (vec_vsubsws): New.
6240         (vec_vsum4ubs): New.
6241         (vec_vsum4sbs): New.
6242         (vec_vsum4shs): New.
6243         (vec_vsum2sws): New.
6244         (vec_vsumsws): New.
6245         (vec_vrfiz): New.
6246         (vec_vupkhsb): New.
6247         (vec_vupkhpx): New.
6248         (vec_vupkhsh): New.
6249         (vec_vupklsb): New.
6250         (vec_vupklpx): New.
6251         (vec_vupklsh): New.
6252         (vec_vxor): New.
6253
6254 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
6255
6256         PR c/5430
6257         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6258         added literals from substracted literals.
6259         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6260         (fold) [associate]: Preserve MINUS_EXPR if needed.
6261
6262 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
6263
6264         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6265         are obsoleted.
6266
6267 2002-04-23  Tom Tromey  <tromey@redhat.com>
6268
6269         * gcc.c: Added --resource.  For PR java/6314.
6270
6271 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6272
6273         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6274         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6275         these libraries.
6276
6277 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6278
6279         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6280
6281 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6282
6283         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6284         workaround.
6285         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6286         (ix86_expand_clrstr): Fix typo.
6287         * loop.c (gen_load_of_final_value): New.
6288         (loop_givs_rescan, strength_reduce, check_dbra_loop):
6289         Use it.
6290
6291 2002-04-23  Roger Sayle  <roger@eyesopen.com>
6292
6293         * builtins.c (builtin_memset_gen_str): New function.
6294         (expand_builtin_memset): Optimize the case of constant length, but
6295         unknown value.
6296
6297 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
6298
6299         * config/rs6000/altivec.h (vec_step): Remove extraneous
6300         parentheses.
6301         (vec_ctu): Cast return.
6302
6303 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
6304
6305         PR target/6413
6306         * function.h: (struct function): Add profile_label_no field.
6307         (current_function_profile_label_no): Define.
6308         * function.c: (profile_label_no): New static var.
6309         (expand_function_start): Increment it, and copy to
6310         current_function_profile_label_no.
6311         * output.h (profile_label_no): Delete.
6312         * final.c (profile_label_no): Delete.
6313         (profile_function): Use current_function_profile_label_no.
6314         (final_end_function): Don't increment profile_label_no here.
6315         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6316         profile_label_no with current_function_profile_label_no.
6317         * config/pa/pa.c (current_function_number): Delete.
6318         (pa_output_function_prologue): Don't output profile label here.
6319         (hppa_profile_hook): Use label_no param rather than
6320         current_function_number.
6321         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6322         * config/pa/pa.h: .. here.
6323         (FUNCTION_PROFILER): Output profile label here.
6324
6325 2002-04-22  Eric Christopher  <echristo@redhat.com>
6326
6327         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6328         patch of 2002-04-09 due to binutils issues.
6329         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6330
6331 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6332
6333         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6334         constraint to 'o' for m=r and r=m alternatives.
6335         ("*movv8hi_internal1"): Same.
6336         ("*movv16qi_internal1"): Same.
6337         ("*movv4sf_internal1"): Same.
6338
6339 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
6340
6341         * rtl.h (RTX_FLAG): New macro.
6342         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6343         * final.c (alter_subreg): Use macro to access rtx flag.
6344         * integrate.c (copy_rtx_and_substitute): Use new access macro.
6345         * print-rtl.c (print_rtx): Use new access macro.
6346
6347         * cse.c (insert): Check rtx code before accessing flag.
6348
6349         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6350         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6351         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6352         convert_const_symbol_ref, make_canonical, make_alternative_compare,
6353         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6354         simplify_test_exp, optimize_attrs, simplify_by_exploding,
6355         find_and_mark_used_attributes, unmark_used_attributes,
6356         add_values_to_cover, simplify_with_current_value,
6357         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6358         copy_rtx_unchanging, main): Use new access macros.
6359
6360 2002-04-22  Tom Rix  <trix@redhat.com>
6361
6362         * expmed.c (init_expmed): Generate shifted constant once.
6363
6364 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
6365
6366         * c-lex.c (lex_charconst): Call convert to get constant in
6367         proper type; don't just smash the type field.
6368         Fixes PR c/6300.
6369
6370         * config.gcc: Add list of obsolete configurations.  Disallow
6371         building these without --enable-obsolete.
6372         * doc/install.texi: Document --enable-obsolete and obsoletion
6373         policy.  Mention obsoletion of individual targets in
6374         appropriate places.
6375
6376 2002-04-22  Richard Henderson  <rth@redhat.com>
6377
6378         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6379
6380 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
6381
6382         PR f/6138.
6383         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6384         (walk_fixup_memory_subreg): Likewise.
6385         (fixup_var_refs_insn): Adjust accordingly.
6386         (fixup_var_refs_1): Likewise.
6387
6388 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
6389
6390         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6391         LIBPATH_ARCH64_SPEC): Define.
6392         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6393         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6394         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6395         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6396
6397 2002-04-22      Joel Sherrill <joel@OARcorp.com>
6398
6399         * gthr-rtems.h: Correct prototypes to remove warnings.
6400
6401 2002-04-22  Richard Henderson  <rth@redhat.com>
6402
6403         PR c/6344
6404         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6405
6406         * gcse.c (free_insn_expr_list_list): New.
6407         (clear_modify_mem_tables): Use it.  Fix bit set usage.
6408         (canon_list_insert): Use EXPR_LISTs for expressions.
6409         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6410
6411 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6412
6413         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
6414         file change and include code to _cpp_pop_buffer.
6415         * cpphash.h (struct pending_option): Predeclare.
6416         (struct cpp_reader): New member next_include_file.
6417         (_cpp_pop_file_buffer): Update.
6418         (_cpp_push_next_buffer): Update, rename.
6419         * cppinit.c (cpp_destroy): Free include chain and pending here.
6420         (cpp_finish_options): Simplify.
6421         (_cpp_push_next_buffer): Rename and clean up.
6422         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6423         Clarify.
6424         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6425
6426 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6427
6428         * config/rs6000/altivec.h (vec_xor): Add variant for both args
6429         being vector signed int.
6430         (vec_andc): Same.
6431         (vec_xor): Add variant for both args being vector signed char.
6432         Remove redundant variant.
6433         (vec_andc): Same.
6434
6435 2002-04-21  David S. Miller  <davem@redhat.com>
6436
6437         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6438         compare mode in output RTL.
6439
6440 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
6441
6442         * config/rs6000/rs6000.c (rs6000_override_options): Correct
6443         style and formatting of previous patch.
6444
6445 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
6446
6447         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6448         flag_pic for ABI_AIX.
6449
6450 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6451
6452         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6453         * cppfiles.c (read_include_file): Similarly.
6454         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6455         uxstrdup ustrchr, ufputs): Similarly.
6456         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6457         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6458         cpp_ideq, parse_identifier, parse_number): Similarly.
6459         * cpplib.c (struct directive, dequote_string, D, run_directive,
6460         cpp_push_buffer): Similarly.
6461         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6462         _cpp_create_definition, check_trad_stringification,
6463         cpp_macro_definition): Similarly.
6464
6465 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6466
6467         * cppmacro.c (funlike_invocation_p): Don't step back
6468         over CPP_EOF.
6469
6470 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
6471
6472         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6473         labelno.
6474
6475 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6476
6477         * doc/invoke.texi: Remove Chill references.
6478         * doc/gcc.texi: Update last modified date.
6479
6480 2002-04-20  Kazu Hirata  <kazu@hxi.com>
6481
6482         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6483         push and pop.  Replace add.l with add.w.
6484
6485 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6486
6487         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6488         multiply instructions for H8/300H case.
6489
6490 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6491
6492         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6493         Bum three instructions from each routine.
6494
6495 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6496
6497         * Makefile.in: Update.
6498         * decl.c (push_c_function_context, pop_c_function_context,
6499         mark_c_function_context): Rename for consistency.
6500         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6501         * c-tree.h (push_c_function_context, pop_c_function_context,
6502         mark_c_function_context): Rename for consistency.
6503         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6504         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6505         * function.c (init_lang_status, save_lang_status,
6506         restore_lang_status, mark_lang_status, free_lang_status):
6507         Move to langhooks.h.
6508         (push_function_context_to, pop_function_context_from,
6509         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6510         Update.
6511         * function.h (init_lang_status, save_lang_status,
6512         restore_lang_status, mark_lang_status, free_lang_status):
6513         Move to langhooks.h.
6514         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6515         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6516         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6517         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6518         (LANG_HOOKS_INITIALIZER): Update.
6519         (lhd_do_nothing_f): New.
6520         * langhooks.h (struct lang_hooks_for_functions): New.
6521         (struct lang_hooks): New hooks.
6522         * langhooks.c (lhd_do_nothing_f): New.
6523 objc:
6524         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6525         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6526
6527 2002-04-19  David S. Miller  <davem@redhat.com>
6528
6529         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6530         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6531
6532 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6533
6534         PR optimization/3756
6535         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6536         x = ((int) y < 0) ? cst1 : cst2.
6537
6538 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6539
6540         PR c/6358
6541         * function.c: Reapply patch for c/6358.
6542         (expand_function_end): Copy decl_rtl's mode, not
6543         current_function_return_rtx mode.
6544
6545 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6546
6547         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6548         targets.
6549
6550 2002-04-19  Tom Tromey  <tromey@redhat.com>
6551
6552         * doc/install.texi (Specific): Update status of Solaris 2.8.
6553         For PR libgcj/6158.
6554
6555 2002-04-19  Andreas Schwab  <schwab@suse.de>
6556
6557         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6558         (PUT_REAL): Restore old definition.
6559
6560 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6561             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6562
6563         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6564         binutils 2.11.2 and higher generate smaller binaries than Sun's
6565         native tools.
6566
6567 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6568
6569         PR c++/6352
6570         * toplev.c (rest_of_compilation): Do not defer functions for which
6571         TREE_SYMBOL_REFERENCED has already been set.
6572
6573 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6574
6575         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6576         alternative.
6577
6578 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6579
6580         * builtins.c: Include langhooks.h.
6581         (lang_type_promotes_to): Remove.
6582         (expand_builtin_va_arg): Use new hook.
6583         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6584         (simple_type_promotes_to): Move to c-typeck.c.
6585         * c-common.h (simple_type_promotes_to): Remove.
6586         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6587         * c-format.c: Include langhooks.h.
6588         (check_format_types): Update.
6589         * c-tree.h (c_type_promotes_to): New.
6590         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6591         (type_lists_compatible_p): Update.
6592         * langhooks-def.h (lhd_type_promotes_to): New.
6593         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6594         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6595         * langhooks.c (lhd_type_promotes_to): New.
6596         * langhooks.h (struct lang_hooks_for_types): New hook.
6597         * tree.h (lang_type_promotes_to): Remove.
6598 objc:
6599         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6600
6601 2002-04-18  Richard Henderson  <rth@redhat.com>
6602
6603         * function.c: Revert patch for c/6358.
6604
6605 2002-04-18  Richard Henderson  <rth@redhat.com>
6606
6607         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6608         blocks.  Handle multiple references to the TRAP block.  Handle
6609         non-adjacent THEN and OTHER blocks.
6610
6611 2002-04-18  Richard Henderson  <rth@redhat.com>
6612
6613         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6614         crash with no type for by-mode libcalls.
6615
6616         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6617
6618 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6619
6620         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6621         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6622         the register windows.
6623
6624 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6625
6626         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6627         appropriate.  Document need for extended precision even when
6628         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6629         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6630         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6631         instead of relying on later syntax error when REAL_WIDTH > 5.
6632         * real.c: Define NE based only on whether or not we have a
6633         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6634         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6635         define GET_REAL and PUT_REAL as simple memcpy operations; no
6636         need to byteswap or round.
6637         Use #error instead of #ifdef-ing out the entire file, for
6638         prompt error detection.
6639
6640         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6641
6642 2002-04-18  David S. Miller  <davem@redhat.com>
6643
6644         * config/sparc/sparc.h (BRANCH_COST): Define.
6645
6646         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6647         does it.
6648
6649 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6650
6651         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6652         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6653         propagate_block calls after relaxation loop using new variable
6654         stabilized_prop_flags.
6655
6656 2002-04-18  Richard Henderson  <rth@redhat.com>
6657
6658         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6659         (ia64_va_arg): Expect variable sized types by reference.
6660         * config/ia64/ia64-protos.h: Update.
6661         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6662         ia64_function_arg_pass_by_reference.
6663
6664 2002-04-18  Richard Henderson  <rth@redhat.com>
6665
6666         * ifcvt.c: Include except.h.
6667         (block_has_only_trap): Break out from find_cond_trap.
6668         (find_cond_trap): Use it.  Always delete the trap block.
6669         (merge_if_block): Allow then block null.  Be less simplistic about
6670         what insns can end a block.
6671         * Makefile.in (ifcvt.o): Depend on except.h.
6672
6673         * config/ia64/ia64.md (trap, conditional_trap): New.
6674
6675 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6676
6677         PR c/6358
6678         * function.c (assign_parms): Assign hard current_function_return_rtx
6679         register here...
6680         (expand_function_end): ...not here.
6681
6682 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6683
6684         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6685         * c-tree.h (c_incomplete_type_error): New.
6686         * c-typeck.c (require_complete_type, build_component_ref): Update.
6687         (incomplete_type_error): Rename.
6688         * langhooks-def.h (lhd_incomplete_type_error): New.
6689         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6690         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6691         * langhooks.c (lhd_incomplete_type_error): New.
6692         * langhooks.h (struct lang_hooks_for_types): New hook.
6693         * tree.c (size_in_bytes): Use new hook.
6694         * tree.h (incomplete_type_error): Remove.
6695 objc:
6696         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6697
6698 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6699
6700         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6701         TARGET_FLOAT_FORMAT blocks.
6702
6703 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6704
6705         * doc/install.texi (Downloading the source): Do not mention Chill
6706         any longer, but mention Ada.
6707         (Configuration): Do not mention Chill any longer.
6708
6709 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6710
6711         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6712
6713 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6714
6715         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6716         in last patch.
6717
6718 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6719
6720         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6721         instead of unsigned_type.
6722
6723 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6724
6725         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6726         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6727         later.
6728
6729 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6730
6731         * attribs.c (vector_type_node_list): New static variable.
6732         (handle_vector_size_attribute): Use it to avoid generating a
6733         new type node each time we are called.
6734
6735         * combine.c (subst): Avoid trying to make a vector mode subreg of
6736         an integer constant.
6737         (gen_lowpart_for_combine): Likewise.
6738
6739 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6740             Jakub Jelinek  <jakub@redhat.com>
6741
6742         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6743         for integer constant c (if x has unsigned type or sign bit is not
6744         set in c).  This folds the zero/sign extension into the bit-wise and
6745         operation.
6746
6747 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6748
6749         PR middle-end/6205
6750         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6751         otherwise xorps.
6752
6753 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6754
6755         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6756
6757 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6758
6759         * gcc.c (read_specs): Detect and fail if an attempt is made to
6760         rename a spec string to an already existing string.
6761
6762 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6763
6764         * config/s390/s390.c (legitimize_pic_address): Do not generate
6765         illegal address constant without CONST.
6766
6767 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6768
6769         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6770         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6771
6772 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6773
6774         PR optimization/6305
6775         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6776         to make sure previous reloads are taken into account.  Generate
6777         better code if one operand is an in-range immediate constant.
6778
6779 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6780
6781         * doc/install.texi (Building): libgcj requires GNU make.
6782
6783 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6784
6785         PR bootstrap/6315
6786         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6787         even if hard quad and register is not floating.
6788         (movtf reg<-mem split): Disallow splitting if hard quad and
6789         register is floating.
6790         (movtf mem<-reg split): Likewise.
6791         * config/sparc/sparc.c (fp_register_operand): New predicate.
6792         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6793
6794 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6795
6796         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6797         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6798         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6799         UNPROTOIZE on command line.
6800         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6801         (in_system_include_dir): Use cpp_include_defaults (defined in
6802         cppdefault.o).
6803         * unprotoize.c: Delete file.
6804
6805 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6806
6807         * config/rs6000/altivec.h (vec_ld): Add array variants.
6808         (vec_lde): Same.
6809         (vec_ldl): Same.
6810
6811 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6812             Aldy Hernandez <aldyh@redhat.com>
6813
6814         * config/rs6000/altivec.h: Define __ALTIVEC__.
6815         (bool): New.
6816         (__pixel): New.
6817         (pixel): New.
6818         (vec_cfux): New.
6819         (vec_vmaddfp): New.
6820         (vec_vsldoi): New.
6821         Add parentheses to all macro arguments.
6822
6823 2002-04-16  Richard Henderson  <rth@redhat.com>
6824
6825         PR c++/6320
6826         * except.c (remove_eh_handler): Insert inner regions at beginning
6827         of sibling chain.  Refactor expressions.
6828
6829 2002-04-16  Richard Henderson  <rth@redhat.com>
6830
6831         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6832         * config/sparc/sol2-gas-bi.h: New file.
6833         * config.gcc (sparc*-solaris): Add it as needed.
6834         * configure.in (AS_SPARC64_FLAG): Remove check.
6835         * config.in, configure: Regenerate.
6836
6837         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6838
6839 2002-04-16  Richard Henderson  <rth@redhat.com>
6840
6841         * config/mips/mips.c (override_options): Don't override N32 for
6842         a 64-bit ISA.
6843
6844         PR 6202
6845         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6846         (HILO_delay): Set can_delay false.
6847
6848 2002-04-16  Dale Johannesen <dalej@apple.com>
6849
6850         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6851         instruction addresses.
6852         (rs6000_output_function_epilogue): Likewise.
6853
6854 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6855
6856         * c-parse.in (poplevel, compstmt_start,
6857         compstmt_primary_start): Add ending ';', in accordance
6858         with POSIX.
6859
6860 2002-04-16  Richard Henderson  <rth@redhat.com>
6861
6862         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6863         Adjust tm_file order to get TARGET_DEFAULT set properly.
6864         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6865         * doc/install.texi (sparc-solaris): Update.
6866
6867 2002-04-16  Dale Johannesen <dalej@apple.com>
6868
6869         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6870         comparison operands do not match each other or if modes of
6871         conditions do not match result.
6872
6873 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6874
6875         PR target/6305
6876         * config/s390/s390.md (mulsidi3): Set both subregs of the
6877         multiword register.
6878
6879 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6880
6881         * config/rs6000/altivec.h (vec_addc): Type check.
6882
6883 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6884
6885         PR middle-end/6279
6886         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6887
6888         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6889
6890 2002-04-15  Richard Henderson  <rth@redhat.com>
6891
6892         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6893         call_really_used_regs too.
6894
6895 2002-04-15  Richard Henderson  <rth@redhat.com>
6896
6897         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6898
6899 2002-04-15  David S. Miller  <davem@redhat.com>
6900
6901         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6902         as being CLOBBERed.
6903
6904 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6905
6906         PR c/6290
6907         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6908         CONST_VECTOR is { 0, ... 0 }.
6909
6910 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6911
6912         * doc/install.texi (Installing GCC: Configuration): Clarify
6913         the only supported ways to configure gcc.
6914
6915 2002-04-15  Roland McGrath  <roland@frob.com>
6916
6917         * config.gcc (alpha*-*-gnu*): New target configuration.
6918         * config/alpha/gnu.h: New file for it.
6919         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6920
6921 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6922
6923         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6924         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6925         * tree.h (expand_start_stmt_expr): Update prototype.
6926         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6927         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6928         on the STMT_EXPR created for the inline function.
6929
6930 2002-04-15  Richard Henderson  <rth@redhat.com>
6931
6932         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6933         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6934         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6935         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6936         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6937         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6938         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6939         Define __gnu_linux__, not gnu_linux.
6940         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6941
6942 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6943
6944         Remove Chill front end.
6945         * gcc.c (default_compilers): Remove Chill entries.
6946         * ch: Remove directory.
6947         * doc/frontends.texi: Remove information about Chill.
6948         * doc/sourcebuild.texi: Likewise.
6949         * doc/standards.texi: Likewise.
6950
6951 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6952
6953         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6954         (LONGLONG_STANDALONE): Define.
6955
6956 2002-04-15  David S. Miller  <davem@redhat.com>
6957
6958         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6959         Call emit_library_call with LCT_NORMAL.
6960         (sparc_initialize_trampoline): Use LCT_foo instead of
6961         magic constant in emit_library_call invocations.
6962         (sparc64_initialize_trampoline): Likewise.
6963         (sparc_profile_hook): Likewise.
6964         * config/sparc/sparc.md: Likewise.
6965
6966         * config/sparc/sparc.c (sparc_extra_constraint_check):
6967         Fix type of argument 'c'.
6968         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6969         Likewise.
6970
6971 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6972
6973         * diagnostic.h (output_buffer_state): Redefine.
6974         (output_format_decoder): New macro.
6975         (output_prefixing_rule): Likewise.
6976         (output_line_cutoff): Likewise.
6977         (diagnostic_format_decoder): Adjust.
6978         (diagnostic_prefixing_rule): Likewise.
6979         (diagnostic_line_cutoff): Likewise.
6980         (diagnostic_state): Likewise.
6981         (diagnostic_kind_count): Likewise.
6982         (diagnostic_buffer): Now a macro.
6983
6984         * diagnostic.c (diagnostic_buffer): Remove definition.
6985         (output_is_line_wrapping): Adjust.
6986         (set_real_maximum_length): Likewise.
6987         (output_set_maximum_length): Likewise.
6988         (init_output_buffer): Likewise.
6989         (lhd_print_error_function): Likewise.
6990         (output_do_verbatim): Likewise.
6991
6992 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6993
6994         * cpperror.c (print_location): Don't print include chain
6995         if line == 0.
6996         (cpp_begin_message): Update to use DL_ macros.
6997         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6998         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6999         cpp_notice, cpp_notice_from_errno): Remove.
7000         (cpp_error, cpp_error_with_line): Update to take a diagnostic
7001         level.
7002         (cpp_errno): New.
7003         * cppexp.c (CPP_ICE): Remove.
7004         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
7005         lex, integer_overflow, _cpp_parse_expr): Update.
7006         * cppfiles.c (read_include_file, find_include_file,
7007         handle_missing_header, _cpp_read_file, remap_filename): Update.
7008         * cpphash.h (enum error_type): Remove.
7009         (_cpp_begin_message): Update.
7010         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
7011         cpp_handle_option, cpp_post_options): Update.
7012         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
7013         skip_whitespace, parse_identifier, parse_slow, parse_string,
7014         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
7015         cpp_interpret_charconst): Update.
7016         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
7017         lex_macro_node, do_undef, glue_header_name, parse_include,
7018         do_include_common, read_flag, do_line, do_linemarker, do_ident,
7019         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
7020         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
7021         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
7022         _cpp_pop_buffer, do_diagnostic): Update.
7023         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
7024         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
7025         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7026         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7027         cpp_notice, cpp_notice_from_errno): Remove.
7028         (cpp_error, cpp_error_with_line): Update to take a diagnostic
7029         level.
7030         (cpp_errno): New.
7031         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
7032         collect_args, enter_macro_context, save_parameter, parse_params,
7033         _cpp_create_definition, check_trad_stringification,
7034         cpp_macro_definition): Update.
7035         * cppmain.c (cpp_preprocess_file): Update.
7036         * fix-header.c (read_scan_file): Update.
7037
7038 2002-04-14  Andreas Schwab  <schwab@suse.de>
7039
7040         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
7041
7042 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7043
7044         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
7045
7046 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
7047
7048         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
7049         not gnu_hurd.
7050
7051 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
7052
7053         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
7054
7055 2002-04-13      Joel Sherrill <joel@OARcorp.com>
7056
7057         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
7058         sparc-elf and sparc-rtems targets.
7059
7060 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
7061
7062         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
7063         defined, and __gnu_hurd__ wherever __GNU__ is defined.
7064         * arm/linux-elf.h: Likewise.
7065         * cris/aout.h: Likewise.
7066         * cris/linux.h: Likewise.
7067         * i370/linux.h: Likewise.
7068         * i386/gnu.h: Likewise.
7069         * i386/linux-aout.h: Likewise.
7070         * i386/linux-oldld.h: Likewise.
7071         * i386/linux.h: Likewise.
7072         * i386/linux64.h: Likewise.
7073         * ia64/linux.h: Likewise.
7074         * m68k/linux-aout.h: Likewise.
7075         * m68k/linux.h: Likewise.
7076         * mips/linux.h: Likewise.
7077         * pa/pa-linux.h: Likewise.
7078         * pj/linux.h: Likewise.
7079         * rs6000/sysv4.h: Likewise.
7080         * s390/linux.h: Likewise.
7081         * sh/linux.h: Likewise.
7082         * sparc/linux-aout.h: Likewise.
7083         * sparc/linux.h: Likewise.
7084         * sparc/linux64.h: Likewise.
7085         * xtensa/linux.h: Likewise.
7086
7087 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
7088
7089         * stmt.c (check_unique_operand_names): Expect operand names to
7090         be strings rather than identifiers.  Use simple_cst_equal to
7091         compare them.
7092         (resolve_operand_name_1): Make same identifier to string change here.
7093         * c-parse.in (asm_operand): Convert a named operand into a string.
7094         * cp/parse.y (asm_operand): Likewise.
7095
7096 2002-04-13  Andreas Schwab  <schwab@suse.de>
7097
7098         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
7099
7100 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
7101
7102         Revert these changes:
7103
7104         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7105
7106         PR c++/5571
7107         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7108
7109 2002-04-12  Richard Henderson  <rth@redhat.com>
7110
7111         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
7112         (sparc*-*-solaris): Clean up header files.
7113         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
7114         and plan on generating 64-bit code.
7115         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
7116         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
7117         * config/sparc/sol2-sld-64.h: Rename ...
7118         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
7119         for AS_SPARC64_FLAG not defined.
7120         * config/sparc/sol2-gld-bi.h: New.
7121         * config/sparc/sol2-sld.h: Remove.
7122         * config/sparc/sol26-sld.h: New.
7123         * config/sparc/sol2.h: Tidy comments.
7124         * doc/install.texi: Document sparc-solaris configury changes.
7125
7126 2002-04-12  Richard Henderson  <rth@redhat.com>
7127
7128         * recog.c (offsettable_address_p): Match the logic in adjust_address.
7129
7130         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
7131         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
7132
7133 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7134
7135         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
7136
7137 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
7138
7139         * pa.c (pa_can_combine_p): Call extract_insn before calling
7140         constrain_operands.
7141
7142 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
7143
7144         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
7145         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
7146         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7147         (CPP_PREDEFINES): Handle __declspec.
7148         * config/i386/t-interix (USER_H): Remove.
7149
7150 2002-04-12  DJ Delorie  <dj@redhat.com>
7151
7152         * integrate.c (compare_blocks): Make comparisons safe for when
7153         sizeof(int) < sizeof(char *).
7154         (find_block): Likewise.
7155
7156 2002-04-12  Jan Hubicka  <jh@suse.cz>
7157             David Edelsohn  <edelsohn@gnu.org>
7158
7159         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
7160         registers.
7161         (symbol_ref_operand): New.
7162         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
7163         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
7164
7165 2002-04-12  Andreas Schwab  <schwab@suse.de>
7166
7167         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
7168         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
7169         overrides the definition in config/svr4.h.
7170
7171 2002-04-12      Eric Norum <eric.norum@usask.ca>
7172
7173         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
7174         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
7175         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
7176         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
7177         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
7178         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
7179         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
7180         definitions to config/rtems.h and make the targets more similar.
7181
7182 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7183
7184         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7185         POINTERS_EXTEND_UNSIGNED.
7186         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7187         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7188
7189         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7190         not specified.
7191
7192 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
7193
7194         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7195         depends on TARGET_SHMEDIA, not TARGET_SH5.
7196
7197 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
7198
7199         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7200         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7201
7202 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
7203
7204         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7205         no r0 clobber.
7206
7207 2002-04-12  Andreas Schwab  <schwab@suse.de>
7208
7209         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7210
7211 2002-04-12  Richard Henderson  <rth@redhat.com>
7212
7213         PR bootstrap/4191
7214         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7215
7216         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7217         modes spanning multiple hard regs.
7218
7219         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7220
7221 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7222
7223         * pa.c (pa_output_function_prologue): Don't accumulate the total
7224         number of code bytes when using TARGET_64BIT, or gas, SOM and not
7225         the portable runtime.
7226         (output_deferred_plabels): Handle 64bit plabels.
7227         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7228         generating pic code using the GAS assembler for object formats that
7229         are not SOM (ie., ELF32 and ELF64).
7230         (output_millicode_call): Check attribute type if attribute length is 28.
7231         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
7232         dbr_sequence_length once.
7233         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7234         dbr_sequence_length once.
7235         * pa.h (TARGET_SOM): Define if not defined.
7236         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7237         with GAS and not SOM.
7238         (jump, call_internal_reg, call_value_internal_reg): Likewise.
7239         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
7240
7241 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7242
7243         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7244         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7245         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7246         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7247         elfos.h and dbxelf.h values are fine now.
7248         * config/i386/freebsd.h, config/alpha/freebsd.h
7249         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7250
7251 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7252
7253         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7254         or set Acpu or Amachine.  Reformat.
7255         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7256         define.
7257         (LINK_SPEC): Do not need to undef.
7258         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7259         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7260         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7261         define.
7262         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7263         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7264         (LINK_SPEC): Do not need to undef.
7265         (DONT_USE_BUILTIN_SETJMP): Do not define.
7266         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7267         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
7268         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7269         Remove trailing spaces.
7270         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7271         __ELF__, or set Acpu or Amachine.  Reformat.
7272         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7273         define.
7274
7275 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7276
7277         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7278         all other *-*-freebsd* targets.
7279
7280 2002-04-11  Richard Henderson  <rth@redhat.com>
7281
7282         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7283
7284 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7285
7286         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7287         Include {cpu}/{cpu}.h thru tm_file.
7288         (alpha*-*-linux*ecoff): Remove target.
7289         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7290         (LINK_SPEC): Remove, is not OS independent.
7291         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7292         (LINK_SPEC): Do not need to #undef any longer.
7293         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7294         any longer.
7295         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7296         __ELF__.
7297         (LINK_SPEC): Moved here from alpha/elf.h.
7298         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7299         SUB_CPP_PREDEFINES.
7300         * config/alpha/linux-ecoff.h: Remove.
7301         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7302         (CPP_SPEC): Define _POSIX_SOURCE as needed.
7303         (CPP_SUBTARGET_SPEC): Do not define.
7304         (LINK_SPEC): Do not need to #undef any longer.
7305         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7306         * config/alpha/vms.h: Likewise.
7307
7308 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
7309
7310         * doc/extend.texi: Remove old claim that typedefs cannot have
7311         an alignment attribute.
7312
7313 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7314
7315         PR optimization/6177
7316         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7317         bitpos is 0 and bitsize CONCAT size.
7318
7319 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7320
7321         PR c/6223
7322         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7323
7324 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
7325
7326         * config/alpha/freebsd.h: Minor reformatting.
7327         (CPP_SPEC): Define ELF and add cpp_subtarget.
7328         (ASM_SPEC): No longer needed.
7329
7330 2002-04-11  Richard Henderson  <rth@redhat.com>
7331
7332         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7333         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
7334         (dimode mem/zero splitter): New.
7335
7336 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
7337
7338         * config/cris/cris.c (cris_override_options): Tweak error message
7339         for PIC not implemented.
7340
7341         * config/cris/cris.h: Tweak comments related to parameter-passing.
7342
7343         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7344
7345 2002-04-10  Richard Henderson  <rth@redhat.com>
7346
7347         * except.c (add_ehl_entry): Allow duplicates after landing pad
7348         creation.
7349
7350 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
7351
7352         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7353
7354 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
7355
7356         * c-decl.c (c_init_decl_processing): Move generation of
7357         decls for g77_integer_type_node and friends from here ...
7358         * c-common.c (c_common_nodes_and_builtins): ... to here.
7359
7360 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
7361
7362         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7363         is only used as frame pointer when frame_pointer_needed is true.
7364
7365 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
7366
7367         PR target/817
7368         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7369         for the fact that the pool entry uses two words.
7370         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
7371         1k bytes.
7372         (movdf_soft_insn): Similarly.
7373         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7374         for the fact that the pool entry uses three words.
7375
7376 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
7377
7378         * config/mips/mips.c (mips_va_arg): When using the struct version
7379         of the EABI va_list, allow arguments in the register save area to
7380         take up less room than a stack argument.
7381
7382 2002-04-10  Richard Henderson  <rth@redhat.com>
7383
7384         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7385         if EXPAND_INITIALIZER.
7386
7387 2002-04-09  Richard Henderson  <rth@redhat.com>
7388
7389         * config/alpha/alpha.md (movdi_er_maybe_g): New.
7390         * config/alpha/alpha.c (alpha_expand_mov): Use it.
7391
7392 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
7393
7394         PR optimization/6233
7395         * rtlanal.c (pure_call_p): New function.
7396         * rtl.h (pure_call_p): Declare.
7397         * loop.c (prescan_loop): Use it to set has_nonconst_call.
7398         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7399
7400 2002-04-09  Eric Christopher  <echristo@redhat.com>
7401
7402         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7403         information to .comm directive.
7404
7405 2002-04-09  Richard Henderson  <rth@redhat.com>
7406
7407         PR c/5078
7408         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7409
7410 2002-04-09  Richard Henderson  <rth@redhat.com>
7411
7412         * basic-block.h (flow_delete_block_noexpunge): Declare.
7413         (expunge_block_nocompact): Declare.
7414         * cfg.c (expunge_block_nocompact): Split out from ...
7415         (expunge_block): ... here.
7416         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7417         (flow_delete_block_noexpunge): Split out from ...
7418         (flow_delete_block): ... here.
7419         * cfgcleanup.c (delete_unreachable_blocks): Compact while
7420         removing dead blocks.
7421         * except.c (exception_handler_labels): Remove.
7422         (exception_handler_label_map): New.
7423         (struct eh_region): Add aka member.
7424         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7425         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7426         (for_each_eh_label, for_each_eh_label_1): New.
7427         (init_eh): Register exception_handler_label_map.
7428         (free_eh_status): Use free_region.
7429         (find_exception_handler_labels): Use the map, not the list.
7430         (remove_exception_handler_label): Likewise.
7431         (maybe_remove_eh_handler): Likewise.
7432         (remove_eh_handler): Use the region aka bitmap.
7433         * except.h (exception_handler_labels): Remove.
7434         (for_each_eh_label): Declare.
7435         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7436         * loop.c (invalidate_loops_containing_label): New.
7437         (find_and_verify_loops): Use it.  Use for_each_eh_label.
7438         * sched-rgn.c (is_cfg_nonregular): Use
7439         current_function_has_exception_handlers.
7440
7441 2002-04-09  Richard Henderson  <rth@redhat.com>
7442
7443         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7444         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7445         Do not return changed status.
7446         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7447         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7448         New functions that do return changed status.
7449         * sbitmap.h: Update decls.
7450         * gcse.c, lcm.c: Use _cg functions as needed.
7451
7452 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7453
7454         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7455         (sh64-*-elf*, sh-*-rtemself*): Likewise.
7456         * config/sh/embed_bb.c: New file.
7457         * config/sh/embed-elf.h: New file.
7458         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7459         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
7460         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7461         __PTRDIFF_TYPE__ .
7462         (SUBTARGET_CPP_PTR_SPEC): Don't define.
7463         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7464         Add subtarget_asm_endian_spec.
7465         (ASM_SPEC): Use subtarget_asm_endian_spec.
7466         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7467         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7468         (WCHAR_UNSIGNED): Define.
7469         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7470         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7471         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7472         Fix value.
7473         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7474         (sh_adjust_cost): Likewise.
7475         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7476         __PTRDIFF_TYPE__ .
7477         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7478         (WCHAR_TYPE_SIZE): Likewise.
7479         (ASM_SPEC): Use subtarget_asm_endian_spec.
7480         (SH_ELF_WCHAR_TYPE): #undef/ #define.
7481         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7482         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7483         (MAX_WCHAR_TYPE_SIZE): Don't #define .
7484         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7485         (USER_LABEL_PREFIX): Don't #undef /#define .
7486         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7487         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7488         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7489         (ASM_SPEC): Likewise.
7490         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7491         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7492         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7493         (LIB2FUNCS_EXTRA): Define.
7494         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7495         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7496         (LIB1ASMFUNCS_CACHE): Define.
7497         (LIB2FUNCS_EXTRA): Redefine empty.
7498
7499 2002-04-08  Richard Henderson  <rth@redhat.com>
7500
7501         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7502
7503 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7504
7505         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7506         and optimize for size.
7507         (__do_global_ctors): Fix pointer comparison.
7508         (__do_global_dtors): Likewise.
7509
7510 2002-04-09  David S. Miller  <davem@redhat.com>
7511
7512         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7513         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7514         allow reloading pseudos.
7515         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7516         * config/sparc/sparc-protos.h: Declare it.
7517
7518         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7519         unsigned comparison warning.
7520         (output_restore_regs): Mark leaf_function as unused.
7521
7522 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7523
7524         * expr.c (is_aligning_offset): New function.
7525         (expand_expr, case COMPONENT_EXPR): Call it.
7526
7527 2002-04-08  David S. Miller  <davem@redhat.com>
7528
7529         PR target/6082
7530         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7531
7532         Make init_priority work on Sparc when using GNU ld.
7533         * config/sparc/linux.h, config/sparc/linux64.h,
7534         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7535         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7536         * config/sparc/sol2-gld.h: New file to do the same.
7537         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7538         sparc/sol2-gld.h to tm_file.
7539
7540         PR optimization/4328
7541         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7542         * doc/md.texi: Document it.
7543         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7544         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7545         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7546         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7547         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7548
7549 2002-04-08  Andreas Jaeger  <aj@suse.de>
7550
7551         * stmt.c (expand_asm_operands): Revert last patch from Richard
7552         Henderson.
7553
7554 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7555
7556         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7557         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7558
7559 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7560
7561         * doc/contrib.texi (Contributors): Add David O'Brien.
7562
7563 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7564
7565         * configure.in (auto-build.h): Use target_alias and build_alias
7566         when running configure.
7567         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7568         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7569         * configure: Regenerate.
7570
7571 2002-04-07  David S. Miller  <davem@redhat.com>
7572
7573         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7574
7575 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7576
7577         PR 5933
7578         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7579         generating 32-bit pic code.
7580
7581 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7582
7583         * cppinit.c (cpp_create_reader): Initialize
7584         discard_comments_in_macro_exp.
7585         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7586         (cpp_handle_option): Handle "-CC" option.
7587         * cpplex.c (save_comment): If saving a C++ comment in
7588         a directive, convert it to a C comment.
7589         (_cpp_lex_direct): Pass second comment start character to
7590         save_comment to indicate comment type.
7591         * cpplib.c (_cpp_handle_directive): If processing
7592         a "#define" directive and discard_comments_in_macro_exp
7593         is false,  re-enable saving of comments.
7594         (lex_macro_node): If discard_comments_in_macro_exp is false,
7595         discard any comments before the macro identifier.
7596         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7597         member.
7598         * cppmacro.c (cpp_get_token): If expanding a macro while
7599         processing a directive, discard any comments we might encounter.
7600         (parse_params): If discard_comments_in_macro_exp is false,
7601         ignore comments in the macro parameter list.
7602         * gcc.c (cpp_unique_options): Add "-CC" option.
7603         (option_map): Map "--comments-in-macros" to "-CC".
7604         * doc/cppopts.texi: Document "-CC" option.
7605         * f/lang-specs.h: Add "-CC" option.
7606         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7607         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7608         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7609         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7610         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7611         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7612
7613 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7614
7615         PR middle-end/6180
7616         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7617
7618 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7619
7620         PR c++/5571
7621         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7622
7623         PR opt/5120
7624         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7625         RTX_UNCHANGING_P for the functions arguments when a tail call
7626         is made.
7627
7628 2002-04-06  Jason Merrill  <jason@redhat.com>
7629
7630         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7631         (parse_options_and_default_flags): Set them appropriately.
7632         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7633
7634 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7635
7636         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7637         here.
7638
7639         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7640         semicolon.
7641
7642         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7643         types come in by-reference.  Fix typo in comment.
7644
7645 2002-04-05  David S. Miller  <davem@redhat.com>
7646
7647         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7648         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7649         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7650         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7651
7652 2002-04-05  David S. Miller  <davem@redhat.com>
7653
7654         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7655         are not going to emit return instructions, emit at least a nop
7656         for the sake of sane backtraces.
7657
7658 2002-04-05  Richard Henderson  <rth@redhat.com>
7659
7660         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7661
7662 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7663
7664         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7665
7666 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7667
7668         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7669         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7670         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7671
7672 2002-04-05  Andreas Schwab  <schwab@suse.de>
7673
7674         * c-convert.c: Include c-common.h.
7675         * Makefile.in (c-convert.o): Updated.
7676
7677 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7678
7679         * mklibgcc.in: Use separate libgcc.map for each multilib.
7680         * Makefile.in (distclean): Don't remove libgcc.map here.
7681
7682 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7683
7684         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7685         genmultilib invocation.
7686
7687 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7688
7689         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7690         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7691         to num_gprs for symmetry.
7692         * config/mips/mips.c: Adjust accordingly.
7693
7694 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7695
7696         * c-common.c (truthvalue_conversion): Rename, update.
7697         * c-common.h (c_common_truthvalue_conversion): New.
7698         * c-convert.c (convert): Update.
7699         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7700         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7701         * c-typeck.c (build_binary_op, build_unary_op,
7702         build_conditional_expr): Update.
7703         * fold-const.c (constant_boolean_node, fold): Use langhook.
7704         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7705         * langhooks.h (struct lang_hooks): New hook.
7706         * stmt.c (expand_decl_cleanup): Use langhook.
7707         * tree.h (truthvalue_conversion): Remove.
7708 objc:
7709         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7710
7711 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7712
7713         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7714         Add rules to make null object file.
7715
7716 2002-04-04  Jim Blandy  <jimb@redhat.com>
7717
7718         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7719         macro formal parameter names.
7720
7721 2002-04-04  David S. Miller  <davem@redhat.com>
7722
7723         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7724
7725 2002-04-04  Richard Henderson  <rth@redhat.com>
7726
7727         PR middle-end/5099
7728         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7729         Support copies into and out of memory.  Don't accept allows_reg
7730         and allows_mem as gospel.
7731
7732 2002-04-04  Richard Henderson  <rth@redhat.com>
7733
7734         PR opt/6165
7735         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7736         (write_dependence_p): Likewise.
7737
7738 2002-04-04  Richard Henderson  <rth@redhat.com>
7739
7740         * predict.c (estimate_bb_frequencies): Do frequency calculation
7741         with a volatile temporary.
7742
7743 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7744
7745         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7746
7747 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7748
7749         PR c++/6119
7750         * final.c (final_start_function): Don't bump profile_label_no here...
7751         (final_end_function): ...but here.
7752
7753 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7754
7755         * config/sparc/sparc.md (pic): New attribute.
7756         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7757         into stack slots.
7758         (split after do_builtin_setjmp_setup): New.
7759
7760 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7761
7762         PR fortran/6106
7763         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7764         change.
7765
7766 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7767
7768         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7769         UNITS_PER_WORD for zero sized aggregates.
7770
7771 2002-04-03  David S. Miller  <davem@redhat.com>
7772
7773         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7774         one-character spec for this, just use %(link_gcc_c_sequence).
7775
7776 2002-04-03  David S. Miller  <davem@redhat.com>
7777
7778         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7779         handling.
7780
7781 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7782
7783         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7784         (DWARF_FRAME_RETURN_COLUMN): Move.
7785         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7786         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7787         * pa.c (except.h, predict.h): Include.
7788         (FRP): Delete.
7789         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7790         (output_ascii): Add cast.
7791         (store_reg_modify): Revise to add frame notes.
7792         (set_reg_plus_d): Likewise.
7793         (compute_frame_size): Include space for eh data registers in frame if
7794         the current function calls eh_return.
7795         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7796         function calls eh_return.  Save eh data registers if the current
7797         function calls eh_return.  Fix code to add frame notes.  Emit
7798         blockage to prevent insns with frame notes being scheduled in the
7799         delay slot of calls.
7800         (hppa_expand_epilogue): Restore eh data registers and do final stack
7801         adjustment if the current function calls eh_return.  Don't add frame
7802         notes.
7803         (output_call): Revise for change in length of call insn.  Don't do
7804         return pointer adjustment for an unconditional jump in the delay slot
7805         of a call when using frame notes.
7806         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7807         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7808         (ARG_POINTER_CFA_OFFSET): Define.
7809         * pa.md (return_external_pic): New pattern.
7810         (prologue): Correct formatting.  Use return_external_pic if current
7811         function calls eh_return.
7812         (call_internal_symref, call_value_internal_symref,
7813         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7814         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7815         respectively.
7816         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7817
7818         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7819         list of targets to check using "nop" insn.
7820         * configure: Rebuilt.
7821
7822 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7823
7824         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7825
7826 2002-04-03  David S. Miller  <davem@redhat.com>
7827
7828         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7829         library sequence passed to the linker.
7830         (LINK_COMMAND_SPEC): Use it.
7831         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7832         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7833         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7834
7835 2002-04-03  Jason Merrill  <jason@redhat.com>
7836
7837         * except.c (struct eh_status): Remove protect_list.
7838         (begin_protect_partials, end_protect_partials): Remove.
7839         (add_partial_entry): Remove.
7840         * except.h: Remove prototypes.
7841
7842         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7843         expand_decl_cleanup_eh.
7844
7845         PR c++/5636
7846         * tree.h (CLEANUP_EH_ONLY): New macro.
7847         * stmt.c (expand_decl_cleanup_eh): New fn.
7848         (expand_cleanups): Check CLEANUP_EH_ONLY.
7849         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7850         Use expand_decl_cleanup_eh.
7851         (expand_stmt): Adjust.
7852         * c-common.h: Adjust prototype.
7853
7854 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7855
7856         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7857         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7858         (cris_target_asm_function_epilogue): Ditto.
7859         (cris_initial_frame_pointer_offset): Ditto.
7860         (cris_simple_epilogue): Ditto.
7861         (cris_expand_builtin_va_arg): Variable-size types come in
7862         by-reference.
7863
7864 2002-04-03  David S. Miller  <davem@redhat.com>
7865
7866         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7867         little-endian.
7868         (set_fast_math): Correct 'fsr' type.
7869
7870 2002-04-03  Richard Henderson  <rth@redhat.com>
7871
7872         PR opt/3569
7873         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7874         * toplev.c (check_global_declarations): Use it.
7875         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7876         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7877         (LANG_HOOKS_DECLS): Add it.
7878         * langhooks.c (lhd_warn_unused_global_decl): New.
7879         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7880         * c-objc-common.c (c_warn_unused_global_decl): New.
7881         * c-tree.h (c_warn_unused_global_decl): Declare.
7882         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7883
7884 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7885
7886         * langhooks-def.h (lhd_set_decl_assembler_name,
7887         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7888         (LANG_HOOKS_INITIALIZER): Update.
7889         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7890         * langhooks.h (struct lang_hooks): New hook.
7891         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7892         (lang_set_decl_assembler_name): Remove.
7893         (init_obstacks): Don't set hook.
7894         (decl_assembler_name): New function.
7895         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7896         (decl_assembler_name): New.
7897         (lang_set_decl_assembler_name): Remove.
7898
7899 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7900
7901         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7902         works properly with .hidden symbols.
7903         * configure: Rebuilt.
7904         * config.in: Rebuilt.
7905         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7906         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7907         properly with .hidden symbols.
7908
7909 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7910
7911         PR middle-end/6102
7912         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7913         USE argument.
7914
7915 2002-04-03  Richard Henderson  <rth@redhat.com>
7916
7917         PR opt/4120
7918         * sched-rgn.c (sets_likely_spilled): New.
7919         (sets_likely_spilled_1): New.
7920         (add_branch_dependences): Use it.
7921
7922 2002-04-02  Richard Henderson  <rth@redhat.com>
7923
7924         PR opt/4311
7925         * loop.h (LOOP_FIRST_PASS): New.
7926         * loop.c (strength_reduce): Mind it when deciding to unroll.
7927         * toplev.c (rest_of_compilation): Set it.
7928
7929 2002-04-02  David S. Miller  <davem@redhat.com>
7930
7931         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7932         mems_ok_for_ldd_peep when the order of the loads being examined
7933         is reversed.
7934         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7935         existing comment to increase comprehension of this situation.
7936
7937 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7938
7939         * config/sh/sh.md: Don't use union real_extract.
7940
7941 2002-04-02  Richard Henderson  <rth@redhat.com>
7942
7943         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7944
7945 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7946
7947         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7948         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7949         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7950         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7951         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7952         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7953         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7954         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7955         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7956         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7957         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7958         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7959         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7960         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7961         Include as many configury headers via tm_file as possible.  This
7962         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7963         * config/openbsd-oldgas.h: New file.
7964         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7965         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7966         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7967         config/i386/i386-coff.h, config/i386/i386-interix.h,
7968         config/i386/iscdbx.h, config/i386/linux-aout.h,
7969         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7970         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7971         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7972         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7973         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7974         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7975         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7976         config/i386/vxi386.h: Do not directly include configury headers.
7977         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7978         Directly include configury headers that are no longer automatically
7979         included by the above headers.
7980         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7981         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7982         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7983         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7984         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7985         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7986         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7987         (TARGET_VERSION): Define.
7988         * config/i386/beos-elf.h, config/i386/freebsd.h,
7989         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7990         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7991         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7992         config/i386/sco5.h, config/i386/sysv4.h
7993         (TARGET_VERSION): Do not need to protect.
7994         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7995         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7996         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7997         config/i386/i386-interix.h, config/i386/linux-aout.h,
7998         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7999         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
8000         (YES_UNDERSCORES): Do not define - not needed.
8001         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
8002         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8003         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
8004         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
8005         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8006         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
8007         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
8008         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
8009
8010 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
8011             Richard Henderson  <rth@redhat.com>
8012
8013         PR c/5484
8014         * function.c (assign_temp): Accept either type or decl argument.
8015         Detect variables whose size is too large to fit into an integer.
8016         * stmt.c (expand_decl): Pass the decl, not the type.
8017
8018 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
8019
8020         * protoize.c: Match include directory usage with cppdefault.c.
8021
8022 2002-04-03  Jeffrey A Law  (law@redhat.com)
8023             Hans-Peter Nilsson  <hp@bitrange.com>
8024
8025         * combine.c (simplify_comparison): Avoid narrowing a comparison
8026         with a paradoxical subreg when doing so would drop signficant bits.
8027
8028 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
8029
8030         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
8031         if POINTERS_EXTEND_UNSIGNED is defined.
8032
8033 2002-04-02  Richard Henderson  <rth@redhat.com>
8034
8035         PR opt/3967
8036         * local-alloc.c (contains_replace_regs): LO_SUM may contain
8037         replace regs.
8038
8039 2002-04-02  Richard Henderson  <rth@redhat.com>
8040
8041         * doc/standards.texi: Document required freestanding libc entry points.
8042
8043 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
8044
8045         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
8046         associated splitter.  Remove MQ constraint.
8047         (ctrdi_internal4): Correct CCmode clobber.
8048
8049 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8050
8051         * milli64.S ($$dyncall): New function.
8052         * t-linux (LIB1ASMFUNCS): Revise module list.
8053         (LIB1ASMSRC): Use pa/milli64.S.
8054
8055 2002-04-02  Richard Henderson  <rth@redhat.com>
8056
8057         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
8058         rename solaris_sys_varargs_h.
8059
8060 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8061
8062         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
8063         the same mode as its component.
8064
8065 2002-04-02  Richard Henderson  <rth@redhat.com>
8066
8067         PR opt/190
8068         * final.c (this_is_asm_operands): Export.
8069         * output.h (this_is_asm_operands): Declare.
8070         * config/i386/i386.c (print_operand): Error odd asm operands.
8071
8072 2002-04-02  Richard Henderson  <rth@redhat.com>
8073
8074         PR opt/420
8075         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
8076
8077 2002-04-01  Richard Henderson  <rth@redhat.com>
8078
8079         PR target/1538
8080         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
8081         * fixinc/fixincl.x: Rebuild.
8082
8083 2002-04-01  Richard Henderson  <rth@redhat.com>
8084
8085         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
8086         (atomic_alloc, atomic_free): New.
8087         (SIZE, MASK_FOR, PTR_IN): New.
8088         (emergency_reg_state, emergency_reg_state_free): New.
8089         (emergency_labeled_state, emergency_labeled_state_free): New.
8090         (reg_state_alloced, labeled_state_alloced): New.
8091         (alloc_reg_state, free_reg_state): New.
8092         (alloc_label_state, free_label_state, free_label_states): New.
8093         (push, pop, dup_state_stack, free_state_stack): Use them.
8094         (desc_label_state): Likewise.
8095         (uw_frame_state_for): Free label states and state stack.
8096         (uw_update_reg_address): Eliminate warnings.
8097
8098 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
8099
8100         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
8101         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
8102
8103 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8104
8105         * c-decl.c (grokdeclarator): Update.
8106         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8107         * c-tree.h (c_mark_addressable): New.
8108         * c-typeck.c (default_function_array_conversion, build_unary_op,
8109         build_array_ref, convert_for_assignment): Update.
8110         (mark_addressable): Rename.
8111         * calls.c (try_to_integrate, expand_call): Use langhook.
8112         * expr.c (expand_expr): Use langhook.
8113         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
8114         * langhooks.h (struct lang_hooks): New hook.
8115         * stmt.c (expand_asm_operands): Use langhook.
8116         * tree.h (mark_addressable): Remove.
8117 objc:
8118         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8119
8120 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
8121
8122         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
8123         in previous change.
8124
8125 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
8126
8127         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
8128         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
8129
8130 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8131
8132         * c-common.c (unsigned_conversion_warning, convert_and_check,
8133         unsigned_type, signed_type, shorten_compare,
8134         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
8135         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
8136         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
8137         New.
8138         * c-decl.c (grokdeclarator): Update.
8139         * c-format.c (check_format_types): Update.
8140         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8141         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8142         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
8143         * convert.c (convert_to_integer): Use new hooks.
8144         * expmed.c (make_tree): Use new hooks.
8145         * expr.c (store_expr): Use new hooks.
8146         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
8147         all_ones_mask_p, unextend, fold): Use new hooks.
8148         * langhooks.h (struct lang_hooks_for_types): New hooks.
8149         * tree.h (signed_or_unsigned_type, signed_type,
8150         unsigned_type): Remove.
8151 objc:
8152         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8153         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8154
8155 2002-03-31  Richard Henderson  <rth@redhat.com>
8156
8157         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
8158         (desc_frgr_mem): Fix reference to f16-f31.
8159
8160 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8161
8162         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
8163         RTVEC_ELT): Const-ify.
8164         * varray.h (VARRAY_CHECK): Const-ify.
8165         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
8166         ggc_mark_rtvec, ggc_mark): Const-ify.
8167
8168 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8169
8170         * diagnostic.c: Include langhooks-def.h.
8171         * Makefile.in (diagnostic.o): Update.
8172
8173 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8174
8175         * c-common.c (c_unsafe_for_reeval): Rename.
8176         * c-common.h (c_unsafe_for_reeval): Rename.
8177         * c-decl.c (finish_incomplete_decl): Rename.
8178         (c_init_decl_processing): Don't set langhook.
8179         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8180         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8181         * c-objc-common.c (c_objc_common_init): Don't set langhook.
8182         * c-tree.h (finish_incomplete_decl): Rename.
8183         * langhooks-def.h (lhd_unsafe_for_reeval): New.
8184         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8185         (LANG_HOOKS_INITIALIZER): Update.
8186         * langhooks.c (lhd_unsafe_For_reeval): New.
8187         * langhooks.h (struct langhooks): New hooks.
8188         * toplev.c (incomplete_decl_finalize_hook): Remove.
8189         (wrapup_global_declarations): Update.
8190         * tree.c (lang_unsafe_for_reeval): Remove.
8191         (unsafe_for_reeval): Update.
8192         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8193         Remove.
8194 objc:
8195         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8196         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8197
8198 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8199
8200         * diagnostic.c (print_error_function): Remove.
8201         (default_print_error_function): Rename.
8202         (report_error_function): Update.
8203         * diagnostic.h (print_error_function): Remove.
8204         (default_print_error_function): Remove.
8205         * langhooks-def.h (struct diagnostic_context): Predeclare.
8206         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8207         (LANG_HOOKS_INITIALIZER): Update.
8208         * langhooks.h (struct diagnostic context): Predeclare.
8209         (struct lang_hooks): New hook.
8210
8211 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8212
8213         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8214         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8215         !flag_pic.
8216         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8217         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8218         of PIC_OFFSET_TABLE_REGNUM thruout.
8219         * config/rs6000/rs6000.md: Likewise.
8220         * config/rs6000/darwin.h: Likewise.
8221
8222 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8223
8224         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8225         unsigned HOST_WIDE_INT, not unsigned int.
8226
8227 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8228
8229         PR middle-end/6096, middle-end/6098, middle-end/6099
8230         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8231         CODE_LABELs.
8232         (fill_slots_from_thread): Likewise.
8233
8234 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8235
8236         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8237         floating fields in float regs.
8238         (function_arg_record_value_2): Likewise.
8239
8240 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8241
8242         * config/mmix/mmix.md (define_constants): Remove misleading
8243         FIXME.  Add MMIX_fp_rO_OFFSET.
8244         ("nonlocal_goto_receiver"): Don't have stack-frame address of
8245         saved rO as part of the pattern.  Remove FIXME.
8246         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
8247         here, at output-time.
8248
8249 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8250
8251         PR middle-end/6100
8252         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8253         REG_BR_PRED.
8254         (output_v9branch): Likewise.
8255
8256 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8257
8258         * gcc.c: Revert previous patch for now.
8259         * config/i386/djgpp.h: Likewise.
8260
8261 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8262
8263         * config/mmix/crti.asm (_init): Register _fini with atexit.
8264         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8265
8266 2002-03-31  Richard Henderson  <rth@redhat.com>
8267
8268         PR target/3997
8269         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8270         (ASM_OUTPUT_DEF_FROM_DECLS): New.
8271
8272 2002-03-31  Richard Henderson  <rth@redhat.com>
8273
8274         * libgcc2.c (__bb_exit_func): Make static.
8275
8276         * config/alpha/alpha.md (trap): New.
8277
8278 2002-03-31  Richard Henderson  <rth@redhat.com>
8279
8280         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8281         promoted argument types; build trap.
8282         (expand_builtin_trap): New.
8283         (expand_builtin): Use it.
8284         * stmt.c (expand_nl_goto_receivers): Likewise.
8285         * expr.h (expand_builtin_trap): Declare.
8286         * libfuncs.h (LTI_abort, abort_libfunc): New.
8287         * optabs.c (init_optabs): Init abort_libfunc.
8288
8289 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8290
8291         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8292         (LINK_COMMAND_SPEC): ... from here.
8293         (init_gcc_specs): Duplicate it here too, omitting
8294         shared_name in the second copy.
8295         (init_spec): Test for duplicate
8296         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8297
8298 2002-03-30  David S. Miller  <davem@redhat.com>
8299
8300         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8301         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8302
8303 2002-03-30  Roger Sayle <roger@eyesopen.com>
8304             Richard Henderson  <rth@redhat.com>
8305
8306         * regmove.c (combine_stack_adjustments_for_block): Avoid
8307         emitting a stack adjustment of zero bytes.  Let delete_insn
8308         update bb->head.
8309
8310 2002-03-30  Richard Henderson  <rth@redhat.com>
8311
8312         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8313         (sparc_emitting_epilogue): New.
8314         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8315         * config/sparc/sparc-protos.h: Update.
8316         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8317         (TARGET_SWITCHES): Update.
8318         * config/sparc/sparc.md (return): Remove.
8319         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8320         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8321         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8322         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8323         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8324         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8325         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8326         Remove MASK_EPILOGUE.
8327         * doc/invoke.texi: Update.
8328
8329 2002-03-30  Daniel Berlin  <dan@dberlin.org>
8330
8331         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8332         CPP will start the file for us.
8333
8334 2002-03-30  Richard Henderson  <rth@redhat.com>
8335
8336         PR target/5446
8337         * config/ia64/ia64.c (group_barrier_needed_p): Special case
8338         prologue_allocate_stack.
8339         (ia64_single_set): Use insn codes for recognition of special
8340         cases, not rtl matching.
8341         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8342
8343 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
8344
8345         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8346
8347 2002-03-30  Richard Henderson  <rth@redhat.com>
8348
8349         PR target/6032
8350         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8351         or -fomit-frame-pointer with profiling.
8352         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8353         (FUNCTION_PROFILER): Do nothing.
8354         (PROFILE_HOOK): New.
8355         * config/sparc/sparc.c (sparc_override_options): Don't check
8356         code models for profiling.
8357         (sparc_function_profiler): Remove.
8358         (sparc_profile_hook): New.
8359         * config/sparc/sparc-protos.h: Update.
8360
8361 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8362
8363         PR optimization/6086
8364         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8365         of SUBREG of volatile MEM or because the MEM was mode dependent,
8366         return CLOBBER instead of unmodified SUBREG.
8367
8368 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
8369
8370         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8371         when not optimizing.
8372
8373         * toplev.c (rest_of_compilation): Cann mark_constant_function
8374         only when optimizing.
8375
8376         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8377         are NULL.
8378
8379         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8380         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8381         (try_optimize_cfg): clear all AUX fields.
8382
8383         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8384         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8385         (ix86_address_cost): Be prepared for SUBREGed registers.
8386         (legitimate_address_p): Accept SUBREGed registers.
8387
8388 2002-03-29  Richard Henderson  <rth@redhat.com>
8389
8390         PR target/5672
8391         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8392
8393 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8394
8395         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8396         for aggregate and TFmode types.
8397
8398 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8399
8400         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8401
8402 2002-03-29  Richard Henderson  <rth@redhat.com>
8403
8404         PR target/5886
8405         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8406         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8407
8408 2002-03-29  Richard Henderson  <rth@redhat.com>
8409
8410         PR target/6041
8411         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8412         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8413         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8414         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8415         conditional.
8416         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8417
8418 2002-03-29  Dale Johannesen <dalej@apple.com>
8419
8420         * loop.c (combine_movables): Do allow combination of pseudos.
8421
8422 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
8423
8424         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8425         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8426         No functional change except ...
8427         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
8428         * doc/install.texi (*-*-freebsd*): Document port configuration.
8429
8430 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8431
8432         * Makefile.in (convert.o, calls.o, expmed.o): Update.
8433         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8434         Use new hooks.
8435         * builtin-types.def (BT_PTRMODE): Update.
8436         * c-common.c (type_for_size): Rename c_common_type_for_size.
8437         (type_for_mode): Similarly.
8438         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8439         Use new hook.
8440         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8441         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8442         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8443         Redefine.
8444         * c-typeck.c (common_type, comptypes, default_conversion):
8445         Use new hooks.
8446         * calls.c: Include langhooks.h.
8447         (emit_library_call_value_1): Use new hooks.  Avoid redundant
8448         calls.
8449         * convert.c: Include langhooks.h
8450         (convert_to_pointer, convert_to_integer): Use new hooks.
8451         * except.c (init_eh): Similarly.
8452         * expmed.c: Include langhooks.h.
8453         (expand_mult_add): Use new hooks.
8454         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8455         try_casesi): Similarly.
8456         * fold-const.c (optimize_bit_field_compare, make_range,
8457         decode_field_reference, fold_truthop, fold): Similarly.
8458         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8459         put_var_into_stack): Similarly.
8460         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8461         LANG_HOOKS_TYPE_FOR_SIZE): New.
8462         (LANG_HOOKS_TYPES_INITIALIZER): Update.
8463         * langhooks.h (lang_hooks_for_types): New hooks.
8464         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8465         * tree.c (get_unwidened, get_narrower): Similarly.
8466         * tree.h (type_for_mode, type_for_size): Remove.
8467         * varasm.c (force_const_mem): Use new hooks.
8468         * utils2.c (nonbinary_modular_operation): Update.
8469 objc:
8470         * objc-act.c (handle_impent): Update.
8471         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8472         Redefine.
8473
8474 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
8475
8476         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8477         * config/ia64/ia64.c (basereg_operand): New.
8478         * config/ia64/ia64-protos.h (basereg_operand): Declare.
8479         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8480
8481 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8482
8483         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8484         unwind information when frame_pointer_needed.
8485         (mmix_assemble_integer): Tweak wording in comment.
8486
8487 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8488
8489         * Makefile.in (except.o): Update.
8490         * except.c: Include langhooks.h.
8491         (init_eh): Use langhook.
8492         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8493         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8494         (LANG_HOOKS_INITIALIZER): Update.
8495         * langhooks.h (lang_hooks_for_types): New.
8496         (struct lang_hooks): Add it.
8497         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8498         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8499 config:
8500         * alpha/alpha.c: Include langhooks.h.
8501         (alpha_build_va_list): Use langhook.
8502         * d30v/d30v.c: Include langhooks.h.
8503         (d30v_build_va_list): Use langhook.
8504         * i386/i386.c: Include langhooks.h.
8505         (ix86_build_va_list): Use langhook.
8506         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8507         * s390/s390.c: Include langhooks.h.
8508         (s390_build_va_list): Use langhook.
8509         * stormy16/stormy16.c: Include langhooks.h.
8510         (stormy16_build_va_list): Use langhook.
8511
8512 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8513
8514         PR c++/5964
8515         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8516         attributes.
8517         (length): Compute variable length for branches/calls/jumps here.
8518         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8519         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8520         define branch_type attribute.
8521         (divsi3_sp32): Maximum length is 6 not 7.
8522         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8523         call_address_untyped_struct_value_sp32,
8524         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8525         * config/sparc/sparc.c (empty_delay_slot): New function.
8526         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8527         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8528
8529 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8530
8531         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8532         nonzero_bits if not needed.
8533         (nonzero_bits) [XOR]: Likewise.
8534         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8535         reg_last_set_mode and mode are both MODE_INT, but not equal.
8536         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8537         in nonzero_bits_mode for MODE_INT modes.
8538
8539 2002-03-28  Richard Henderson  <rth@redhat.com>
8540
8541         PR target/5715
8542         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8543         to GAS.  Correct drift between alternatives.
8544
8545 2002-03-28  Richard Henderson  <rth@redhat.com>
8546
8547         PR target/6087
8548         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8549
8550 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8551
8552         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8553         emulation to the linker.
8554
8555 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8556
8557         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8558         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8559
8560 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8561
8562         * combine.c (simplify_and_const_int): Make sure to apply mask
8563         when force_to_mode returns a constant integer.  PR3311.
8564
8565 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8566
8567         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8568
8569 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8570
8571         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8572         and Objective-C Dialect Options.
8573
8574 2002-03-28  Richard Henderson  <rth@redhat.com>
8575
8576         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8577         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8578
8579 2002-03-28  Richard Henderson  <rth@redhat.com>
8580
8581         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8582         on to c_expand_body.
8583         * c-tree.h (finish_function): Update decl.
8584         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8585
8586 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8587
8588         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8589
8590 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8591
8592         * rtlanal.c: Include flags.h
8593         (may_trap_p): Do not mark FP operations if trapping
8594         if !flag_trapping_math
8595         * Makefile.in (rtlanal.o): Add dependency on flag.h
8596         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8597
8598 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8599
8600         * mips.md: Use dconst1, not 1.0, as first argument of
8601         REAL_VALUE_LDEXP.  Don't use union real_extract.
8602
8603 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8604
8605         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8606         rather than $target.  Heed program_prefix and
8607         program_transform_name.  Search for gas in cross-compiler case too.
8608         "test -x" rather than "test -f".
8609         (gcc_cv_ld): Likewise.
8610         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8611         (gcc_cv_objdump): Likewise.
8612         * configure: Regenerate.
8613
8614 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8615
8616         * Makefile.in (attribs.o): Update.
8617         * attribs.c: Include langhooks.h.
8618         (decl_attributes): Use langhook.
8619         * c-decl.c (insert_default_attributes): Rename.
8620         * c-tree.h (c_insert_default_attributes): New.
8621         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8622         (LANG_HOOKS_INITIALIZER): Update.
8623         * langhooks.h (struct lang_hooks): New hook.
8624         * tree.h (insert_default_attributes): Remove.
8625 objc:
8626         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8627
8628 2002-03-27  Andreas Schwab  <schwab@suse.de>
8629
8630         * config/i386/i386.c (classify_argument): Also check for
8631         QUAL_UNION_TYPE.
8632
8633 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8634
8635         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8636         any more.
8637
8638 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8639
8640         * i960.md (ret): Set PC.
8641         (nonlocal_goto): Fix expander.
8642         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8643         some jump or call.
8644
8645 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8646
8647         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8648         of libcall regions.
8649
8650 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8651
8652         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8653         assigning to BLOCK_FOR_INSN directly.
8654
8655 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8656
8657         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8658
8659 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8660
8661         * c-common.c (c_expand_expr): Fix prototype.
8662         * c-common.h (c_expand_expr): Always declare, update.
8663         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8664         * c-objc-common.c (c_objc_common_init): No global hook.
8665         * expr.c (expand_expr): Use langhook.
8666         * expr.h (enum expand_modifier): Conditionally declare.
8667         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8668         (LANG_HOOKS_INITIALIZER): Update.
8669         * langhooks.c (lhd_expand_expr): New.
8670         * langhooks.h (struct lang_hooks): New hook.
8671         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8672         (lang_independent_init): Don't default hook.
8673 objc:
8674         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8675
8676 2002-03-27  Richard Henderson  <rth@redhat.com>
8677
8678         PR target/6054
8679         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8680         TARGET_CONST_GP.  Simplify conditions.
8681
8682 2002-03-27  Richard Henderson  <rth@redhat.com>
8683
8684         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8685         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8686         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8687
8688 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8689
8690         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8691         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8692         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8693         Remove unnecessary masks.
8694         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8695         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8696         -mwindows, -mdll switches and their negations.
8697
8698 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8699
8700         * gcc-common.c (lang_mark_false_label_stack): Remove.
8701         * ggc.h (lang_mark_false_label_stack): Similarly.
8702
8703 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8704
8705         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8706
8707         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8708         or __rtems_ is defined.
8709
8710 2002-03-26  Richard Henderson  <rth@redhat.com>
8711
8712         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8713         if a non-trivial load was emitted.
8714         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8715         in high+extra+low case.
8716
8717 2002-03-26  Richard Henderson  <rth@redhat.com>
8718
8719         * config.gcc (sparc*-solaris): Use float_format=sparc.
8720
8721 2002-03-26  Richard Henderson  <rth@redhat.com>
8722
8723         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8724         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8725         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8726         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8727         (WINT_TYPE_SIZE): Fix at 32.
8728
8729 2002-03-26  Richard Henderson  <rth@redhat.com>
8730
8731         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8732         until after eh landing pad generation.
8733         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8734         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8735
8736 2002-03-26  Richard Henderson  <rth@redhat.com>
8737
8738         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8739
8740 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8741
8742         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8743         and warning switches.
8744         (cc1_options):  Likewise.
8745
8746 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8747
8748         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8749         Restore more of the signal context.  Set no_reg_stack_frame.
8750         * config/ia64/unwind-ia64.c (unw_state_record):
8751         Add no_reg_stack_frame, comments.
8752         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8753         (uw_update_context): Adjust bsp when unwinding from leaf,
8754         but not signal frame.
8755
8756 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8757
8758         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8759
8760 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8761
8762         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8763
8764 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8765
8766         PR target/5621
8767         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8768         "Add a pool_range attribute", which was lost during the ARM/Thumb
8769         merge.
8770
8771 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8772
8773         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8774         a register into the MAC16 accumulator.
8775
8776 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8777
8778         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8779         (Warning Options): Document -Wswitch-enum.
8780         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8781         -Wswitch.
8782         (warn_switch_enum): Define variables.
8783         * flags.h (warn_switch_enum): Declare variables.
8784         * stmt.c (expand_end_case_type): When warn_switch_enum /
8785         -Wswitch-enum, perform switch checks.
8786         Fix PR c/5044.
8787
8788 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8789
8790         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8791         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8792         (reload_muladdsi_compare0_scratch): Delete.
8793
8794 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8795
8796         * doc/install.texi (*-*-freebsd*): Update.
8797
8798 2002-03-26  Richard Henderson  <rth@redhat.com>
8799
8800         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8801         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8802
8803         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8804         types from the normal argument frame.
8805
8806         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8807         variable sized objects by reference.
8808         (sparc_va_arg): Receive them by reference too.
8809
8810 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8811
8812         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8813         code to not restoring global registers.
8814
8815 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8816
8817         * Makefile.in (ggc-common.o): Update.
8818         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8819         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8820         * c-tree.h (c_mark_tree): New.
8821         * ggc-common.c: Include langhooks.h.
8822         (gcc_mark_trees): Use new langhook.
8823         * ggc-callbacks.c: Delete file.
8824         * ggc.h (lang_mark_tree): Remove.
8825         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8826         (LANG_HOOKS_INITIALIZER): Update.
8827         * langhooks.h (struct lang_hooks): New hook.
8828 objc:
8829         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8830
8831 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8832
8833         * doc/cpp.texi: Exclude entire Top node from printed manual.
8834         Move option index after directive index.  Insert page breaks
8835         before GFDL and concept index.  Index environment variables
8836         with command line options.
8837         * doc/cppenv.texi: Use @vtable for environment variable list.
8838         Add paragraph explaining semantics of empty elements in path
8839         variables.  Exclude a cross-reference to Fishkill from the
8840         manpage.  Remove an unnecessary cross-reference of the entry
8841         right above the referer.  Don't use @anchor in text that goes
8842         into manpage.
8843         * doc/cppopts.texi: Cross-reference the environment variables
8844         section, not the specific environment variable, for consistency.
8845
8846 2002-03-25  Richard Henderson  <rth@redhat.com>
8847
8848         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8849         anywhere in the block.  Don't refer to insns that have been
8850         removed from the chain.  Iterate backward through the new insns.
8851         Don't refer to edges that have been removed.
8852
8853 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8854
8855         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8856         test for overflow of constant.
8857
8858 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8859
8860         PR target/2623
8861         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8862         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8863         these patterns on arm_archv4.
8864
8865 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8866
8867         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8868         int".
8869
8870 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8871
8872         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8873         float_handled, float_handler, float_signal, set_float_handler,
8874         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8875         * toplev.h: Don't prototype do_float_handler.
8876
8877         * c-lex.c: Fold parse_float into lex_number.  Make warning
8878         about portability of hex float constants more informative, and
8879         don't issue it on top of a syntax error.
8880         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8881         their callers.
8882         * real.h: Define REAL_VALUE_ABS here...
8883         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8884         simplify_unary_real, simplify_binary_real, and
8885         simplify_binary_is2orm1 into their callers.
8886         * tree.c: Fold build_real_from_int_cst_1 into caller.
8887
8888         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8889
8890         * tsystem.h: Include float.h here...
8891         * libgcc2.c: ... not here.
8892
8893 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8894
8895         Fixes for: PR bootstrap/3591, target/5676
8896         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8897         defined.  Do not disable exceptions or rtti.
8898         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8899         mcore.h.  Disable exceptions and rtti, since they are not
8900         supported by EPOC.
8901
8902 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8903
8904         * c-decl.c (maybe_build_cleanup): Remove.
8905         * expr.c (expand_expr): Use langhook.
8906         * langhooks-def.h (lhd_return_null_tree,
8907         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8908         (LANGHOOKS_INITIALIZER): Update.
8909         * langhooks.c (lhd_return_null_tree): New.
8910         * langhooks.h (struct lang_hooks): New hook.
8911         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8912         * tree.h (maybe_build_cleanup): Remove.
8913
8914 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8915
8916         * regrename.c (build_def_use): Move recog_memoized
8917         before extract_insn.
8918
8919 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8920
8921         PR target/6043
8922         * expr.c (emit_group_store): Handle storing into CONCAT.
8923
8924 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8925
8926         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8927         corresponding MATCH_DUP.
8928
8929 2002-03-24  Richard Henderson  <rth@redhat.com>
8930
8931         * unroll.c (unroll_loop): Zero label_map.
8932
8933         * gcse.c: Include except.h.
8934         * Makefile.in (gcse.o): Update.
8935
8936 2002-03-24  Richard Henderson  <rth@redhat.com>
8937
8938         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8939         Do resolve_unique_section before shared data clause.
8940
8941 2002-03-24  Richard Henderson  <rth@redhat.com>
8942
8943         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8944
8945 2002-03-24  Richard Henderson  <rth@redhat.com>
8946
8947         * recog.c (peephole2_optimize): Split blocks when EH insns are
8948         generated in the middle of a block.  Do global life update if
8949         zapped EH edges.
8950
8951 2002-03-24  Richard Henderson  <rth@redhat.com>
8952
8953         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8954
8955 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8956
8957         preprocessor/3951
8958         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8959         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8960         (init_dependency_output): Don't make no_output decision here.
8961
8962 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8963
8964         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8965         warn_switch.  Update description.
8966         (expand_end_case_type): Call check_for_full_enumeration_handling
8967         when warn_switch.
8968
8969 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8970
8971         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8972         (m68hc11_split_move): Call it to see if the source and destination
8973         operands use the same direction auto inc/dec mode, otherwise make the
8974         source an offsetable memory operand and generate an add.
8975
8976 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8977
8978         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8979         register for operand 2.
8980         ("*subsi3_zero_extendqi"): Likewise.
8981         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8982         bits so that it is compatible with a pop.
8983         ("*andhi3_gen"): Likewise.
8984         ("xorhi3"): Likewise.
8985
8986 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8987
8988         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8989         -pedantic here...
8990         (cpp_post_options): ... not here.
8991
8992 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8993             Aldy Hernandez  <aldyh@redhat.com>
8994
8995         Removal of separate preprocessor cpp0.
8996
8997         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8998         cpp0, install-common): Update.
8999         * c-common.c (flag_preprocess_only): New.
9000         (c_common_init): Preprocess for -E.
9001         * c-common.h (flag_preprocess_only): New.
9002         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
9003         * c-objc-common.c (c_init_decl_processing): Exit quickly
9004         for NULL return from c_common_init.
9005         * cpplib.h (cpp_preprocess_file): New.
9006         * cppmain.c (main, general_init, pfile, progname): Remove.
9007         (do_preprocessing): Rename cpp_preprocess_file, don't call
9008         cpp_finish.  Don't close stdout here.
9009         (setup_callbacks): Update prototype.
9010         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
9011         Update.
9012         * tradcpp.c (main): Ignore -quiet.
9013 objc:
9014         * lang-specs.h (default_compilers): Preprocess with cc1obj.
9015
9016 2002-03-24  Richard Henderson  <rth@redhat.com>
9017
9018         PR optimization/5742
9019         * machmode.def: Add inner mode field to complex modes.
9020         * config/mips/mips.c (mips_function_value): Always define.  Add
9021         new argument to handle libcalls.
9022         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
9023         (FUNCTION_VALUE): Likewise.
9024         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
9025         * config/mips/mips-protos.h: Update.
9026
9027 2002-03-23  Richard Henderson  <rth@redhat.com>
9028
9029         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
9030         * config/sparc/sparc-protos.h: Update.
9031         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
9032
9033 2002-03-23  Richard Henderson  <rth@redhat.com>
9034
9035         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
9036         _start or _init begins the text segment.
9037
9038 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
9039
9040         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
9041         not HOST_WIDEST_INT.
9042         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
9043
9044 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
9045
9046         PR java/5489
9047         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
9048         operand argument to output_return_instruction.
9049         * arm.c (arm_print_operand, case 'd'): If the operand is
9050         const_true_rtx then just return.
9051         (arm_print_operand, case 'D'): If the operand is const_true_rtx
9052         then abort.
9053
9054 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9055
9056         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
9057         (Warning Options): Document -Wswitch-default.
9058         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
9059         -Wswitch.
9060         (warn_switch_default): Define variable.
9061         (warn_switch): Update comment.
9062         * flags.h (warn_switch_default): Declare variable.
9063         (warn_switch): Update comment.
9064         * stmt.c (expand_end_case): Check for and, when
9065         warn_switch_no_default, warn of a missing default case.
9066
9067 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
9068
9069         * real.h (N): Special case 128 bit doubles.
9070
9071         * combine.c (simplify_comparison): When widening modes, ignore
9072         sign extension on CONST_INTs.
9073
9074 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
9075
9076         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
9077         passed to adjust_address.  Fix comment formatting.
9078
9079
9080 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
9081
9082         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
9083         Always make REAL_VALUE_TYPE a struct containing an array of
9084         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
9085         big it is.  Don't declare or use union real_extract.
9086
9087         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
9088         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
9089         (print_operand), config/arm/arm.c (output_move_double),
9090         config/arm/arm.md (consttable_4, consttable_8),
9091         config/romp/romp.c (output_fpops), config/s390/s390.h
9092         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
9093         (xtensa_output_literal): Don't use union real_extract.
9094
9095         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
9096         (sfmode_constant_to_ulong), config/ns32k/merlin.h
9097         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
9098         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
9099         (PRINT_OPERAND): Don't use local version of union
9100         real_extract.
9101
9102         * config/convex/convex.c (check_float_value), config/vax/vax.c
9103         (vax_float_literal), config/m88k/m88k.md (divdf3),
9104         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
9105         config/pdp11/pdp11.c (output_move_quad): Don't do host
9106         arithmetic on target floating point quantities.
9107
9108         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
9109         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
9110
9111         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
9112         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
9113
9114         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
9115         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
9116         INFINITY.
9117         * print-rtl.c (print_rtx): Disable code which needs
9118         floating-point emulator.
9119         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
9120         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
9121         depending on HOST_FLOAT_FORMAT to be defined properly.
9122
9123         * config/1750a/1750a.c (get_double, float_label): Delete.
9124         (print_operand): Delete huge commented-out chunk.  Use
9125         REAL_VALUE_TO_DECIMAL.
9126         * config/1750a/1750a-protos.h: Delete prototypes of deleted
9127         functions.
9128         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
9129         IEEE_FLOAT_FORMAT.
9130         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
9131         Use REAL_VALUE_TO_DECIMAL as ELF version does.
9132         * config/m88k/m88k.c (real_power_of_2_operand,
9133         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
9134         real_extract out of the union; run the input through
9135         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
9136         from that into the union.
9137         * config/pdp11/pdp11.c (output_move_double): Rearrange
9138         parentheses to make automatic indenter happy.
9139
9140         * doc/tm.texi (Cross-compilation): Rename node to "Floating
9141         Point" and rewrite to describe current situation.  Also adjust
9142         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
9143         match code.
9144         * doc/rtl.texi: Adjust cross reference.
9145
9146 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
9147
9148         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
9149         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
9150         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
9151         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
9152         prevent use of sp as a reload register.
9153         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
9154         non_acc_reg_operand.
9155         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
9156         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
9157         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
9158         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
9159
9160 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9161
9162         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
9163         * cpplex.c (unterminated): Delete.
9164         (parse_string): No string literal may extend over multiple
9165         lines.  Suppress the error when preprocessing assembly.
9166         * cppmain.c (scan_translation_unit): Strings are single-line.
9167
9168         * doc/cpp.texi: Update to match.
9169
9170 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9171
9172         PR optimization/5854
9173         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
9174         Shut up warnings.
9175         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
9176         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
9177         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
9178         const0 if scratch register was not allocated.
9179         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
9180         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
9181         with GEN_INT (...).
9182         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
9183         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
9184         with GEN_INT (...) everywhere.  Remove constraints in define_split
9185         patterns.
9186         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9187         require scratch register for setting 0 into regs/non-pushable memory.
9188
9189 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9190
9191         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9192         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9193
9194 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
9195
9196         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
9197         * cppinit.c (cpp_create_reader):  On by default.
9198         (cpp_handle_option):  Handle -W[no-]endif-labels.
9199         (cpp_post_options):  Also enable if -pedantic.
9200         * cpplib.c (do_else):  Use it.
9201         (do_endif):  Likewise.
9202         * doc/cppopts.texi:  Document new option.
9203         * doc/invoke.texi:  Document new option.
9204
9205 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
9206
9207         * config/i386/i386.c, config/i386/i386.md: Change all occurences
9208         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9209
9210 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9211
9212         * flow.c (calculate_global_regs_live): Clear aux fields of
9213         ENTRY and EXIT.
9214
9215 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9216
9217         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9218         REG or MEM subregs, pass rtx * instead of rtx to it.
9219         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9220         rtx * instead of rtx to alter_subreg.
9221         * config/m32r/m32r.c (gen_split_move_double): Likewise.
9222         * config/pj/pj.c (pj_output_rval): Likewise.
9223
9224 2002-03-22  Richard Henderson  <rth@redhat.com>
9225
9226         PR target/3177
9227         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9228         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9229         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9230         (ia64_expand_prologue): Look at int_regs, not words, for number
9231         of incomming int regs.
9232
9233 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
9234
9235         * expr.c (expand_expr): A RESULT_DECL is part of a call.
9236
9237 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
9238
9239         * toplev.c (flag_loop_optimize, flag_crossjumping):
9240         New static variables.
9241         (rest_of_compilation): Conditionalize crossjumping and
9242         loop optimizer.
9243         (parse_options_and_default_flags): Default loop_optimize and
9244         crossjumping.
9245         (lang_independent_options): Add -fcrossjumping and -floop-optimize
9246         * invoke.texi (crossjumping, loop-optimize): Document.
9247
9248 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9249
9250         * real.c (eiisneg): Move outside #ifdef NANS.
9251
9252 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
9253
9254         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9255         frequencies match; avoid match on different loop depths.
9256         (try_crossjump_to_bb): Kill tests that no longer brings time
9257         savings.
9258         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9259         updating code.
9260         (split_edge): Likewise.
9261
9262         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9263         variable.
9264
9265         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9266         * cfgrtl.c: Include insn-config.h
9267         (split_block) Dirtify block in presence of conditional execution
9268
9269 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9270
9271         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9272         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9273         (function_arg): Constify CUMULATIVE_ARGS.
9274         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9275         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9276         (UNITS_PER_DOUBLE): New macro.
9277         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
9278         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
9279         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
9280         fp_regs and stack_words.
9281         (EABI_FLOAT_VARARGS_P): New macro.
9282         * config/mips/mips.c (struct mips_arg_info): New.
9283         (mips_arg_info): New function.
9284         (function_arg_advance): Use it.  Add adjustment instructions here
9285         rather than in function_arg.
9286         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
9287         for VOIDmode at the beginning of the function.
9288         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
9289         (function_arg_pass_by_reference): Likewise.
9290         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9291         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9292         (mips_va_start): Likewise.  Use the new stack_words field of
9293         CUMULATIVE_ARGS to set up overflow area.  Reformat.
9294         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
9295         doubles and other types, aligning the overflow pointer for non-doubles
9296         too.  Remove some code duplication.  Replace hard-coded constants.
9297
9298 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9299
9300         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9301         (CLASS_UNITS): Undefine.
9302         (CLASS_MAX_NREGS): Use FP_INC.
9303         * config/mips/mips.c (compute_frame_size): Likewise.
9304         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9305
9306 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9307
9308         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9309         prototype, and handle lexing numbers and identifiers.
9310         (parse_identifier): Update to new form of parse_slow.
9311         (parse_number): Fast path only, use parse_slow otherwise.
9312         (_cpp_lex_direct): Update calls to parse_number.
9313
9314 2002-03-21  DJ Delorie  <dj@redhat.com>
9315
9316         * bb-reorder.c (make_reorder_chain_1): Protect against
9317         when redundant edges are omitted.
9318         * predict.c (dump_prediction): Likewise.
9319
9320 2002-03-21  Richard Henderson  <rth@redhat.com>
9321
9322         PR target/5996
9323         * fixinc/inclhack.def (solaris_stdio_tag): New.
9324         * fixinc/fixincl.x: Regenerate.
9325
9326 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9327
9328         PR c/5597
9329         * c-typeck.c (process_init_element): Flag non-static
9330         initialization of a flexible array member as illegal.
9331
9332 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
9333
9334         * config/rs6000/t-linux64: New.
9335         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9336         t-ppccomm.  Use t-rs6000 and t-linux64.
9337         (powerpc64-*-gnu* <tmake_file>): Likewise.
9338         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9339         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9340         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9341
9342 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
9343
9344         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9345         flag_really_no_inline instead of optimize == 0.
9346
9347         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9348
9349         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9350
9351         * flags.h (flag_really_no_inline): New.
9352
9353         * c-common.c (c_common_post_options): Initialize
9354         flag_really_no_inline.
9355
9356         * toplev.c (flag_really_no_inline): New.
9357
9358 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9359
9360         * config/avr/avr.md (length): Fix length computation for
9361         conditional branches.
9362
9363 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9364
9365         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9366         sdbout.o, profile.o): Update.
9367         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9368         langhook.
9369         * c-common.h (gettags): Move here from tree.h.
9370         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9371         insert_block, getdecls, kept_level_p, global_bindings_p): New.
9372         * dbxout.c (dbxout_init): Use getdecls langhook.
9373         * expr.c (expand_expr): Use insert_block langhook.
9374         * fold-const.c: Include langhooks.h.
9375         (fold_range_test, fold_binary_op_with_conditional_arg,
9376         fold): Use global_bindings_p langhook.
9377         * integrate.c (expand_inline_function): Use insert_block langhook.
9378         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9379         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9380         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9381         LANG_HOOKS_GETDECLS): New.
9382         (LANG_HOOKS_INITIALIZER): Update.
9383         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9384         langhook.
9385         * langhooks.h (struct lang_hooks_for_decls): New.
9386         (struct lang_hooks): Update.
9387         * profile.c: Include langhooks.h.
9388         (output_func_start_profiler): Use new langhooks.
9389         * sdbout.c: Include langhooks.h.
9390         (sdbout_init, sdbout_finish): Use getdecls langhook.
9391         * stmt.c: Include langhooks.h.
9392         (expand_fixup, fixup_gotos): Use new langhooks.
9393         * stor-layout.c: Include langhooks.h.
9394         (variable_size): Use global_bindings_p langhook.
9395         * toplev.c (compile_file): Use getdecls langhook.
9396         * tree-inline.c (remap_block): Use insert_block langhook.
9397         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9398         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9399
9400 2002-03-21  Richard Henderson  <rth@redhat.com>
9401
9402         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9403         constants in .data when -fpic.
9404
9405 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9406
9407         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9408         where appropriate.
9409
9410 2002-03-21  Tom Tromey  <tromey@redhat.com>
9411
9412         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
9413
9414 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9415
9416         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9417
9418         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9419
9420 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9421             Richard Henderson  <rth@redhat.com>
9422
9423         PR c/5354
9424         * c-common.c (c_expand_expr): Preserve result of a statement
9425         expression if needed.
9426
9427 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9428
9429         PR bootstrap/4195
9430         * genrecog.c (maybe_both_true_mode): Remove.
9431         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9432         * machmode.def (Pmode): Likewise.
9433
9434 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
9435
9436         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9437         (nonlocal_mentioned_p_1): New function.
9438         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9439         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9440         (mark_constant_function): Recognize pure functions.
9441         * rtl.h (global_reg_mentioned_p): New prototype.
9442         * rtlanal.c (global_reg_mentioned_p,
9443         global_reg_mentioned_p_1): New function.
9444
9445 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9446
9447         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9448         UNIX assert.h.
9449         * fixinc/fixincl.x: Regenerate.
9450
9451 2002-03-20  Jason Merrill  <jason@redhat.com>
9452
9453         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9454
9455 2002-03-20  Michael Meissner  <meissner@redhat.com>
9456
9457         * doc/invoke.texi (Optimize Options): Document that -O2 sets
9458         -fstrict-aliasing.
9459
9460 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9461
9462         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9463         ".literal_position" directive before the constant pool.
9464
9465 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9466
9467         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9468         Add Craig Rodrigues.
9469         Add Brad Lucier to testers.
9470
9471 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9472
9473         PR target/4792
9474         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9475         to if_then_else.
9476         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9477         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9478         instead of insn_extract.
9479
9480 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9481
9482         PR bootstrap/4192
9483         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9484
9485         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9486         stmt if some case has been output.
9487
9488 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9489
9490         PR c/5972
9491         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9492         movsfcc_1, movdfcc_1): Add %O2.
9493         * config/i386/i386.c (print_operand): Handle %ON.
9494         Print . before float condition codes in Sun as cmov syntax.
9495         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9496         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9497         no longer true.
9498
9499 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9500
9501         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9502         return instruction if PC was popped.
9503
9504 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9505
9506         * config/xtensa/xtensa.md: Remove unused type attributes.
9507         (adddi_carry, subddi_carry): Change type attribute to "multi".
9508
9509 2002-03-19  Dale Johannesen  <dalej@apple.com>
9510
9511         PR optimization/5999, middle-end/5731
9512         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9513         multiplications by reciprocals.
9514
9515 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9516
9517         * Makefile.in: Update.
9518         * c-common.c: Include langhooks.h.
9519         (inline_forbidden_p): Use new hook.
9520         * diagnostic.c: Include langhooks.h.
9521         (format_with_decl, announce_function,
9522         default_print_error_function): Use new hook.
9523         * dwarf2out.c (dwarf2_name): Use new hook.
9524         * function.c: Include langhooks.h.
9525         (init_function_start): Use new hook.
9526         * langhooks-def.h (lhd_decl_printable_name): New.
9527         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9528         (LANGHOOKS_INITIALIZER): Update.
9529         * langhooks.c (lhd_decl_printable_name): New.
9530         * langhooks.h (struct lang_hooks): New hook.
9531         * toplev.c (decl_name, decl_printable_name): Remove.
9532         (open_dump_file): Use new hook.
9533         (process_options): Remove old hook.
9534         * tree.h (decl_printable_name): Remove.
9535 objc:
9536         * objc-act.c (objc_init): Remove old hook.
9537         (objc_printable_name): Export.
9538         * objc-act.h (objc_printable_name): New.
9539         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9540
9541 2002-03-19  Jim Blandy  <jimb@redhat.com>
9542
9543         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9544         the start_source_file debug hook, not the current line number.
9545
9546 2002-03-19  Richard Henderson  <rth@redhat.com>
9547
9548         * flow.c (EH_USES): Provide default.
9549         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9550         * doc/tm.texi (EH_USES): New.
9551
9552         * config/ia64/ia64.c (ia64_eh_uses): New.
9553         * config/ia64/ia64-protos.h: Update.
9554         * config/ia64/ia64.h (EH_USES): New.
9555
9556 2002-03-19  Richard Henderson  <rth@redhat.com>
9557
9558         * varasm.c (output_constant_def): Fix stupid typo.
9559
9560 2002-03-19  Richard Henderson  <rth@redhat.com>
9561
9562         PR 5879
9563         * except.c (current_function_has_exception_handlers): New.
9564         * except.h: Declare it.
9565         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9566         Combine tests that disable all sibcalls for the function.
9567
9568 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9569
9570         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9571         for INTEGER_CST.
9572
9573 2002-03-19  Richard Henderson  <rth@redhat.com>
9574
9575         PR 5977, 5991
9576         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9577         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9578
9579 2002-03-19  Jim Blandy  <jimb@redhat.com>
9580
9581         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9582         name, even if the replacement list contains no tokens, as required
9583         by Dwarf.
9584
9585 2002-03-19  Jason Merrill  <jason@redhat.com>
9586
9587         * varasm.c (globalize_decl): Get the name from the RTL, not
9588         DECL_ASSEMBLER_NAME.
9589
9590         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9591
9592 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9593
9594         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9595         subdi_carry): Define.
9596
9597 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9598
9599         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9600         about -fpic/-fPIC if extra_warnings set.
9601
9602 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9603
9604         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9605         TREE_STRING_POINTER.
9606         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9607
9608 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9609
9610         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9611         in favor of SP if FRAME_POINTER_REQUIRED is false.
9612
9613 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9614
9615         * emit-rtl.c (gen_int_mode): New function.
9616         * rtl.h: Prototype for it.
9617         * combine.c (make_extraction, simplify_comparison), expmed.c
9618         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9619         (convert_modes, store_field), optabs.c (expand_fix),
9620         simplify-rtx.c (neg_const_int, simplify_unary_real),
9621
9622         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9623         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9624
9625 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9626
9627         PR c/5656
9628         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9629         convert_parm_for_inlining.
9630         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9631         Define.
9632         * langhooks-def.h: Likewise.
9633         * objc/objc-lang.c: Likewise.
9634         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9635         function.
9636         * tree-inline.c (initialize_inlined_parameters):
9637         Call convert_parm_for_inlining lang hook if needed.
9638         * c-typeck.c (c_convert_parm_for_inlining): New function.
9639         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9640
9641 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9642
9643         * calls.c (precompute_arguments): Do not assume that temporaries
9644         can be destroyed after expanding the argument.
9645         (expand_call): Likewise.
9646
9647 2002-03-15  Eric Christopher  <echristo@redhat.com>
9648
9649         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9650         Fix register preference on last change.
9651         * config/mips/mips.c (mips_return_in_memory): New function.
9652         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9653         * config/mips/mips-protos.h: Declare.
9654         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9655         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9656
9657 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9658
9659         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9660         a register too.
9661         (anddi3, iorsi3): Likewise.
9662
9663         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9664         use %gprel for symbols that are going to be placed in linkonce
9665         sections.
9666
9667         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9668         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9669         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9670         not needed.  Disregard leaf_function_p().
9671         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9672         mips16 frame pointer.
9673         * config/mips/mips.md (store ra): Only to small SP offsets.
9674         2001-08-22  Graham Stott  <grahams@redhat.com>
9675         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9676         return a REG rtx for the return address register.
9677
9678 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9679
9680         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9681         constant-pool addresses as "mode-dependent".
9682         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9683
9684 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9685
9686         PR target/5740
9687         * expr.c (emit_group_load): Use extract_bit_field if
9688         needed for CONCAT arguments.
9689
9690 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9691
9692         PR target/4863
9693         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9694         offset to the base of the table.
9695         (thumb_tablejump): Matcher for Thumb tablejump insn.
9696         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9697         as the difference of two labels.
9698         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9699         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9700         tables in the code.
9701         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9702         * arm.c (get_jump_table_size): If the table is not in the text
9703         section, return zero.
9704
9705 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9706
9707         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9708         of gen_rtx_SUBREG.
9709         (arm_reload_out_hi): Use gen_lowpart instead of
9710         gen_rtx_SUBREG to access QImode components.
9711         * config/arm/arm.md: Disable zero_extend split for QImode
9712         subregs in BIG_ENDIAN mode.
9713         (storehi_bigend): Match use of least significant byte.
9714         (storeinthi): Remove extraneous SUBREG.
9715         Add missing construction of operands[2].
9716         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9717         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9718         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9719
9720 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9721
9722         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9723         any_operand.
9724
9725 2002-03-17  Richard Henderson  <rth@redhat.com>
9726
9727         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9728         explicitly.
9729
9730 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9731
9732         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9733         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9734
9735 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9736
9737         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9738
9739         * predict.c (estimate_bb_frequencies): Delete unused variables.
9740
9741 2002-03-17  Richard Henderson  <rth@redhat.com>
9742
9743         * config/ia64/ia64.c (ia64_attribute_table): Move before
9744         targetm definition.  Make static.
9745
9746 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9747
9748         * c-common.h (yyparse, c_common_parse_file): New.
9749         * c-lang.c: Include c-common.h.
9750         (LANG_HOOKS_PARSE_FILE): Redefine.
9751         * c-lex.c: Include c-common.h.
9752         (yyparse): Rename c_common_parse_file.  Call yyparse.
9753         * c-parse.in (yyparse): Remove macro.
9754         * c-tree.h (yyparse_1): Remove.
9755         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9756         (LANG_HOOKS_INITIALIZER): Update.
9757         * langhooks.h (struct lang_hoooks): New hook parse_file.
9758         * toplev.c (compile_file): Use parse_file hook.
9759         * tree.h (yyparse): Remove.
9760         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9761
9762 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9763
9764         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9765         float_truncate, not fix.
9766         ("*truncdfsf2_real"): Ditto.
9767         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9768
9769         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9770
9771 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9772
9773         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9774         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9775         where appropriate.  Make the second reference to
9776         leaf_function_p a function call, as intended.  Reindented.
9777
9778         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9779         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9780
9781         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9782         add register to non-constant into sp.
9783
9784         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9785         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9786         (mips16_gp_pseudo_rtx): Lose.
9787         (INIT_EXPANDERS): Deleted.
9788         * config/mips/mips.c (mips_init_machine_status): New.
9789         (mips_free_machine_status): New.
9790         (mips_mark_machine_status): New.
9791         (override_options): Set them.
9792         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9793         (struct machine_function): ... new.  Replaced all references.
9794         (mips_add_gc_roots): Don't mark them.
9795         (embedded_pic_fnaddr_reg): New, extracted from...
9796         (embedded_pic_offset): ... here.
9797         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9798         (movsi): Likewise.
9799
9800 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9801
9802         * cppinit.c: Revert -MD removal.
9803
9804 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9805
9806         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9807         soft registers by default for 68HC12.
9808         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9809         when compiling with -fomit-frame-pointer.
9810         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9811         (expand_epilogue): Likewise.
9812         (m68hc11_gen_rotate): Use exg when rotating by 8.
9813
9814 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9815
9816         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9817         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9818         (splits): Remove unused add splits.
9819         ("*addhi3_68hc12"): Tune constraints.
9820         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9821         constant fits in 8-bits and D is dead use abx/aby instructions.
9822         ("*addhi3"): Remove extern declaration of ix_reg.
9823         ("*subsi3"): Optimize and provide new split.
9824         ("subhi3"): Cleanup.
9825         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9826         (arith splits): For 68hc12 save the address register on the stack
9827         and do the arithmetic operation with a pop.
9828
9829 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9830
9831         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9832         allocating QImode in address registers.
9833         ("*movqi_m68hc11"): Likewise.
9834
9835 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9836
9837         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9838
9839 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9840
9841         * cppinit.c (print_help): Display -MD and -MMD.
9842         Don't display usage string.  Update assertion syntax and
9843         typo.
9844         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9845         (cpp_handle_option): Update.
9846
9847 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9848
9849         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9850         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9851         and define it so that regardless of target CPU size,
9852         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9853         of "int" rather than "long."
9854
9855 2002-03-15  Richard Henderson  <rth@redhat.com>
9856
9857         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9858         size as a tree.
9859
9860 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9861
9862         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9863         ("tstqi" split): Avoid using memory for tstqi on address register.
9864         (splits): Remove constraints.
9865         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9866         ("cmpdf", "cmpsf"): Remove since not used.
9867         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9868         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9869
9870 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9871
9872         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9873         ("neghi2"): Tighten constraints.
9874         ("one_cmplsi2"): Optimize and simplify split.
9875         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9876
9877 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9878
9879         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9880         and split of AND operation to clear the upper bits.
9881         ("*logicalsi3_zextqi"): Likewise.
9882         ("*logicallhi3_zexthi_ashift8"): Likewise.
9883         ("*logicalsi3_silshr16"): Likewise.
9884         ("logicalsi3_silshl16"): Likewise.
9885         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9886
9887 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9888
9889         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9890         (m68hc11_indirect_p): New function.
9891         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9892         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9893         TARGET_M6812.
9894         (asm_print_register): Likewise.
9895         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9896         (m68hc11_indirect_p): Declare.
9897         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9898         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9899         (TARGET_SWITCHES): New option -mrelax.
9900         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9901         destination.
9902         ("iorsi3", "xorsi3"): Likewise.
9903         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9904         ("*andhi3_mem"): New to handle destination in memory with bclr
9905         and a scratch register.
9906         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9907         ("*andhi3_const"): New when operand2 is constant.
9908         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9909         ("*andhi3_gen"): Cleanup of the old "andhi3".
9910         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9911         ("xorqi3"): Update constraints.
9912
9913 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9914
9915         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9916         for reg_equiv_memory_loc when the operand is a register that does
9917         not get a hard register (stack location).
9918         (tst_operand): After reload, accept all memory operand.
9919         (symbolic_memory_operand): Fix detection of symbolic references.
9920         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9921         accept symbols and any constant.
9922
9923 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9924
9925         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9926         note on the insn that sets the soft frame register.
9927         (must_parenthesize): ix and iy are also reserved names.
9928         (print_operand_address): One more place where parenthesis are required
9929         to avoid confusion with register names.
9930         (m68hc11_gen_movhi): Allow push of stack pointer.
9931         (m68hc11_check_z_replacement): Fix handling of parallel with a
9932         clobber.
9933         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9934         the replacement register is.
9935         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9936         and D8_REGS classes.
9937         (MODES_TIEABLE_P): All modes are tieable except QImode.
9938
9939 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9940
9941         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9942         (___subdi3): Likewise.
9943         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9944         (__map_data_section): Optimize 68hc11 case.
9945
9946 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9947
9948         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9949         than a shift to avoid adding a register with itself.
9950         (m68hc11_memory_move_cost): Take into account NO_REGS.
9951         (m68hc11_register_move_cost): Update and use memory move cost
9952         for soft registers.
9953         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9954         it gives more opportunities to cse to optimize.
9955         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9956         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9957
9958 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9959
9960         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9961         * c-common.def (CLEANUP_STMT): New tree node.
9962         * c-common.h (CLEANUP_DECL): New macro.
9963         (CLEANUP_EXPR): Likewise.
9964         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9965         * expr.c (expand_expr): Tidy.
9966         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9967         * tree-inline.c (initialize_inlined_parameters): Clean up
9968         new local variables.
9969
9970 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9971
9972         PR bootstrap/4128
9973         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9974         before movrXX only, use reg_overlap_mentioned_p.
9975         Only special case NE if just one insn can be generated.
9976
9977 2002-03-15  Jason Merrill  <jason@redhat.com>
9978
9979         * varasm.c (assemble_variable): Call resolve_unique_section before
9980         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
9981         of error_mark_node.
9982
9983 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9984
9985         PR target/5170
9986         * arm.md (split pattern for thumb shiftable immediates): Add comment
9987         explaining non-obvious test.
9988
9989 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9990
9991         PR target/5712
9992         * arm.md (movaddr, movaddr_insn): Delete.
9993
9994 2002-03-15  Jason Merrill  <jason@redhat.com>
9995
9996         * toplev.c (wrapup_global_declarations): Clarify variable handling.
9997         -fkeep-static-consts doesn't apply to comdats.
9998
9999 2002-03-14  Richard Henderson  <rth@redhat.com>
10000
10001         * c-decl.c: Include c-pragma.h.
10002         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
10003         (finish_function): Tidy.
10004         * c-pragma.c: Include c-common.h.
10005         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
10006         (handle_pragma_weak): Use them.
10007         (init_pragma): Register pending_weaks.
10008         * c-pragma.h (maybe_apply_pragma_weak): Declare.
10009         * print-tree.c (print_node): Print DECL_WEAK.
10010         * varasm.c (mark_weak_decls): Remove.
10011         (remove_from_pending_weak_list): Remove.
10012         (add_weak): Remove.
10013         (asm_emit_uninitialised): Call globalize_decl for weak commons.
10014         (weak_decls): Make a tree_list.
10015         (declare_weak): Cons weak_decls directly.
10016         (globalize_decl): Remove weak_decls elements directly.
10017         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
10018         symbols.  Don't pretend to handle aliases.
10019         (init_varasm_once): Update weak_decls registry.
10020         * Makefile.in: Update dependencies.
10021
10022 2002-03-14  Richard Henderson  <rth@redhat.com>
10023
10024         PR target/5312
10025         * config/ia64/ia64.c: Include tm_p.h last.
10026         (gen_nop_type): Remove duplicate definition.
10027         (cycle_end_fill_slots): Set sched_data for second L slot.
10028         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
10029         (nop_cycles_until): Fix typos.
10030
10031 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
10032
10033         PR optimization/5891
10034         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
10035
10036 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
10037
10038         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
10039           descriptors correctly.
10040
10041 2002-03-14  Michael Meissner  <meissner@redhat.com>
10042
10043         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
10044         100, allowing MAX_UNROLLED_INSNS to be overridden.
10045
10046         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
10047         --param.
10048
10049         * unroll.c (params.h): Include.
10050         (MAX_UNROLLED_INSNS): Delete, now in params.h.
10051
10052         * doc/invoke.texi (--param max-unroll-insns): Document.
10053
10054         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
10055
10056 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
10057
10058         * arm.md: Fix warnings about constraints in peepholes and splits.
10059
10060 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
10061
10062         * cpphash.h (struct lexer_state): Remove line_extension member.
10063         * cpplib.c (dequote_string, do_linemarker): New functions.
10064         (linemarker_dir): New data object.
10065         (DIRECTIVE_TABLE): No longer need to interpret #line in
10066         preprocessed source.  Delete obsolete comment about return
10067         values of handlers.
10068         (end_directive, directive_diagnostics, _cpp_handle_directive):
10069         Don't muck with line_extension.
10070         (directive_diagnostics): No need to issue warnings for
10071         linemarkers here.
10072         (_cpp_handle_directive): Issue warnings for linemarkers here,
10073         when appropriate.  Dispatch linemarkers to do_linemarker, not
10074         do_line.
10075         (do_line): Code to handle linemarkers split out to do_linemarker.
10076         Convert escape sequences in filename argument, both places.
10077
10078         * cppmacro.c (quote_string): Rename cpp_quote_string and
10079         export.  All callers changed.
10080         * cpplib.h (cpp_quote_string): Prototype.
10081         * cppmain.c (print_line): Call cpp_quote_string on to_file
10082         before printing it.
10083
10084         * doc/cpp.texi: Document that escapes are now interpreted in
10085         #line and in linemarkers, and that non-printing characters are
10086         converted to octal escapes when linemarkers are generated.
10087
10088 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10089
10090         * emit-rtl.c (try_split): Use delete_insns.
10091         * recog.c (split_all_insns): Fix terminating condition.
10092
10093 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
10094             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10095
10096         PR target/5828
10097         * arm.c (arm_output_epilogue): Fix floating-point register save
10098         adjustment when using a frame pointer.
10099
10100 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
10101
10102         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
10103         * config/mips/mips.c (compute_frame_size): Retrofit them here.
10104         (save_restore_insns, mips_expand_epilogue): And here.
10105         (build_mips16_call_stub): And here.
10106         (mips_function_value): Use the new macros to decide whether a single
10107         or complex float can be returned in floating-point registers.  Return
10108         a parallel rtx in the complex case.
10109
10110 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
10111
10112         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
10113         call after liveness analysis.
10114
10115         * recog.c (split_insn): Use delete_insn_and_edges.
10116
10117         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
10118         instructions to have branch prediction notes.
10119         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
10120
10121 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
10122
10123         * configure.in: Don't pass -Wno-long-long to a ADA compiler
10124         that doesn't support it.
10125         * configure: Regenerate.
10126
10127 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10128
10129         PR target/5626
10130         * config/sparc/sparc.md (normal_branch, inverted_branch,
10131         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10132         inverted_fp_branch): Adjust calls to output_cbranch.
10133         Set length attribute.
10134         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
10135         output_v9branch.  Set length attribute.
10136         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
10137         predicates.
10138         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
10139         (output_cbranch): Likewise.  Handle far branches.
10140         (output_v9branch): Handle far branches.
10141         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
10142         Adjust prototypes.
10143         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
10144         noov_compare64_op predicates.
10145
10146 2002-03-13  Jason Merrill  <jason@redhat.com>
10147
10148         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
10149         into the function and constify it.
10150         * gthr-dce.h, gthr-solaris.h: Likewise.
10151
10152 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
10153
10154         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
10155         * config/rs6000/rs6000.c (rs6000_va_arg): Use
10156         std_expand_builtin_va_arg if not ABI_V4.
10157
10158 2002-03-13  Jason Merrill  <jason@redhat.com>
10159
10160         * varasm.c (globalize_decl): New fn.
10161         (assemble_start_function): Use it.
10162         (asm_emit_uninitialized): Use it.
10163         (assemble_alias): Use it.
10164         (assemble_variable): Use it.
10165
10166 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
10167
10168         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
10169         2002-03-12 internal visibility change.
10170         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
10171         visibility into SYMBOL_REF_FLAG.
10172
10173 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
10174
10175         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
10176         VOIDmode operand.  Add compile-time optimization for constant results.
10177
10178 2002-03-12  Jason Merrill  <jason@redhat.com>
10179
10180         * c-typeck.c (convert_for_assignment): Don't allow conversions
10181         between pointers and references.  Only allow lvalues to convert to
10182         reference.
10183
10184 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
10185
10186         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10187         before prologue, to avoid scheduling problems.
10188
10189 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10190
10191         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10192         (ELIMINABLE_REGS): Add sfp->sp.
10193         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10194
10195 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10196
10197         PR optimization/5892
10198         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10199
10200 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10201
10202         * loop.c (basic_induction_var): Don't call convert_modes if mode
10203         classes are different.
10204
10205 2002-03-12  Richard Henderson  <rth@redhat.com>
10206
10207         PR optimization/5901
10208         * function.c (reposition_prologue_and_epilogue_notes): Position
10209         the markers after/before the last/first insn not deleted.
10210
10211 2002-03-12  Richard Henderson  <rth@redhat.com>
10212
10213         PR optimization/5878
10214         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10215         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10216         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10217
10218         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10219         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10220         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10221
10222         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10223         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10224         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10225         also.  Don't set it if not flag_pic.
10226         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10227         to be INVALID_REGNUM when not used.
10228
10229 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
10230
10231         * expmed.c (store_bit_field): Reset alias set for memory.
10232         (extract_bit_field): Same.
10233
10234 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10235
10236         * c-common.c (c_tree_code_type, c_tree_code_length,
10237         c_tree_code_name, add_c_tree_codes): Delete.
10238         * c-common.h (add_c_tree_codes): Delete.
10239         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10240         Define.
10241         * c-objc-common.c (c_objc_common_init): Don't call
10242         add_c_tree_codes, instead set lang_unsafe_for_reeval.
10243         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10244         objc_tree_code_name, add_objc_tree_codes): Delete.
10245         (objc_init): Don't call add_objc_tree_codes.
10246         * objc/objc-lang.c (tree_code_type, tree_code_length,
10247         tree_code_name): Define.
10248         * toplev.c (lang_independent_init): Don't set
10249         tree_code_length[IDENTIFIER_NODE].
10250         * tree.c (tree_code_type, tree_code_length, tree_code_name):
10251         Delete definitions, moved to language front-ends.
10252         * tree.def (IDENTIFIER_NODE): Hardwire the length.
10253         * tree.h (tree_code_type, tree_code_length, tree_code_name):
10254         Const-ify.
10255         (tree_code_length): Change type to unsigned char.
10256
10257 2002-03-12  Richard Henderson  <rth@redhat.com>
10258
10259         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10260         internal visibility change.
10261
10262 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10263
10264         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10265         validize_mem() instead of change_address to avoid clobbering
10266         memory attributes.
10267
10268 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10269
10270         * c-lex.h (position_after_whitespace): Remove.
10271
10272 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
10273
10274         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10275         (lex_string): Use unsigned char pointers.
10276
10277 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10278
10279         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10280         is not a valid memory_operand.
10281
10282 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10283
10284         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10285         * config/xtensa/lib1funcs.asm: Fix copyright to include
10286         special case for libgcc files.
10287         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10288         (__divsi3): Likewise.
10289         (__umodsi3): Likewise.
10290         (__modsi3): Likewise.
10291         * config/xtensa/lib2funcs.S: Fix copyright to include
10292         special case for libgcc files.
10293
10294 2002-03-12  Tom Rix  <trix@redhat.com>
10295
10296         * collect2.c (resolve_lib_name): Move outside of
10297         OBJECT_FORMAT_COFF ifdef.
10298         (ignore_library): Same.
10299
10300 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10301
10302         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10303
10304 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10305
10306         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10307         to function_section before writing out the constant pool.
10308
10309 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
10310
10311         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10312         zero_constant.
10313         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10314
10315 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
10316
10317         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10318         (adddi3): Likewise.
10319         (movdf): Likewise.
10320         (movdi): Likewise.
10321         (cmpsi splitter): Likewise.
10322         (modsi3): Fail if <= 0.
10323         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10324         redundant test when HOST_BITS_PER_WIDE_INT != 32.
10325         (reg_or_sub_cint64_operand): Likewise.
10326         (num_insns_constant_wide): Optimize sign extension.
10327         (rs6000_legitimize_address): Likewise.
10328
10329 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10330
10331         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10332         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10333
10334 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10335
10336         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10337         address calculation.
10338
10339 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10340
10341         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10342         scratch register to DImode / TImode.
10343         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10344         register used does not overlap the target.
10345
10346 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10347
10348         * Makefile.in (debug.o): Depend on debug.h.
10349         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10350         * debug.c (do_nothing_debug_hooks): Likewise.
10351         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10352         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10353         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10354         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10355         * dwarfout.c (dwarf_debug_hooks): Likewise.
10356         * integrate.c (output_inline_function): Likewise.
10357         * objc/objc-act.c (synth_module_prologue): Likewise.
10358         * sdbout.c (sdb_debug_hooks): Likewise.
10359         * toplev.c (debug_hooks): Likewise.
10360         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10361
10362 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10363
10364         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10365         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10366         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10367         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10368         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10369         * defaults.h (POINTER_SIZE): Define.
10370         * doc/tm.texi (POINTER_SIZE): Document default.
10371
10372 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10373
10374         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10375
10376 2002-03-11  Richard Henderson  <rth@redhat.com>
10377
10378         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10379         if rebuild_label_notes_after_reload.
10380
10381 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
10382
10383         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
10384         emit pic register load if "internal" visibility.
10385         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10386         (cris_expand_builtin_va_arg): Do all computations on trees.
10387
10388 2002-03-11  Richard Henderson  <rth@redhat.com>
10389
10390         * rtlanal.c: Include recog.h.
10391         (keep_with_call_p): Fix thinko.
10392         * Makefile.in (rtlanal.o): Update dependencies.
10393
10394 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
10395
10396         * genflags.c (gen_insn): Use IS_VSPACE.
10397         * genoutput.c (output_insn_data): Likewise.
10398         (process_template): Likewise.
10399
10400 2002-03-11  Richard Henderson  <rth@redhat.com>
10401
10402         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10403
10404 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10405
10406         * Makefile.in: Update.
10407         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10408         Update documentation.
10409         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10410         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10411
10412 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
10413
10414         * Makefile.in: Give texi2pod its input file as a command line
10415         argument, not on stdin.
10416
10417 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
10418             Daniel Berlin  <dan@dberlin.org>
10419
10420         C++ alias analysis improvement.
10421         * alias.c (record_component_aliases): Record aliases for base
10422         classes too.
10423
10424 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
10425
10426         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10427
10428 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
10429
10430         * toplev.c (vms_fopen): Remove, not needed.
10431
10432         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10433
10434         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10435
10436         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10437         for FP, already done later.
10438
10439         * toplev.c (debug_args): Add entry for VMS_DEBUG.
10440         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10441
10442 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
10443
10444         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10445         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10446         LARGEST_EXPONENT_IS_NORMAL for the given mode.
10447         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10448         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10449         (ediv, emul, eldexp, esqrt): Likewise.
10450         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10451         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10452         (saturate): New function.
10453         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10454         (make_nan): Use a saturation value instead of a NaN if
10455         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
10456         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10457         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
10458         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
10459         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10460         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10461         !ROUND_TOWARDS_ZERO.
10462         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10463         (ROUND_TOWARDS_ZERO): Document.
10464
10465 2002-03-11  Andreas Jaeger  <aj@suse.de>
10466
10467         * cfg.c (dump_flow_info): Remove unused variable.
10468
10469 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
10470
10471         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10472         computations on trees.
10473
10474 2002-03-10  Richard Henderson  <rth@redhat.com>
10475
10476         PR 5693:
10477         * reload.c (copy_replacements_1): New.
10478         (copy_replacements): Use it to recurse through the rtx.
10479
10480 2002-03-10  Richard Henderson  <rth@redhat.com>
10481
10482         * loop.c (strength_reduce): Compute number of iterations as
10483         unsigned HOST_WIDE_INT.
10484
10485 2002-03-10  Richard Henderson  <rth@redhat.com>
10486
10487         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10488         to move away from the end of the block.
10489
10490 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10491
10492         PR preprocessor/5899
10493         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10494
10495 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10496
10497         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10498
10499         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10500
10501 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10502
10503         * config/mmix/mmix.c: Improve comments.
10504         (mmix_target_asm_function_prologue): Drop variable
10505         empty_stack_frame.  Don't allocate unused slot above fp.
10506         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10507         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10508         brace in first column.
10509         (enum reg_class): Ditto.
10510         (FIRST_PARM_OFFSET): Now 0.
10511         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10512
10513 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10514
10515         * combine.c (make_extraction): Fix error in last change.
10516
10517 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10518
10519         * c4x.c (c4x_fp_reglist): Const-ify.
10520         * cris.c (cris_print_operand): Likewise.
10521         * i386.c (ix86_va_arg): Likewise.
10522         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10523         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10524         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10525         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10526         * mcore.h (regno_reg_class): Likewise.
10527         * mips.c (gen_int_relational): Likewise.
10528         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10529         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10530         * pdp11.c (move_costs): Likewise.
10531         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10532         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10533         Likewise.
10534         * s390.h (regclass_map): Likewise.
10535         * sh.c (shift_amounts): Likewise.
10536         * sh.md (rotlsi3): Likewise.
10537
10538 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10539
10540         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10541         (ne0+5): Use new clobber to generate proper shift pattern.
10542         Patch by Michael Matz <matz@kde.org>.
10543
10544 2002-03-09  Andreas Schwab  <schwab@suse.de>
10545
10546         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10547
10548 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10549
10550         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10551
10552 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10553
10554         PR middle-end/5877
10555         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10556         even for non-representable constants.
10557
10558 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10559
10560         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10561         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10562         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10563         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10564         (pop_function_context): Compute MAY_SHARE parameter for
10565         fixup_var_refs.
10566         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10567         (gen_mem_addressof): Call fixup_var_refs with new parm.
10568
10569         * combine.c (make_extraction): Don't make extension of CONST_INT.
10570
10571 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10572
10573         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10574         in o32 and o64 ABIs.
10575         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10576         but getting fixed-size structs passed in registers regardless of
10577         padding in o32 and o64 ABIs.
10578
10579         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10580         offset before loading address of argument passed by transparent
10581         reference.
10582
10583 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10584
10585         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10586
10587 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10588
10589         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10590         marker such that registers after it are saved.
10591
10592 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10593
10594         * sparc.c (arith_4096_operand): Fix error in last change.
10595
10596 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10597
10598         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10599         defaults for MEABI.
10600
10601 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10602
10603         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10604         vectors.
10605
10606 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10607
10608         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10609
10610 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10611
10612         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10613         removed; fix return value.
10614         * combine.c (combine_instructions): Dirtify blocks where we failed to
10615         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10616         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10617
10618 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10619
10620         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10621
10622 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10623
10624         * recog.c (peephole2_optimize): Re-distribute EH edges.
10625
10626 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10627
10628         * expr.c (expand_expr): Use unsave lang hook.
10629         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10630         (LANG_HOOKS_INITIALIZER): Update.
10631         * langhooks.h (struct lang_hooks): New hook unsave.
10632         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10633         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10634         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10635         (unsave_expr_now): Remove.
10636         * tree.h (unsave_expr_now, lang_unsave,
10637         lang_unsave_expr_now): Remove.
10638         (lhd_unsave): New.
10639
10640 2002-03-08  Andreas Jaeger  <aj@suse.de>
10641
10642         * flow.c (propagate_block_delete_insn): Remove unused variable.
10643
10644 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10645
10646         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10647         insn length for memory load/store.
10648
10649 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10650
10651         * doc/install.texi (--with-libiconv-prefix): Document.
10652
10653 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10654
10655         * doc/sourcebuild.texi: Fix typo.
10656
10657 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10658
10659         PR c/3711
10660         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10661         trees.
10662
10663 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10664
10665         * rtl.c (copy_most_rtx): Move from here ...
10666         * emit-rtl.c (copy_most_rtx): ... to here.
10667
10668 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10669
10670         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10671         SUBTARGET_CPP_SIZE_SPEC.
10672         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10673
10674         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10675
10676 2002-03-07  Matt Hiller  <hiller@redhat.com>
10677
10678         * gensupport.c (first_dir_md_include): Renamed from include;
10679         change all references.
10680         (last_dir_md_include): Renamed from last_include; change all
10681         references.
10682         (init_md_reader): Unconditionally initialize base_dir whether or
10683         not filename is a relative path.
10684
10685 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10686
10687         * config/fp-bit.c (_unord_f2): Compile it in even if
10688         US_SOFTWARE_GOFAST is enabled.
10689
10690         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10691         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10692         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10693         NULL_RTX, try reversing the comparison and the operands.
10694
10695 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10696
10697         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10698         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10699         and MATCH_OP_DUP.
10700
10701 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10702
10703         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10704
10705 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10706
10707         * basic-block.h (fixup_abnormal_edges): Declare.
10708         * reload1.c (fixup_abnormal_edges): New function.
10709         * reg-stack.c (convert_regs): Use it.
10710
10711         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10712
10713         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10714
10715 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10716
10717         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10718         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10719         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10720         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10721         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10722         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10723         unless x and y could be infinite.
10724         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10725         Check that the common type of both arguments is a real, even for
10726         targets without unordered comparisons.  Allow an integer argument
10727         to be compared against a real.
10728         (expand_tree_builtin): Use expand_unordered_cmp.
10729         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10730         * cse.c (fold_rtx): Likewise.  Fix indentation.
10731         * fold-const.c (fold_real_zero_addition_p): New.
10732         (fold): Use it, and the new HONOR_... macros.
10733         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10734         * jump.c (reversed_comparison_code_parts): After searching for
10735         the true comparison mode, use HONOR_NANS to decide whether it
10736         can be safely reversed.
10737         (reverse_condition_maybe_unordered): Remove IEEE check.
10738         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10739         to decide which simplifications are valid.  Allow the following
10740         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10741         and (a - -b) to (a + b).
10742         (simplify_relational_operation): Use HONOR_NANS.
10743         * doc/tm.texi: Document the MODE_HAS_... macros.
10744
10745 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10746
10747         * combine.c (simplify_comparison): If simplifying a logical shift
10748         right and compare with constant, force the comparison to unsigned.
10749
10750 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10751
10752         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10753
10754         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10755         -mabi=no-altivec
10756         (alt_reg_names): Remove % for vrsave.
10757
10758 2002-03-06  Richard Henderson  <rth@redhat.com>
10759
10760         PR optimization/5844
10761         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10762         if used indicates we've already emitted one copy of an operand.
10763         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10764         (gen_split): Supply a non-null used.
10765
10766 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10767
10768         * reload1.c (reload): Unshare all rtl after reload is done.
10769
10770         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10771         but simply fail if the expression is too complex to simplify.
10772         (simplify_gen_binary): Handle simplify_plus_minus failures.
10773
10774 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10775
10776         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10777         consistently call delete_trivially_dead_insns after CSE and GCSE;
10778         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10779         after liveness2; update comment in last crossjumping.
10780         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10781
10782 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10783
10784         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10785         after completing fast dead code elimination.
10786
10787         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10788         COMPARE operator.
10789
10790 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10791
10792         * version.c:  Fix misplaced leading blanks on first line.
10793
10794 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10795
10796         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10797
10798 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10799
10800         * cfgcleanup.c (mentions_nonequal_regs): New function.
10801         (thread_jump): Use it.
10802         * toplev.c (rest_of_compilation): Run jump threading after
10803         liveness.
10804
10805 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10806
10807         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10808         patch.
10809
10810 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10811
10812         * predict.c (estimate_bb_frequencies): Do not reload the
10813         frequencies from notes.
10814
10815 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10816
10817         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10818         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10819
10820         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10821         delete_noop_moves): Return indeger.
10822         * flow.c (ndead): New variable.
10823         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10824         BB argument; update callers.
10825         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10826         (life_analysis): Do not call purge_all_dead_edges.
10827         (update_life_info): Return number of deleted insns; print statistics.
10828         (update_life_info_in_dirty_blocks): likewise.
10829         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10830         return number of insns deleted.
10831
10832         * cse.c: Include timevar.h
10833         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10834         iterate until stabilizes; print statistics; return number of killed
10835         insns.
10836         * Makefile.in: (cse.o): Add timevar.h dependency
10837         * rtl.h (delete_trivially_dead_insns): New.
10838         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10839         * toplev.c (rest_of_compilation): Update callers.
10840
10841         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10842         (try_optimize_cfg): Do not update liveness.
10843         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10844         removal stabilizes; use delete_trivially_dead_insns.
10845
10846         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10847
10848 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10849
10850         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10851         callbacks when processing assembly language.
10852
10853 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10854
10855         * pa.h (ASM_FILE_END): Define.
10856         * som.h (ASM_FILE_END): Delete.
10857
10858         * pa.c (function_arg): Don't pass floats in general registers in
10859         indirect calls if TARGET_ELF32.
10860
10861 2002-03-05  Richard Henderson  <rth@redhat.com>
10862
10863         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10864
10865 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10866
10867         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10868
10869 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10870
10871         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10872         -r command line.  Don't hide any symbols if not building
10873         shared libgcc.
10874
10875 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10876
10877         * cfg.c (dump_flow_info): Warn about profile mismatches.
10878         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10879         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10880
10881 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10882
10883         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10884         wide volatile memory by parts.
10885
10886 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10887
10888         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10889         is NULL.
10890
10891 2002-03-05  Richard Henderson  <rth@redhat.com>
10892
10893         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10894
10895 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10896
10897         * toplev.c (documented_lang_options): Document more
10898         language-specific options.
10899         * doc/invoke.texi (Warning Options): Correct documentation for
10900         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10901         * c-decl.c (c_decode_option): Use a table to handle warning options.
10902
10903 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10904
10905         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10906         parameter to mmix_encode_section_info.
10907         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10908         relocatably.  Always produce ELF, not mmo if linking relocatably.
10909         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10910         first is non-zero, don't add symbol prefix.
10911         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10912         prototype accordingly.
10913
10914 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10915
10916         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10917
10918 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10919
10920         * configure.in: Increase required makeinfo version to 4.1.
10921         * configure: Regenerate.
10922
10923 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10924
10925         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10926         elsewhere now.
10927
10928 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10929
10930         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10931         * doc/invoke.texi: Fix @math uses.
10932
10933 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10934
10935         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10936         removal
10937
10938 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10939
10940         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10941         (powerpc-*-eabisimaltivec*): Same.
10942
10943         * config/rs6000/t-ppcendian: New.
10944
10945 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10946
10947         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10948         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10949         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10950
10951 2002-03-03  Richard Henderson  <rth@redhat.com>
10952
10953         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10954
10955 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10956
10957         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10958         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10959         tree.c, config/m68k/m68k.c:
10960         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10961         REAL_ARITHMETIC blocks unconditional.  Delete some further
10962         #ifdef blocks predicated on REAL_ARITHMETIC.
10963         * flags.h, toplev.c: Delete remaining references to
10964         flag_pretend_float.
10965
10966         * doc/invoke.texi: Remove documentation of -fpretend-float.
10967         * doc/tm.texi: Describe the various REAL_* macros as provided by
10968         real.h, not by the target configuration files.
10969
10970         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10971         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10972         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10973         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10974         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10975         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10976         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10977         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10978         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10979         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10980         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10981         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10982         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10983         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10984         config/xtensa/xtensa.h:
10985         Do not define, undefine, or mention in comments any of
10986         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10987         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10988         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10989         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10990         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10991         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10992         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10993         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10994         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10995
10996 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10997
10998         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10999         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
11000         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
11001         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
11002         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
11003         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
11004         Delete.
11005         * defaults.h (BITS_PER_WORD): Define.
11006         * doc/tm.texi (BITS_PER_WORD): Document default value.
11007
11008         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
11009         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
11010         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
11011
11012 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11013
11014         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
11015         lieu of explicit sizeof/sizeof.
11016         * i386.c (override_options, ix86_init_mmx_sse_builtins,
11017         ix86_expand_builtin): Likewise.
11018         * mips.c (mips_add_gc_roots): Likewise.
11019         * mmix.c (mmix_output_condition): Likewise.
11020         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
11021         altivec_init_builtins): Likewise.
11022         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
11023         * cppexp.c (Nsuff, parse_number): Likewise.
11024         * cppinit.c (builtin_array_end): Likewise.
11025         * gcc.c (n_default_compilers, process_command): Likewise.
11026         * genpreds.c (output_predicate_decls): Likewise.
11027         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
11028         * lcm.c (N_ENTITIES): Likewise.
11029         * stor-layout.c (set_sizetype): Likewise.
11030
11031 2002-03-03  Richard Henderson  <rth@redhat.com>
11032
11033         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
11034         for types or labels.
11035
11036 2002-03-03  Richard Henderson  <rth@redhat.com>
11037
11038         * c-decl.c (start_decl): Initialized variables are not common.
11039
11040 2002-03-02  Per Bothner  <per@bothner.com>
11041
11042         * gcc.c (option_map):  Suport new --bootclasspath option.
11043         --CLASSPATH is now just an alias for --classpath.
11044
11045 2002-03-02  Richard Henderson  <rth@redhat.com>
11046
11047         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
11048         load if "internal" visibility.
11049         * doc/extend.texi: Document visibility meanings.
11050
11051 2002-03-02  Richard Henderson  <rth@redhat.com>
11052
11053         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
11054         to functions as well.
11055
11056 2002-03-02  Richard Henderson  <rth@redhat.com>
11057
11058         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
11059         (handle_visibility_attribute): Don't call assemble_visibility.
11060         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
11061         without asmspec.  Invoke assemble_alias when needed.
11062         * varasm.c (maybe_assemble_visibility): New.
11063         (assemble_start_function, assemble_variable, assemble_alias): Use it.
11064
11065 2002-03-02  Richard Henderson  <rth@redhat.com>
11066
11067         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
11068         invoke ENCODE_SECTION_INFO with first call flag.
11069
11070         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
11071         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
11072         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
11073         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
11074         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
11075         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11076         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
11077         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
11078         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
11079         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
11080         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11081         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
11082         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
11083         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
11084         config/mcore/mcore-protos.h, config/mcore/mcore.c,
11085         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
11086         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
11087         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11088         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
11089         config/sh/sh.h, config/sparc/sparc.h,
11090         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
11091         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
11092         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
11093         FIRST argument.  As needed, examine it and do nothing.
11094
11095         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
11096         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11097         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
11098
11099         * config/arm/t-pe (pe.o): Add dependencies.
11100
11101 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11102
11103         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
11104         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
11105         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
11106         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
11107         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
11108         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
11109         * defaults.h (BITS_PER_UNIT): Define.
11110         * doc/tm.texi (BITS_PER_UNIT): Document default value.
11111
11112 2002-03-02  Kazu Hirata  <kazu@hxi.com>
11113
11114         * config/h8300/h8300-protos.h: Add a prototype for
11115         compute_a_shift_length.
11116         * config/h8300/h8300.c (h8300_asm_insn_count): New.
11117         (compute_a_shift_length): Likewise.
11118         (h8300_adjust_insn_length): Do not adjust insn length of shift
11119         insns.
11120         * config/h8300/h8300.md (anonymous shift patterns): Use
11121         compute_a_shift_length.
11122
11123 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11124
11125         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
11126         trunc_int_for_mode.
11127
11128         * emit-rtl.c (offset_address): Call update_temp_slot_address.
11129
11130 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11131
11132         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
11133         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
11134         * flags.h (flag_zero_initialized_in_bss): Declare.
11135         * toplev.c (flag_zero_initialized_in_bss): New flag.
11136         (lang_independent_options): Add flag_zero_initialized_in_bss.
11137         * tree.c (initializer_zerop): New function.
11138         * tree.h (initializer_zerop): Declare.
11139         * varasm.c (assemble_variable): If we can emit bss, put zero
11140         initializers in the bss section.
11141
11142 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
11143
11144         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
11145         like more than one symbol per .weak directive.
11146
11147 2002-03-01  Richard Henderson  <rth@redhat.com>
11148
11149         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
11150         adjust argument_pointer by pretend_args_size.
11151         (ia64_va_start): Adjust va_start address by -pretend_args_size.
11152
11153 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11154
11155         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
11156
11157 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
11158
11159         * toplev.c (rest_of_compilation): Delete dead jumptables before
11160         loop.
11161         * flow.c (delete_dead_jumptables): Make global.
11162         * rtl.h (delete_dead_jumptables): Declare.
11163
11164 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
11165
11166         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
11167         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
11168         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
11169
11170 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11171
11172         * config/h8300/h8300-protos.h: Fix formatting.
11173         * config/h8300/h8300.c: Likewise.
11174         * config/h8300/h8300.h: Likewise.
11175
11176 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11177
11178         * config/h8300/h8300.c (print_operand): Support 16-bit
11179         constant addresses.
11180         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
11181
11182 2002-02-28  Richard Henderson  <rth@redhat.com>
11183
11184         * expmed.c (store_bit_field): Prevent generation of CONCATs;
11185         pun complex values as integers; use gen_lowpart instead of
11186         gen_rtx_SUBREG.
11187         (extract_bit_field): Likewise.
11188
11189 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
11190             David Edelsohn  <edelsohn@gnu.org>
11191
11192         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11193         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11194         (SUPPORTS_WEAK): Likewise.
11195         * output.h (add_weak): Add tree param.
11196         * varasm.c (add_weak): Likewise.  Save decl.
11197         (struct weak_syms): Add decl field.
11198         (mark_weak_decls): New function.
11199         (init_varasm_once): ggc_add_root mark_weak_decls.
11200         (assemble_start_function): Use ASM_WEAKEN_DECL.
11201         (assemble_variable): Likewise.
11202         (assemble_alias): Likewise.
11203         (declare_weak): Pass decl to add_weak.
11204         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11205         (remove_from_pending_weak_list): Declare and define for
11206         ASM_WEAKEN_DECL.
11207         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11208         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11209         * defaults.h (SUPPORTS_WEAK): Likewise.
11210         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11211         .weak for code sym.  Do emit .size for descriptor sym.
11212         (ASM_DECLARE_FUNCTION_SIZE): Define.
11213         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11214         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
11215         .lglobl unless TARGET_XCOFF.  Formatting fixes.
11216         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11217         .weak for code sym.
11218         (HANDLE_PRAGMA_WEAK): Remove.
11219         (ASM_WEAKEN_LABEL): Remove.
11220         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11221
11222 2002-03-01  Jason Merrill  <jason@redhat.com>
11223
11224         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11225         (TARGET_EXPR_CLEANUP): New macro.
11226
11227 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
11228
11229         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11230         to take ptr_extend into account as third type of extension.
11231         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11232         fields used by SUBREG_PROMOTED_UNSIGNED_P.
11233         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11234         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11235         * calls.c (precompute_arguments): Use new macro.
11236         (expand_call): Ditto.
11237         * combine.c (nonzero_bits): Ditto.
11238         (record_promoted_value): Ditto.
11239         * expr.c (store_expr): Ditto.
11240         (expand_expr): Ditto.
11241         * function.c (assign_parms): Ditto.
11242
11243 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
11244
11245         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11246         override -shared and -shared-libgcc.
11247
11248 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
11249
11250         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11251         of "ultrasparc".
11252         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
11253         to be broken.
11254
11255 2002-02-28  Richard Henderson  <rth@redhat.com>
11256
11257         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11258         4 cycle latency from MM producers.
11259         (ia64_internal_sched_reorder): Likewise with pipeline flush.
11260
11261 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
11262
11263         * mklibgcc.in: Don't use GNU make extension.
11264
11265 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11266
11267         * c-parse.in (STATIC): New terminal.
11268         (scspec): New non-terminal.  Update productions accordingly.
11269         (program): Remove bogus ifc / end ifc.
11270         (array_declarator): Simplify production using STATIC.
11271
11272 2002-02-28  Jim Meyering  <meyering@lucent.com>
11273
11274         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11275         \a still means TARGET_BELL.
11276
11277 2002-02-28  Richard Henderson  <rth@redhat.com>
11278
11279         * haifa-sched.c (sched_emit_insn): New.
11280         (schedule_block): Use last_scheduled_insn to track last insn.
11281         * sched-int.h (sched_emit_insn): Prototype.
11282         * config/ia64/ia64.c (last_issued): Remove.
11283         (ia64_variable_issue): Don't set it.
11284         (nop_cycles_until): Use sched_emit_insn.
11285
11286 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
11287
11288         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11289         extended constants.
11290
11291 2002-02-28  Kazu Hirata  <kazu@hxi.com>
11292
11293         * config/h8300/h8300.c: Fix formatting.
11294         * config/h8300/h8300.h: Likewise.
11295
11296 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11297
11298         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11299         which may overwrite the high byte of the frame pointer.
11300
11301 2002-02-28  Bo Thorsen  <bo@suse.de>
11302
11303         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11304         (STARTFILE_SPEC): Add 64 bit files.
11305         (ENDFILE_SPEC): Likewise.
11306
11307 2002-02-28  Jason Merrill  <jason@redhat.com>
11308
11309         * c-decl.c (finish_function): Only warn about missing return
11310         statement with -Wreturn-type.
11311
11312 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11313
11314         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11315
11316         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11317         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11318
11319 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11320
11321         * basic-block.h (BB_REACHABLE): Renumber.
11322         (BB_DIRTY, BB_NEW): New flags.
11323         (clear_bb_flags): Declare.
11324         (update_life_info_in_dirty_blocks): Declare.
11325         * cfg.c (clear_bb_flags): New function.
11326         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11327         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11328         reorder_insns, emit_insn_after): Mark block as dirty.
11329         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11330         (update_life_info_in_dirty_blocks): New function.
11331         * recog.c (apply_change_group): Dirtify block.
11332
11333         * cse.c (cse_insn): Reorder emitting of jump insn to keep
11334         cfg consistent.
11335         * gcse.c (delete_null_pointer_checks): Likewise.
11336
11337         * toplev.c (dump_file_index): Move cse2 after bp,
11338         add DFI_null
11339         (dump_file_info): Similary.
11340         (rest_of_compilation): Avoid most of CFG rebuilds;
11341         do first if converision after null pointer checks, do cse2
11342         after branch prediction; avoid full liveness rebuild after
11343         initializing subregs.
11344         * invoke.texi (-d options): Document -du, renumber.
11345
11346         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11347         (notice_new_block): Do not set BB_UPDATE_LIFE.
11348         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11349          merge_blocks_move_successor_nojumps, merge_blocks,
11350          try_crossjump_to_edge): Likewise.
11351         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11352         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11353         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11354         (merge_of_block): Do not use life_data_ok.
11355         (find_if_case_1): Do not use SET_UPDATE_LIFE.
11356         (if_convert): Use BB_DIRTY mechanizm to update life.
11357         * lcm.c (optimize_mode_switching): Update
11358         update_life_info_in_dirty_blocks
11359
11360 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11361
11362         * Makefile.in (integrate.o): Update.
11363         * c-decl.c (copy_lang_decl): Rename.
11364         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11365         * integrate.c: Include langhooks.h.
11366         (copy_decl_for_inlining): Update to use langhook.
11367         * langhooks-def.h (lhd_do_nothing_t,
11368         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11369         (LANG_HOOKS_INITIALIZER): Update.
11370         * langhooks.c (lhd_do_nothing_t): New.
11371         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11372         * tree.h (copy_lang_decl): Remove.
11373 objc:
11374         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11375
11376 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
11377
11378         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11379         POST_DEC, and POST_MODIFY.
11380
11381 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11382
11383         * c-typeck.c (digest_init): Remove unused parameter; all
11384         callers changed.
11385
11386 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
11387
11388         * expmed.c (expand_shift): Correctly test for low part of a
11389         subreg.
11390
11391 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
11392
11393         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11394         insn UIDs with insn addresses.
11395
11396 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11397
11398         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11399         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11400         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11401         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11402         gcc.c, toplev.c: Delete code implementing -traditional mode.
11403
11404         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11405         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11406         Document removal of -traditional mode for compilation, and
11407         remove documentation only relevant to that mode.
11408
11409         * config/nextstep.h, config/ptx4.h, config/svr4.h,
11410         config/convex/convex.h, config/d30v/d30v.h,
11411         config/i386/dgux.h, config/i386/osf1elf.h,
11412         config/i386/osfelf.h, config/i386/osfrose.h,
11413         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11414         config/m68k/hp310.h, config/m88k/dgux.h,
11415         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11416         config/m88k/m88k.h, config/m88k/openbsd.h,
11417         config/mips/abi64.h, config/mips/osfrose.h,
11418         config/mips/svr4-5.h, config/mips/svr4-t.h,
11419         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11420         config/stormy16/stormy16.h: Remove all references to
11421         -traditional from target specs.  Delete all mention of the
11422         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
11423         delete a couple of commented-out definitions of
11424         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11425         to -traditional.
11426
11427         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11428         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11429
11430 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11431
11432         * mklibgcc.in: Don't use \n in a line subject to
11433         interpretation by echo.
11434
11435 2002-02-27  Graham Stott  <grahams@redhat.com>
11436
11437         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11438         Constify NAME.
11439
11440         * loop.c (prescan_loop): Handle PARALLEL.
11441
11442         * unroll.c (loop_iterations): Return 0 if the add_val for
11443         a BIV is REG.
11444
11445         * final.c (output_operand_lossage): Constify PFX_STR.
11446
11447         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11448
11449 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11450
11451         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11452         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11453
11454 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
11455
11456         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11457
11458 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11459
11460         * cpplex.c (_cpp_lex_token): Handle directives in macro
11461         arguments.
11462         * cpplib.c (_cpp_handle_directive): Save and restore state
11463         if parsing macro args when entering a directive.
11464         * cppmacro.c (collect_args): No need to handle directives
11465         in macro arguments.
11466         (enter_macro_context, replace_args): Use the original macro
11467         definition in case it was redefined whilst collecting arguments.
11468 doc:
11469         * cpp.texi: Update.
11470
11471 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
11472
11473         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11474         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11475         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11476         method on AIX.
11477         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11478         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11479         (load_toc_v4_PIC_2): Same.
11480
11481 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
11482
11483         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11484
11485 2002-02-26  Richard Henderson  <rth@redhat.com>
11486
11487         * config/alpha/alpha.md (ashldi_se): Re-enable.
11488
11489 2002-02-26  Richard Henderson  <rth@redhat.com>
11490
11491         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11492         MODULE_LOCAL_P; improve commentary.
11493
11494 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11495
11496         * doc/cpp.texi: Clarify documentation of relationship between
11497         #line and #include.
11498
11499 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11500
11501         * config/h8300/h8300-protos.h: Update the prototype for
11502         compute_logical_op_length.  Add the prototype for
11503         compute_logical_op_cc.
11504         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11505         code from operands.
11506         (compute_logical_op_cc): New.
11507         * config/h8300/h8300.md: Combine all the logical op patterns
11508         in HImode and SImode.  Use compute_logical_op_cc.
11509
11510 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11511
11512         * config/i386/i386.c (print_operand): Don't append ATT-style
11513         length suffixs to x87 opcodes when in Intel mode.
11514
11515 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11516
11517         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11518         (init_emit_once): Update calls.
11519         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11520         (init_syntax_once): Prototype.
11521
11522 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11523
11524         * pa-linux.h (LIB_SPEC): Update definition.
11525         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11526
11527 2002-02-26  Richard Henderson  <rth@redhat.com>
11528
11529         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11530         if we emitted a stop bit.
11531
11532 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11533
11534         * configure.in (libgcc_visibility): Substitute.
11535         * configure: Rebuilt.
11536         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11537         defined symbols .hidden.
11538
11539 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11540
11541         * attribs.c (c_common_attribute_table): Add visibility.
11542         (handle_visibility_attribute): New function.
11543         * varasm.c (assemble_visibility): New function.
11544         * output.h (assemble_visibility): Add prototype.
11545         * tree.h (MODULE_LOCAL_P): Define.
11546         * crtstuff.c (__dso_handle): Use visibility attribute.
11547         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11548         for MODULE_LOCAL_P symbols too.
11549         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11550         MODULE_LOCAL_P symbols the same way as local symbols.
11551         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11552         into .sdata/.sbss by the user.
11553         * doc/extend.texi (Function Attributes): Document visibility
11554         attribute.
11555
11556 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11557
11558         PR debug/5770
11559         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11560         STRING_CST initializer spanning the whole variable without
11561         embedded zeros.
11562         If expand_expr returned MEM, don't use it.
11563
11564 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11565
11566         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11567         generate a die for the lexical block.
11568
11569 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11570
11571         * config/h8300/h8300-protos.h: Add a prototype for
11572         compute_logical_op_length.
11573         * config/h8300/h8300.c (compute_logical_op_length): New.
11574         * config/h8300/h8300.md (anonymous logical patterns): Use
11575         compute_logical_op_length for length.
11576
11577 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11578
11579         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11580         for vectors.
11581         (gen_type_die): Same.
11582
11583         * attribs.c (handle_vector_size_attribute): Set debug information.
11584
11585 2002-02-26  Daniel Egger  <degger@fhm.edu>
11586
11587         * config/rs6000/rs6000.md: Swap define_insn attributes to
11588         fix incorrect generation of merge high instructions instead
11589         of merge low.
11590
11591 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11592
11593         * c-typeck.c (really_start_incremental_init): Use
11594         bitsize_zero_node for vectors.
11595
11596 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11597
11598         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11599         ("*set_vrsave_internal"): Same.
11600
11601 2002-02-25  Richard Henderson  <rth@redhat.com>
11602
11603         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11604         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11605
11606 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11607
11608         PR target/5755
11609         * config/i386/i386.c (ix86_return_pops_args): Only pop
11610         fake structure return argument if it was passed on the stack.
11611
11612 2002-02-25  Jason Merrill  <jason@redhat.com>
11613
11614         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11615         RESULT_DECL.
11616
11617 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11618
11619         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11620         link with shared_name only.
11621         * doc/invoke.texi (Link Options): Document new behavior.
11622
11623 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11624
11625         * c-typeck.c (push_init_level): Handle vectors.
11626
11627 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11628
11629         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11630         operands of SPARC_SETHI_P.
11631         (input_operand): Likewise.
11632         (sparc_emit_set_const32): Likewise.
11633         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11634         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11635         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11636         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11637         (movdi_insn_sp64_vis): Likewise.
11638         (movdi split, movdf split): Use SETHI32.
11639         * doc/md.texi: Document SPARC constraints L, M and N.
11640
11641 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11642
11643         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11644         ("*set_vrsave_internal"): use mfspr for Darwin.
11645
11646         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11647         gen_get_vrsave_internal.
11648
11649 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11650
11651         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11652
11653 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11654
11655         * cpplex.c (cpp_interpret_charconst): Get signedness or
11656         otherwise of wide character constants correct.
11657         * cppexp.c (lex): Get signedness of wide charconsts correct.
11658
11659 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11660
11661         * optabs.c (widen_operand): Only call convert_modes for
11662         promoted SUBREG if signedness matches.
11663         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11664
11665 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11666
11667         * cpplib.c (glue_header_name): Use local buffer to build up
11668         header name.
11669
11670 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11671
11672         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11673
11674 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11675
11676         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11677         H8/300[HS] separately.
11678         * config/h8300/h8300.md: Remove the early clobber constraint
11679         from bit field patterns.
11680
11681 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11682
11683         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11684         register_operand.
11685         (mulhisi3): Likewise.
11686         (umulqisi3): Likewise.
11687         (umulhisi3): Likewise.
11688
11689 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11690
11691         * cppinit.c (output_deps): Correct test for stdout output.
11692         (init_dependency_output): Cure warning.
11693
11694 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11695
11696         * expr.c (store_expr): When converting expression to promoted
11697         equivalent type, allow using SUBREG_REG of TARGET as the target
11698         of the expansion of EXP.
11699         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11700         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11701         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11702         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11703         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11704
11705 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11706
11707         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11708         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11709         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11710
11711 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11712
11713         PR optimization/5747
11714         * loop.c (scan_loop): Update reg info if move_movables created new
11715         pseudos.
11716
11717 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11718
11719         * gcc.c (init_gcc_spec): Revert last change.
11720
11721 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11722
11723         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11724         gpc_reg_operand constraint.
11725
11726 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11727
11728         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11729         Simplify comparison of `low'.
11730         (add_operand): Fix formatting.
11731         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11732         (mask_operand): Disallow mask to wrap in 64-bit mode.
11733         (rs6000_stack_info): Remove redundant test setting push_p.
11734         (output_toc): Fix formatting.
11735         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11736         cc_reg_not_cr0_operand constraint.
11737         (booldi3, boolcdi3 splitters): Same.
11738
11739 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11740
11741         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11742
11743 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11744
11745         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11746         gcc invoked with -shared-libgcc.
11747
11748 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11749
11750         PR c++/5748
11751         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11752         decl if any of elements was TREE_USED.
11753
11754 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11755
11756         * config/sparc/sol2.h: Don't include sys/mman.h.
11757         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11758         (arith_4096_operand): Don't throw high bits away.
11759         (const64_operand): Take sign extension of CONST_INTs into account.
11760         (const64_high_operand, sparc_emit_set_const32): Likewise.
11761         (GEN_HIGHINT64): Likewise.
11762         (sparc_emit_set_const64_quick1): Likewise.
11763         (const64_is_2insns): Likewise.
11764         (print_operand): Use trunc_int_for_mode for sign extension.
11765         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11766         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11767         chars.  Assume CONST_INT is already properly sign-extended.
11768         (movdi split): Sign-extend each SImode part.
11769         (andsi3 split): Don't mask high bits off, so that result
11770         remains properly sign-extend.
11771         (iorsi3 split): Likewise.
11772         (xorsi3 split): Likewise.
11773
11774 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11775
11776         * fold-const.c (fold): Fix typo in comments.
11777
11778 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11779
11780         * Makefile.in (langhooks.o): Update dependencies.
11781
11782 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11783
11784         * langhooks.c: Include flags.h.
11785
11786 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11787
11788         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11789
11790         * c-common.c (c_common_post_options): Set inline trees by
11791         default.
11792
11793         * doc/extend.texi (Function Attributes): Document always_inline
11794         attribute.
11795         Update documentation about inlining when not optimizing.
11796
11797         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11798
11799         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11800         unless DECL_ALWAYS_INLINE.
11801
11802         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11803         unless DECL_ALWAYS_INLINE.
11804         (c_disregard_inline_limits): Disregard if always_inline set.
11805
11806         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11807         Disregard if always_inline set.
11808         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11809         unless DECL_ALWAYS_INLINE.
11810
11811         * attribs.c (handle_always_inline_attribute): New.
11812         (c_common_attribute_table): Add always_inline.
11813
11814         * config/rs6000/altivec.h: Add prototypes for builtins
11815         requiring the always_inline attribute.
11816
11817 2002-02-21  Eric Christopher  <echristo@redhat.com>
11818
11819         * expmed.c (store_bit_field): Try to simplify the subreg
11820         before generating a new one when when the mode size of
11821         value is less than maxmode.
11822
11823 2002-02-21  Richard Henderson  <rth@redhat.com>
11824
11825         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11826         than gen_rtx_PLUS to form the sum.
11827         * explow.c (force_reg): Rearrange to not allocate new pseudo
11828         when force_operand returns a register.
11829         * expr.c (expand_assignment): Allow offset_rtx expansion to
11830         return a sum.  Do not force addresses into registers.
11831         (expand_expr): Likewise.
11832         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11833         to canonicalize arithmetic that didn't simpify.
11834         (simplify_plus_minus): New argument force; update
11835         all callers.  Don't split CONST unless we can do something with it,
11836         and wouldn't lose the constness of the operands.
11837
11838         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11839         that we generated earlier.
11840
11841 2002-02-21  Tom Tromey  <tromey@redhat.com>
11842
11843         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11844         (output_line_info): Use constant `1', with a long explanatory
11845         comment.
11846         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11847
11848 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11849
11850         * jump.c (redirect_jump): If old label has no UID, don't try to
11851         delete it.
11852
11853 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11854
11855         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11856         If input is constant, do shifts at compile time.
11857
11858 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11859
11860         * doc/extend.texi: Fix some more overfull hboxes.
11861
11862 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11863
11864         PR optimization/4994
11865         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11866         register moves.
11867
11868 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11869
11870         PR c++/4574
11871         * expr.h (expand_and): Add mode argument.
11872         * expmed.c (expand_and): Add mode argument.
11873         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11874         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11875         * except.c (expand_builtin_extract_return_addr): Likewise.
11876         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11877         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11878         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11879         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11880         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11881         gen_rtx (CONST_INT, VOIDmode, x).
11882
11883 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11884
11885         PR c/4697:
11886         * stmt.c (warn_if_unused_value): Move side effects test once more.
11887
11888 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11889
11890         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11891         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11892
11893 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11894
11895         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11896         SUBREG or ZERO_EXTEND.
11897
11898 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11899
11900         * sh.h (current_function_anonymous_args): Remove.
11901         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11902         of current_function_varargs and current_function_stdarg is set.
11903         * sh.c (sh_expand_prologue): Check current_function_varargs /
11904         current_function_stdarg / TARGET_SH5 instead of
11905         current_function_anonymous_args.
11906
11907         * sh64.h (TARGET_VERSION): Define.
11908
11909 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11910
11911         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11912         VRSAVE_REGNO on TARGET_ALTIVEC.
11913
11914 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11915
11916         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11917         bits of SImode const_int.
11918         (includes_rshift_p): Likewise.
11919         (print_operand): Call mask_operand and mask64_operand with correct
11920         mode.
11921         (rs6000_output_function_epilogue): Pad traceback table to word.
11922         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11923         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11924         mask64_operand with correct mode.
11925         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11926
11927 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11928
11929         PR debug/4461
11930         * varasm.c (get_pool_constant_mark): New.
11931         * rtl.h (get_pool_constant_mark): Add prototype.
11932         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11933         be represented if it has not been output.
11934
11935 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11936
11937         * combine.c (do_SUBST): Sanity check substitutions of
11938         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11939         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11940         CONST_INT into its operand.
11941         (known_cond): Likewise, for ZERO_EXTEND.
11942         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11943         allow for simplification of wide modes.  Reject CONST_INTs in
11944         ZERO_EXTEND when their actual mode is not given.
11945
11946 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11947
11948         * c-decl.c (pushdecl): If no global declaration is found for an
11949         extern declaration in block scope, try a limbo one.
11950
11951 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11952
11953         PR c++/4401
11954         * c-common.c (pointer_int_sum): Moved from...
11955         * c-typeck.c (pointer_int_sum): ...here.
11956         * c-common.h (pointer_int_sum): Add prototype.
11957
11958 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11959
11960         PR c++/5713
11961         * c-decl.c (duplicate_decls): Return 0 if issued error about
11962         redeclaration.
11963
11964 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11965             Jakub Jelinek  <jakub@redhat.com>
11966
11967         PR c/4389
11968         * tree.c (host_integerp): Ensure that the constant integer is
11969         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11970         when pos is zero or non-zero respectively.  Clarify comment.
11971         * c-format.c (check_format_info_recurse): Fix host_integerp
11972         usage; the pos argument should be zero when assigning to a
11973         signed HOST_WIDE_INT.
11974
11975 2002-02-20  Richard Henderson  <rth@redhat.com>
11976
11977         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11978         of the operand, rather than assuming TImode.
11979         (ix86_expand_binop_builtin): Cope with commutative patterns
11980         using nonimmediate_operand for both operands.
11981         (ix86_expand_timode_binop_builtin): Likewise.
11982         (ix86_expand_store_builtin): Validate operand 1.
11983         (ix86_expand_unop1_builtin): Likewise.
11984
11985 2002-02-20  Philip Blundell  <philb@gnu.org>
11986
11987         PR 5705
11988         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11989
11990 2002-02-20  Richard Henderson  <rth@redhat.com>
11991
11992         PR c/5615
11993         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11994
11995 2002-02-20  Tom Tromey  <tromey@redhat.com>
11996
11997         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11998         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11999         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12000         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12001         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
12002         unconditionally.
12003
12004 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
12005
12006         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
12007           for (const_int 0) in X not just INTVAL.
12008
12009 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
12010
12011         * doc/extend.texi: Avoid or reduce overfull hboxes.
12012
12013 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
12014
12015         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
12016         operations if the field does not start at a mode boundary.
12017
12018 2001-02-20      Joel Sherrill <joel@OARcorp.com>
12019
12020         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
12021         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
12022         Also done for -Acpu and -Amachine.
12023
12024 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12025
12026         * cppinit.c (init_dependency_output): Take deps output file
12027         from -o if none given with -MF.  Suppress normal output.
12028         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
12029         * doc/cpp.texi, doc/invoke.texi: Update.
12030
12031 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
12032
12033         * toplev.c (output_quoted_string): Write unprintable
12034         characters with octal escapes.
12035
12036 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
12037
12038         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
12039         really_call_used[VRSAVE_REGNO] if not Altivec.
12040
12041 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
12042
12043         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
12044         MODE_MASK.
12045         (constant_pool_expr_1): Fix formatting.
12046         (rs6000_legitimize_reload_address): Likewise.
12047
12048 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12049
12050         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
12051         now that we have one.
12052
12053 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
12054
12055         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
12056         end of first block of bitfields (which was only seven bits);
12057         rename dummy to unused_1; remove comment which is no longer true.
12058
12059 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
12060
12061         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
12062
12063 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
12064
12065         PR 5399
12066         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
12067         if generating PIC.
12068
12069         PR 5054
12070         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
12071         arm_is_longcall_p rather than inspecting call-type cookie
12072         directly.
12073         (call_value_insn) [TARGET_THUMB]: Likewise.
12074
12075 2002-02-19  Graham Stott  <grahams@redhat.com>
12076
12077         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
12078
12079 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
12080
12081         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
12082         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
12083         (FP_SAVE_INLINE): Delete.
12084
12085         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
12086         * config/rs6000/eabi.asm: Remove ABI save restore routines.
12087         * config/rs6000/t-ppccomm: Build crtsavres.o.
12088         * config/rs6000/crtsavres.asm: New file.
12089
12090 2002-02-19  Philip Blundell  <philb@gnu.org>
12091
12092         * config/arm/arm.c (use_return_insn): Don't reject interrupt
12093         functions.
12094         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
12095         (output_return_instruction): Allow interrupt functions to return with
12096         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
12097         (arm_expand_prologue): Subtract 4 before stacking LR in an
12098         interrupt function.
12099
12100 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
12101
12102         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
12103         decl, not just FUNCTION_DECL.
12104         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
12105         (arm_assemble_integer): Likewise.
12106         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
12107         marked local.
12108
12109 2002-02-19  matthew green  <mrg@eterna.com.au>
12110
12111         * config.gcc (sparc-*-netbsdelf*): Enable target.
12112         (sparc64-*-netbsd*): New target.
12113         * config/sparc/netbsd-elf.h: New file.
12114         * config/sparc/t-netbsd64: New file.
12115
12116 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
12117
12118         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
12119
12120 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
12121
12122         * doc/invoke.texi: explicitly list the style guidelines that
12123         -Weffc++ checks for.
12124
12125 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
12126
12127         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
12128
12129 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12130
12131         PR other/5718
12132         * gcc.c (cpp_unique_options): Treat -o as indicating object file
12133         only if not -E.  If -E, pass -o through to the preprocessor.
12134
12135 2002-02-19  Kazu Hirata  <kazu@hxi.com>
12136
12137         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
12138         register number with an appropriate macro.
12139
12140 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12141
12142         * doc/rtl.texi (Constants): Close @code tag.
12143
12144 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
12145
12146         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
12147         ("mmx_uavgv4hi3"): Same.
12148         ("pmulhrwv4hi3"): Same.
12149
12150         * tree-inline.c (walk_tree): Handle vectors.
12151
12152         * c-common.c (constant_expression_warning): Handle vectors.
12153         (overflow_warning): Same.
12154
12155         * sched-deps.c (sched_analyze_2): Handle vectors.
12156
12157         * rtlanal.c (rtx_unstable_p): Handle vectors.
12158         (rtx_varies_p): Same.
12159         (count_occurrences): Same.
12160         (regs_set_between_p): Same.
12161         (modified_between_p): Same.
12162         (modified_in_p): Same.
12163         (volatile_insn_p): Same.
12164         (volatile_refs_p): Same.
12165         (side_effects_p): Same.
12166         (may_trap_p): Same.
12167         (inequality_comparisons_p): Same.
12168         (replace_regs): Same.
12169         (computed_jump_p_1): Same.
12170
12171         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
12172         argument.
12173         (inner_mode_array): New.
12174         (copy_rtx): Handle vectors.
12175         (copy_most_rtx): Same.
12176         (rtx_equal_p): Same.
12177         (get_mode_alignment): Adjust for vectors.
12178
12179         * resource.c (mark_referenced_resources): Handle vectors.
12180         (mark_set_resources): Same.
12181
12182         * reload1.c (eliminate_regs): Handle vectors.
12183         (elimination_effects): Same.
12184         (scan_paradoxical_subregs): Same.
12185
12186         * reload.c (subst_reg_equivs): Handle vectors.
12187
12188         * regrename.c (scan_rtx): Handle vectors.
12189
12190         * regclass.c (reg_scan_mark_refs): Handle vectors.
12191
12192         * recog.c (find_single_use_1): Handle vectors.
12193
12194         * local-alloc.c (equiv_init_varies_p): Handle vectors.
12195         (contains_replace_regs): Same.
12196         (memref_referenced_p): Same.
12197
12198         * integrate.c (copy_rtx_and_substitute): Handle vectors.
12199         (subst_constants): Same.
12200
12201         * genattrtab.c (attr_copy_rtx): Handle vectors.
12202         (encode_units_mask): Same.
12203         (clear_struct_flag): Same.
12204         (count_sub_rtxs): Same.
12205
12206         * gcse.c (want_to_gcse_p): Handle vectors.
12207         (oprs_unchanged_p): Same.
12208         (hash_expr_1): Same.
12209         (oprs_not_set_p): Same.
12210         (expr_killed_p): Same.
12211         (compute_transp): Same.
12212         (store_ops_ok): Same.
12213
12214         * function.c (purge_addressof_1): Do not allow paradoxical subregs
12215         of vectors.
12216         (fixup_var_refs_1): Same.
12217         (instantiate_virtual_regs_1): Same.
12218
12219         * fold-const.c (operand_equal_p): Handle vectors.
12220         (fold): Same.
12221         (rtl_expr_nonnegative_p): Same.
12222
12223         * flow.c (mark_used_regs): Handle vectors.
12224
12225         * df.c (df_uses_record): Handle vectors.
12226
12227         * cselib.c (cselib_subst_to_values): Handle vectors.
12228         (cselib_mem_conflict_p): Same.
12229         (hash_rtx): Same.
12230
12231         * cse.c (canon_reg): Handle vectors.
12232         (fold_rt): Same.
12233         (cse_process_notes): Same.
12234         (count_reg_usage): Same.
12235         (canon_hash): Same.
12236
12237         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12238
12239         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12240
12241         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12242         (gen_rtx): Handle CONST_VECTOR.
12243         (gen_const_vector_0): New.
12244         (copy_rtx_if_shared): CONST_VECTORs can be shared.
12245         (reset_used_flags): Same.
12246         (copy_insn_1): Same.
12247         (initializer_constant_valid_p): Handle VECTOR_CST.
12248
12249         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12250
12251         * doc/rtl.texi (Constants): Document const_vector.
12252         (CONST0_RTX): Update for vectors.
12253         (RTL sharing): Same.
12254
12255         * print-tree.c (print_node): Add case for VECTOR_CST.
12256
12257         * tree.h (TREE_VECTOR_CST_ELTS): New.
12258         (struct tree_vector): New.
12259         (union tree_node): Add vector node.
12260         (build_vector): Add prototype.
12261
12262         * tree.def (VECTOR_CST): New.
12263
12264         * tree.c (build_vector): New.
12265
12266         * expmed.c (make_tree): Handle CONST_VECTOR.
12267
12268         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12269         (CONST_VECTOR_ELT): New.
12270         (CONST_VECTOR_NUNITS): New.
12271
12272         * machmode.h (GET_MODE_INNER): New.
12273         (DEF_MACHMODE): Accept 8th arg.
12274
12275         * machmode.def: Add 8th argument for vector inner mode.
12276         Add inner vector modes for vectors.
12277
12278         * rtl.def (VEC_CONST): Remove.
12279         (CONST_VECTOR): New.
12280
12281         * expr.c (clear_storage): Allow vectors.
12282         (is_zeros_p): Handle VECTOR_CST.
12283
12284         * varasm.c (output_constant_pool): Handle vectors.
12285         (rtx_const): Add veclo and vechi fields.
12286         (kind): Add RTX_VECTOR.
12287         (decode_rtx_const): Add case for vector.
12288
12289         * config/rs6000/rs6000-protos.h: Add zero_constant.
12290
12291         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12292         constants.  Force easy vector constants into memory.
12293         (easy_vector_constant): New.
12294         (emit_easy_vector_constant): New.
12295         (rs6000_legitimize_reload_address): Do not generate bad reloads on
12296         darwin.
12297
12298         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12299         instruction does.
12300         ("altivec_lvxl"): Same.
12301         (altivec_lvebx): Same.
12302         (altivec_lvehx): Same.
12303         (altivec_lvewx): Same.
12304         ("*movv4si_const0"): New.
12305         ("*movv4sf_const0"): New.
12306         ("*movv8hi_const0"): New.
12307         ("*movv16qi_const0"): New.
12308
12309 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12310
12311         * config/h8300/h8300.c (notice_update_cc): Use
12312         cc_status.value2.
12313
12314 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12315
12316         * config/h8300/h8300.md (divmod patterns): Change the
12317         constraints for operands[1] to register_operand.
12318
12319 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12320
12321         * config/h8300/h8300-protos.h: Remove the prototype for
12322         p_operand.
12323         * config/h8300/h8300.c (p_operand): Remove.
12324         * config/h8300/h8300.md: Replace p_operand with
12325         const_int_operand.
12326
12327 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12328
12329         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12330         comment.
12331         (output_return_instruction): Allow use of LDR to unstack
12332         return addresss even for interrupt handlers or when
12333         interworking.  If compiling for ARMv5, use interworking-safe
12334         return instructions by default.  Remove duplicated code and
12335         lengthy "strcat" sequences.
12336
12337 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12338
12339         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12340         (LINK_EH_SPEC): Define.
12341         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12342
12343 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
12344
12345         * config/s390/s390.c (s390_emit_prologue): Do not set the
12346         frame_related flag for call-clobbered registers.
12347
12348 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12349
12350         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12351         (construct_container): Fix handling of SSE operands.
12352         (ix86_expand_builtin): Fix handling of 64bit pointers.
12353         (mmx_maskmovq_rex): New pattern.
12354
12355 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12356
12357         * regrename.c (kill_set_value): Handle subregs properly.
12358
12359 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
12360
12361         * objc/objc-act.c (handle_impent): Remove leading '*'
12362         from objc_class_name.
12363
12364 2002-02-17  Richard Henderson  <rth@redhat.com>
12365
12366         * config/alpha/alpha.c (some_small_symbolic_operand,
12367         some_small_symbolic_operand_1, split_small_symbolic_operand,
12368         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12369         Handle small SYMBOL_REFs anywhere, not just inside memories.
12370         * config/alpha/alpha-protos.h: Update.
12371         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12372         * config/alpha/alpha.md (small symbolic operand splitter): Update.
12373
12374 2002-02-17  Roland McGrath  <roland@frob.com>
12375
12376         * config.gcc (powerpc-*-gnu-gnualtivec*,
12377         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12378         * config/rs6000/gnu.h: New file.
12379         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12380         Grok "gnu" in rs6000_abi_name.
12381         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12382         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12383         Grok -mcall-gnu analogous to -mcall-linux et al.
12384         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12385         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12386         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12387
12388 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
12389
12390         PR c/3444:
12391         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12392         shortening.
12393
12394 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12395
12396         * config/cris/cris.h: Undefine STARTFILE_SPEC and
12397         ENDFILE_SPEC before (re)defining them.
12398
12399 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12400
12401         * config/h8300/h8300.c: Fix formatting.
12402         * config/h8300/h8300.h: Likewise.
12403
12404 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12405
12406         * doc/tm.texi: Explain why empty strings should not be
12407         marked for translation.
12408
12409 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12410
12411         * final.c (output_operand_lossage): Changed to accept
12412         printf style arguments. Change calls where necessary.
12413         * output.h (output_operand_lossage): Change declaration
12414         accordingly. Update copyright.
12415         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12416         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12417         Update copyright date where necessary.
12418
12419         * config/i386/i386.c (print_operand): Likewise. Remove use of
12420         sprintf.
12421
12422         * config/cris/cris.c (cris_operand_lossage): Likewise.
12423         Rename parameter so that exgettext recognizes it as
12424         translatable message.
12425         (LOSE_AND_RETURN): Rename parameter to msgid.
12426
12427 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12428
12429         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12430         hard coded register number with an appropriate macro.
12431         (HARD_REGNO_MODE_OK): Likewise.
12432         (ARG_POINTER_REGNUM): Likewise.
12433         (STATIC_CHAIN_REGNUM): Likewise.
12434         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12435         * config/h8300/h8300.md (define_constants): Define more
12436         register numbers.
12437
12438 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12439
12440         * config/i386/i386.h: Don't mark empty strings for translation.
12441
12442 2002-02-16  H.J. Lu <hjl@gnu.org>
12443
12444         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12445
12446 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
12447
12448         * cppinit.c (merge_include_chains): Check for brack being
12449         NULL before attempting to merge it with qtail.
12450
12451 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12452
12453         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12454         DBX_DEBUG.
12455
12456 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12457
12458         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12459
12460 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12461
12462         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12463         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12464         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12465
12466 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12467
12468         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12469         now only if !TARGET_FIX.
12470         (*movsi_nt_vms_fix): New pattern.
12471
12472 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
12473
12474         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12475         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12476         (alpha_sa_mask, alpha_sa_size): Reflect above change.
12477         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12478         (alpha_start_function, alpha_expand_epilogue): Likewise.
12479         (unicosmk_gen_dsib): Likewise.
12480
12481 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12482
12483         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12484
12485 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
12486
12487         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12488         check_and_change_labels, s390_final_chunkify): Delete.
12489         (s390_split_branches, s390_chunkify_pool): New functions.
12490         (s390_function_prologue): Call them.
12491
12492         * config/s390/s390.h (S390_REL_MAX): Delete.
12493         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12494
12495         * config/s390/s390.md (cjump, icjump, jump): Fix length
12496         attribute calculation.
12497
12498
12499 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12500
12501         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12502         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12503
12504 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12505
12506         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12507         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12508         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12509
12510 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12511
12512         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12513
12514 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12515
12516         * reload.c (find_dummy_reload): Check that an output register
12517         is valid for its mode.
12518
12519 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12520
12521         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12522         to simplify it.
12523
12524         * function.c (assign_parms): Demote promoted argument passed by
12525         transparent reference.
12526
12527 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12528
12529         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12530         -Acpu() and -Amachine() to eliminate warnings.
12531
12532 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12533
12534         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12535
12536 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12537
12538         * config/h8300/h8300-protos.h: Update the prototype for
12539         const_costs.
12540         * config/h8300/h8300.c (const_costs): Treat SET as a little
12541         more expensive operation.
12542         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12543         reference to const_costs.
12544
12545 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12546
12547         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12548
12549 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12550
12551         PR c/5503:
12552         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12553         use arguments from newtype.
12554
12555 2002-02-13  Eric Christopher  <echristo@redhat.com>
12556
12557         * config/mips/mips.c (override_options): Add check for march/mipsX
12558         on the same command line. Fix error message in cpu processing.
12559         Remove architecture and ISA checks.
12560
12561 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12562
12563         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12564
12565         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12566
12567 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12568
12569         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12570         alternatives.
12571         ("*movv8hi_internal1"): Same.
12572         ("*movv16qi_internal1"): Same.
12573         ("*movv4sf_internal1"): Same.
12574
12575         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12576         not push_reload for altivec modes.
12577
12578 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12579
12580         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12581         all RTEMS targets including removal of #includes from config/*/rtems*.h
12582         file and adding them to tm_file setting. Added xm_defines=POSIX to
12583         many targets.
12584         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12585         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12586         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12587         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12588         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12589         config/m68k/rtemself.h: Ditto.
12590         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12591         config/mips/rtems64.h: Ditto.
12592         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12593         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12594         Ditto.
12595         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12596         config/sparc/rtemself.h: Ditto.
12597         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12598         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12599         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12600         more like arm-elf.
12601         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12602         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12603         target made more similar to i386-elf.
12604         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12605         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12606         be similar to config/m68k/t-m68kelf.
12607         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12608
12609 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12610
12611         * regmove.c (kill_value): Handle subregs.
12612
12613 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12614
12615         * i386.md (mul patterns): Allow memory operand to be first;
12616         add expanders where needed; fix constraints.
12617         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12618         Allow memory operand to be the first.
12619
12620         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12621         operands.
12622
12623 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12624
12625         PR c/5681:
12626         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12627         GET_MODE (x).
12628
12629 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12630
12631         PR optimization/5547:
12632         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12633         all valid IA-32 address modes involving non-scaled %ebx and
12634         GOT/GOTOFF as displacement.
12635
12636 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12637
12638         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12639         after emitting ltorg insns.
12640
12641         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12642         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12643         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12644         *abssf2): Fix "op_type" attribute.
12645
12646 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12647
12648         * mkconfig.sh: Avoid using a subshell redirect.
12649         ($output.T): Change to $(output)T.
12650         (ENABLE_NLS): Remove unneeded undef.
12651
12652         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12653         * config/alpha/x-vms (libsubdir): Define.
12654
12655         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12656         register frame procedures. Optimize retrieving context.
12657
12658         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12659         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12660         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12661
12662 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12663
12664         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12665         Make same change as for find_base_value.
12666
12667 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12668
12669         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12670         of QImode and SImode.
12671
12672 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12673
12674         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12675         length computation of movsi.
12676         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12677
12678 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12679
12680         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12681         operands[2] to register_operand.
12682
12683 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12684
12685         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12686
12687 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12688
12689         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12690         for altivec_lvx* and altivec_stvx*.
12691         ("*movv4si_internal"): Add constraint for loading from GPRs.
12692         ("*movv8hi_internal1"): Same.
12693         ("*movv16qi_internal1"): Same.
12694         ("*movv4sf_internal1"): Same.
12695
12696         * config/rs6000/rs6000.c (altivec_register_operand): New.
12697
12698         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12699         altivec_register_operand.
12700
12701 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12702
12703         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12704         handle SYMBOL_REF.
12705
12706 2002-02-13  Stan Shebs  <shebs@apple.com>
12707
12708         * c-typeck.c (digest_init): Handle vectors.
12709         (really_start_incremental_init): Same.
12710         (pop_init_level): Same.
12711         (process_init_element): Same.
12712
12713         * varasm.c (output_constant): Same.
12714
12715         * expr.c (clear_storage): Same.
12716         (store_constructor): Same.
12717
12718 2002-02-12  Eric Christopher  <echristo@redhat.com>
12719
12720         * explow.c (hard_function_value): Add comment explaining
12721         signed/unsigned comparison.
12722
12723 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12724
12725         * jump.c (never_reached_warning): Add finish argument.
12726         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12727         real insn after end.
12728         * rtl.h (never_reached_warning): Adjust prototype.
12729         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12730         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12731         never_reached_warning.
12732
12733 2002-02-12  Graham Stott  <grahams@redhat.com>
12734
12735         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12736
12737 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12738
12739         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12740         logical shifts on H8/300.
12741         (shift_alg_si): Improve several shifts on H8/300.
12742         (get_shift_alg): Likewise.
12743
12744 2002-02-12  Graham Stott  <grahams@redhat.com>
12745
12746         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12747
12748 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12749
12750         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12751         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12752
12753 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12754
12755         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12756         non-CONST_INT through default_assemble_integer.
12757         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12758         <case 8>: Abort for CONST_DOUBLE.
12759
12760 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12761
12762         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12763         is specified.
12764         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12765         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12766
12767 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12768
12769         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12770
12771 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12772
12773         * regrename.c (regrename_optimize): Don't accept a
12774         part-clobbered register if the replaced register is not part
12775         clobbered.
12776
12777         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12778         take padding into account when computing the argument value.
12779
12780         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12781
12782         * combine.c (try_combine): Apply substitutions in
12783         CALL_INSN_FUNCTION_USAGE too.
12784
12785 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12786
12787         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12788         __builtin_altivec_abs*.
12789         (bdesc_abs): New.
12790
12791         * config/rs6000/rs6000.h (rs6000_builtins): Add
12792         ALTIVEC_BUILTIN_ABS*.
12793
12794         * config/rs6000/altivec.h: Use const char for builtins expecting
12795         literals.
12796         (vec_abs): New versions for C and C++.
12797         (vec_abss): Same.
12798
12799 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12800
12801         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12802         using Pmode.
12803
12804 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12805
12806         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12807         constant definition from h8300.md.
12808         (FRAME_POINTER_REGNUM): Likewise.
12809         * config/h8300/h8300.md (define_constants): Add FP_REG.
12810
12811 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12812
12813         * config/h8300/h8300.c (print_operand): Remove redundant code.
12814
12815 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12816
12817         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12818         * config/h8300/h8300.c (byte_reg): Make it static.
12819
12820 2002-02-10  Richard Henderson  <rth@redhat.com>
12821
12822         PR c/5623
12823         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12824
12825 2002-02-10  Richard Henderson  <rth@redhat.com>
12826
12827         PR c++/5624
12828         * tree.c (append_random_chars): Don't abort if main_input_filename
12829         does not exist.
12830
12831 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12832
12833         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12834
12835 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12836
12837         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12838         (pushhi1): Likewise.
12839
12840 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12841
12842         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12843         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12844
12845 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12846
12847         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12848         remove MASK_VIS.
12849         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12850
12851 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12852
12853         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12854         a half of an SImode register on H8/300.
12855
12856 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12857
12858         * i386.md (movdi_2): Add missing '!'.
12859
12860 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12861
12862         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12863         definitions.
12864
12865 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12866
12867         * config/h8300/h8300.md (length): Correct the distance valid
12868         for the short branch.
12869
12870 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12871
12872         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12873
12874 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12875
12876         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12877         registers in SImode.
12878         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12879         part-clobbered.
12880
12881         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12882         patch.
12883
12884         Contribute sh64-elf.
12885         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12886         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12887         (sh_cannot_modify_jumps_p): New function.
12888         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12889         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12890         (sh_ms_bitfield_layout_p): New function.
12891         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12892                     Zack Weinberg  <zack@codesourcery.com>
12893         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12894         expand_simple_binop instead of expand_binop.
12895         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12896         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12897         use of .quad and .uaquad.
12898         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12899         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12900         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12901         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12902         movdi_const_16bit): Make sure all CONSTs have modes.
12903         (sym2PIC): Ditto, but by adjusting all callers.
12904         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12905         if the prologue calls the SHmedia argument decoder or register
12906         saver.
12907         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12908         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12909         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12910         (sh_expand_epilogue): Don't emit USE of return target register.
12911         (prepare_move_operands): Legitimize DImode PIC addresses.
12912         (sh_media_register_for_return): Skip tr0, used to initialize the
12913         PIC register.
12914         (sh_expand_prologue): Remove explicit USE of return register.
12915         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12916         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12917         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12918         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12919         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12920         EXTRA_CONSTRAINT_T.
12921         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12922         (MOVI_SHORI_BASE_OPERAND_P): New.
12923         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12924         (EXTRA_CONSTRAINT_T): Define in terms of them.
12925         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12926         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12927         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12928         alternatives supporting TARGET_REGS.
12929         (UNSPEC_GOTPLT): New constant.
12930         (movdi split): Move incrementing of LABEL_NUSES...
12931         (movdi_const, movdi_const_32bit): Here.  Use
12932         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12933         (movdi_const_16bit): New.
12934         (call, call_value) [flag_pic]: Use GOTPLT.
12935         (call_pop, call_value_pop): New expands.
12936         (call_pop_compact, call_pop_rettramp): New insns.
12937         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12938         (sibcall) [flag_pic]: Use GOT.
12939         (builtint_setjmp_receiver): Remove bogus, unused expand.
12940         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12941         (*pt, *ptb, ptrel): New insns.
12942         (sym2GOT): Handle DImode GOT.
12943         (sym2GOTPLT, symGOTPLT2reg): New expands.
12944         (sym2PIC): New expand.
12945         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12946         (shcompact_return_tramp_i): Use return register explicitly.
12947         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12948         disable flag_reorder_blocks.
12949         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12950         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12951         clobbers, for clarity.
12952         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12953         restoring of r0 in macl as MAYBE_DEAD.
12954         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12955         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12956         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12957         alter_subreg all over.
12958         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12959         reload, instead of emitting instructions that would require
12960         reloading.
12961         (casesi_load_media): Add missing modes.
12962         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12963         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12964         as used if the argument decoder is called.
12965         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12966         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12967         Pmode, then extend it to DImode if necessary.
12968         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12969         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12970         constants in FPU-enabled SHmedia, let them be loaded from memory.
12971         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12972         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12973         Adjust whitespace in assembly output templates.
12974         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12975         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12976         mode of if_then_else.
12977         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
12978         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12979         sh.h.
12980         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
12981                     Joern Rennecke <amylaar@redhat.com>
12982         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12983         (SUBTARGET_CPP_PTR_SPEC): New.
12984         (SUBTARGET_CPP_SPEC): Remove.
12985         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12986         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12987         Fix typo in previous checkin.
12988         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
12989         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12990         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
12991                     Alexandre Oliva  <aoliva@redhat.com>
12992         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12993         what single FP register can hold for SHmedia target.
12994         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12995                     Alexandre Oliva  <aoliva@redhat.com>
12996         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12997         Do not split into SUBREG.
12998         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
12999         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
13000         and added new functions as specified in SH5 ABI r9.
13001         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
13002         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
13003         8-byte boundary.
13004         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
13005         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
13006         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
13007         and consttable_window_ends.
13008         2001-06-03  Graham Stott  <grahams@redhat,com>
13009         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
13010         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
13011         * config/sh/sh.c (print_operand): Handle floating-point pair,
13012         vector and matrix registers.
13013         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
13014         vector modes into account.
13015         * config/sh/sh.md (movv2sf): Split move between registers into
13016         movdf.
13017         (movv4sf, movv16sf): Introduce insns that get split only after
13018         reload.
13019         * config/sh/shmedia.h: Fix Copyright dates.
13020         * config/sh/ushmedia.h: Likewise.  Move loop counter
13021         declarations into conditionals that uses them.
13022         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
13023         loop boundary.
13024         * config/sh/sshmedia.h: Fix Copyright dates.
13025         (sh_media_PUTCFG): Fix constraints.
13026         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
13027         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
13028         ptrmemfunc_vbit_in_delta for SH5.
13029         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
13030         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
13031         * invoke.texi: Likewise.
13032         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
13033         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
13034         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
13035         GCC_pop_shmedia_regs_nofpu): New global symbols.
13036         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
13037         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
13038         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
13039         compact function with nonlocal labels.
13040         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
13041         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
13042         (initial_elimination_offset): Account for their stack space.
13043         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
13044         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
13045         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
13046         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
13047         least one of the operands to be a register.
13048         (movv2sf): Likewise.  Renamed to movv2sf_i.
13049         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
13050         prepare_move_operands() before emitting SHmedia insns.
13051         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
13052         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
13053         Don't save nor initialize r12.  Don't mis-align the stack.
13054         Pad the code with a nop.
13055         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
13056         stack.
13057         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
13058         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
13059         [__SHMEDIA__]: Implement.
13060         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
13061         * config/sh/sh.md: Set latency of `pt' closer to reality.
13062         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
13063         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
13064         Set move, load and store type attributes.
13065         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
13066         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
13067         profiling.
13068         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
13069         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
13070         * config/sh/sh.c (sh_media_register_for_return): New function.
13071         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
13072         branch-target register.
13073         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
13074         * config/sh/sh.md (return_media_i): Use any call-clobbered
13075         branch-target register.
13076         (return_media): If r18 wasn't copied in the prologue, copy it
13077         here.
13078         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
13079         Clear class FP0_REGS.
13080         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
13081         from elf.h.
13082         2001-03-08  DJ Delorie  <dj@redhat.com>
13083         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
13084         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
13085         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
13086         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
13087         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
13088         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
13089         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
13090         return value correctly for call_cookie.
13091         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
13092         * config/sh/crt1.asm (start): Modified so as to call
13093         ___setup_argv_and_call_main.
13094         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
13095         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
13096         SHmedia mode.
13097         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
13098         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
13099         (STRIP_NAME_ENCODING): Use it.
13100         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
13101         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
13102         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
13103         prepare_scc_operands().
13104         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
13105         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
13106         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
13107         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
13108         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
13109         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
13110         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
13111         used in shcompact_incoming_args.
13112         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
13113         change.
13114         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
13115         mode.
13116         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
13117         Adjust accordingly.
13118         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
13119         Simplify.  Adjust.  Add sanity check.
13120         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
13121         FPU_SINGLE_BIT.
13122         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
13123         TARGET_SHCOMPACT.
13124         (udivsi3, divsi3): Use them.
13125         (force_mode_for_call): New insn.
13126         (call, call_value, sibcall_value): Emit it before SHcompact
13127         calls.
13128         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
13129         * config/sh/sh.md (call, call_value, sibcall): Make sure the
13130         call cookie is non-NULL before taking its value.
13131         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
13132         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
13133         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
13134         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
13135         block.
13136         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
13137         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
13138         temporary for stack adjusts.  Use MACL and MACH to pass
13139         arguments to shcompact_incoming_args.
13140         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
13141         clobber r1.
13142         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
13143         (nested_trampoline): Load static chain address into r1.
13144         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
13145         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
13146         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
13147         fp_arith_reg_operand().
13148         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
13149         * config/sh/sh.md (casesi): Sign-extend the first two operands,
13150         and use signed compares for them.
13151         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
13152         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
13153         ones properly aligned.
13154         (find_barrier): Account for extra alignment needed for 8-byte wide
13155         constants.
13156         (machine_dependent_reorg): Require a label for the second 4-byte
13157         constant after an 8-byte one.
13158         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
13159         change.
13160         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13161         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
13162         last_float when switching float modes.
13163         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
13164         auto-increment for general-purpose registers.
13165         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
13166         result.
13167         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
13168         for stack adjust.
13169         * config/sh/sh.c (sh_builtin_saveregs): Support using all
13170         registers for varargs.
13171         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
13172         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
13173         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
13174         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
13175         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
13176         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
13177         call_cookie accordingly.
13178         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
13179         (SHCOMPACT_BYREF): Likewise.
13180         (SHCOMPACT_FORCE_ON_STACK): New macro.
13181         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
13182         (sh_builtin_saveregs): Likewise.
13183         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13184         shcompact_incoming_args): Use new shift values.  Support
13185         sequences of consecutive and non-consecutive pushes/pops.
13186         * config/sh/sh.md (return): Don't explicitly use PR_REG.
13187         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
13188         * config/sh/sh.h (TEXT_SECTION): Define.
13189         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13190         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13191         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13192         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13193         return values on FPU-enabled SHmedia.
13194         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13195         FPU-enabled SHmedia.
13196         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13197         value is returned in a non-FP reg and is not returned by
13198         reference.
13199         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13200         jump_ind.
13201         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
13202         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13203         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13204         quad-aligned to be passed by callee-copy reference.
13205         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
13206         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13207         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13208         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
13209         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13210         copying low-numbered FP regs to r7 and r8.
13211         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13212         FP regs to general-purpose regs only if the copy was passed on the
13213         stack.
13214         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13215         copying FP reg to r9.
13216         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13217         copy FP regs to general-purpose regs only in outgoing calls.
13218         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13219         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
13220         HOST_WIDE_INT.
13221         * config/sh/sh.h (struct sh_args): Document all fields.
13222         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13223         passed partially on the stack should not consider making
13224         sibcalls.
13225         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13226         stack_regs only for incoming calls.  When passing FP args,
13227         make sure there are FP regs available before modifying
13228         call_cookie.
13229         (SHCOMPACT_BYREF): Pass double args in general-purpose
13230         registers by reference.
13231         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
13232         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13233         attempt to generate sibcalls if the caller got any arguments
13234         by reference.
13235         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13236         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13237         to 8-byte boundaries.
13238         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13239         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13240         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13241         stored in the stack.
13242         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13243         for the offsets to have the ISA bit set.
13244         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
13245         invocation.  Use beq instead of bgt to mark end of sequence of
13246         loads.
13247         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
13248         bgt to mark end of sequence of stores.
13249         * config/sh/sh.c (arith_operand): Don't check whether
13250         CONST_OK_FOR_J for now.
13251         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13252         instead of long for conversion.
13253         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
13254         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13255         before passing it to fprintf.
13256         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
13257         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13258         Call set_fpscr before reading/writing SR.
13259         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13260         Call set_fpscr.
13261         * config/sh/lib1funcs.asm: Add `.align 2' directives before
13262         SHmedia code.
13263         (FMOVD_WORKS): Define on SH5 with FPU.
13264         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
13265         setting.
13266         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13267         _fpscr_values.
13268         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
13269         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13270         address.
13271         (ia_main_table): Ditto.
13272         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
13273         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13274         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13275         the definitions from sh.h.
13276         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13277         TARGET_SH5.
13278         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13279         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13280         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13281         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
13282         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13283         Increment LABEL_NUSES.
13284
13285         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13286         TARGET_SH5.
13287         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13288         defined.
13289         * config/sh/elf.h (SIZE_TYPE): Likewise.
13290         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13291         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13292         shcompact_incoming_args): Load switch table addresses using
13293         datalabel.
13294         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13295         (NO_BUILTIN_SIZE_TYPE): Define.
13296         (SIZE_TYPE): Don't define.
13297         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13298         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13299         definition of __SH5__=32 for -m5-compact-nofpu.
13300         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13301         ADDR_DIFF_VEC.
13302         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
13303         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13304         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
13305         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13306         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13307         (INSN_LENGTH_ALIGNMENT): Likewise.
13308         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13309         * config/sh/sh.md (call, call_value, sibcall): Simplify
13310         copying of non-branch-target register.
13311         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13312         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
13313         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13314         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13315         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13316         floating-point values as structs.
13317         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13318         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13319         general-purpose register.
13320         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13321         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13322         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13323         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13324         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13325         (ENCODE_SECTION_INFO): Enclose variables and constants in
13326         DATALABEL unspecs.
13327         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13328         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13329         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13330         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13331         only for LABEL_REFs.  For SYMBOL_REFs, prepend
13332         SH_DATALABEL_ENCODING to the symbol name.
13333         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13334         convert_mode().
13335         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13336         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13337         UNSPEC_DATALABEL.
13338         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13339         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13340         (DATALABEL_REF_P): Don't require CONST.
13341         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13342         REL label.
13343         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
13344         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13345         right.
13346         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13347         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13348         Use shallow_copy_rtx and PUT_MODE to change the mode of
13349         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13350         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13351         on SHmedia using GENERAL_REGs.
13352         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13353         bltu_media_i): Fix reversion of conditions.
13354         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13355         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13356         * config/sh/sh.c (output_far_jump): Save r13 in macl.
13357         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
13358         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13359         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13360         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13361         (GCC_nested_trampoline): Likewise.
13362         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13363         * config/sh/sh.c (gen_datalabel_ref): Define.
13364         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13365         (INITIALIZE_TRAMPOLINE): Likewise.
13366         (TRAMPOLINE_ADJUST_ADDRESS): Define.
13367         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13368         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13369         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13370         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13371         (ic_invalidate): Adjust for SH5.
13372         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13373         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13374         _nested_trampoline.
13375         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
13376         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13377         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13378         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13379         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13380         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13381         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13382         * config/sh/sh.c (target_reg_operand): Match only target-branch
13383         registers and pseudos that aren't virtual registers.
13384         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13385         Copy operands that don't match target_reg_operand to pseudos.
13386         (call_media, call_value_media, sibcall_media): Use
13387         target_reg_operand instead of target_operand.
13388         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
13389         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13390         * config/sh/sh.c (target_reg_operand): Match hardware registers
13391         other than branch-target registers.
13392         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13393         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13394         (fpscr_values) [SH5 == 32]: Define.
13395         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13396         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13397         Handle function addresses coming in SUBREGs.
13398         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
13399         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13400         shcompact_return_trampoline): Use datalabel where appropriate.
13401         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
13402         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13403         general-purpose register to copy one branch-target register to
13404         another.
13405         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13406         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13407         SYMBOL_REFs with VOIDmode.
13408         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13409         bltu_media_i): New insns.
13410         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13411         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13412         (INIT_CUMULATIVE_ARGS): Likewise.
13413         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13414         * machmode.def (V16SFmode): New mode.
13415         * c-common.c (type_for_mode): Support V2SF and V16SF.
13416         * tree.c (build_common_tree_nodes_2): Likewise.
13417         * tree.h (tree_index): Likewise.
13418         * calls.c (emit_call_1): Take args_so_far.  Adjust all
13419         callers.  Introduce CALL_POPS_ARGS.
13420         * tm.texi (CALL_POPS_ARGS): Document.
13421         * config/sh/crt1.asm: Implement in SHmedia mode.
13422         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13423         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13424         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13425         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13426         Implement divsi and udivsi in SHmedia mode.  Introduce
13427         SHcompact trampolines.
13428         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13429         only in SHmedia64.
13430         (regno_reg_class): Rewrite.
13431         (fp_reg_names): Remove.
13432         (sh_register_names, sh_additional_register_names): New.
13433         (print_operand): Added `u'.  Support SUBREGs in addresses.
13434         Add parentheses around shifted CONSTs.
13435         (output_file_start): Output .mode and .abi directives.
13436         (shiftcosts, addsubcosts, multcosts): Adjust.
13437         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
13438         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
13439         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
13440         bytes, not registers.  Take into account the need for the
13441         SHcompact incoming args trampoline.  Adjust all callers.
13442         (sh_expand_prologue): Take stack_regs into account.  Call
13443         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
13444         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
13445         stack aligned as per SH5 ABI.
13446         (sh_builtin_saveregs): Support SH5 ABI.
13447         (sh_build_va_list, sh_va_start): Likewise.
13448         (initial_elimination_offset): Take alignment into account.
13449         Compute location of PR according to the SH5 stack frame.
13450         (arith_reg_operand): Reject branch-target registers.
13451         (shmedia_6bit_operand): New.
13452         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13453         (target_reg_operand): Match DImode only.  Accept SUBREGs.
13454         (target_operand): New.
13455         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13456         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
13457         SIBCALL_REGS for SHmedia.
13458         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13459         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13460         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13461         (TARGET_SWITCHES): New SH5 flags.
13462         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
13463         VALID_REGISTER_P to disable unsupported registers.
13464         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13465         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13466         (FUNCTION_ARG_PADDING): Define.
13467         (FASTEST_ALIGNMENT): Adjust.
13468         (SH_REGISTER_NAMES_INITIALIZER): New.
13469         (sh_register_names): Declare.
13470         (DEBUG_REGISTER_NAMES): Define.
13471         (REGISTER_NAMES): Define based on sh_register_names.
13472         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13473         (sh_additional_register_names): Declare.
13474         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13475         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13476         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13477         (REGISTER_NATURAL_MODE): Define.
13478         (FIRST_PSEUDO_REGISTER): Adjust.
13479         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13480         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13481         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13482         (VECTOR_MODE_SUPPORTED_P): Define.
13483         (REG_CLASS_CONTENTS): Adjust.
13484         (SMALL_REGISTER_CLASSES): Adjust.
13485         (REG_ALLOC_ORDER): Adjust.
13486         (INDEX_REG_CLASS): Adjust.
13487         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13488         (CONST_OK_FOR_LETTER_P): Adjust.
13489         (PREFERRED_RELOAD_CLASS): Adjust.
13490         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13491         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13492         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13493         (FIRST_FP_PARM_REG): Adjust.
13494         (CALL_POPS_ARGS): Define.
13495         (FUNCTION_ARG_REGNO_P): Adjust.
13496         (struct sh_args): New fields.
13497         (GET_SH_ARG_CLASS): Adjust.
13498         (INIT_CUMULATIVE_ARGS): Adjust.
13499         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13500         (FUNCTION_ARG_ADVANCE): Adjust.
13501         (FUNCTION_ARG): Adjust.
13502         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13503         (FUNCTION_ARG_CALLEE_COPIES): Define.
13504         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13505         (STRICT_ARGUMENT_NAMING): Define.
13506         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13507         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13508         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13509         (SETUP_INCOMING_VARARGS): Adjust.
13510         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13511         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13512         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13513         (SUBREG_OK_FOR_INDEX_P): Adjust.
13514         (EXTRA_CONSTRAINT_S): Update.
13515         (EXTRA_CONSTRAINT_T): New.
13516         (EXTRA_CONSTRAINT): Adjust.
13517         (GO_IF_LEGITIMATE_INDEX): Adjust.
13518         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13519         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13520         (MOVE_MAX): Adjust.
13521         (MAX_MOVE_MAX): Define.
13522         (Pmode): Adjust.
13523         (CONST_COSTS): Adjust.
13524         (REGISTER_MOVE_COST): Adjust.
13525         (BRANCH_COST): Adjust.
13526         (TEXT_SECTION_ASM_OP): Adjust.
13527         (DBX_REGISTER_NUMBER): Adjust.
13528         (ASM_OUTPUT_DOUBLE_INT): New.
13529         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13530         (PREDICATE_CODES): Adjust.
13531         (PROMOTE_MODE): Adjust.
13532         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13533         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13534         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13535         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13536         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13537         (TR0_REG, TR1_REG, TR2_REG): New.
13538         (XD0_REG): Renumber.
13539         (UNSPEC_COMPACT_ARGS): New.
13540         (type): Added pt and ptabs.
13541         (length): Default to 4 on SHmedia.  Default pt length to 12
13542         and     20 on SHmedia32 and SHmedia64, respectively.
13543         (pt): New function unit.
13544         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13545         Add whitespace between operands of SHmedia instructions.
13546         (movdicc): Fix.
13547         (adddi3_media, addsi3_media): Adjust constraints.
13548         (subsi3) [SHmedia]: Force operand 1 into a register.
13549         (udivsi3_i1_media, udivsi3_i4_media): New.
13550         (udivsi3): Support SHmedia.
13551         (divsi3_i1_media, divsi3_i4_media): New.
13552         (divsi3): Support SHmedia.
13553         (anddi3, iordi3, xordi3): Adjust constraints.
13554         (zero_extendhidi2, zero_extendqidi2): New.
13555         (extendsidi2, extendhidi2, extendqidi2): New.
13556         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13557         (pop_e, pop_fpul, pop_4): Likewise.
13558         (movsi_media): Support FP and BT registers.
13559         (movsi_media_nofpu): New.  Adjust splits to DImode.
13560         (lduw, ldub): Renamed to zero_extend* above.
13561         (movqi_media): Fix typo.
13562         (movdi_media): Support FP and BT registers.
13563         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13564         (movdi_const_32bit): New.
13565         (shori_media): Require immediate operand.  Use `u' for output.
13566         (movdf_media, movsf_media): Simplified.
13567         (movdf_media_nofpu, movsf_media_nofpu): New.
13568         (movdf, movsf): Adjust
13569         (movv2sf, movv2sf, movv16sf): New.
13570         (beq_media, beq_media_i): Adjust constraints.  Don't use
13571         scratch BT register.
13572         (bne_media, bne_media_i): Likewise.
13573         (bgt_media, bgt_media_i): Likewise.
13574         (bge_media, bge_media_i): Likewise.
13575         (bgtu_media, bgtu_media_i): Likewise.
13576         (bgeu_media, bgeu_media_i): Likewise.
13577         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13578         bunordered): Emit jump insn.  Force operands to registers when
13579         needed.
13580         (jump_media, jump): Simplify.
13581         (call_compact, call_compact_rettramp): New.
13582         (call_value_compact, call_value_compact_rettramp): New.
13583         (call_media, call_value_media): Simplify.
13584         (sibcall_compact, sibcall_media): New.
13585         (call, call_value): Adjust for SHmedia and SHcompact.
13586         (sibcall, sibcall_value, untyped_call): Likewise.
13587         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13588         (indirect_jump): Adjust for SHmedia.
13589         (casesi_jump_media): New.
13590         (nop): Re-enable for SHmedia.
13591         (call_site): Restrict to SH1.
13592         (casesi): Adjust for SHmedia.
13593         (casesi_shift_media, casesi_load_media): New.
13594         (return): Explicitly use PR register.  Call return trampoline
13595         on SHcompact.
13596         (return_i): Explicitly use PR register.
13597         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13598         (return_media): Adjust.
13599         (shcompact_incoming_args): New.
13600         (epilogue): Adjust.
13601         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13602         (movstrsi): Disable on SH5.
13603         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13604         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13605         (subsf3, subsf3_media): Likewise.
13606         (mulsf3, mulsf3_media, mac_media): Likewise.
13607         (divsf3, divsf3_media): Likewise.
13608         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13609         (floatsisf2, fux_truncsfsi2): Likewise.
13610         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13611         constraints.
13612         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13613         (cmpunsf_media, cmpsf): Likewise.
13614         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13615         (abssf2, abssf2_media): Likewise.
13616         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13617         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13618         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13619         (floatsidf2, fix_truncdfsi2): Likewise.
13620         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13621         constraints.
13622         (cmpeqdf_media, cmpgtdf_media): Likewise.
13623         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13624         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13625         (absdf2, absdf2_media): Likewise.
13626         (extendsfdf2, extendsfdf2_media): Likewise.
13627         (truncsfdf2, truncsfdf2_media): Likewise.
13628         * config/sh/sh64.h: New file.
13629         * config/sh/t-sh64: New file.
13630         * config/sh/shmedia.h: New file.
13631         * config/sh/ushmedia.h: New file.
13632         * config/sh/sshmedia.h: New file.
13633         * configure.in: Added sh64-*-elf.
13634         * configure: Rebuilt.
13635         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13636         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13637         (reg_class_from_letter): Use `b' for TARGET_REGS.
13638         (print_operand): Support `%M', `%m', `AND' and
13639         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13640         (andcosts): Adjust for SHmedia.
13641         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13642         Likewise.
13643         (target_reg_operand): New function.
13644         * config/sh/sh-protos.h (target_reg_operand): Declare.
13645         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13646         FP registers on SH5.
13647         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13648         on SH4.
13649         (TARGET_REGISTER_P): New macro.
13650         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13651         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13652         (EXTRA_CONSTRAINT_S): New macro.
13653         (EXTRA_CONSTRAINT): Adjust.
13654         (FLOAT_TYPE_SIZE): Define to 32.
13655         (Pmode): DImode on SHmedia.
13656         (CONST_COSTS): Adjust for SHmedia literals.
13657         (PREDICATE_CODES): Added target_reg_operand.
13658         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13659         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13660         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13661         (cmpdi): Accept SHmedia.
13662         (movdicc_false, movdicc_true): New insns.
13663         (movdicc): New expand.
13664         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13665         no_new_pseudos.
13666         (addsi3_media): Match `S' constraint.
13667         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13668         (negdi2): Expand for SHmedia.
13669         (one_cmpldi2): New expand.
13670         (zero_extendsidi2): Change from expand to insn.
13671         (extendsidi2): Add constraints.
13672         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13673         LD/ST address.  Fix SI immediate loading split.
13674         (movhi_media, movqi_media, lduw, ldub): New insns.
13675         (movhi, movqi): Accept SHmedia.
13676         (shori_media, movdi_media): Relax input constraints.  Split
13677         symbolic constants.
13678         (movdf_media, movsf_media): New insn.  New split to movdi.
13679         (movdf, movsf): Match on SHmedia.
13680         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13681         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13682         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13683         (bunordered): New expand.
13684         (jump_compact): Renamed from `jump'.
13685         (jump_media): New insn.
13686         (jump): New expand.
13687         (call_media, call_value_media): New insns.
13688         (call, call_value): Adjust.
13689         (indirect_jump_compact): Renamed from `indirect_jump'.
13690         (indirect_jump_media): New insn.
13691         (indirect_jump): New expand.
13692         (untyped_call, return): Accept SHmedia.
13693         (return_media): New insn.
13694         (prologue, epilogue, blockage): Accept SHmedia.
13695         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13696         (sunordered): New expand.
13697         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13698         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13699         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13700         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13701         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13702         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13703         abssf2_media): New insns.
13704         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13705         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13706         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13707         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13708         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13709         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13710         absdf2_media): New insns.
13711         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13712         (extendsfdf2_media, truncdfsf2_media): New insns.
13713         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13714         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13715         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13716         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13717         * config/sh/sh.md (adddi3): New expand.
13718         (adddi3_media, adddi3z_media): New insns.
13719         (adddi3_compact): Renamed from adddi3.
13720         (addsi3_media): Use add.l r63 to add constant zero.
13721         (subdi3): New expand.
13722         (subdi3_media): New insn.
13723         (subdi3_compact): Renamed from subdi3.
13724         (mulsidi3): New expand.
13725         (mulsidi3_media): New insn.
13726         (mulsidi3_compact): Renamed from mulsidi3.
13727         (umulsidi3): New expand.
13728         (umulsidi3_media): New insn.
13729         (umulsidi3_compact): Renamed from umulsidi3.
13730         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13731         (ashlsi3, ashrsi3, lshrsi3): Use them.
13732         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13733         (ashldi3, ashrdi3, lshrdi3): Use them.
13734         (zero_extendsidi2): New expand.
13735         (extendsidi2): New insn.
13736         (movsi_media): New insn.  Split to movdi to load constants.
13737         (movsi): Enable for shmedia.
13738         (movdi_media): New insn.  Use shori_media to load wide constants.
13739         (short_media): New insn.
13740         (movdi): Enable for shmedia.
13741         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13742         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13743         (SUBTARGET_CPP_SPEC): Added `!m5'.
13744         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13745         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13746         to all other SH variants.
13747         (TARGET_DEFAULT): Set to SH1_BIT.
13748         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13749         (BITS_PER_WORD): Raise to 64 on shmedia.
13750         (MAX_BITS_PER_WORD): Change to 64.
13751         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13752         (INT_TYPE_SIZE): Keep as 32.
13753         (UNITS_PER_WORD): Raise to 8 on shmedia.
13754         (MIN_UNITS_PER_WORD): Keep as 4.
13755         (POINTER_SIZE): Raise to 64 on shmedia.
13756         (CONST_OK_FOR_J): New macro.
13757         (CONST_OK_FOR_LETTER_P): Use it.
13758         (processor_type): Add PROCESSOR_SH5.
13759         * config/sh/sh.md: Conditionalize all expands, insns and
13760         splits to TARGET_SH1.
13761         (cpu): Added sh5.
13762         (addsi3_compact): Renamed from...
13763         (addsi3): Now an expand.
13764         (addsi3_media, subsi3_media): New insns.
13765         (subsi3): Don't negate constants with SHmedia.
13766
13767         * hooks.c: New file.
13768         * hooks.h: New file.
13769         * Makefile.in (HOOKS_H): New.
13770         (TARGET_DEF_H): Added $(HOOKS_H).
13771         (OBJS): Added hooks.o.
13772         (cfgcleanup.o, bb-reorder.o): Added target.h.
13773         (hooks.o): Added dependencies.
13774         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13775         (TARGET_INITIALIZER): this.
13776         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13777         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13778         * bb-reorder.c: Include target.h.
13779         (reorder_basic_blocks): Skip if cannot modify jumps.
13780         * cfgcleanup.c: Include target.h.
13781         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13782
13783 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13784
13785         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13786         Protect jump delay slot instructions with .set noreorder and
13787         .set nomacro.
13788
13789 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13790
13791         * config/mips/mips.md (casesi_internal_di): Calculate
13792         the index into the target offset table correctly.
13793
13794 2002-02-08  Richard Henderson  <rth@redhat.com>
13795
13796         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13797         * final.c (output_addr_const): Accept and discard SUBREG.
13798         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13799         mark them unknown instead.
13800         (simplify_subtraction): Handle RTX_UNKNOWN.
13801         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13802
13803 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13804
13805         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13806
13807 2002-02-08  Richard Henderson  <rth@redhat.com>
13808
13809         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13810
13811 2002-02-08  Andreas Jaeger  <aj@suse.de>
13812
13813         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13814         * config/i386/t-linux64: New file.
13815
13816 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13817
13818         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13819         * c-parse.in (compstmt): Clear last_expr_type.
13820
13821 2002-02-07  Richard Henderson  <rth@redhat.com>
13822
13823         * loop.c (strength_reduce): Sink final_value when not
13824         eliminating a biv.
13825
13826 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13827
13828         * config/sparc/freebsd.h: Fix mismatched spec {.
13829
13830 2002-02-07  Richard Henderson  <rth@redhat.com>
13831
13832         * cfgrtl.c: Include recog.h and insn-config.h.
13833         (keep_with_call_p): Fix general_operand invocation.
13834         * Makefile.in (cfgrtl.o): Update dependencies.
13835
13836 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13837
13838         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13839         comment.  Accept HImode only if TARGET_H8300.
13840
13841 2002-02-07  Eric Christopher  <echristo@redhat.com>
13842
13843         * config/mips/crtn.asm: Cleanup #ifdefs.
13844
13845 2002-02-07  Eric Christopher  <echristo@redhat.com>
13846
13847         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13848         register 7 as RA instead of $31.
13849         * config/mips/crtn.asm: Ditto.
13850         * config/mips/mips.c (mips_move_2words): Add case for
13851         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13852         (compute_frame_size): Fix typo.
13853         (save_restore_insns): Ditto.  Make documentation about using
13854         register $7 as return register more precise.
13855         (mips_expand_epilogue): Fix comment. Add code to work around not
13856         being able to add to the stack pointer directly.
13857         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13858         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13859         epilogue.
13860
13861 2002-02-07  Tom Rix  <trix@redhat.com>
13862
13863         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13864         immediates in ldu and stdu DS opcode field.
13865         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13866         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13867         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13868
13869 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13870
13871         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13872         offset for stack bias.
13873
13874 2002-02-07  H.J. Lu <hjl@gnu.org>
13875
13876         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13877
13878 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13879
13880         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13881
13882 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13883
13884         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13885         * i386.c (x86_order_regs_for_local_alloc): New global function.
13886         * i386.h (REG_ALLOC_ORDER): CLeanup.
13887         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13888
13889 2002-02-07  Richard Henderson  <rth@redhat.com>
13890
13891         PR optimization/2463
13892         * alias.c (find_base_value): Recall base values for fixed hard regs.
13893         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13894
13895 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13896
13897         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13898         length.
13899
13900 2002-02-06  Richard Henderson  <rth@redhat.com>
13901
13902         PR c/5609
13903         * stmt.c (resolve_operand_name_1): Take more care with mixed
13904         named and unnamed operands.
13905
13906 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13907             Jan Hubicka  <jh@suse.cz>
13908
13909         * loop.c (remove_constant_addition): Avoid clobbering a shared
13910         CONST expression.
13911
13912 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13913
13914         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13915         * config/s390/t-linux64: New file.
13916         * config/s390/libgcc-glibc.ver: New file.
13917
13918 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13919
13920         * config/s390/linux64.h: Delete file.
13921         * config/s390/s390x.h: New file.
13922         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13923         as target header file.
13924         * config/s390/linux.h (TARGET_VERSION): Define depending on
13925         DEFAULT_TARGET_64BIT.
13926         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13927         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13928         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13929         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13930         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13931         (EXTRA_SPEC): New define.
13932         * config/s390/s390.h (TARGET_VERSION): Define depending on
13933         DEFAULT_TARGET_64BIT.
13934         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13935
13936 2002-02-06  Jason Merrill  <jason@redhat.com>
13937
13938         * c-decl.c (finish_function): Warn about a non-void function with
13939         no return statement and no abnormal exit.
13940         (current_function_returns_abnormally): New variable.
13941         (start_function): Clear it.
13942         (struct c_language_function): Add returns_abnormally.
13943         (push_c_function_context): Save it.
13944         (pop_c_function_context): Restore it.
13945         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13946         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13947         an explicit return type.
13948         * c-tree.h: Declare current_function_returns_abnormally.
13949         (C_FUNCTION_IMPLICIT_INT): New macro.
13950         * c-typeck.c (build_function_call): Set it.
13951         (c_expand_return): Set current_function_returns_value even if the
13952         value is erroneous.
13953
13954 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13955
13956         PR c/5420:
13957         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13958         unsafe for reevaluation.
13959
13960 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13961
13962         PR c/5482:
13963         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13964         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13965
13966 2002-02-06  Richard Henderson  <rth@redhat.com>
13967
13968         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13969         be a general_operand.  Dest for function value must be a pseudo.
13970
13971 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13972
13973         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13974         as SYMBOL_REFs from the constant pool.
13975
13976 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
13977
13978         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13979         passed by invisible reference.
13980
13981 2002-02-05  Richard Henderson  <rth@redhat.com>
13982
13983         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13984
13985 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
13986
13987         Implement using "base addresses" in insn operands as default.
13988         * config/mmix/mmix.c (mmix_conditional_register_usage): if
13989         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13990         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13991         used to read the rtx value.
13992         (mmix_target_asm_function_epilogue): Fix spacing.
13993         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13994         (mmix_legitimate_address): Ditto.
13995         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13996         should be loaded with a GETA insn.  Don't allocate needless extra
13997         char for nul termination and fix misleading comment.
13998         (mmix_print_operand_address): Handle constants if
13999         TARGET_BASE_ADDRESSES.
14000         (mmix_output_register_setting): Use base addressing if
14001         TARGET_BASE_ADDRESSES and the number of insns is 3.
14002         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
14003         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
14004         to use R as constraint, add LDA to match s.
14005         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
14006         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
14007         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
14008         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
14009         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
14010         order with other fixed registers.
14011         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
14012         other parameter/call-clobbered registers.
14013         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
14014         -mbase-addresses, -mno-base-addresses.
14015         (MMIX Options): Ditto.
14016
14017 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14018
14019         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
14020
14021 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
14022
14023         * config/rs6000/altivec.h: Change elem to _S_elem.
14024
14025 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
14026
14027         * config/netbsd.h (WCHAR_TYPE): Define.
14028         (WCHAR_TYPE_SIZE): Ditto.
14029         (WINT_TYPE): Ditto.
14030         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
14031         (WCHAR_UNSIGNED): Ditto.
14032         (WCHAR_TYPE_SIZE): Ditto.
14033         (WINT_TYPE): Ditto.
14034         * config/arm/netbsd.h: Likewise.
14035         * config/i386/netbsd-elf.h: Likewise.
14036         * config/i386/netbsd.h: Likewise.
14037         * config/m68k/netbsd-elf.h: Likewise.
14038         * config/m68k/netbsd.h: Likewise.
14039         * config/ns32k/netbsd.h: Likewise.
14040         * config/sparc/netbsd.h: Likewise.
14041         * config/vax/netbsd.: Likewise.
14042
14043 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
14044
14045         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
14046         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
14047         (TARGET_INITIALIZER): this.
14048         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
14049         (BITFIELD_NBYTES_LIMITED): Markup fix.
14050         * tree.h (default_ms_bitfield_layout_p): Declare.
14051         (record_layout_info): Added prev_field.
14052         * tree.c (default_ms_bitfield_layout_p): New fn.
14053         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
14054         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
14055         * stor-layout.c: Include target.h.
14056         (start_record_layout): Initialize prev_field.
14057         (place_field): Handle MS bit-field layout, and disregard
14058         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
14059         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
14060         * Makefile.in (stor-layout.o): Adjust dependencies.
14061
14062 2002-02-05  Jason Merrill  <jason@redhat.com>
14063
14064         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
14065
14066 2002-02-05  Andreas Jaeger  <aj@suse.de>
14067
14068         * crtstuff.c: Fix comments.
14069
14070 2002-02-05  Richard Henderson  <rth@redhat.com>
14071
14072         PR fortran/3393
14073         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
14074         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
14075
14076         PR fortran/3392
14077         * config/mips/mips.c (function_arg): Handle TImode.
14078         (function_arg_advance): Likewise.
14079
14080 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14081
14082         * config/rs6000/altivec.h (vec_step_help): Rename to
14083         __vec_step_help.
14084
14085 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14086
14087         * config/rs6000/altivec.h: Fix typos.
14088
14089 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
14090
14091         * config/arm/netbsd.h: Correct a comment.
14092
14093 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14094
14095         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
14096         building void typed builtins.
14097
14098         * config/rs6000/altivec.h (vec_ld*): Fix typos.
14099         (vec_step): Implement for C++.
14100
14101 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14102
14103         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
14104
14105 2002-02-04  Richard Henderson  <rth@redhat.com>
14106
14107         * combine.c (nonzero_bits): Re-introduce special case for
14108         sp/fp/ap wrt REGNO_POINTER_ALIGN.
14109
14110 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14111
14112         * doc/extend.texi: Warn about unsupported usage of altivec
14113         builtins.
14114
14115         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
14116         (altivec_predicate_*): New.
14117
14118         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
14119         Add C++ version of vec_*() functions.
14120
14121         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
14122         (bdesc_2arg): Remove altivec predicates.
14123         (altivec_expand_builtin): Handle predicates.
14124         (altivec_init_builtins): Handle predicates.
14125         (altivec_expand_predicate_builtin): New.
14126
14127 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14128
14129         * pa.c (DO_FRAME_NOTES): Move forward.
14130         (store_reg): Revise handling of frame notes.
14131         (load_reg): Likewise.
14132         (set_reg_plus_d): Likewise.
14133         (hppa_expand_prologue): Likewise.
14134         (hppa_expand_epilogue): Likewise.
14135
14136 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14137
14138         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
14139
14140 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14141
14142         PR c/4475, c++/3780:
14143         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
14144         * c-common.h (SWITCH_TYPE): Define.
14145         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
14146         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
14147         Rename spareness variable to sparseness.
14148         (expand_end_case_type): Renamed from expand_end_case, use orig_type
14149         if non-NULL instead of TREE_TYPE (orig_index).
14150         * tree.h (expand_end_case_type): Renamed from expand_end_case.
14151         (expand_end_case): Define using expand_end_case_type.
14152         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
14153         to expand_end_case_type.
14154         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
14155
14156 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14157
14158         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
14159         (BIGGEST_ALIGNMENT): Change to 128.
14160
14161 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14162
14163         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
14164
14165 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14166
14167         * pa.md (call_internal_reg_64bit): Remove unused variable.
14168
14169 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
14170
14171         * config/arm/arm.h (machine_function): Add uses_anonymous_args
14172         field.
14173         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
14174         * config/arm/arm.c (current_function_anonymous_args): Delete,
14175         replace uses with cfun->machine->uses_anonymous_args.
14176         (arm_reorg): Do not reset uses_anonymous_args.
14177
14178         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
14179         any geenral register.
14180
14181 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
14182
14183         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
14184         the entry block.
14185
14186 2002-02-04  Richard Henderson  <rth@redhat.com>
14187
14188         * combine.c (force_to_mode): Remove STACK_BIAS code.
14189         (nonzero_bits): Likewise.  Replace sp/fp special case with
14190         REGNO_POINTER_ALIGN.
14191
14192         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14193         (HARD_FRAME_POINTER_REGNUM): New.
14194         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14195         (FIXED_REGS, CALL_USED_REGS): Update.
14196         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14197         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14198         (HARD_REGNO_NREGS): Update for SFP.
14199         (STACK_POINTER_OFFSET): Include bias here ...
14200         (FIRST_PARM_OFFSET): ... not here.
14201         (STACK_BIAS): Remove.
14202         (INIT_EXPANDERS): New.
14203         (STARTING_FRAME_OFFSET): Do not include bias.
14204         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14205         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14206         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14207         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14208         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14209         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14210         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14211         (MUST_SAVE_REGISTER): Likewise.
14212         (sparc_flat_function_prologue): Likewise.
14213         (sparc_flat_function_epilogue): Likewise.
14214         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14215         (sparc_init_modes): SFP is GENERAL_REGS.
14216         (sparc_builtin_saveregs): SFP does not have bias applied.
14217
14218 2002-02-04  Richard Henderson  <rth@redhat.com>
14219
14220         * config/alpha/alpha.c (current_function_is_thunk): Don't check
14221         current_function_is_thunk.
14222         (alpha_sa_mask): Distinguish between current_function_is_thunk
14223         called from ASM_OUTPUT_MI_THUNK and not.
14224         (alpha_does_function_need_gp): Thunks always need gp.
14225         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14226         (alpha_output_mi_thunk_osf): New.
14227         * config/alpha/alpha-protos.h: Update.
14228         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14229
14230 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
14231
14232         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14233         function types, not when they're taken away.
14234
14235 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
14236
14237         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14238         CODE_LABEL and jump table when replacing a table jump with a
14239         simple jump.
14240
14241 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14242
14243         * config/s390/s390-protos.h (legitimize_la_operand,
14244         s390_secondary_input_reload_class, s390_plus_operand,
14245         s390_expand_plus_operand): Add prototypes.
14246
14247         config/s390/s390.c (s390_secondary_input_reload_class,
14248         s390_plus_operand, s390_expand_plus_operand): New functions.
14249
14250         (struct s390_address): New member 'pointer'.
14251         (s390_decompose_address): Compute it.
14252         (legitimate_la_operand_p): Use it.
14253         (legitimize_la_operand): New function.
14254         (movti, movdi, movdf splitters): Call it.
14255
14256         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14257         (PREDICATE_CODES): Add s390_plus_operand.
14258
14259         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14260         (la_ccclobber): Allow GENERAL_REGS as output operand.
14261
14262         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14263         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14264         (*la_64, *la_31, reload_indi, reload_insi): ... these.
14265
14266 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14267
14268         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14269         register names for regular asm () construct.
14270
14271 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14272
14273         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14274         registers.
14275
14276 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14277
14278         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14279         pat for recog.
14280
14281 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
14282
14283         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14284         constant pool to be identical by string address and index.
14285
14286 2002-02-04  Anthony Green  <green@redhat.com>
14287
14288         * output.h (SECTION_OVERRIDE): Define.
14289         * varasm.c (named_section): Obey SECTION_OVERRIDE.
14290
14291 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14292
14293         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14294         by existing arm*-*-netbsd* (a.out) target.
14295         (ns32k-*-netbsdelf*): Likewise.
14296         (sparc-*-netbsdelf*): Likewise.
14297         (vax-*-netbsdelf*): Likewise.
14298
14299 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
14300
14301         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14302         headers and libobjc headers.
14303
14304 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
14305
14306         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14307         (_mingw.h): Remove duplicate include.
14308
14309 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14310
14311         * config.gcc: Set cpu_type to m68k for 68010, as well.
14312         (m68010-*-netbsdelf*): New...
14313         (m68k*-*-netbsdelf*): ...targets.
14314         * config/m68k/netbsd-elf.h: New file.
14315
14316 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14317
14318         * config/h8300/h8300.c (hand_list): Move inside function_arg.
14319
14320 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14321
14322         * config/h8300/h8300.c (h8_push_ops): Move inside
14323         h8300_init_once.
14324         (h8_pop_ops): Likewise.
14325         (h8_move_ops): Likewise.
14326
14327 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14328
14329         * config/h8300/h8300.c (os_task): Make it static.
14330         (monitor): Likewise.
14331         (pragma_saveall): Likewise.
14332
14333 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
14334
14335         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14336         constant is a valid sign-extension for Pmode.
14337
14338 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14339
14340         * config/h8300/h8300.c: Fix formatting.
14341
14342 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14343
14344         * config/h8300/h8300.md: Fix formatting.
14345
14346 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14347
14348         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14349         predicates of operands[1].  Split the patterns for each
14350         processor variant.
14351
14352 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14353
14354         * config/h8300/h8300.md (xor patterns): Tighten the predicates
14355         of operands[1] to register_operand.
14356
14357 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14358
14359         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14360         * cpphash.c (_cpp_init_hashtable): Similarly.
14361         * cppinit.c (cpp_create_reader): Default the signed_char flag.
14362         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14363         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14364         (cpp_handle_option): Handle the new options.
14365         * cpplex.c (cpp_interpret_charconst): Use new flag.
14366         * cpplib.h (struct cpp_options): New member signed_char.
14367         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14368         (cpp_options): Handle -fsigned-char and -funsigned-char.
14369         (static_specs): Remove signed_char_spec.
14370         (do_spec1): Don't handle %c.
14371         * system.h: Poison SIGNED_CHAR_SPEC.
14372         * tradcif.y (yylex): Use flag_signed_char.
14373         * tradcpp.h (flag_signed_char): New.
14374         * tradcpp.c (flag_signed_char): New.
14375         (main): Handle new command-line options.
14376         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14377 config:
14378         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14379         * avr/avr.h: Remove old comments.
14380         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14381         (CC1_SPEC): Pass -fsigned-char if -mic*.
14382         (SIGNED_CHAR_SPEC): Remove.
14383 doc:
14384         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14385
14386 2002-02-01  Eric Christopher  <echristo@redhat.com>
14387
14388         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14389         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14390         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14391         (ASM_OUTPUT_REG_POP): Ditto.
14392
14393 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14394
14395         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14396         patch.
14397
14398 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14399
14400         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14401
14402 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14403
14404         PR c/5304:
14405         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14406         unconditionally.
14407
14408 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14409
14410         * cfganal.c: Include tm_p.h.
14411         (keep_with_call_p): Fix the test that determines if a register holds
14412         the return value of a call.
14413
14414 2002-02-01  DJ Delorie  <dj@redhat.com>
14415
14416         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14417         we are given conflicting registers, switch to the other one we
14418         had allocated for us.
14419         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14420         as TImode so we know when the "other" register is available.
14421
14422 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
14423
14424         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14425         sparc/sparc_bi.h.
14426
14427 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14428
14429         * cfganal.c (keep_with_call_p): New function.
14430         (flow_call_edges_add): Prevent splitting a block between a call and
14431         a single-set instruction that should be kept in the same block.
14432
14433 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14434
14435         * doc/install.texi (avr): Update outdated URL.
14436
14437 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
14438
14439         * config/stormy16/stormy16.md (pushqi): New.
14440         (popqi): New.
14441         (pushhi): New.
14442         (pophi): New.
14443         (movhi): Remove stack operands.
14444         (movqi): Likewise.
14445         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14446         nonimmediate_nonstack_operand.
14447         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14448         New.
14449         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14450         New.
14451
14452 2002-01-31  Jason Merrill  <jason@redhat.com>
14453
14454         * Makefile.in (c-parse.c): Handle .output file.
14455         * objc/Make-lang.in (objc-parse.c): Likewise.
14456
14457 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
14458
14459         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14460         the -me[lb] option is given.  Don't output the default flag
14461         twice.
14462
14463 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
14464
14465         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14466         the primary source file; this has not been done yet.
14467         * c-decl.c (c_expand_body): Reset input_filename from
14468         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14469
14470 2002-01-31  Kazu Hirata  <kazu@hxi.com>
14471
14472         * rtlanal.c (subreg_regno_offset): Do not use
14473         SUBREG_REGNO_OFFSET.
14474         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14475         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14476
14477 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14478
14479         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
14480         version rather than GNATS version in --version output.
14481
14482 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
14483
14484         * ifcvt.c (noce_process_if_block): Make a copy of the destination
14485         when copying back from a temporary.
14486
14487 2002-01-30  Richard Henderson  <rth@redhat.com>
14488
14489         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14490         and new_dest are the same.
14491
14492 2002-01-30  Richard Henderson  <rth@redhat.com>
14493
14494         PR opt/5076
14495         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14496         * rtl.c (note_insn_name): Update.
14497         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14498         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14499         to perform loop rotation.
14500         (expand_exit_loop_top_cond): New.
14501         * tree.h (expand_exit_loop_top_cond): Declare it.
14502         * c-semantics.c (genrtl_while_stmt): Use it.
14503         (genrtl_for_stmt): Likewise.
14504
14505 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14506
14507         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14508         arguments to 64-bit boundaries on 64-bit ABIs.
14509
14510 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14511
14512         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14513
14514 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14515
14516         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14517         invalid type.
14518
14519 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14520
14521         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14522         * config/sparc/sparc_bi.h: Remove file.
14523         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14524
14525 2002-01-30  Richard Henderson  <rth@redhat.com>
14526
14527         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14528
14529 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14530
14531         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14532
14533 2002-01-30  Jason Merrill  <jason@redhat.com>
14534
14535         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14536         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14537         (reg_save): Use DW_CFA_offset_extended_sf instead.
14538
14539         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14540
14541 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14542
14543         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14544         in cselib_lookup.
14545
14546 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14547
14548         * rs6000.md ("*call_value_local32"): Remove constraints.
14549         ("*call_value_local64"): Same.
14550         ("*call_value_indirect_nonlocal_aix32"): Same.
14551         ("*call_value_nonlocal_aix32"): Same.
14552         ("*call_value_indirect_nonlocal_aix64"): Same.
14553         ("*call_value_nonlocal_aix64"): Same.
14554         ("*call_value_nonlocal_sysv"): Same.
14555
14556 2002-01-29  Richard Henderson  <rth@redhat.com>
14557
14558         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14559
14560 2002-01-29  Richard Henderson  <rth@redhat.com>
14561
14562         * expr.c (force_operand): Ignore flag_pic for detecting pic
14563         address loads.
14564         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14565         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14566         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14567         instead of open-coded loop.
14568         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14569         be fixed when in use.
14570
14571 2002-01-29  Richard Henderson  <rth@redhat.com>
14572
14573         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14574         * sched-rgn.c (propagate_deps): Update them.
14575         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14576         clobbers list when either gets too long.
14577
14578 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14579
14580         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14581         and INDEX_REGS the same as GENERAL_REGS.
14582         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14583
14584 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14585
14586         * tree.c (build_nonstandard_integer_type): Correct prototype.
14587
14588 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14589
14590         * config/s390/s390.md (movstrsico, movstrdix_64,
14591         movstrsix_31): Remove, replace by ...
14592         (movstrdi_short, movstrsi_short, movstrdi_long,
14593         movstrsi_long): ... these.  New.
14594         (movstrdi, movstrsi): Adapt.
14595
14596         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14597         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14598         Remove unnecessary CC clobber.
14599         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14600         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14601
14602         (divmoddi4): Don't partially initialize TImode register.
14603
14604 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14605
14606         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14607
14608 2002-01-29  Richard Henderson  <rth@redhat.com>
14609
14610         * flow.c (print_rtl_and_abort): Remove.
14611         (print_rtl_and_abort_fcn): Remove.
14612         (verify_local_live_at_start): Use dump_bb instead.
14613         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14614         (verify_wide_reg_1): Return 2 on mode test failure.
14615
14616 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14617
14618         PR c/3325, c/3326, c/2511, c/3347
14619         * c-decl.c (enum_decl_context): Remove BITFIELD.
14620         (grokdeclarator): Take bitfield width as an input.
14621         Ensure bitfields are given the correct type.  Perform
14622         bitfield width validation with build_bitfield_integer_type
14623         rather than waiting for finish_struct.
14624         (grok_typename, grok_typename_in_parm_context, start_decl,
14625         push_parmdecl, grokfield, start_function): Update calls to
14626         grokdeclarator.
14627         (build_bitfield_integer_type): New function.
14628         (finish_struct): Move bitfield validation to grokdeclarator
14629         and build_bitfield_integer_type.
14630         * tree.c (build_nonstandard_integer_type): New function.
14631         * tree.h (build_nonstandard_integer_type): New prototype.
14632 objc:
14633         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14634
14635 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14636
14637         PR other/1502:
14638         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14639         don't ignore unrecognized -W* options.
14640         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14641         * cpplib.h (cpp_handle_option): Adjust prototype.
14642         * c-decl.c (c_decode_options): Pass 0 as last argument to
14643         cpp_handle_option.
14644
14645         PR c/2896:
14646         * gcc.c (cpp_unique_options): Split from cpp_options.
14647         (cpp_options): Source cpp_unique_options.
14648         (default_compilers): Use cpp_unique_options instead of cpp_options
14649         when used together with cc1_options.
14650         (static_specs): Add cpp_unique_options.
14651         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14652         when used together with cc1_options.
14653
14654 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14655
14656         * config/h8300/h8300-protos.h: Update the prototype of
14657         output_a_shift.
14658         * config/h8300/h8300.c (output_a_shift): Remove an unused
14659         argument 'insn'.  Remove redundant code.
14660         * config/h8300/h8300.md: Adust to the new prototype of
14661         output_a_shift.
14662
14663 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14664
14665         * config/h8300/h8300-protos.h: Update the prototypes of
14666         emit_a_rotate and expand_a_rotate.
14667         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14668         first argument to 'enum rtx_code'.
14669         (expand_a_rotate): Likewise.
14670
14671 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14672
14673         * config/h8300/h8300-protos.h: Update the prototype of
14674         output_simode_bld.
14675         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14676         'log2'.
14677         * config/h8300/h8300.md: Adjust to the new prototype.
14678
14679 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14680
14681         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14682         redundant code.
14683
14684 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14685
14686         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14687         is a fixed register before returning pic_offset_table_rtx.
14688         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14689         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14690
14691 2002-01-28  Jason Merrill  <jason@redhat.com>
14692
14693         * dwarf2.h: Sync with src version.
14694
14695 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14696
14697         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14698         BT_FN_VOID_PTR_VAR.
14699         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14700         * doc/extend.texi (__builtin_prefetch): Update documentation:
14701         first argument is now const void ptr.
14702
14703 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14704
14705         * config/h8300/h8300-protos.h: Remove an unused prototype.
14706
14707 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14708
14709         * toplev.c (lang_independent_init): Round up identifier size.
14710
14711 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14712
14713         * config.gcc: Revert previous change.
14714
14715 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14716
14717         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14718
14719 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14720
14721         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14722         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14723         other non-elf netbsd config frags.
14724         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14725         collect2 will does that.
14726         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14727         shared-lib frobbing will work.
14728
14729 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14730
14731         * config/h8300/h8300.h: Fix formatting.
14732         * config/h8300/h8300.md: Likewise.
14733
14734 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14735
14736         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14737         the old, removed AAA_standards fix.
14738         * fixinc/fixincl.x: Rebuilt.
14739
14740 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14741
14742         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14743         atexit call in crtbegin, hooked in after call to frame_dummy;
14744         register EH before registering __fini__start.
14745
14746 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14747
14748         * config/rs6000/altivec.h: Remove spurious semicolons.
14749
14750 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14751
14752         * config/h8300/h8300.md: Replace dead bit extraction patterns
14753         with ones that work.
14754
14755 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14756
14757         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14758         if not STRICT_ALIGNMENT.
14759         * rtl.h (MEM_ALIGN): Likewise.
14760
14761 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14762
14763         * doc/invoke.texi (-fdump-translation-unit): Revert this
14764         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14765
14766 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14767
14768         * config/h8300/h8300.md (define_constants): New.
14769         (anonymous patterns) Use defined constants appropriately.
14770
14771 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14772
14773         * config/h8300/h8300.c (function_arg): Remove redundant code.
14774
14775 2002-01-26  Richard Henderson  <rth@redhat.com>
14776
14777         * sched-deps.c (reg_pending_uses_head): New.
14778         (reg_pending_barrier): Rename from reg_pending_sets_all.
14779         (find_insn_list): Don't mark inline.
14780         (find_insn_mem_list): Remove.
14781         (add_dependence_list, add_dependence_list_and_free): New.
14782         (flush_pending_lists): Replace only_write param with separate
14783         for_read and for_write parameters.  Update all callers.  Use
14784         add_dependence_list_and_free.
14785         (sched_analyze_1): Do not add reg dependencies here; just set
14786         the pending bits.  Use add_dependence_list.
14787         (sched_analyze_2): Likewise.
14788         (sched_analyze_insn): Replace schedule_barrier_found with
14789         reg_pending_barrier.  Add all dependencies for pending reg
14790         uses, sets, and clobbers.
14791         (sched_analyze): Don't add reg dependencies for calls, just
14792         set pending bits.  Use regs_invalidated_by_call.  Treat
14793         sched_before_next_call as a normal list, not a fake insn.
14794         (init_deps): No funny init for sched_before_next_call.
14795         (free_deps): Free pending mems lists.  Don't zero reg_last.
14796         (init_deps_global): Init reg_pending_uses.
14797         (finish_deps_global): Free it.
14798         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14799         (find_insn_mem_list): Remove.
14800         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14801         (propagate_deps): Use them.  Zero temp mem lists.
14802
14803 2002-01-26  Richard Henderson  <rth@redhat.com>
14804
14805         * Makefile.in (CRTSTUFF_CFLAGS): New.
14806         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14807         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14808         crtstuff.c instead of alpha assembly version.
14809         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14810         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14811         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14812         (__do_global_dtors_aux): Mark used.
14813         (frame_dummy, __do_global_ctors_aux): Mark used.
14814         (fini_dummy, init_dummy): Remove.
14815
14816         * config/alpha/crtbegin.asm: Remove file.
14817         * config/alpha/crtend.asm: Remove file.
14818         * config/alpha/t-crtbe: Remove file.
14819         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14820         (LINK_EH_SPEC): New.
14821
14822         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14823         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14824         calling constructors.
14825         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14826
14827         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14828         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14829         CRT_END_INIT_DUMMY hack.
14830         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14831         FORCE_{INIT,FINI}_SECTION_ALIGN.
14832
14833         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14834         FORCE_{INIT,FINI}_SECTION_ALIGN.
14835
14836         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14837         invocation sequence.
14838         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14839
14840         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14841         (FORCE_CODE_SECTION_ALIGN): New.
14842
14843 2002-01-26  Richard Henderson  <rth@redhat.com>
14844
14845         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14846
14847 2002-01-26  Richard Henderson  <rth@redhat.com>
14848
14849         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14850         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14851
14852 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14853
14854         * config/h8300/h8300.md: Remove bit extraction patterns that
14855         cannot be triggered.
14856         Restrict each bit extraction pattern to a variant on which the
14857         pattern is tested.
14858
14859 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14860
14861         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14862
14863 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14864
14865         * config/h8300/h8300.md: Remove bit test patterns that cannot
14866         be triggered.
14867         Restrict each bit test pattern to a variant on which the
14868         pattern is tested.
14869
14870 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14871
14872         * builtins.c (expand_builtin_strncat): Remove redundant check for
14873         INTEGER_CST.
14874
14875 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14876
14877         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14878         default setting.
14879         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14880         existing setting.
14881
14882 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14883
14884         * dbxout.c (dbxout_init): Use assemble_name rather than just
14885         stripping off the first character.
14886         (dbxout_source_file): Likewise.
14887
14888 2002-01-25  DJ Delorie  <dj@redhat.com>
14889
14890         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14891         using rtx_equal_p, not by comparing pointers.
14892
14893 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14894
14895         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14896         for PIC_OFFSET_TABLE_REGNUM.
14897         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14898
14899 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14900
14901         * config.gcc (x86_64-*-freebsd*): New target.
14902         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14903         value.
14904         (i[34567]86-*-freebsd*): Don't include svr4.h.
14905         * config/i386/freebsd64.h: New file.
14906
14907 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14908
14909         * config/alpha/x-vms (version): Make static.
14910
14911         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14912         in previous checkin.
14913
14914         * Makefile.in (install-headers-cp): New target.
14915         * config.gcc (alpha-dec-*vms*): Install headers with
14916         install-headers-cp
14917
14918 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14919
14920         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14921         avoid it's copies.
14922
14923 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14924
14925         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14926         of compare_tree_int.
14927         (expand_builtin_strncat): Likewise.
14928         * c-decl.c (finish_struct): Use tree_low_cst.
14929         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14930         * tree.c (compare_tree_int): Likewise.
14931
14932 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14933
14934         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14935         adjustments even if they are implemented by more than two insns.
14936
14937 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14938
14939         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14940         * df.h (struct ref): Kill B.
14941         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14942
14943         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14944         * flow.c (propagate_one_insn): Use it.
14945         (mark_used_regs): Handle NIL.
14946
14947 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14948
14949         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14950         to help folding.
14951
14952 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14953
14954         * rs6000.md (prefetch): Make address V4SI mode so that the address
14955         is restricted to legitimate form for instruction.
14956
14957 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14958
14959         * doc/install.texi (xtensa-*-elf): New target.
14960         (xtensa-*-linux*): New target.
14961         * doc/contrib.texi: Add myself.
14962
14963 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14964
14965         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14966         purpose register to hold an SImode (or smaller) value.
14967
14968 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14969
14970         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14971         registry only.
14972         * crtstuff.c: Likewise.
14973
14974 2002-01-25  Kazu Hirata  <kazu@hxi.com>
14975
14976         * config/h8300/h8300.md (negation patterns): Tighten
14977         predicates to register_operand.
14978
14979 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
14980
14981         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14982         mode, not Pmode.
14983
14984         * builtins.c (expand_builtin_prefetch): Same.
14985
14986 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14987
14988         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14989         modes.
14990
14991 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14992
14993         * config/h8300/h8300.c (print_operand): Remove support for
14994         operand character 'A'.
14995         * config/h8300/h8300.md (three anonymous patterns): Replace
14996         operand character 'A' with either 'T' or 'S'.
14997
14998 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14999
15000         * config/h8300/h8300.c (print_operand): Remove support for
15001         operand character 'U'.
15002
15003 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
15004
15005         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
15006
15007 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
15008
15009         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
15010         values to be assigned to the stack pointer.
15011
15012 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15013
15014         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
15015         to const_double needs to be done right for big-endian systems.
15016
15017 2002-01-24  Jason Merrill  <jason@redhat.com>
15018
15019         PR c++/2432
15020         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
15021         to can_throw_internal.
15022
15023 2002-01-23  Richard Henderson  <rth@redhat.com>
15024
15025         * fold-const.c (fold): Change UINT_MAX test to check vs precision
15026         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
15027
15028 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15029
15030         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
15031         (symGOT2reg): Use them, then set as GOT value as unchanging.
15032         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
15033         as a temporary, if possible.
15034         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
15035         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
15036
15037 2002-01-23  Kazu Hirata  <kazu@hxi.com>
15038
15039         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
15040         accept to accept 0x80 as operands[2].
15041
15042 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15043
15044         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
15045
15046 2002-01-23  Richard Henderson  <rth@redhat.com>
15047
15048         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
15049
15050 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
15051
15052         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
15053         (parmlist_or_identifiers_1): Verify that only a parmlist follows
15054         an attribute.
15055
15056 2002-01-23  Richard Henderson  <rth@redhat.com>
15057
15058         * expr.c (move_by_pieces_1): Extend size before negation.
15059
15060         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
15061         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
15062         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
15063         * config/m68k/t-m68kelf: Likewise.
15064
15065 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
15066
15067         * config/xtensa/elf.h: New file.
15068         * config/xtensa/lib1funcs.asm: New file.
15069         * config/xtensa/lib2funcs.S: New file.
15070         * config/xtensa/linux.h: New file.
15071         * config/xtensa/t-xtensa: New file.
15072         * config/xtensa/xtensa-config.h: New file.
15073         * config/xtensa/xtensa-protos.h: New file.
15074         * config/xtensa/xtensa.c: New file.
15075         * config/xtensa/xtensa.h: New file.
15076         * config/xtensa/xtensa.md: New file.
15077         * config.gcc (xtensa-*-elf*): New target.
15078         (xtensa-*-linux*): New target.
15079         * cse.c (canon_hash): Compare rtx pointers instead of register
15080         numbers.  This is required for the Xtensa port.
15081         * integrate.c (copy_insn_list): Handle case where the static
15082         chain is in memory and the memory address has to be copied to
15083         a register.
15084         * doc/invoke.texi (Option Summary): Add Xtensa options.
15085         (Xtensa Options): New node.
15086         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
15087
15088 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
15089
15090         * diagnostic.c (internal_error): Do ICE suppression only
15091         when ENABLE_CHECKING is not defined.
15092
15093         * c-typeck.c (require_complete_type): Return error_mark_node
15094         if type is error_mark_node.
15095
15096 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
15097
15098         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
15099         -Os and issue a warning.
15100
15101 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
15102
15103         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
15104         current (lack of) need for host configuration by hand.
15105
15106         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
15107         references.  Documentation of some target macros moved from
15108         hostconfig.texi to tm.texi.
15109
15110 2002-01-23  Will Cohen  <wcohen@redhat.com>
15111
15112         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
15113         defined.
15114
15115 2002-01-23  Kazu Hirata  <kazu@hxi.com>
15116
15117         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
15118         operand[3].
15119
15120 2002-01-23  Jason Merrill  <jason@redhat.com>
15121
15122         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
15123
15124         * function.c (assign_parms): Don't put args of inline functions
15125         into registers when not optimizing.
15126
15127 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
15128
15129         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
15130         (prologue_use): New pattern.
15131         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
15132         preference to gen_rtx_USE.
15133         (thumb_expand_prologue): Use gen_prologue_use in preference to
15134         gen_rtx_USE.
15135         (thumb_expand_epilogue): Use gen_prologue_use in preference to
15136         gen_rtx_USE.
15137
15138 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
15139
15140         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
15141
15142 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15143
15144         PR c/3504
15145         * doc/extend.texi: Correct documentation of __alignof__.
15146
15147 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
15148
15149         * params.h: Rename arguments of DEFPARAM so that it will be
15150         recognized as a translation keyword.
15151
15152 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15153
15154         * extend.texi: Document altivec functions.
15155         Fix N-bit adjectives in X86 builtin documentation.
15156
15157 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15158
15159         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
15160         auto_inc_dec values.
15161
15162 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
15163
15164         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
15165         after backslash.
15166         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
15167
15168 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15169
15170         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
15171
15172 2002-01-22  Richard Henderson  <rth@redhat.com>
15173
15174         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
15175         copy_insn not copy_rtx.
15176
15177 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
15178
15179         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
15180         "nonzero" as that might add "1" bits.  Ensure "constop" is
15181         properly sign extened.
15182         (force_to_mode): Tweak for sign extended constop.
15183
15184 2002-01-22  Richard Henderson  <rth@redhat.com>
15185
15186         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15187         for_each_rtx instead of assuming we're already looking at the MEM.
15188         (split_small_symbolic_mem_operand): Likewise.
15189         * config/alpha/alpha.h (PREDICATE_CODES): Update.
15190         * config/alpha/alpha.md (small symbolic memory splitters): Update.
15191
15192 2002-01-22  Richard Henderson  <rth@redhat.com>
15193
15194         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15195         sequence number for the literal.
15196         (divmoddi_internal_er): Likewise.
15197
15198 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15199
15200         PR java/4972
15201         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15202         in LIBICONV variable.
15203         * configure: Regenerated.
15204
15205 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
15206
15207         * dependence.c (build_def_use): Remove array_idx.
15208
15209         * dwarfout.c (last_filename): Remove.
15210         (output_compile_unit_die): Remove last_filename.
15211
15212 2002-01-22  Roger Sayle  <roger@eyesopen.com>
15213             Richard Henderson  <rth@redhat.com>
15214
15215         PR opt/3640
15216         * fold-const.c (fold): Optimize unsigned comparisons against
15217         UINT_MAX (and similar unsigned constants).
15218
15219 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
15220
15221         * Makefile.in (loop.o): Depend on OPTABS_H.
15222         * loop.c (emit_prefetch_instructions): Check the prefetch operand
15223         against the predicate.
15224
15225         PR target/5379
15226         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15227         for the address operand.
15228
15229 2002-01-22  Richard Henderson  <rth@redhat.com>
15230
15231         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15232
15233 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15234
15235         PR other/5450
15236         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15237         preprocessor flags.
15238
15239 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
15240
15241         * config.gcc (x86_64-*-netbsd*): New target.
15242         * config/i386/netbsd64.h: New file.
15243
15244 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15245
15246         * regrename.c (kill_value): Fix typo.
15247
15248 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15249
15250         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15251
15252         * config/rs6000/rs6000.h: Same.
15253
15254         * function.c (instantiate_virtual_regs): Remove
15255         STARTING_FRAME_PHASE.
15256         (assign_stack_local_1): Same.
15257         Calculate frame phase.
15258
15259 2002-01-22  Nick Clifton  <nickc@redhat.com>
15260
15261         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15262         variable declaration to outer scope in order to simplify
15263         future extensions.
15264         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15265         arm_hard_regno_mode_ok.
15266         * config/arm/arm-protos.h: Add a prototype for
15267         arm_hard_regno_mode_ok.
15268         * config/arm/arm.c (soft_df_operand): Remove now redundant
15269         check for DImode values using IP_REGNUM.
15270         (nonimmediate_soft_df_operand): Remove now redundant check for
15271         DImode values using IP_REGNUM.
15272         (arm_hard_regno_mode_ok): New function. New check: make sure
15273         that DImode values are not stored in IP_REGNUM.
15274
15275         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15276         note with a USE.
15277         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15278
15279 2002-01-22  Jason Merrill  <jason@redhat.com>
15280
15281         * c-semantics.c (genrtl_compound_stmt): Only check nesting
15282         consistency if this COMPOUND_STMT is scoped.
15283
15284 2002-01-22  Kazu Hirata  <kazu@hxi.com>
15285
15286         * predict.c: Fix formatting.
15287         * print-tree.c: Likewise.
15288         * protoize.c: Likewise.
15289         * real.h: Likewise.
15290         * rtl.h: Likewise.
15291         * sbitmap.h: Likewise.
15292         * scan.c: Likewise.
15293         * sched-deps.c: Likewise.
15294         * sched-vis.c: Likewise.
15295         * sdbout.c: Likewise.
15296         * sibcall.c: Likewise.
15297         * ssa.c: Likewise.
15298         * ssa-ccp.c: Likewise.
15299         * ssa-dce.c: Likewise.
15300         * stmt.c: Likewise.
15301         * stor-layout.c: Likewise.
15302         * system.h: Likewise.
15303
15304 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15305
15306         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15307         if fits in bounds of base type.
15308
15309         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15310         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15311         (add_bound_info, default): If can't find a context, make a
15312         SAVE_EXPR.
15313         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15314
15315 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
15316
15317         * c-typeck.c (parser_build_binary_op): If result from
15318         build_binary_op is ERROR_MARK just return error_mark_node without
15319         further processing.
15320
15321 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
15322
15323         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15324         Split a.out-specific bits into...
15325         * config/netbsd-aout.h: ...this.
15326         * config/netbsd-elf.h: New file.
15327         * config/alpha/netbsd-elf.h: Remove.
15328         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15329         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15330         (STARTFILE_SPEC): Remove redundant definition.
15331         (ENDFILE_SPEC): Likewise.
15332         (LINK_SPEC): Likewise.
15333         (CPP_SPEC): Likewise.
15334         (ASM_SPEC): Likewise.
15335         (LIB_SPEC): Likewise.
15336         (SWITCH_TAKES_ARG): Likewise.
15337         (TARGET_MEM_FUNCTIONS): Likewise.
15338         (CPP_PREDEFINES): Redefine.
15339         (ASM_FINAL_SPEC): Remove redefinition.
15340         (ASM_COMMENT_START): Redefine.
15341         (FUNCTION_PROFILER): Define.
15342         (TARGET_VERSION): Redefine.
15343         Comment and formatting cleanup.
15344         * config/i386/netbsd.h: Include <netbsd-aout.h>.
15345         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15346         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15347         big- or little-endian.
15348         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15349         * config.gcc (*-*-netbsd*): Add definitions common to all
15350         NetBSD configs.
15351         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15352         gnu_ld definitions.  Add netbsd-elf.h to and remove
15353         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
15354         tmake_file, and don't lose previous tmake_file contents.
15355         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15356         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15357         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
15358         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15359         (mipsel-*-netbsd*): Rename this to...
15360         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
15361         mips/little.h to tm_file for mips*el-*.
15362         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15363         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15364         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15365
15366 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15367
15368         * pa-protos.h (reg_before_reload_operand): New function prototype.
15369         * pa.c (reg_before_reload_operand): New function implementation.
15370         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
15371         contraints to "*m".
15372
15373 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15374
15375         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15376
15377 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15378
15379         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15380         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15381         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15382         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15383         (ENDFILE_SPEC): Undefine.
15384         (STARTFILE_SPEC): Redefine for PA.
15385
15386 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15387
15388         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15389
15390 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
15391
15392         * config.gcc: Add entries to supported PowerPC --with-cpu
15393         types.
15394
15395 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
15396
15397         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15398         true for 64-bit mode only SSE registers in 32-bit mode.
15399
15400 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15401
15402         * unwind-dw2.c: Fix formatting.
15403         * unwind-dw2-fde.c: Likewise.
15404         * unwind-dw2-fde.h: Likewise.
15405         * unwind-pe.h: Likewise.
15406         * varasm.c: Likewise.
15407         * varray.h: Likewise.
15408
15409 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
15410
15411         Remove workaround for register stack overwrite bug in mmix.
15412         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15413         support for TARGET_REG_STACK_FILL_BUG.
15414         * config/mmix/mmix.h: Remove member has_call_without_parameters.
15415         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15416         Delete.
15417         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15418         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15419         -mno-reg-stack-fill-bug-workaround.
15420         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15421         machine member has_call_without_parameters.
15422         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15423         -mreg-stack-fill-bug-workaround and
15424         -mno-reg-stack-fill-bug-workaround.
15425         (MMIX Options): Ditto.
15426
15427 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15428
15429         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15430         as appropriate.
15431         Remove redundant code.
15432
15433 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15434
15435         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15436         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15437         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15438         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15439         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15440         out target macro definitions and non-target-specific comments
15441         mostly taken from old versions of the manual.
15442
15443 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15444
15445         * config/h8300/h8300.h: Fix comment formatting.
15446         * config/ia64/aix.h: Likewise.
15447         * config/ia64/ia64-protos.h: Likewise.
15448         * config/ia64/ia64.c: Likewise.
15449         * config/ia64/ia64.h: Likewise.
15450         * config/ia64/ia64intrin.h: Likewise.
15451         * config/ia64/linux.h: Likewise.
15452         * config/ia64/unwind-aix.c: Likewise.
15453         * config/ia64/unwind-ia64.c: Likewise.
15454
15455 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15456
15457         * config/h8300/h8300.c: Revise comments about shift code.
15458
15459 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15460
15461         * config/h8300/h8300.c (function_arg): Update a comment.
15462
15463 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15464
15465         * config/h8300/h8300.md: Update the comments at the beginning
15466         of the file.
15467
15468 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15469
15470         * config/i370/i370.c: Fix comment formatting.
15471         * config/i370/i370.h: Likewise.
15472         * config/i370/i370.md: Likewise.
15473         * config/i370/linux.h: Likewise.
15474
15475 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15476
15477         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15478
15479         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15480         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15481         in incomplete case.
15482
15483 2002-01-20  Graham Stott  <grahams@redhat.com>
15484
15485         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15486
15487 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15488
15489         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15490
15491 2002-01-19  Tom Rix  <trix@redhat.com>
15492
15493         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15494
15495 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15496
15497         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15498
15499         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15500         STARTING_FRAME_PHASE.
15501         (STARTING_FRAME_PHASE): New.
15502         (instantiate_virtual_regs): Check saneness of
15503         STARTING_FRAME_PHASE.
15504
15505         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15506
15507 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15508
15509         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15510
15511 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15512
15513         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15514         be used for bootstrapping GCC 3.0.
15515
15516 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15517
15518         * config/h8300/h8300.md: Fix an insn length.
15519
15520 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15521
15522         * bitmap.h: Fix comment formatting.
15523         * combine.c: Likewise.
15524         * cppfiles.c: Likewise.
15525         * c-pragma.h: Likewise.
15526         * c-typeck.c: Likewise.
15527         * df.c: Likewise.
15528         * dwarf2out.c: Likewise.
15529         * function.c: Likewise.
15530         * gcc.c: Likewise.
15531         * genattrtab.c: Likewise.
15532         * gthr-win32.h: Likewise.
15533         * haifa-sched.c: Likewise.
15534         * predict.c: Likewise.
15535         * rtlanal.c: Likewise.
15536         * rtl.h: Likewise.
15537         * unwind-dw2-fde.h: Likewise.
15538         * unwind-pe.h: Likewise.
15539         * vmsdbgout.c: Likewise.
15540
15541 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15542
15543         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15544         if type_required and passed decl.
15545
15546 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15547
15548         * config.gcc (cpu_type): Include altivec.h in powerpc
15549         extra_headers.
15550         Same for darwin.
15551
15552         * config/rs6000/altivec.h: New.
15553
15554 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15555
15556         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15557         handling information.
15558         * doc/trouble.texi (Interoperation): Add libstdc++ information
15559         for AIX.
15560         (Misunderstandings): Add template instantiation and static template
15561         member information for AIX.
15562
15563 2002-01-17  Jason Merrill  <jason@redhat.com>
15564
15565         * dbxout.c (dbxout_type): Support const and volatile.
15566
15567         * except.c (add_partial_entry): Remove backwards compatibility code.
15568         (end_protect_partials): Likewise.
15569
15570 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15571
15572         * config/ia64/ia64.md (prologue_use): New.
15573         * config/ia64/ia64.c (ia64_expand_prologue): Use
15574         gen_prologue_use instead of gen_rtx_USE.
15575         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15576         as CODE_FOR_pred_rel_mutex.
15577         (ia64_sched_reorder2): Likewise.
15578
15579 2002-01-16  Eric Christopher  <echristo@redhat.com>
15580
15581         * config/mips/r3900.h: Reformat.
15582         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15583         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15584         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15585         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15586         * config/mips/t-elf: Remove mips3 multilib.
15587
15588 2002-01-16  H.J. Lu <hjl@gnu.org>
15589
15590         * config/mips/linux.h: Include "mips/abi64.h".
15591
15592 2002-01-16  H.J. Lu <hjl@gnu.org>
15593
15594         * config/mips/t-linux: New.
15595
15596         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15597
15598         * config/mips/linux.h: Don't include "gofast.h".
15599         (INIT_SUBTARGET_OPTABS): Removed.
15600
15601 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15602
15603         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15604         output_a_shift.
15605         * config/h8300/h8300.c: Likewise.
15606         * config/h8300/h8300.md: Likewise.
15607
15608 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15609
15610         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15611         spaces after an opcode name.
15612         (pushqi1_h8300hs): Likewise.
15613         (pushhi1_h8300hs): Likewise.
15614
15615 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15616
15617         * doc/extend.texi: Replace "option" with "attribute"
15618         appropriately.
15619
15620 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15621
15622         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15623         (and:DI () (const_int -8)).
15624         (split_small_symbolic_mem_operand): Split
15625         (mem (and:DI () (const_int -8)).
15626
15627 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15628
15629         PR target/5309:
15630         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15631         same way as TYPE_IMUL.
15632         (ultrasparc_sched_reorder): Likewise.
15633         * config/sparc/sparc.md (type): Add comment to update
15634         ultrasparc_sched_reorder when making changes.
15635
15636 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15637
15638         * doc/invoke.texi: Change the dump file name of block
15639         reordering pass from 28.bbro to 29.bbro.
15640         Mention -dk option.
15641
15642 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15643
15644         * i386.md (minsf splitter): Fix pasto.
15645
15646 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15647
15648         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15649         to frame pointer initialisation instruction.
15650         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15651         initialisation instruction.
15652         (soft_df_operand): Do not accept the IP register.
15653         (nonimmediate_soft_df_operand): Do not accept the IP register.
15654
15655 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15656
15657         PR target/5357:
15658         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15659         MASK_V8 being both set.
15660
15661 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15662
15663         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15664         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15665         config/s390/s390.md (call, call_value): Add GOT register to
15666         CALL_INSN_FUNCTION_USAGE where needed.
15667         (call_exp, call_value_exp): New.
15668
15669 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15670
15671         * config/arm/arm.c: General formatting tidy up.
15672
15673 2002-01-16  Graham Stott  <grahams@redhat.com>
15674
15675         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15676         cast and when casting an integer literal to "rtx" pointer.
15677         (expand_call): Likewise.
15678         * flow.c (try_pre_increment): Likewise.
15679         (find_use_as_address): Likewise.
15680         * integrate.c (expand_iline_function): Likewise.
15681         * regmove.c (try_auto_increment): Likewise.
15682
15683 2002-01-16  Graham Stott  <grahams@redhat.com>
15684
15685         * sched-rgn.c (passed): Use sbitmap_free.
15686         (header): Likewise.
15687         (inner): Likewise.
15688         (in_queue): Likewise.
15689         (in_stack): Likewise.
15690
15691 2002-01-15  Eric Christopher  <echristo@redhat.com>
15692
15693         * flow.c (propagate_one_insn): Change to use fatal_insn.
15694
15695 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15696
15697         * expmed.c (extract_fixed_bit_field): Remove unused code.
15698         * system.h: Poison SLOW_ZERO_EXTEND.
15699         * doc/tm.texi: Remove.
15700         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15701         * config/arm/arm.h: Likewise.
15702         * config/avr/avr.h: Likewise.
15703         * config/clipper/clipper.h: Likewise.
15704         * config/convex/convex.h: Likewise.
15705         * config/d30v/d30v.h: Likewise.
15706         * config/dsp16xx/dsp16xx.h: Likewise.
15707         * config/elxsi/elxsi.h: Likewise.
15708         * config/fr30/fr30.h: Likewise.
15709         * config/h8300/h8300.h: Likewise.
15710         * config/i370/i370.h: Likewise.
15711         * config/i386/i386.h: Likewise.
15712         * config/m68k/m68k.h: Likewise.
15713         * config/mips/mips.h: Likewise.
15714         * config/ns32k/ns32k.h: Likewise.
15715         * config/pdp11/pdp11.h: Likewise.
15716         * config/pj/pj.h: Likewise.
15717         * config/s390/s390.h: Likewise.
15718         * config/sh/sh.h: Likewise.
15719         * config/stormy16/stormy16.h: Likewise.
15720         * config/v850/v850.h: Likewise.
15721         * config/vax/vax.h: Likewise.
15722         * config/we32k/we32k.h: Likewise.
15723
15724 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15725
15726         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15727         (altivec_lvsl): Change constraint to b.
15728         (altivec_lvsr): Same.
15729         (altivec_lvebx): Same.
15730         (altivec_lvehx): Same.
15731         (altivec_lvewx): Same.
15732         (altivec_lvxl): Same.
15733         (altivec_lvx): Same.
15734         (altivec_stvx): Add parallel.
15735         (altivec_stvxl): Same.
15736         (altivec_stvehx): Same.
15737         (altivec_stvebx): Same.
15738         (altivec_stvebx): Same.
15739
15740 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15741
15742         * config.gcc: Change altivec.h to altivec-defs.h.
15743
15744         * config/rs6000/altivec.h: Delete.
15745
15746         * config/rs6000/altivec-defs.h: Add.
15747
15748 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15749
15750         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15751         and UMOD modes.
15752
15753         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15754         less than or equal to eight bytes.
15755
15756         * vax.md (andsi3): Remove constraints and change SET destination
15757         operand type to nonimmediate_operand.
15758         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15759         when it is a CONST_INT.
15760
15761 2002-01-15  Jason Merrill  <jason@redhat.com>
15762
15763         * c-common.def (FILE_STMT): New code.
15764         * c-common.c (statement_code_p): It's a statement.
15765         * c-common.h (stmt_tree_s): Add x_last_filename.
15766         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15767         (last_expr_filename): New macro.
15768         * c-semantics.c (begin_stmt_tree): Initialize it.
15769         (add_stmt): If the filename changed, also insert a
15770         FILE_STMT.
15771         (expand_stmt): Handle seeing one.
15772
15773 2002-01-15  Eric Christopher  <echristo@redhat.com>
15774
15775         * flow.c (propagate_one_insn): Add error message and print out
15776         insn for debugging.
15777
15778 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15779
15780         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15781         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15782         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15783         TRAMPOLINE_ALIGNMENT.
15784         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15785         to be in bits.
15786         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15787         PCC_BITFIELD_TYPE_MATTERS.
15788         * config/interix.h (STDC_VALUE): Remove.  Use
15789         STDC_0_IN_SYSTEM_HEADERS.
15790         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15791         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15792         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15793
15794 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15795
15796         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15797         not work on this platform currently.
15798
15799 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15800
15801         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15802         readonly_warning in _().
15803
15804 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15805
15806         * gcc.c (delete_if_ordinary): Backout previous change.
15807
15808 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15809
15810         * config/h8300/h8300.c (print_operand): Remove support for
15811         unused operand characters.
15812
15813         * read-rtl.c: Fix formatting.
15814         * real.c: Likewise.
15815         * recog.c: Likewise.
15816         * regclass.c: Likewise.
15817         * regmove.c: Likewise.
15818         * reg-stack.c: Likewise.
15819         * reload1.c: Likewise.
15820         * rtlanal.c: Likewise.
15821
15822 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15823
15824         * config/i386/i386.c: Fix formatting.
15825
15826 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15827
15828         * c-typeck.c (process_init_element): Don't save_expr
15829         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15830
15831 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15832
15833         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15834         emit optional traceback table if optimize_size or TARGET_ELF.
15835         * config/rs6000/rs6000.md (prefetch): New.
15836
15837 2002-01-15  Andreas Jaeger  <aj@suse.de>
15838
15839         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15840
15841 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15842
15843         * mips-tfile.c: Fix formatting.
15844
15845 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15846
15847         * unroll.c (final_reg_note_copy): Fix previous commit.
15848
15849 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15850
15851         * config/h8300/h8300-protos.h: Remove the prototype for
15852         eq_operator.
15853         * config/h8300/h8300.c (eq_operator): Remove.
15854
15855 2002-01-14  Richard Henderson  <rth@redhat.com>
15856
15857         * config/i386/i386.md (prefetch): Tidy.
15858         (prefetch_3dnow): Fix locality operand.
15859
15860 2002-01-14  Richard Henderson  <rth@redhat.com>
15861
15862         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15863         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15864
15865 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15866
15867         * reload1.c (reload_combine): Pass reg_sum replacement through
15868         copy_rtx in loop performing multiple changes.
15869
15870 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15871
15872         * except.c (remove_unreachable_regions): New.
15873         (free_eh_status): Clear exception_handler_labels.
15874         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15875         (find_exception_handler_labels): Don't add the same label more than
15876         once.
15877         (remove_exception_handler_label): Don't die if
15878         find_exception_handler_labels hasn't been called for the current
15879         function yet.
15880
15881 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15882
15883         * toplev.c (rest_of_compilation): Rebuild jump labels after
15884         gcse.
15885
15886 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15887
15888         * doc/extend.texi: Move documentation of X86 built-in functions
15889         here.
15890         * doc/invoke.texi: From here.
15891         * doc/sourcebuild.texi: Document location of documentation for
15892         machine built-in functions.
15893
15894 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15895
15896         * cppfiles.c (TEST_THRESHOLD): New macro.
15897         (SHOULD_MMAP): Ditto.
15898         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15899         be used.
15900
15901 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15902
15903         * unroll.c (final_reg_note_copy): Properly handle
15904         REG_LABEL
15905         (unroll_loops): Fix LOOP_CONDITION heuristics.
15906
15907 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15908
15909         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15910         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15911
15912 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15913
15914         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15915         threaded loop.
15916
15917 2002-01-14  Tom Rix  <trix@redhat.com>
15918
15919         * config/rs6000/rs6000.md: Fix typo with sradi.
15920
15921 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15922
15923         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15924         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15925         (clrstrdi, clrstrsi): Adapt callers.
15926
15927         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15928
15929         (movti splitter): Never use register 0 as base register.
15930
15931 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15932
15933         * combine.c (simplify_shift_const): Always generate new rtx
15934         for shift expression instead of reusing given expression.
15935
15936 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15937
15938         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15939         alpha_legitimize_address unless mode is Pmode.
15940
15941 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15942
15943         * doc/md.texi (Modifiers): Document the '*' constraint for the
15944         user.
15945
15946         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15947         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15948         for xstormy16 too.
15949
15950 2002-01-13  Richard Henderson  <rth@redhat.com>
15951
15952         * reload.c (find_reloads): Use a hard reg destination as reload reg
15953         for an input reload of the source.
15954
15955 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15956
15957         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15958         more generic.
15959
15960 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15961
15962         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15963         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15964
15965         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15966
15967 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15968
15969         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15970
15971 2002-01-12  Tom Rix  <trix@redhat.com>
15972
15973         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15974         TARGET_POWERPC64.
15975
15976 2002-01-12  Richard Henderson  <rth@redhat.com>
15977
15978         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15979
15980         * doc/invoke.texi: Update Alpha options.
15981
15982         * doc/invoke.texi: Update i386 built-in function lists.
15983
15984 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15985
15986         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15987         referencing outside.
15988
15989 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15990
15991         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15992         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15993         offsets, and change line folding.
15994         * optabs.c (expand_binop): Remove warnings.
15995         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15996
15997 2002-01-12  Graham Stott <grahams@redhat.com>
15998
15999         * attribs.c (handle_deprecated_attribute): constify WHAT.
16000         * diagnostic.c (warn_deprecated_use): Add braces, fixes
16001         dangling else warning and constify WHAT.
16002         * except.h (struct function, struct inline_remap): Move
16003         struct tag forward defs before all prototypes.
16004         (duplicate_eh_regions): Whitespace.
16005
16006 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
16007
16008         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16009         MODE_BASE_REG_CLASS.
16010         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
16011
16012 2002-01-12  Richard Henderson  <rth@redhat.com>
16013
16014         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
16015         (ix86_expand_vector_move): New.
16016         (bdesc_2arg): Remove andps, andnps, orps, xorps.
16017         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
16018         Remove old prefetch builtins.  Special case the logicals removed above.
16019         (ix86_expand_builtin): Likewise.
16020         (safe_vector_operand): Use V4SFmode, not TImode.
16021         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
16022         (ix86_expand_timode_binop_builtin): New.
16023         * config/i386/i386-protos.h: Update.
16024         * config/i386/i386.h (enum ix86_builtins): Update.
16025         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
16026         Use ix86_expand_vector_move in vector move expanders.
16027         (movti_internal, movti_rex64): Add xorps alternative.
16028         (sse_clrv4sf): Rename and adjust from sse_clrti.
16029         (prefetch): Don't work so hard.
16030         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
16031         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
16032         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
16033
16034 2002-01-11  Richard Henderson  <rth@redhat.com>
16035
16036         * config/i386/mmintrin.h: New file.
16037         * config/i386/xmmintrin.h: New file.
16038         * config.gcc (i?86-*-*): Add extra_headers.
16039         * simplify-rtx.c (simplify_unary_operation): Handle saturating
16040         truncation codes.
16041         (simplify_binary_operation): Handle saturating arithmetic codes.
16042         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
16043         not the lowpart subreg.
16044         (ix86_expand_builtin): Return a TImode dummy register instead of 0
16045         on error.
16046         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
16047
16048 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16049
16050         * conflict.c (conflict_graph_compute): Free regsets when finished.
16051         * ssa.c (compute_coalesced_reg_partition): Likewise.
16052
16053 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16054
16055         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
16056         every where we allocate a register.
16057
16058 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16059
16060         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
16061         * lcm.c (compute_earliest, compute_farthest): Likewise.
16062
16063 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
16064
16065         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
16066
16067 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
16068
16069         * doc/rtl.texi (Insns): Fix 2 typos.
16070
16071 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
16072
16073         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
16074         options.  Use @table @gcctabopt for MMIX options.  Add index
16075         entries for MMIX options.  Start new paragraph with first
16076         heading of the machine-dependent options.
16077
16078 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16079
16080         PR other/5299
16081         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
16082         * combine.c (force_to_mode): Same.
16083         * reload1.c (clear_reload_reg_in_use): Same.
16084
16085 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
16086
16087         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
16088         and 'subtargets'.
16089
16090 2002-01-11  Andreas Jaeger  <aj@suse.de>,
16091             Brad Lucier <lucier@math.purdue.edu>
16092
16093         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
16094         mcpu.
16095
16096 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
16097
16098         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
16099         Protect with IN_LIBGCC.
16100         (LINK_EH_SPEC): Add required trailing space.
16101
16102 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16103
16104         * c-tree.h: Move function declarations so that they are listed
16105         under the filename which contains them.
16106         (check_identifier, finish_decl_top_level,
16107         lookup_name_current_level_global, shadow_record_fields): Remove.
16108
16109 2002-01-11  Andreas Jaeger  <aj@suse.de>
16110
16111         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
16112         march.
16113
16114 2002-01-10  Richard Henderson  <rth@redhat.com>
16115
16116         * config/alpha/alpha.c (print_operand): Add 'J'.
16117         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
16118         new operand with the sequence number for the lituse.  When splitting
16119         the insns, use gen_movdi_er_high_g and generate a sequence number.
16120         (gen_movdi_er_high_g): Print the sequence number if non-zero.
16121
16122 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
16123
16124         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
16125         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
16126         stvxl.
16127         (altivec_expand_builtin): Same.
16128         (altivec_expand_stv_builtin): New.
16129
16130         * config/rs6000/rs6000.h (rs6000_builtins): Same.
16131
16132         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
16133         ("altivec_lvehx"): New.
16134         ("altivec_lvewx"): New.
16135         ("altivec_lvxl"): New.
16136         ("altivec_lvx"): New.
16137         ("altivec_stvx"): New.
16138         ("altivec_stvebx"): New.
16139         ("altivec_stvehx"): New.
16140         ("altivec_stvewx"): New.
16141         ("altivec_stvxl"): New.
16142
16143 2002-01-10  Richard Henderson  <rth@redhat.com>
16144
16145         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
16146         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
16147         care not to delete instructions twice.
16148
16149 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16150
16151         * toplev.c: Don't declare environ (it's not used anywhere).
16152         * configure.in: Don't check for declaration of environ.
16153         * config/i386/xm-mingw32.h: Don't #define environ.
16154         * config.in, configure: Regenerate.
16155
16156 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16157
16158         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
16159         * configure: Regenerate.
16160
16161         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
16162         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
16163         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
16164         alpha/xm-vms.h.
16165         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
16166         LIMITS_H_TEST here, not in m68k/x-next.
16167         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
16168         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
16169
16170         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
16171         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
16172         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
16173
16174         * config/i386/x-djgpp: Renamed i386/t-djgpp.
16175         * config/m88k/x-dolph: Renamed m88k/t-dolph.
16176         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
16177         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
16178         replacement of quadlib.asm with quadlib.c.
16179
16180         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
16181         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
16182         config/rs6000/xm-beos.h: Delete file.
16183
16184         * config.gcc: Update to match above changes.
16185
16186 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16187
16188         * config/h8300/h8300.h: Fix comment typos.
16189         * config/h8300/h8300.md: Likewise.
16190         * config/h8300/lib1funcs.asm: Likewise.
16191
16192 2002-01-10  Dale Johannesen  <dalej@apple.com>
16193
16194         PR optimization/5269
16195         * unroll.c (precondition_loop_p): Make *increment be the correct
16196         sign when n_iterations known, to avoid confusing caller.
16197
16198 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16199
16200         * doc/extend.texi (deprecated): Fix a typo.
16201
16202 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16203
16204         * basic-block.h (update_br_prob_note): Declare.
16205         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16206         (try_forward_edges): Care negative frequencies and update note.
16207         (outgoing_edges_match): Tweek conditional merging heuristics.
16208         (try_crossjump_to_edge): use update_br_prob_note.
16209         * cfglayout.c (fixup_reorder_chain): Likewise.
16210         * cfrtl.c (update_br_prob_note): New.
16211         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16212
16213         * i386.c (ix86_decompose_address): Return -1 if address contains
16214         shift.
16215         (legitimate_address_p): Require ix86_decompose_address to return 1.
16216
16217         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16218         (cprop_insn): Likewise.
16219
16220 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16221
16222         * toplev.c: Fix formatting.
16223         * tree.c: Likewise.
16224         * tree-dump.c: Likewise.
16225         * unroll.c: Likewise.
16226         * unwind-dw2.c: Likewise.
16227         * unwind-dw2-fde.c: Likewise.
16228         * unwind-dw2-fde-glibc.c: Likewise.
16229         * unwind-sjlj.c: Likewise.
16230
16231 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16232
16233         * doc/invoke.texi: Document PDP-11 options.
16234
16235 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16236
16237         * config/h8300/h8300.h: Fix formatting.
16238
16239 2002-01-10  Ira Ruben   <ira@apple.com>
16240
16241         Add __attribute__ ((deprecated)).
16242         * extend.texi: Document __attribute__ ((deprecated)).
16243         * invoke.texi: Document -Wno-deprecated-declarations.
16244         * testsuite/g++.dg/other/deprecated.C: New C++ test.
16245         * testsuite/gcc.dg/deprecated.c: New C test.
16246         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16247         (c_common_attribute_table): Add "deprecated" entry.
16248         (handle_deprecated_attribute): New function.
16249         * c-decl.c (deprecated_states): New enum.
16250         deprecated_state: State of "deprecated" handling.
16251         (start_decl): Set deprecated_state based on attributes.
16252         (grokdeclarator): Test for deprecated uses, propagate attribute.
16253         * c-typeck.c (build_component_ref): Test for deprecated fields.
16254         (build_external_ref): Test for deprecated primaries.
16255         * diagnostic.c (warn_deprecated_use) New function to issue
16256         warnings about __attribute__ ((depricated)) references.
16257         * flags.h (warn_deprecated_decl): Extern declared for
16258         -W[no-]deprecated-declarations option.
16259         * print-tree.c (print_node): Show deprecated flag status.
16260         * toplev.c (warn_deprecated_decl): Defined.
16261         (W_options): Added "deprecated-declaration".
16262         * toplev.h (warn_deprecated_use): Extern declared.
16263         * tree.h (struct tree_common): Define deprecated_flag.
16264         (TREE_DEPRECATED): New macro to access flag.
16265         * cp/call.c (build_call): Test for deprecated calls.
16266         * cp/class.c (add_implicitly_declared_members): Set global
16267         flag to tell grokdeclarator to not issue deprecated warnings.
16268         * cp/cp-tree.h: Add extern for adding_implicit_members.
16269         * cp/decl.c (deprecated_states): New enum.
16270         (start_decl): Set deprecated_state based on attributes.
16271         (grokdeclarator): Test for deprecated uses, propagate attribute.
16272         * cp/lex.c (do_identifier): Test for deprecated primaries.
16273         * cp/typeck.c (build_component_ref): Test for deprecated fields.
16274
16275 2002-01-10  Ira Ruben   <ira@apple.com>
16276
16277         Fix to assign attributes to inline member functions.
16278         * cp/decl.c (start_method): Handle attrlist.
16279
16280 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16281
16282         * combine.c (expand_field_assignment): Use subreg_lsb().
16283
16284 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
16285
16286         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16287         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16288         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16289         Recurse for any operand of AND as long as constant is non-zero.
16290
16291 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16292
16293         * config/h8300/h8300.md: Remove constraints from expanders.
16294
16295 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16296
16297         * varasm.c: Fix formatting.
16298         * varray.c: Likewise.
16299         * vmsdbgout.c: Likewise.
16300         * xcoffout.c: Likewise.
16301
16302 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
16303
16304         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16305         update edge probabilities to match.
16306
16307 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16308
16309         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16310         dependencies.
16311         * doc/languages.texi, doc/sourcebuild.texi: New files.
16312         * doc/configfiles.texi: Make a subsubsection.  Update.
16313         * doc/configterms.texi: Add @node.  Remove warning that this isn't
16314         instructions for building GCC.
16315         * doc/makefile.texi: Make a subsection.
16316         * doc/gccint.texi: Update.
16317
16318 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
16319
16320         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16321
16322 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16323
16324         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16325
16326 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
16327
16328         * optabs.c (expand_fix): Look for wider integer modes first.
16329
16330         * i386.md (mov?f): Avoid the fake const double trick for medium
16331         memory model.
16332         (min?f*/max?f*): Prohibit memory operands for i387 variant.
16333         (fop_df_4): Disable for SSE compilation.
16334
16335 2002-01-10  Graham Stott  <grahams@redhat.com>
16336
16337         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16338         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16339
16340 2002-01-10  Richard Henderson  <rth@redhat.com>
16341
16342         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16343
16344 2002-01-10  Richard Henderson  <rth@redhat.com>
16345
16346         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16347         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
16348
16349 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16350
16351         * combine.c (can_combine_p): Fix a comment typo.
16352
16353 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
16354
16355         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16356         empty list correctly.  Change loop index $t to $f for
16357         consistency with rest of Makefile.
16358
16359 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
16360
16361         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16362         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16363
16364         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16365         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16366         (altivec_init_builtins): Same.
16367         (altivec_expand_unop_builtin): Return NULL_RTX on error.
16368         (altivec_expand_binop_builtin): Same.
16369         (altivec_expand_ternop_builtin): Same.
16370         (bdesc_dst): New.
16371
16372         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16373         ("altivec_vctuxs"): Fix typo.
16374         ("altivec_vnmsubfp"): Same.
16375         ("altivec_dssall"): New.
16376         ("altivec_mfvscr"): New.
16377         ("altivec_dss"): New.
16378         ("altivec_lvsl"): New.
16379         ("altivec_lvsr"): New.
16380         ("altivec_dstt"): New.
16381         ("altivec_dstst"): New.
16382         ("altivec_dststt"): New.
16383         ("altivec_dst"): New.
16384
16385         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16386         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16387
16388 2002-01-09  Richard Henderson  <rth@redhat.com>
16389
16390         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16391
16392 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
16393
16394         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16395         function.
16396         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16397         prototype.
16398         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16399
16400 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16401
16402         * read-rtl.c: Fix formatting.
16403         * real.c: Likewise.
16404         * regclass.c: Likewise.
16405         * regrename.c: Likewise.
16406         * reg-stack.c: Likewise.
16407         * reload1.c: Likewise.
16408         * reload.c: Likewise.
16409         * rtl.c: Likewise.
16410
16411 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16412
16413         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16414         to extract items in the expr_list chain.
16415
16416 2002-01-09  Richard Henderson  <rth@redhat.com>
16417
16418         * config/vax/vax.c (vax_rtx_cost): Never abort.
16419
16420         * config/vax/vax.h (REAL_ARITHMETIC): Define.
16421
16422 2002-01-09  Jan Hubicka  <jh@suse.cz>
16423
16424         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16425
16426 2002-01-09  Richard Henderson  <rth@redhat.com>
16427
16428         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16429         Unify code from various alternatives.
16430
16431 2002-01-09  Richard Henderson  <rth@redhat.com>
16432
16433         * regrename.c (copy_value): Ignore the copy if the source register
16434         is present in the value chain with a narrower mode.
16435
16436 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
16437
16438         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16439         for the c4x target. Also improve layout.
16440
16441 2002-01-09  Richard Henderson  <rth@redhat.com>
16442
16443         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16444         * config/m32r/m32r.md (and ior xor splitters): Swap operands
16445         to match insn patterns.
16446
16447 2002-01-09  Richard Henderson  <rth@redhat.com>
16448
16449         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16450         (copyprop_hardreg_forward_1): Likewise.
16451
16452 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16453
16454         * pa.md (decrement_and_branch_until_zero): Change predicate for
16455         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16456
16457 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16458
16459         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16460         gets undefined. For Darwin.
16461
16462 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16463
16464         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16465
16466 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16467
16468         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16469
16470 2002-01-08  Richard Henderson  <rth@redhat.com>
16471
16472         * regrename.c (copy_value): Ignore overlapping copies.
16473
16474 2002-01-08  Richard Henderson  <rth@redhat.com>
16475
16476         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16477         as needed to avoid shared structure.
16478
16479 2002-01-08  Kazu Hirata  <kazu@hxi.com>
16480
16481         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16482         H8/300H and H8/S.
16483
16484 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16485
16486         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16487         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16488         documentation of obsolete macros.
16489         * system.h: Poison these macros.
16490         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16491         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16492         config/c4x/c4x.h, config/clipper/clipper.h,
16493         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16494         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16495         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16496         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16497         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16498         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16499         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16500         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16501         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16502         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16503         config/sparc/sparc.h, config/stormy16/stormy16.h,
16504         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16505         definitions and commented out definitions of obsolete macros.
16506         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16507         of MAX_INT_TYPE_SIZE.
16508
16509 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16510
16511         * config/s390/s390.c (s390_preferred_reload_class): Never
16512         return ADDR_REGS if it isn't a subset of the given class.
16513         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16514         FP_REGS, but all superclasses as well.
16515
16516         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16517
16518         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16519         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16520         must not be a const_int.
16521
16522 2002-01-08  Richard Henderson  <rth@redhat.com>
16523
16524         * Makefile.in (toplev.o): Depend on options.h.
16525         (gcc.o): Depend on specs.h.
16526
16527 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16528
16529         * expr.c (store_expr): Convert VOIDmode constants back to target's
16530         mode.
16531
16532 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16533
16534         * doc/invoke.texi: Markup gcc as @command.  Refer to
16535         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16536         of http://gcc.gnu.org/thanks.html.
16537
16538 2002-01-08  Dale Johannesen  <dalej@apple.com>
16539
16540         * config/rs6000/rs6000.md: Add missing int register
16541         target case to movdf_low.
16542
16543 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16544
16545         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16546         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16547         (cppinit.o): Depend on except.h.
16548         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16549         s-specs): New rules.
16550
16551         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16552         Don't create specs.h/options.h/gencheck.h here.  Remove
16553         unnecessary variable settings from last argument of AC_OUTPUT.
16554         * config.in, configure: Regenerate.
16555         * intl.c: Hardcode package name as "gcc".
16556
16557         * cppinit.c: Include except.h.
16558         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16559         appropriate.
16560         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16561         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16562         (!)USING_SJLJ_EXCEPTIONS.
16563         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16564
16565 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16566
16567         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16568         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16569         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16570         documentation of obsolete macros.
16571         * system.h: Poison these macros.
16572         * config/d30v/d30v.h, config/ns32k/encore.h,
16573         config/stormy16/stormy16.h: Remove definitions and commented out
16574         definitions of obsolete macros.
16575
16576 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16577
16578         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16579         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16580         warnings.
16581
16582 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16583
16584         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16585         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16586         to insn adjusting stack/frame pointer.
16587         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16588         accept operands that cause the insn to be non-splittable.
16589
16590 2002-01-08  Graham Stott  <grahams@redhat.com>
16591
16592         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16593         (C_TYPE_FIELDS_VOLATILE): Likewise.
16594         (C_TYPE_BEING_DEFINED): Likewise.
16595         (C_IS_RESERVED_WORD): Likewise.
16596         (C_TYPE_VARIABLE_SIZE): Likewise.
16597         (C_DECL_VARIABLE_SIZE): Likewise.
16598         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16599         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16600         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16601         parenthesis.
16602         (C_DECL_ANTICIPATED): Likewise.
16603         (c_build_type_variant): Add parenthesis.
16604
16605 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16606
16607         * gcc.c (option_map): Remove --version.
16608         (process_command): Handle -fversion following the GNU Coding
16609         Standards.  Partially addresses PR other/704.
16610
16611 2002-01-08  Graham Stott  <grahams@redhat.com>
16612
16613         * combine.c (combine_instructions): Fix typo.
16614
16615 2002-01-08  Graham Stott  <grahams@redhat.com>
16616
16617         * debug.h: Use "tree" and "rtx" throughout.
16618
16619         * debug.c: Likewise.
16620
16621 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16622
16623         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16624         constant pool, use the pool's version of the symbol instead.
16625
16626 2002-01-07  Richard Henderson  <rth@redhat.com>
16627
16628         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16629         the original register was copied in a mode with a fewer number of
16630         hard registers than the desired mode.
16631         (copyprop_hardreg_forward_1): Likewise.
16632         (debug_value_data): Fix loop test.
16633         * toplev.c (parse_options_and_default_flags): Reenable
16634         -fcprop-registers at -O1.
16635
16636 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16637
16638         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16639         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16640
16641         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16642         predicates.
16643
16644         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16645
16646 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16647
16648         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16649         (pa_output_function_prologue): Output local label at the beginning of
16650         the prologue when profiling.
16651         (hppa_profile_hook): Use the local label rather than the function label.
16652         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16653
16654 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16655
16656         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16657         (altivec_expand_unop_builtin): Fix thinko.
16658         (altivec_expand_binop_builtin): Same.
16659         (altivec_expand_ternop_builtin): Same.
16660         (altivec_expand_builtin): Same.
16661
16662 2002-01-07  Richard Henderson  <rth@redhat.com>
16663
16664         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16665
16666 2002-01-07  Jason Merrill  <jason@redhat.com>
16667
16668         * unwind-dw2.c (execute_cfa_program): Use < again.
16669
16670 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16671
16672         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16673
16674 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16675
16676         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16677         Don't allow -1 - x -> ~x simplifications in the first pass.
16678
16679 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16680
16681         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16682         arguments.
16683         (altivec_expand_binop_builtin): Same.
16684         (altivec_expand_unop_builtin): Same.
16685         (print_operand): Fix typo.
16686         (bdesc_1arg): Add vupk* variants.
16687
16688         * rs6000.h (rs6000_builtins): Add vupk* enums.
16689
16690         * rs6000.md: Add altivec_vupk* variants.
16691
16692 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16693
16694         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16695         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16696         and last update dates.
16697
16698 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16699
16700         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16701
16702 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16703
16704         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16705         * config/avr/avr.h (CPP_SPEC): Likewise.
16706         (LINK_SPEC): Likewise.
16707         (CRT_BINUTILS_SPECS): Likewise.
16708         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16709         * doc/invoke.texi (AVR Options): Document them.
16710
16711 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16712
16713         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16714         LABEL_NUSES.
16715
16716 2002-01-07  Graham Stott  <grahams@redhat.com>
16717
16718         * config/i386/i386.h: Update copyright date.
16719         (HALF_PIC_PTR): Add parenthesis.
16720         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16721         (CONSTANT_ALIGNMENT): Add parenthesis.
16722         (DATA_ALIGNMENT): Likewise.
16723         (LOCAL_ALIGNMENT): Likewise.
16724         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16725         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16726         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16727         (HARD_REGNO_NREGS): Add paranethesis.
16728         (VALID_SSE_REG_MODE): Whitespace.
16729         (VALID_MMX_REG_MODE): Whitespace.
16730         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16731         (ix86_hard_regno_mode_ok): Add parenthesis.
16732         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16733         (RETURN_IN_MEMORY): Whitespace.
16734         (N_REG_CLASSES): Add parenthesis.
16735         (INTEGER_CLASS_P): Add parenthesis and wrap.
16736         (FLOAT_CLASS_P): Likewise.
16737         (SSE_CLASS_P): Likewise.
16738         (MMX_CLASS_P): Likewise.
16739         (MAYBE_INTEGER_CLASS_P): Likewise.
16740         (MAYBE_FLOAT_CLASS_P): Likewise.
16741         (MAYBE_SSE_CLASS_P): Likewise.
16742         (MAYBE_MMX_CLASS_P): Likewise.
16743         (Q_CLASS_P): Likewise.
16744         (GENERAL_REGNO_P): Uppercase macro parameter.
16745         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16746         (FP_REGNO_P): Likewise.
16747         (ANY_FP_REGNO_P): Uppercase macro parameter.
16748         (SSE_REGNO_P): Likewise.
16749         (SSE_REGNO): Likewise.
16750         (SSE_REG_P): Likewise.
16751         (SSE_FLOAT_MODE_P): Likewise.
16752         (MMX_REGNO_P): Likewise.
16753         (MMX_REG_P):Likewise.
16754         (STACK_REG_P): Likewise.
16755         (NON_STACK_REG_P): Likewise.
16756         (STACK_TOP_P): Likewise.
16757         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16758         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16759         (SECONDARY_MEMORY_NEEDED): Likewise.
16760         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16761         (MD_ASM_CLOBBERS): Whitespace and wrap.
16762         (MUST_PASS_IN_STACK): Whitespace and wrap.
16763         (RETURN_POPS_ARGS): Add parenthesis.
16764         (INIT_CUMULATIVE_ARGS): Likewise.
16765         (FUNCTION_ARG): Likewise.
16766         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16767         (SETUP_INCOMING_VARARGS): Likewise.
16768         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16769         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16770         parenthsis.
16771         (EXPAND_BUILTIN_VA_ARG): Likewise.
16772         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16773         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16774         (INITIAL_ELIMINATION_OFFSET): Likewise.
16775         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16776         (REGNO_OK_FOR_BASE_P): Likewise.
16777         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16778         (REGNO_OK_FOR_DIREG_P): Likewise.
16779         (REG_OK_FOR_INDEX_P): Whitespace.
16780         (REG_OK_FOR_BASE_P): Whitespace.
16781         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16782         parenthesis.
16783         (FIND_BASE_TERM): Fix typo.
16784         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16785         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16786         (SYMBOLIC_CONST; Whitespace.
16787         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16788         (ENCODE_SECTION_INFO): Whitespace.
16789         (FINALIZE_PIC): Remove do { ... } while (0).
16790         (PROMOTE_MODE): Wrap in do { ... } while (0).
16791         (CONST_COSTS): Whitespace.
16792         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16793         (REGISTER_MOVE_COST): Add parenthesis.
16794         (MEMORY_MOVE_COST): Likewise.
16795         (EXTRA_CC_MODES): Whitespace.
16796         (SELECT_CC_MODE): Add parenthesis and whitespace.
16797         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16798         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16799         (ASM_OUTPUT_LABEL): Add paramethesis.
16800         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16801         (ASM_OUTPUT_REG_POP): Likewise.
16802         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16803         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16804
16805         * config/i386/i386.c: Update copyright.
16806         (CHECK_STACK_LIMIT): Add parenthesis.
16807         (AT_BP): Uppercase macro parameter.
16808         (x86_64_int_parameter_registers): Constify.
16809         (x86_64_int_return_registers): Likewise.
16810         (ix86_compare_op0): Use rtx.
16811         (construct_container): Constify INTREG parameter.
16812         (function_arg): Use rtx.
16813
16814         * diagnostic.h: Update copyright date.
16815         (output_buffer_state): Add parenthesis.
16816         (output_buffer_format_args): Likewise.
16817
16818         * combine.c (combine_instructions): Replace XEXP (links, 0)
16819         with link.
16820
16821 2002-01-06  H.J. Lu <hjl@gnu.org>
16822
16823         * cfgcleanup.c (thread_jump): Fix 2 typos.
16824
16825 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16826
16827         * config.gcc: Add support for --enable-altivec.
16828
16829 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16830
16831         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16832
16833 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16834
16835         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16836         __objc_class_name_*.
16837
16838 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16839
16840         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16841
16842 2002-01-06  Richard Henderson  <rth@redhat.com>
16843
16844         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16845         nop them out.  Increment label reference count for REG_LABEL.
16846         (fill_slots_from_thread): Frob label reference count around
16847         delete_related_insns.
16848
16849 2002-01-05  Richard Henderson  <rth@redhat.com>
16850
16851         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16852         jump threading.
16853
16854 2002-01-05  Richard Henderson  <rth@redhat.com>
16855
16856         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16857         * integrate.c (output_inline_function): Likewise.
16858         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16859         to remove_unnecessary_notes after emitting abstract instance.
16860         Force an emitted nested function to have its parent emited as well.
16861         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16862         for null.
16863         (rtl_for_decl_location): Do not look at reload data structures
16864         before reload has run.
16865
16866 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16867
16868         * cse.c: Fix formatting.
16869         * dwarf2asm.c: Likewise.
16870         * dwarf2out.c: Likewise.
16871         * explow.c: Likewise.
16872         * expmed.c: Likewise.
16873         * function.c: Likewise.
16874         * gcov.c: Likewise.
16875         * gencheck.c: Likewise.
16876         * genrecog.c: Likewise.
16877         * ggc-common.c: Likewise.
16878         * ggc-page.c: Likewise.
16879         * global.c: Likewise.
16880
16881 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16882
16883         * combine.c: Fix formatting.
16884
16885 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16886
16887         PR middle-end/1557
16888         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16889
16890 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16891
16892         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16893         as 1 for __powerpc64__ as well.
16894
16895         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16896
16897         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16898         return it.
16899
16900 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16901
16902         * lcm.c: Revert change, due to performance regression it causes on
16903         SPEC because it's slightly more conservative (sigh, I hate
16904         edge-based LCM).
16905
16906 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16907
16908         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16909
16910 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16911
16912         * doc/cppinternals.texi: Update.
16913
16914 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16915
16916         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16917         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16918         negatives.
16919         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16920         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16921         kludge for pre-october-14th mmix versions to handle new-found bug
16922         with PUSHJ/PUSHGO and the register stack.
16923         * config/mmix/mmix.h (struct machine_function): Rename member
16924         has_call_value_without_parameters to has_call_without_parameters.
16925         All referers changed.
16926         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16927         TARGET_MASK_BRANCH_PREDICT): New macros.
16928         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16929         -mno-reg-stack-fill-bug-workaround.
16930         * config/mmix/mmix.md ("call"): Set struct machine member
16931         has_call_without_parameters.
16932
16933 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16934
16935         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16936
16937 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16938
16939         * cfgcleanup.c: Include tm_p.h
16940         (mark_effect): Fix handling of hard register; fix handling of SET
16941
16942 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16943
16944         * config/h8300/h8300.md (anonymous patterns): Check that
16945         operands are registers before using REGNO on them.
16946
16947 2002-01-03  Roland McGrath  <roland@frob.com>
16948
16949         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16950
16951 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16952
16953         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16954         * c-common.h (genrtl_expr_stmt_value): Likewise.
16955         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16956         (expand_expr_stmt_value): Add maybe_last argument.
16957         Don't warn about statement with no effect if it is the last statement
16958         in expression statement.
16959         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16960         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16961         expand_expr_stmt_value.
16962         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16963         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16964         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16965         as maybe_last to expand_expr_stmt_value.
16966
16967 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16968
16969         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16970         be passed in, do not build it.
16971         (c_begin_if_stmt): New function.
16972         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16973         * c-common.h (c_expand_start_cond): Update prototype.
16974         (c_begin_if_stmt): Prototype new function.
16975         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16976         * c-parse.in (if_prefix): Use c_begin_if_stmt,
16977         c_begin_while_stmt and c_finish_while_stmt_cond.
16978
16979 2002-01-04  William Cohen  <wcohen@redhat.com>
16980
16981         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16982         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16983         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16984         * config/pa/som.h (ASM_FILE_START): Likewise.
16985
16986 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
16987
16988         * lcm.c: Include df.h.
16989         Add available_transfer_function prototype.
16990         (compute_available): Rework to use iterative dataflow framework.
16991         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16992         with bb_info in df.h
16993         (available_transfer_function): New function.
16994
16995         * Makefile.in (lcm.o): add df.h to dependencies.
16996
16997 2002-01-04  Richard Henderson  <rth@redhat.com>
16998
16999         * config/alpha/alpha.c (some_operand): Accept HIGH.
17000         (input_operand): Likewise; accept simple references to globals.
17001         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
17002         (alpha_const_double_ok_for_letter_p): Likewise.
17003         (alpha_extra_constraint): Likewise.
17004         (alpha_preferred_reload_class): Likewise.  Do not force
17005         symbolic constants to memory.
17006         (alpha_legitimate_address_p): Accept simple references
17007         to small_symbolic_operand.
17008         (alpha_legitimize_address): New arg scratch.  Be prepared to be
17009         called when no_new_pseudos.  Emit simple symbolic references.
17010         Split integers into low, high, and rest.
17011         (alpha_expand_mov): Use alpha_legitimize_address.
17012         (some_small_symbolic_mem_operand): New.
17013         (split_small_symbolic_mem_operand): New.
17014         * config/alpha/alpha-protos.h: Update.
17015         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
17016         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
17017         (EXTRA_CONSTRAINT): Likewise.
17018         (PREFERRED_RELOAD_CLASS): Likewise.
17019         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
17020         (PREDICATE_CODES): Update.
17021         * config/alpha/alpha.md: New post-reload splitters to convert
17022         simplfied symbolic operands to the form that references $29.
17023         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
17024         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
17025
17026 2002-01-03  Richard Henderson  <rth@redhat.com>
17027
17028         * local-alloc.c (function_invariant_p): Update commentary.
17029
17030 2002-01-04  H.J. Lu <hjl@gnu.org>
17031
17032         * toplev.c (rest_of_compilation): Fix a typo when calling
17033         cleanup_cfg.
17034
17035 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17036
17037         * c-common.c: Fix formatting.
17038         * diagnostic.c: Likewise.
17039         * doloop.c: Likewise.
17040         * dwarf2out.c: Likewise.
17041
17042 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17043
17044         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
17045         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
17046
17047 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
17048
17049         * cpperror.c: Update comments and copyright.
17050         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
17051         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
17052
17053 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17054
17055         * collect2.c (main): Use strcmp when testing for "-shared".
17056
17057 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
17058
17059         * cppmacro.c: Don't include intl.h.  Update comments.
17060         (new_number_token): Allocate enough buffer for 64-bit unsigned
17061         integers; update prototype.
17062         * cppmain.c: Update comments.
17063
17064 2002-01-03  William Cohen  <wcohen@redhat.com>
17065
17066         * function.h (struct function): Add profile.
17067         (current_function_profile): New.
17068         doc/extend.texi: Update documentation.
17069         * final.c (final_start_function): Use current_function_profile
17070         instead of profile_flag.
17071         (profile_after_prologue): Likewise.
17072         * function.c (expand_function_start): Likewise.
17073         (expand_function_start): Likewise.
17074         * config/alpha/alpha.c (direct_call_operand):
17075         (alpha_does_function_need_gp): Likewise.
17076         (alpha_expand_prologue): Likewise.
17077         * config/arm/arm.c (arm_expand_prologue): Likewise.
17078         thumb_expand_prologue: Likewise.
17079         * config/d30v/d30v.c (d30v_stack_info): Likewise.
17080         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
17081         (fr30_expand_prologue): Likewise.
17082         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
17083         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
17084         * config/i386/i386.h (FINALIZE_PIC): Likewise.
17085         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
17086         * config/i960/i960.c (i960_output_function_prologue): Likewise.
17087         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
17088         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
17089         (m32r_expand_prologue): Likewise.
17090         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
17091         (m88k_expand_prologue): Likewise.
17092         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
17093         * config/mips/mips.c (compute_frame_size): Likewise.
17094         (mips_expand_prologue): Likewise.
17095         (mips_can_use_return_insn): Likewise.
17096         * config/pa/elf.h (ASM_FILE_START): Likewise.
17097         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17098         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17099         * config/pa/som.h (ASM_FILE_START): Likewise.
17100         * config/romp/romp.c (romp_using_r14): Likewise.
17101         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
17102         (rs6000_stack_info): Likewise.
17103         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17104         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
17105         * config/v850/v850.c (compute_register_save_size): Likewise.
17106
17107 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
17108
17109         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
17110         gen_lowpart_common fails, use gen_lowpart_SUBREG.
17111
17112 2002-01-03  Turly O'Connor  <turly@apple.com>
17113
17114         * darwin.c (machopic_output_possible_stub_label): Don't generate
17115         stub routines for pseudo-stubs which we've just defined.
17116
17117 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17118
17119         * builtins.c: Fix formatting.
17120         * c-typeck.c: Likewise.
17121         * combine.c: Likewise.
17122         * expr.c: Likewise.
17123         * loop.c: Likewise.
17124
17125 2002-01-03  Andreas Schwab  <schwab@suse.de>
17126
17127         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
17128         and return true if _cpp_push_next_buffer pushed a new include
17129         file.
17130         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
17131         _cpp_pop_file_buffer did not push a new file.
17132         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
17133
17134 2002-01-02  Eric Christopher  <echristo@redhat.com>
17135
17136         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
17137         FIND_REG_INC_NOTE call. Update copyright.
17138         * loop.c (canonicalize_condition): Ditto.
17139         * reorg.c (delete_scheduled_jump): Ditto.
17140
17141 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17142
17143         * gcse.c: Fix formatting.
17144
17145 2002-01-03  Graham Stott  <grahams@redhat.com>
17146
17147         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
17148         forward defs for struct tags rtx_def, union_tree, rtvec_def
17149         also output corresponding typedefs for rtx, tree, and rtvec.
17150
17151         * system.h: Move forward defs for struct tags rtx_def, union_tree,
17152         rtvec_def along with corresponding typedefs for rtx, tree, and
17153         rtvec to config.h, hconfig.h, tconfig.h.
17154
17155 2002-01-03  Graham Stott  <grahams@redhat.com>
17156
17157         * tree.h: Update copyright date.
17158         (IS_EXPR_CODE_CLASS): Add parenthesis.
17159         (TREE_SET_CODE): Add whitespace.
17160         (TREE_CHECK): Add parenthesis.
17161         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
17162         (CST_OR_CONSTRUCTOR_CHECK):
17163         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
17164         (TREE_SYMBOL_REFERENCED): Whitespace.
17165         (INT_CST_LT): Likewise.
17166         (INT_CST_LT_UNSIGNED): Likewise.
17167         (tree_real_cst): Unwrap comment.
17168         (tree_string): Likewise.
17169         (tree_complex): Likewise.
17170         (IDENTIFIER_POINTER): correct cast.
17171         (SAVE_EXPR_CONTEXT): Whitespace.
17172         (EXPR_WFL_FILENAME_NODE): Likewise.
17173         (EXPR_WFL_FILENAME): Remove parenthesis.
17174         (DECL_ORIGIN): Add parenthesis.
17175         (DECL_FROM_INLINE): Use NULL_TREE.
17176         (build_int_2): Whitespace.
17177         (build_type_variant): Add parenthesis.
17178
17179         * gcc/jcf-parse.c: Update copyright date.
17180         (yyparse): Constify resource_filename.
17181
17182 2002-01-03  Graham Stott  <grahams@redhat.com>
17183
17184         * rtl.h: Update copyright date.
17185         (RTL_CHECK1): Wrap long line.
17186         (RTL_CHECK2): Likewise.
17187         (RTL_CHECKC1): Wrap long line and whitespace.
17188         (RTL_CHECKC2): Likewise.
17189         (XWINT): Whitespace.
17190         (XINT): Likewise.
17191         (XSTR): Likewise.
17192         (XEXP): Likewise.
17193         (XVEC): Likewise.
17194         (XMODE): Likewise.
17195         (XBITMAP): Likewise.
17196         (XTREE): Likewise.
17197         (XBBDEF): Likewise.
17198         (XTMPL): Likewise.
17199         (X0WINT): Likewise.
17200         (X0INT):Likewise.
17201         (X0UINT): Likewise.
17202         (X0STR): Likewise.
17203         (X0EXP): Likewise.
17204         (X0VEC): Likewise.
17205         (X0MODE): Likewise.
17206         (X0BITMAP): Likewise.
17207         (X0TREE): Likewise.
17208         (X0BBDEF): Likewise.
17209         (X0ADVFLAGS): Likewise.
17210         (X0CSELIB): Likewise.
17211         (X0MEMATTR): Likewise.
17212         (XCWINT): Likewise.
17213         (XCINT): Likewise.
17214         (XCUINT): Likewise.
17215         (XCSTR): Likewise.
17216         (XCEXP): Likewise.
17217         (XCVEC): Likewise.
17218         (XCMODE): Likewise.
17219         (XCBITMAP): Likewise.
17220         (XCTREE): Likewise.
17221         (XCBBDEF): Likewise.
17222         (XCADVFLAGS): Likewise.
17223         (XCCSELIB): Likewise.
17224         (XC2EXP): Likewise.
17225         (INSN_UID): Likewise.
17226         (PREV_INSN): Likewise.
17227         (PATTERN): Likewise.
17228         (INSN_CODE): Likewise.
17229         (PUT_REG_NOTE_KIND): Likewise.
17230         (CODE_LABEL_NUMBER): Likewise.
17231         (NOTE_SOURCE_FILE): Likewise.
17232         (NOTE_BLOCK): Likewise.
17233         (NOTE_EH_HANDLER): Likewise.
17234         (NOTE_RANGE_INFO): Likewise.
17235         (NOTE_LIVE_INFO): Likewise.
17236         (NOTE_BASIC_BLOCK): Likewise.
17237         (NOTE_EXPECTED_VALUE): Likewise.
17238         (NOTE_LINE_NUMBER): Likewise.
17239         (LABEL_NAME): Likewise.
17240         (LABEL_NUSES): Likewise.
17241         (LABEL_ALTERNATE_NAME): Likewise.
17242         (ADDRESSOF_DECL): Likewise.
17243         (JUMP_LABEL): Likewise.
17244         (LABEL_NEXTREF): Likewise.
17245         (REGNO): Likewise.
17246         (ORIGINAL_REGNO: Likewise.
17247         (HARD_REGISTER_NUM_P): Add parenthesis.
17248         (SUBREG_REG): Whitespace.
17249         (SUBREG_BYTE): Likewise.
17250         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17251         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17252         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17253         (ASM_OPERANDS_INPUT_VEC): Likewise.
17254         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17255         (ASM_OPERANDS_INPUT): Likewise.
17256         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17257         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17258         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17259         (ASM_OPERANDS_INPUT_MODE): Likewise.
17260         (ASM_OPERANDS_SOURCE_FILE): Likewise.
17261         (ASM_OPERANDS_SOURCE_LINE): Likewise.
17262         (MEM_SET_IN_STRUCT_P): Minor reformat.
17263         (TRAP_CONDITION): Whitespace.
17264         (TRAP_CODE): Likewise.
17265         (COND_EXEC_TEST): Likewise.
17266         (COND_EXEC_CODE): Likewise.
17267         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17268         (PHI_NODE_P): Add parenthesis.
17269         (plus_constant): Whitespace and add parenthesis.
17270
17271 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17272
17273         * config/avr/avr.c: Fix comment typos.
17274         * config/c4x/c4x.md: Likewise.
17275         * config/dsp16xx/dsp16xx.h: Likewise.
17276         * config/dsp16xx/dsp16xx.md: Likewise.
17277         * config/i386/i386.md: Likewise.
17278         * config/ia64/ia64.c: Likewise.
17279         * config/m32r/m32r.h: Likewise.
17280         * config/m68hc11/m68hc11.md: Likewise.
17281         * config/mmix/mmix.c: Likewise.
17282         * config/mn10200/mn10200.c: Likewise.
17283         * config/romp/romp.c: Likewise.
17284         * config/sh/sh.c: Likewise.
17285         * config/stormy16/stormy16.c: Likewise.
17286         * config/stormy16/stormy16.h: Likewise.
17287         * config/stormy16/stormy16.md: Likewise.
17288
17289 2002-01-03  Graham Stott  <grahams@redhat.com>
17290
17291         * loop.h: Update copyright date.
17292         (LOOP_MOVABLES): Fix typo.
17293         (LOOP_REGS): Likewise.
17294         (LOOP_IVS): Likewise.
17295
17296 2002-01-03  Graham Stott  <grahams@redhat.com>
17297
17298         * cppinit.c: Update copyright date.
17299         Don't include output.h
17300         * Makefile.in: Update copyright date.
17301         Update dependency.
17302
17303 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17304
17305         PR c/5226
17306         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17307         (-pthread) Add to RS/6000 options.
17308
17309 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17310
17311         * except.c: Fix comment typos.
17312         * loop.c: Likewise.
17313         * varasm.c: Likewise.
17314         * doc/tm.texi: Fix a typo.
17315
17316 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
17317
17318         * c-typeck.c (output_init_element): Allow initializing static storage
17319         duration objects with compound literals.
17320
17321 2002-01-02  Richard Henderson  <rth@redhat.com>
17322
17323         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17324         after abusing it.
17325
17326 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17327
17328         * gcc.c (default_compilers): Const-ify.
17329         * mips-tdump.c (stab_names): Likewise.
17330         * mips-tfile.c (map_coff_types, map_coff_storage,
17331         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17332         pseudo_ops_t, pseudo_ops): Likewise.
17333         * protoize.c (default_include): Likewise
17334
17335         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17336         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17337         Add array size in declaration.
17338         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17339         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17340         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17341         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17342         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17343         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17344         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17345         emtens, make_nan): Const-ify.
17346         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17347         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17348
17349 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
17350
17351         * config.gcc (ia64-*-*): Set extra_headers.
17352         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
17353         * config/alpha/t-osf: Remove.
17354         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17355
17356 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
17357
17358         * config/rs6000/t-aix43: Revert previous change.
17359
17360 2002-01-02  Jason Merrill  <jason@redhat.com>
17361
17362         * c-decl.c (c_expand_body): Call outlining_inline_function when
17363         emitting an inline function out of line.
17364
17365 2002-01-02  Richard Henderson  <rth@redhat.com>
17366
17367         * dwarf2out.c (limbo_die_node): Add created_for member.
17368         (new_die): New argument created_for.  Update all callers.
17369         (mark_limbo_die_list): New.
17370         (dwarf2out_init): Register limbo_die_list as a root.
17371         (dwarf2out_finish): Force insert limbo dies into their function
17372         context.
17373
17374 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
17375
17376         PR c++/5089
17377         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17378
17379 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17380
17381         * config/h8300/fixunssfsi.c: Update copyright.
17382         Fix comment typos.
17383         Fix formatting.
17384         * config/h8300/h8300.c: Update copyright.
17385         Eliminate warnings.
17386
17387 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17388
17389         * config/romp/romp.c: Fix comment formatting.
17390         * config/romp/romp.h: Likewise.
17391         * config/romp/romp.md: Likewise.
17392         * config/s390/s390.c: Likewise.
17393         * config/stormy16/stormy16.c: Likewise.
17394         * config/stormy16/stormy16.h: Likewise.
17395
17396 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
17397
17398         * c-common.h (genrtl_expr_stmt_value): Declare.
17399         * c-semantics.c (genrtl_goto_stmt): Redirect to...
17400         (genrtl_goto_stmt_value): ... this new function.  Pass new
17401         argument down to expand_expr_stmt_value, taking
17402         TREE_ADDRESSABLE into account.
17403         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17404         STMT_EXPR as addressable, i.e., one whose result we want.
17405         * expr.c (expand_expr): Don't save expression statement value
17406         of labeled_blocks or loop_exprs.
17407         * stmt.c (expand_expr_stmt): Redirect to...
17408         (expand_expr_stmt_value): ... this new function.  Use new
17409         argument to tell whether to save expression value.
17410         (expand_end_stmt_expr): Reset last_expr_type and
17411         last_expr_value if we don't have either.
17412         * tree-inline.c (declare_return_variable): Mark its use
17413         statement as addressable.
17414         * tree.h: Document new use of TREE_ADDRESSABLE.
17415         (expand_expr_stmt_value): Declare.
17416
17417 2002-01-01  Tom Rix  <trix@redhat.com>
17418
17419         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17420         rs6000_emit_allocate_stack.
17421
17422 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
17423
17424         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17425         ${srcdir}/ginclude/ to every entry in extra_headers.
17426         * configure: Regenerate.
17427         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17428         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17429         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17430         * ginclude/proto.h: Rename to config/convex/proto.h.
17431
17432 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17433
17434         * attribs.c (handle_vector_size_attribute): Use host_integerp
17435         and tree_int_cst; remove warnings.
17436         * caller-save.c (insert_restore): Add cast to get rid of warning.
17437         (insert_save): Likewise.
17438         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17439         * regmove.c (find_matches): Add temporary var to kill a warning.
17440
17441 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
17442
17443         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17444         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17445         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17446         (vms-dwarf2eh.o): Add Makefile rule.
17447         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17448         * config/alpha/vms-dwarf2eh.asm: New file.
17449
17450         * gcc.c (delete_if_ordinary): Delete all versions.
17451
17452 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
17453
17454         * config/mmix/mmix.md: Update FIXME to not mention
17455         define_constants.
17456         (MMIX_rJ_REGNUM): New define_constants constant.
17457         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17458         "*movdicc_real"): Adjust contraints formatting.
17459         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17460         for branch prediction.
17461         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17462         output template.
17463         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17464         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17465         number.  Delete related FIXMEs.
17466         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17467         from number to MMIX_rJ_REGNUM.
17468         (TARGET_MASK_BRANCH_PREDICT): New.
17469         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17470         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
17471         value.  Add -mbranch-predict and -mno-branch-predict.
17472         (TARGET_VERSION): Drop date.
17473         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17474         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17475         for finding out global symbols.
17476         (mmix_asm_output_labelref): Revert condition for global symbol.
17477         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17478         (mmix_print_operand_punct_valid_p): A '+' is valid.
17479
17480 See ChangeLog.6 for earlier changes.