OSDN Git Service

* config/h8300/elf.h: Fix formatting.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
2
3         * config/h8300/elf.h: Fix formatting.
4         * config/h8300/rtems.h: Likewise.
5
6 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
7
8         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
9
10 2002-06-02  Tom Tromey  <tromey@redhat.com>
11
12         * fixinc/fixincl.x: Rebuilt.
13         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
14
15 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
16
17 config/i370:
18         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
19         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
20         * mvs.h: Similarly.
21         * oe.h: Similarly.
22
23 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
24
25         * final.c (final):  Allow notes to not have computed addresses;
26         kill no longer needed STACK_REGS ifdef.
27
28 2002-06-02  Richard Henderson  <rth@redhat.com>
29
30         * gcse.c (bypass_conditional_jumps): Fix typo last change.
31
32 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
33
34         * loop.c (emit_prefetch_instructions): Properly place the address
35         computation.
36
37 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
38
39         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
40         (set_block_for_insn): Turn into macro.
41         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
42         * cfglayout.c (insn_scopes): Kill.
43         (scope_to_insns_initialize): Do not use insn_scopes.
44         (scope_to_insns_finalize): Likewise.
45         (duplicate_insn_chain): Likewise.
46         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
47         * cfgrtl.c (basic_block_for_insn): Kill.
48         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
49         (create_basic_block_structure): Use reorder_insns.
50         (compute_bb_for_insn): Do not use basic_block_for_insn.
51         (merge_blocks_nomove): Likewise.
52         (update_bb_for_insn): Likewise.
53         (verify_flow_info): Likewise.
54         (set_block_for_insn): Kill.
55         * combine.c (try_combine): Update gen_rtx_INSN call.
56         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
57         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
58         scopes and BBs.
59         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
60         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
61         Clear BB.
62         (emit_insns_after): Simplify.
63         (emit_copy_of_insn_after): Copy scope.
64         * final.c (final_start_function): Lower scopes.
65         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
66         * integrate.c (copy_insn_list): Cope scopes.
67         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
68         * loop.c (loop_optimize): Do not care block notes.
69         * print-rtl.c (print_rtx): Print BB.
70         * recog.c (apply_change_group): Simplify.
71         * rtl.c (copy_rtx): Handle 'B'.
72         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
73         * rtl.h (Field accessors): Update indexes.
74         * sched-ebb.c (schedule_ebbs): Do not lower notes.
75         * sched-rgn.c (schedule_insns): Likewise.
76         * toplev.c (rest_of_compilation): Lower notes.
77         * unroll.c (unroll_loop): Do not care scoping notes.
78         (copy_loop_body): Copy scopes.
79
80 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
81
82 config/h8300:
83         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
84         SUBTARGET_SPEC.
85         * rtems.h: Similarly.
86         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
87         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
88         (TARGET_CPU_CPP_BUILTINS): Use.
89
90 2002-06-02  Richard Henderson  <rth@redhat.com>
91
92         * alias.c: Include target.h.
93         (mark_constant_function): Use targetm.binds_local_p instead
94         of checking TREE_PUBLIC ourselves.
95         * Makefile.in (alias.o): Add TARGET_H.
96
97 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
98
99         * c-lex.c: Update copyright and file description.
100
101 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
102
103         * config/fr30/fr30.h: Update to new CPP macros.
104
105 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
106
107         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
108
109 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
110             Zack Weinberg <zack@codesourcery.com>
111
112         * c-common.c (c_common_init): Override cpplib's default
113         warn_long_long setting.
114         * c-lex.c (lex_number): Replace with interpret_integer,
115         interpret_float, narrowest_unsigned_type and
116         narrowest_signed_type, taking advantage of the new
117         cpplib functionality.
118         * cpperror.c (_cpp_begin_message): If a warning is turned
119         into an error, avoid printing "warning:".
120         * cppexp.c (cpp_num_sign_extend): New.
121         * cppinit.c: Update comment.
122         * cpplib.h (cpp_num_sign_extend): New.
123         * tree.h: Update comment.
124
125 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
126
127         * diagnostic.h (struct diagnostic_context):  Add new member
128         internal_error. 
129         (internal_error_function): Remove declaration.
130         * diagnostic.c (internal_error_function): Remove definition..
131         (internal_error): Adjust use.
132
133 2002-06-02  Richard Henderson  <rth@redhat.com>
134
135         * rtl.h (CC0_P): New.
136         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
137         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
138         (bypass_block): Save old dest block for dump text.
139         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
140         Allow only true SET insns, not single_set.
141
142 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
143
144         * diagnostic.c (diagnostic_finish): Rename to output_flush.
145         (clear_disgnostic_info): Rename to output_clear_data.  Use false
146         instead of 0 for boolean value.
147         Adjust function call throughout.
148
149 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
150
151         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
152         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
153
154 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
155
156         * d30v.h (CPP_PREDEFINES): Replace with
157         (TARGET_CPU_CPP_BUILTINS): New.
158
159 2002-06-02  Roger Sayle  <roger@eyesopen.com>
160
161         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
162
163 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
164
165         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
166
167 2002-06-02  Richard Henderson  <rth@redhat.com>
168
169         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
170
171 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
172
173         Support for C++ constructors/destructors.
174         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
175         instead of looping if main() returns.
176         (asm_file_start): Output global symbols that cause .data and .bss
177         initialization code to be linked in, unconditionally for now.
178         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
179         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
180         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
181         (LIBSTDCXX): New.
182         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
183         (__tablejump__): New.
184         (__do_copy_data, __do_clear_bss): New.
185         (__do_global_ctors, __do_global_dtors): New.
186         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
187         _ctors, _dtors.
188
189 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
190
191         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
192         (CPP_SPEC, CPP_PREDEFINES): Kill.
193         * c4x/rtems.h (CPP_PREDEFINES): Kill.
194         (TARGET_OS_CPP_BUILTINS): New.
195
196 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
197
198         * Makefile.in (tracer.o): New.
199         * params.def (TRACER_*): New options.
200         * rtl.h (tracer): Declare.
201         * timevar.def (TV_TRACER): New.
202         * toplev.c (dump_file_index): Add DFI_tracer.
203         (dump_file_info): Add tracer.
204         (flag_tracer): New.
205         (lang_indepdenent_options): Add tracer.
206         (rest_of_compilation): Call tracer.
207         * tracer.c: New file.
208         * invoke.texi (-ftracer): Document.
209         (--param tracer-*): Document.
210
211 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
212
213         * tree-inline.c (expand_call_inline): Make the statement
214         expression we generate have a COMPOUND_STMT.    
215
216 2002-06-01  Roger Sayle  <roger@eyesopen.com>
217
218         * gcse.c (cprop_cc0_jump): Function deleted.
219         (cprop_jump): Take an additional argument which is the possibly
220         NULL cc setting insn immediately before the conditional jump.
221         When a MODE_CC set is present, substitute it into the JUMP_INSN
222         before attempting the constant propagation.
223         (cprop_insn):  Recognize cc setters followed by conditional jumps
224         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
225         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
226         (find_bypass_set): New function based upon find_avail_set used by
227         cprop, but finds constant expressions available at the end of
228         basic blocks.
229         (bypass_block): New function.  Given a basic block that begins
230         with a conditional jump and multiple incoming edges, perform
231         the jump bypass optimization.
232         (bypass_conditional_jumps): New function.  Call bypass_block with
233         each suitable basic block in the CFG using a simple single pass.
234
235 2002-06-01  Roger Sayle  <roger@eyesopen.com>
236
237         * tree.c (real_minus_onep): New function to test for -1.0.
238         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
239
240 2002-06-01  Roger Sayle  <roger@eyesopen.com>
241
242         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
243         and "!p && !q" into "(p|q) == 0" under suitable conditions.
244
245 2002-06-01  Andreas Jaeger  <aj@suse.de>
246
247         * cppexp.c (cpp_classify_number): Cast precission to int for
248         correct printf format.
249
250 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
251
252         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
253         expected, but don't really exist: atmega83, atmega85, attiny10.
254         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
255         emulations for all devices.
256         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
257         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
258
259 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
260
261         * config/h8300/h8300-protos.h: Add a prototype for
262         h8300_shift_needs_scratch_p.
263         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
264         * config/h8300/h8300.h (OK_FOR_R): New.
265         (OK_FOR_S): Likewise.
266         (OK_FOR_T): Likewise.
267         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
268         * config/h8300/h8300.md (anonymous shift patterns): Use
269         constraints R, S, and T.
270
271 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
272
273         * basic-block.h (struct basic_block_def): New field loop_father.
274         (BB_VISITED): New flag.
275         (struct loop): New field pred, removed field shared.
276         (struct loops): New field parray.
277         (LOOP_EXITS_DOMS): Removed.
278         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
279         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
280         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
281         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
282         verify_loop_structure): Declare.
283         * cfg.c (entry_exit_blocks): Initialize loop_father field.
284         * cfganal.c (dfs_enumerate_from): New function.
285         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
286         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
287         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
288         flow_loop_dump, flow_loops_dump, flow_loops_free,
289         flow_loop_tree_node_add, flow_loop_level_compute,
290         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
291         flow_loop_outside_edge_p): Modified for new infrastructure.
292         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
293         redirect_edge_with_latch_update, flow_loop_free): New static functions.
294         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
295         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
296         find_common_loop, verify_loop_structure, loop_latch_edge,
297         loop_preheader_edge): New functions.
298         (flow_loops_cfg_dump): Do not show dominators, as this information
299         does not remain up to date long.
300         (flow_loops_find): Store results in new format.
301         * predict.c (propagate_freq, estimate_probability,
302         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
303         infrastructure.
304
305 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
306
307         * except.c (nothrow_function_p): Walk epilogue delay list
308         checking the insn, not the chain for potential throws.
309
310 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
311
312         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
313         (install): Refer to install-cpp directly.
314         (uninstall-cpp): Folded into uninstall rule.
315         * configure.in: Delete all code relating to --disable-cpp.
316         * configure: Regenerate.
317         * config/t-install-cpp: Delete.
318
319 2002-05-31  Richard Henderson  <rth@redhat.com>
320
321         * configure.in (HAVE_AS_TLS): Add alpha tests.
322         * configure: Rebuild.
323         * config/alpha/alpha.c (TARGET_AS_TLS): New.
324         (alpha_tls_size, alpha_tls_size_string): New.
325         (overide_options): Set it.  Always install machine_status hooks.
326         (input_operand): Accept got tls predicates.
327         (local_symbol_p): Merge into ...
328         (local_symbolic_operand): ... here.  Reject tls symbols.
329         (global_symbolic_operand): Likewise.
330         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
331         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
332         (tp16_symbolic_operand, tp32_symbolic_operand): New.
333         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
334         (alpha_encode_section_info): Handle TLS symbols.
335         (alpha_strip_name_encoding): Likewise.
336         (alpha_legitimate_address_p): Likewise.
337         (alpha_legitimize_address): Likewise.
338         (alpha_expand_mov): Early exit to avoid nop moves.
339         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
340         (alpha_init_machine_status, alpha_mark_machine_status,
341         alpha_free_machine_status): Always define.
342         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
343         (print_operand, print_operand_address): Add TLS relocs.
344         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
345         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
346         (TARGET_SWITCHES): Add -mtls-kernel.
347         (alpha_tls_size, alpha_tls_size_string): New.
348         (TARGET_OPTIONS): Add -mtls-size=.
349         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
350         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
351         (ASM_OUTPUT_LABELREF): Skip %.
352         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
353         (PREDICATE_CODES): Update.
354         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
355         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
356         UNSPEC_TP, UNSPECV_SET_TP): New.
357         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
358         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
359         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
360         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
361         (call_value_osf_2_er): Accept anything as op4.
362         * config/alpha/alpha-protos.h: Update.
363         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
364
365 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
366
367         * cppinit.c (append_include_chain): Always pay attention to
368         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
369         marker on argument.
370
371 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
372
373         * target.h: Fix formatting.
374         * timevar.h: Likewise.
375         * tlink.c: Likewise.
376         * toplev.c: Likewise.
377         * toplev.h: Likewise.
378         * tree.c: Likewise.
379         * tree-dump.h: Likewise.
380         * tree.h: Likewise.
381         * tree-inline.h: Likewise.
382         * unroll.c: Likewise.
383         * unwind-dw2.c: Likewise.
384         * unwind-dw2-fde.c: Likewise.
385         * unwind-dw2-fde-glibc.c: Likewise.
386         * unwind-dw2-fde.h: Likewise.
387         * unwind.h: Likewise.
388         * unwind-sjlj.c: Likewise.
389         * varasm.c: Likewise.
390         * varray.h: Likewise.
391         * vmsdbg.h: Likewise.
392         * vmsdbgout.c: Likewise.
393         * xcoffout.h: Likewise.
394
395 2002-05-31  Igor Shevlyakov <igor@microunity.com>
396
397         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
398         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
399
400 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
401
402         * gcc.c (cpp_unique_options): Remove "-d" options.
403         (cpp_debug_options): New spec string.
404         (default_compilers): Use it.
405         * objc/lang-specs.h: Likewise.
406
407 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
408
409         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
410         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
411         * gcc/mklibgcc.in: Likewise.
412         * gcc/config/arc/t-arc: Likewise.
413         * gcc/configure.in: Likewise.
414         * gcc/configure: Regenerate.
415
416 2002-05-31  Stan Shebs  <shebs@apple.com>
417             Turly O'Connor  <turly@apple.com>
418
419         * c-decl.c (struct binding_level): Change int field n_incomplete
420         to tree list incomplete_list.
421         (clear_binding_level): Init field with NULL.
422         (pushdecl): Add incomplete type to list.
423         (mark_binding_level): Mark the incomplete list.
424         (finish_struct): Scan the incomplete list for types instead
425         of all decls in the current binding level.
426
427 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
428
429         * pa.c (output_millicode_call): Add missing '%' characters.
430         (output_call): Likewise.
431
432 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
433
434         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
435         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
436
437 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
438
439         * varasm.c (mark_constant_pool): Walk epilogue delay list
440         checking the insn, not the chain for potential constants.
441
442 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
443
444         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
445
446 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
447
448         * i386.c (classify_argument): Properly handle base types.
449
450         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
451         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
452         registers.
453
454 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
455
456         * gcse.c (gcse_emit_move_after): New.
457         (pre_delete, hoist_store): Use it.
458
459         * reload1.c (emit_input_reload_insns): Use constrain_operands
460         instead of constraint_accepts_reg_p to verify optimization.
461         (constraint_accepts_reg_p): Kill
462
463         * reload1.c (reload_cse_delete_noop_set): Kill.
464         (reload_cse_simplify): use delte_insn_and_edges.
465
466 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
467
468         * cfgloop.c (flow_loops_find): Initialize first and last fields
469         correctly.
470
471 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
472
473         * c-common.c (builtin_define_std): Correct logic.
474
475 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
476
477         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
478         (output_call): Likewise.
479
480 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
481
482         * pa.c: Move output.h include after tree.h include.
483         (pa_asm_output_mi_thunk): Constify identifier lab.
484
485 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
486
487         * config/ns32k/ns32k.h: Define named constants for the
488         bits in target_flags and use them.
489         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
490
491 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
492
493         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
494         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
495         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
496         default scheduling model.
497         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
498         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
499         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
500         * doc/install.texi (hppa*-*-*): Document default scheduling.
501
502 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
503
504         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
505
506 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
507
508         * config.gcc (ns32k-*-netbsd*): Set tm_file to
509         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
510         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
511         netbsd.h, or netbsd-aout.h.
512
513 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
514
515         * longlong.h (count_trailing_zeros): Add missing \, and clean up
516         whitespace in __ns32000__ case.
517
518 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
519
520         * expr.c (expand_expr): Output partially zeroed out vectors with
521         output_constant_def.
522
523 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
524
525         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
526         (sh-*-netbsdelf*)
527         (shl*-*-netbsdelf*): New targets.
528         * config/sh/netbsd-elf.h: New file.
529
530 2002-05-30  Richard Henderson  <rth@redhat.com>
531             Eric Botcazou  <ebotcazou@multimania.com>
532
533         PR optimization/6822
534         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
535         to unsigned int for op1 comparisons.  Use gen_int_mode.
536
537 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
538
539         * expmed.c (const_mult_add_overflow_p): New.
540         * expr.h: Declare it.
541         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
542         Don't eliminate the biv if the giv has a constant multiplier and
543         the rhs argument of the comparison does satisfy the predicate.
544         Use expand_mult_add to compute the replacement constant.
545
546 2002-05-30  Osku Salerma  <osku@iki.fi>
547
548         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
549         (c_common_get_alias_set): Handle it.
550         * doc/extend.texi: Document it.
551
552 2002-05-30  Richard Henderson  <rth@redhat.com>
553
554         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
555         * toplev.c (process_options): Don't check it.
556         * doc/tm.texi: Don't document it.
557         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
558         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
559         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
560         frame pointer optimization if current_function_profile.
561
562 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
563
564         * langhooks.c: Fix formatting.
565         * langhooks.h: Likewise.
566         * lcm.c: Likewise.
567         * libgcc2.c: Likewise.
568         * lists.c: Likewise.
569         * local-alloc.c: Likewise.
570         * loop.c: Likewise.
571         * loop.h: Likewise.
572
573 2002-05-30  Marc Espie <espie@openbsd.org>
574
575         * config.gcc (sparc64-*-openbsd*): New.
576         * config/sparc/openbsd1-64.h: New.
577         * config/sparc/openbsd64.h: New.
578
579 2002-05-30  Jeff Law <law@redhat.com>
580
581         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
582         a dead insn with a REG_RETVAL note when the entire libcall is not
583         dead and remove the associated REG_LIBCALL note at the same time.
584
585 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
586
587         * lcm.c (output.h): #include.
588         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
589         as an ordinary block.
590         (optimize_mode_switching): Don't pretend that the exit block is
591         an ordinary block, or handle sucessors of entry block specially.
592         Instead, split edges from entry block and to exit block, and
593         put a computing definition on the thus gained post-entry-block,
594         and a need on the pre-exit-block.
595
596 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
597
598         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
599         * rtl.texi: Document 'B'
600
601 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
602
603         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
604         at run-time.
605         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
606
607 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
608
609         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
610         const0_rtx instead of NULL_RTX when in error.
611         (altivec_expand_abs_builtin): Same.
612         (rs6000_expand_binop_builtin): Same.
613         (altivec_expand_predicate_builtin): Same.
614         (altivec_expand_stv_builtin): Same.
615         (rs6000_expand_ternop_builtin): Same.
616         (altivec_expand_builtin): Same.
617
618 2002-05-29  David S. Miller  <davem@redhat.com>
619
620         * rtl.h (clear_emit_caches): Delete.
621         * integrate.c (output_inline_function): Don't call it.
622         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
623         (clear_emit_caches): Delete definition.
624         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
625
626 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
627
628         * config/mmix/mmix.c: Include real.h.
629         (mmix_constant_address_p): Remove redundant test before switch.
630
631 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
632
633         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
634         only if not already defined.
635
636 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
637
638         * config/h8300/h8300-protos.h: Remove prototypes for
639         ok_for_bclr and small_power_of_two.
640         * config/h8300/h8300.c (small_power_of_two): Remove.
641         (ok_for_blcr): Likewise.
642         (fix_bit_operand): Make WHAT deal with an integer instead of a
643         constraint character.
644         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
645         (CONST_OK_FOR_P): Likewise.
646         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
647         CONST_OK_FOR_P any more.
648         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
649         of fix_bit_operand.
650         (iorqi3): Likewise.
651         (xorqi3): Likewise.
652
653 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
654
655         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
656         (CPP_PREDEFINES): Make sure this is undefined.
657         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
658         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
659         or -U__MIPSEB__ before defining one or the other.  Instead,
660         use %(subtarget_endian_default) if neither -EB nor -EL are
661         specified.
662         (SUBTARGET_EXTRA_SPECS): Define.
663         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
664         %(netbsd_cpp_spec).
665
666 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
667
668         * doc/md.texi (Patterns): Note pattern condition pitfall
669         for unnamed insn.
670
671 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
672
673         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
674         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
675         ternary operations from here...
676         (rs6000_expand_builtin): ...to here.
677         New argument expandedp.
678         Change all instances of altivec_expand_binop_builtin to
679         rs6000_expand_binop_builtin.
680         (altivec_expand_unop_builtin): Rename to
681         rs6000_expand_unop_builtin.
682         (altivec_expand_binop_builtin): Rename to
683         rs6000_expand_binop_builtin.
684         (altivec_expand_ternop_builtin): Rename to
685         rs6000_expand_ternop_builtin.
686
687 2002-05-29  Richard Henderson  <rth@redhat.com>
688
689         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
690         (TARGET_BI_ARCH): Likewise.
691         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
692         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
693         (TARGET_64BIT_DEFAULT): Default to 0.
694         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
695
696 2002-05-29  Richard Henderson  <rth@redhat.com>
697
698         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
699         (get_pc_thunk_name): New.
700         (output_set_got): Use it.
701         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
702         into linkonce sections.
703
704 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
705
706         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
707         (CPP_PREDEFINES): Make sure this is undefined.
708         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
709         (CPP_SUBTARGET_SPEC): Don't provide different versions for
710         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
711         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
712         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
713         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
714         (CPP_PREDEFINES): Make sure this is undefined.
715         (SUBTARGET_EXTRA_SPECS): Define.
716         (CPP_SPEC): Use %(netbsd_cpp_spec).
717
718 2002-05-29  Jeff Law <law@redhat.com>
719
720         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
721
722         * flow.c (propagate_one_insn): Do not remove a dead insn if it
723         contains a REG_RETVAL note.
724
725         * haifa-sched (sched_analyze): Remove another useless clearing
726         of SCHED_GROUP_P I missed yesterday.
727
728         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
729         * pa.c (pa_asm_output_mi_thunk): New function.
730         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
731
732 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
733             Marek Michalkiewicz  <marekm@amelek.gda.pl>
734
735         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
736         (avr_asm_only_p): Make non-static.
737         (enum avr_arch): Remove.
738         (avr_arch_types): New.
739         (avr_mcu_types): Update.
740         (avr_override_options): Use avr_arch_types table instead of switch.
741         * avr.h (CPP_PREDEFINES): Die.
742         (avr_base_arch_macro, avr_extra_arch_macro): New.
743         (TARGET_CPU_CPP_BUILTINS): New.
744         (CPP_SPEC, EXTRA_SPECS): Simplify.
745         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
746         CPP_AVR5_SPEC): Die.
747
748 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
749
750         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
751         NETBSD_OS_CPP_BUILTINS_AOUT.
752         (SUBTARGET_EXTRA_SPECS): Define.
753         (CPP_SPEC): Use %(netbsd_cpp_spec).
754
755 2002-05-29  Richard Henderson  <rth@redhat.com>
756
757         * config/i386/i386.c (ix86_output_function_epilogue): New.
758         (TARGET_ASM_FUNCTION_EPILOGUE): New.
759         (pic_label_name): Remove.
760         (pic_labels_used): New.
761         (ix86_asm_file_end): Emit one pc load stub for each register used.
762         (output_set_got): Generate deep pc load to any register.
763         (ix86_select_alt_pic_regnum): New.
764         (ix86_save_reg): Don't save pic register if we can find a valid
765         call-clobbered replacement.
766         (ix86_expand_prologue): If we found a valid replacement, renumber
767         pic_offset_table_rtx.
768         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
769         pic_offset_table_rtx after reload.
770         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
771         * config/i386/i386.md (set_got): Make insn, not expander.
772         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
773
774 2002-05-29  Richard Henderson  <rth@redhat.com>
775
776         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
777         alignment for alloca.
778
779 2002-05-29  Richard Henderson  <rth@redhat.com>
780
781         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
782         (print_operand_address): Only add rip for symbolic addresses
783         for which we do not have another relocation type.
784
785 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
786
787         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
788         (EXTRA_SPECS): Add netbsd_cpp_spec.
789         (CPP_SPEC): Use %(netbsd_cpp_spec).
790         (CPP_PREDEFINES): Remove.
791         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
792         (EXTRA_SPECS): Define.
793         (CPP_SPEC): Use %(netbsd_cpp_spec).
794         (CPP_PREDEFINES): Remove.
795
796 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
797
798         PR preprocessor/6844
799         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
800         NUL.
801
802 2002-05-29  Eric Christopher  <echristo@redhat.com>
803
804         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
805         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
806
807 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
808
809         * config/fr30/fr30.md: Remove previous restriction on splits.
810         Enforce conformance through gen_lowpart and cont_int_operand.
811         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
812         as the assembler does not support ".bss".
813
814 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
815
816         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
817         (CPP_PREDEFINES): Remove.
818         (SUBTARGET_EXTRA_SPECS): Define.
819         (CPP_SPEC): Use %(netbsd_cpp_spec).
820         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
821         (CPP_PREDEFINES): Remove.
822         (SUBTARGET_EXTRA_SPECS): Define.
823         (CPP_SPEC): Use %(netbsd_cpp_spec).
824         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
825         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
826         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
827         Add netbsd_cpp_spec.
828         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
829
830 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
831             Zack Weinberg <zack@codesourcery.com>
832
833         * cppexp.c (cpp_num): Move to cpplib.h.
834         (CPP_ERROR): Remove.
835         (interpret_float_suffix, interpret_int_suffix): New.
836         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
837         (cpp_classify_number, cpp_interpret_integer): New.
838         (interpret_number): Remove.
839         (eval_token): Update to use new routines.
840         * cpphash.h (cpp_num_part): Move to cpplib.h.
841         * cppinit.c (cpp_post_options): Set warn_long_long.
842         * cpplib.h (struct cpp_options): Add warn_long_long.
843         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
844         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
845         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
846         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
847         cpp_interpret_integer): New.
848
849 2002-05-29  Joel Sherrill <joel@OARcorp.com>
850
851         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
852
853 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
854
855         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
856         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
857         (CPP_SUBTARGET_SPEC): Define.
858         (SUBTARGET_EXTRA_SPECS): Define.
859         (CPP_SPEC): Remove.
860
861 2002-05-29  Chris Lattner  <sabre@nondot.org>
862
863         * ssa.c (rename_insn_1): Rename uses of undefined registers to
864         prevent confusion if/when the register is defined.
865
866 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
867
868         PR target/6838
869         * config/cris/cris.md: Fix typos and thinkos in comments.
870         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
871         second alternative.
872         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
873         ("*mov_sideqi_mem"): Similar, but for operand 3.
874         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
875         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
876         Remove spurious mode specifier on operand 2.
877
878 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
879
880         * config/h8300/h8300-protos.h: Remove the prototype for
881         o_operand.
882         Add prototypes for single_one_operand and single_zero_operand.
883         * config/h8300/h8300.c (o_operand): Remove.
884         (single_one_operand): New.
885         (single_zero_operand): Likewise.
886         (print_operand): For 'V' operand, and the operand with 0xff.
887         For 'V' and 'W' operands, do not and the bit position with 7.
888         * config/h8300/h8300.md (various anonymous patterns): Replace
889         use of exact_log2 with single_one_operand/single_zero_operand.
890
891 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
892
893         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
894
895 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
896
897         * config/s390/s390.c (legitimate_pic_operand_p): Do not
898         accept symbolic LARL operands.
899         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
900         epilogue insns.
901
902 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
903
904         * config/s390/s390.md (cmpstr_64/31): Mark whole
905         input registers as used.
906
907 2002-05-28  Richard Henderson  <rth@redhat.com>
908
909         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
910         not current_function_uses_pic_offset_table and
911         current_function_uses_const_pool; examine current_function_profile.
912         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
913         input to blockage if needed.
914         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
915         (legitimize_pic_address): Likewise.  Set regs_ever_live for
916         pic_offset_table_rtx when invoked during reload.
917         * config/i386/i386.h (FINALIZE_PIC): Remove.
918         * config/i386/i386.md (tablejump): Reformat.  Do not set
919         current_function_uses_pic_offset_table.
920         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
921         (blockage): Accept anything as operand 0.
922
923 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
924
925         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
926         common CPP built-ins for all NetBSD a.out targets.
927         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
928         common CPP built-ins for all NetBSD ELF targets.
929         * config/netbsd.h: Add missing notice.
930         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
931         for all NetBSD targets.
932         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
933         for all NetBSD targets using an LP64 code model.
934         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
935         NetBSD targets.
936
937 2002-05-28  Richard Henderson  <rth@redhat.com>
938
939         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
940         update if UPDATE_LIFE_LOCAL.
941
942 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
943
944         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
945
946 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
947                           Jason R. Thorpe <thorpej@wasabisystems.com>
948
949         config/sh reorganization to factor out endianness and coff:
950
951         * config/sh/little.h: New file.
952         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
953         defined, define to 0 to select big-endian.
954         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
955         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
956         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
957         * config/sh/t-be: New file.
958         * config/sh/t-le: New file.
959
960         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
961         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
962         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
963         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
964         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
965         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
966         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
967         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
968         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
969         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
970         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
971         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
972         (LINK_SPEC): Define to SH_LINK_SPEC.
973         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
974         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
975         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
976         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
977         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
978         * config/sh/coff.h: New file.
979         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
980         (TARGET_OBJFMT_CPP_BUILTINS): Define.
981         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
982         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
983         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
984         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
985         (PTRDIFF_TYPE): Likewise.
986         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
987         (CPP_PREDEFINES): Don't define.
988         (TARGET_OBJFMT_CPP_BUILTINS): Define.
989         (LINK_SPEC): Define to SH_LINK_SPEC.
990         (LINK_EMUL_PREFIX): Redefine.
991         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
992         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
993         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
994         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
995         (TARGET_OS_CPP_BUILTINS): Define.
996         (TARGET_DEFAULT): Redefine.
997         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
998         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
999         (LINK_SPEC): Don't redefine.
1000         (LINK_DEFAULT_CPU_EMUL): Redefine.
1001         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
1002         * sh.c (sh_asm_named_section): Don't declare / define.
1003         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
1004         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
1005         (sh64-*-elf* tm_file): Likewise.
1006         (sh-*-rtemself* tm_file): Likewise.
1007         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
1008         (sh-*-linux* tmake_file): Add sh/t-le.
1009         (sh-*-rtems* tm_file): Add sh/coff.h
1010         (sh-*-* tm_file): Likewise.
1011
1012 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
1013
1014         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
1015         CONSTANT_POOL_ADDRESS_P.
1016
1017         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
1018
1019 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
1020             Jeff Law <law@redhat.com>
1021
1022         * optabs.c (expand_binop): Fix nwords sign warnings.
1023         generate pseudo for add_optab.
1024
1025         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
1026         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
1027
1028 2002-05-28      Marc Espie <espie@openbsd.org>
1029
1030         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
1031         inherited from gas.h.
1032         (ASM_QUAD):  Undef.  OpenBSD does not support it.
1033
1034 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
1035
1036         * doc/install.texi (binaries): Change mingw binaries
1037         link to www.mingw.org.
1038
1039 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1040
1041         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
1042
1043 2002-05-28  Richard Henderson  <rth@redhat.com>
1044
1045         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
1046         bottom alignment for leaf functions.
1047
1048 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
1049
1050         * config/pa/milli32.S, config/pa/lib1funcs.asm,
1051         config/sparc/sol2-g1.asm: Delete unused files.
1052
1053 2002-05-28  Richard Henderson  <rth@redhat.com>
1054
1055         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
1056
1057         * flow.c (calculate_global_regs_live): Rename call_used to
1058         invalidated_by_call.  Initialize from regs_invalidated_by_call
1059         instead of call_used_regs.
1060
1061         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
1062         DECL_EXTERNAL.
1063
1064 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
1065
1066         * tree.h: Don't include real.h.
1067         Forward-declare struct realvaluetype.
1068         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
1069         contain it.
1070         (TREE_REAL_CST_PTR): New accessor.
1071         (TREE_REAL_CST): Update.
1072         * real.h: Include machmode.h.
1073         (realvaluetype): Make it struct realvaluetype, not a typedef.
1074         (build_real): Prototype here.
1075
1076         * tree.c: Include real.h.
1077         (build_real): Allocate the REAL_VALUE_TYPE as a separate
1078         object in GC memory, set TREE_REAL_CST_PTR to point to it.
1079         (build_real_from_int_cst): Use build_real.
1080         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
1081         REAL_CST.
1082
1083         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
1084         fold-const.c, print-tree.c, real.c: Include real.h.
1085         * Makefile.in: Update dependency lists.
1086
1087 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1088
1089         * basic-block.h (last_basic_block): Declare.
1090         (expunge_block_nocompact): Declaration removed.
1091         (compact_blocks): Declare.
1092         * cfg.c (last_basic_block): New variable.
1093         (expunge_block_nocompact): Removed.
1094         (expunge_block): Do not compact basic blocks.
1095         (compact_blocks): New.
1096         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
1097         longer change.
1098         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
1099         last_basic_block.
1100         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
1101         real positions of blocks.
1102         (delete_unreachable_blocks): Simplified -- quadratic behavior now
1103         cannot occur.
1104         (cleanup_cfg): Compact blocks.
1105         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
1106         basic_block_info varray.
1107         (flow_delete_block): Comment update.
1108         (back_edge_of_syntactic_loop_p): Modify position check code.
1109         (verify_flow_info): Update checking.
1110         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
1111         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1112         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
1113         indices no longer change.
1114         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
1115         last_basic_block.
1116         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
1117         * profile.c (branch_prob): Compact blocks.
1118         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
1119         last_basic_block.
1120
1121 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
1122
1123         * config/h8300/h8300.md (two anonymous patterns): New.
1124
1125 2002-05-28  David S. Miller  <davem@redhat.com>
1126
1127         * config/sparc/sparc.md (cpu): Tidy.
1128         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
1129         'trap'.
1130         (in_call_delay): Delete reference to 'return' type.
1131         (eligible_for_return_delay, in_return_delay, define_delay
1132         referencing those): Delete.
1133         (rest of file): Use new type attributes as appropriate.
1134         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
1135         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
1136         * config/sparc/ultra1_2.md (us1_single): New reservation.
1137         (us1_ialuX): Likewise.
1138         * config/sparc/ultra3.md (us3_single): Likewise.
1139         (us3_ialuX): Likewise.
1140         (us3_imul, us3_idiv): Tweak.
1141
1142 2002-05-28  Richard Henderson  <rth@redhat.com>
1143
1144         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
1145         STRING_CST.
1146
1147 2002-05-28  Richard Henderson  <rth@redhat.com>
1148
1149         * config.gcc: Obsolete mn10200.
1150
1151 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1152
1153         * cppexp.c (interpret_number): Optimize for single-digit
1154         and less-than-half-precision cases.
1155         (num_trim, num_positive, num_div_op): Cast constants.
1156
1157 2002-05-27  Bo Thorsen  <bo@suse.de>
1158
1159         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
1160         3.1 branch. The file was made by Jakub Jelinek.
1161         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1162         support so multilib doesn't break. And don't define this at all
1163         when -Dinhibit_libc is used.
1164         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
1165         * config/i386/t-linux64: Implement full multilib support. Patch
1166         originally done by Andreas Jaeger and Jakub Jelinek.
1167
1168 2002-05-27  Roger Sayle  <roger@eyesopen.com>
1169
1170         * c-common.c: Add support for __attribute__((nothrow)) to specify
1171         that a function cannot throw an exception (using TREE_NOTHROW).
1172         (handle_nothrow_attribute): New function to process this attribute.
1173
1174         * doc/extend.texi: Document the new nothrow function attribute.
1175
1176 2002-05-27  H.J. Lu  (hjl@gnu.org)
1177
1178         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
1179         (num_positive): Likewise.
1180         (num_div_op): Likewise.
1181
1182 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1183
1184         * c-common.c (c_common_init): Always use intmax_t.
1185
1186 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1187
1188         * c-common.c (c_common_init): Use intmax_t for now.
1189
1190 2002-05-24  Andrew Haley  <aph@redhat.com>
1191
1192         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
1193         if T is a boolean type.
1194
1195 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1196
1197         * basic-block.h (last_basic_block): Defined as synonym for
1198         n_basic_blocks.
1199         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1200         flow_depth_first_order_compute, flow_preorder_transversal_compute,
1201         flow_dfs_compute_reverse_init): Replaced relevant occurences of
1202         n_basic_blocks with last_basic_block.
1203         * cfgbuild.c (make_edges): Likewise.
1204         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1205         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1206         * combine.c (combine_instructions): Likewise.
1207         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1208         iterative_dataflow_bitmap): Likewise.
1209         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1210         calc_idoms, idoms_to_doms): Likewise.
1211         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1212         Likewise.
1213         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1214         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1215         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1216         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1217         delete_null_pointer_checks, compute_code_hoist_vbeinout,
1218         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1219         compute_store_table, build_store_vectors): Likewise.
1220         * haifa-sched.c (sched_init): Likewise.
1221         * ifcvt.c (if_convert): Likewise.
1222         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1223         pre_edge_lcm, compute_available, compute_nearerout,
1224         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1225         Likewise.
1226         * predict.c (estimate_probability, process_note_prediction,
1227         note_prediction_to_br_prob): Likewise.
1228         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1229         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1230         * regrename.c (copyprop_hardreg_forward): Likewise.
1231         * resource.c (init_resource_info): Likewise.
1232         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1233         init_regions, schedule_insns): Likewise.
1234         * ssa-ccp.c (ssa_const_prop): Likewise.
1235         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1236         * ssa.c (compute_dominance_frontiers,
1237         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1238
1239         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1240         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1241         sizes consistently.
1242
1243 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1244
1245         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1246         new.
1247         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1248         hoist_insn_after, hoist_insn_to_edge): New.
1249
1250 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
1251
1252         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1253         (PROP_FINAL): Include.
1254         * flow.c (life_analysis, update_life_info,
1255         init_propagate_block_info, mark_set_1, mark_used_rgs):
1256         Support SCAN_DEAD_STORE.
1257
1258 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1259
1260         * c-common.c (c_common_init): Set CPP arithmetic precision.
1261         * cppexp.c (cpp_num_part): Move typedef ...
1262         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1263         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1264         (sanity_checks): Update.
1265
1266 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
1267
1268         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1269         (mkheaders): New rule.
1270         (install-mkheaders): New rule.
1271         * configure.in (all_outputs): Add mkheaders.
1272         * configure: Regenerate.
1273         * mkheaders.in: New file.
1274
1275 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
1276
1277         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1278
1279 2002-05-26  Andreas Jaeger  <aj@suse.de>
1280
1281         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1282
1283 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1284
1285         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1286         right_shift): Remove.
1287         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1288         HIGH_PART): New.
1289         (struct op): Use cpp_num.
1290         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1291         num_part_mul, num_unary_op, num_binary_op, num_negate,
1292         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1293         num_div_op, num_lshift, num_rshift, append_digit): New.
1294         (interpret_number, parse_defined, eval_token, reduce): Update
1295         for two-integer arithmetic.
1296         (binary_handler): New typedef.
1297         (optab): Update.
1298         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1299         (_cpp_parse_expr, reduce): Update to handle two-integers.
1300         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1301
1302 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1303
1304         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1305         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1306         branch insn into account, do not assume 1.
1307         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
1308         over single word insn.  Handle upper half of I/O space too.
1309         * config/avr/avr.md (*sbrx_branch): Use it.
1310         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1311         (*sbix_branch, *sbix_branch_bit7): Likewise.
1312         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1313         Use RTL peepholes to optimize register operand sign tests.
1314
1315 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1316
1317         * config/avr/avr.c (avr_asm_only_p): New variable.
1318         (avr_override_options): Set it here if AVR1.
1319         (asm_file_start): Test it here, report an error if set.
1320
1321 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
1322
1323         * alias.c: Fix formatting.
1324         * attribs.c: Likewise.
1325         * bb-reorder.c: Likewise.
1326         * bitmap.c: Likewise.
1327         * bitmap.h: Likewise.
1328         * builtins.c: Likewise.
1329
1330 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
1331
1332         * reload.c (find_valid_class): Accept new argument DEST,
1333         choose class accordingly.
1334         (push_reload): Update callers.
1335
1336 2002-05-26  Andreas Jaeger  <aj@suse.de>
1337
1338         * combine.c (combine_instructions): Do not indent #if for
1339         traditional C.
1340
1341 2002-05-25  Richard Henderson  <rth@redhat.com>
1342
1343         * c-pragma.c (apply_pragma_weak): Convert value identifier to
1344         string for decl_attributes.
1345         (handle_pragma_weak): Call assemble_alias if we're modifying
1346         an existing decl.
1347
1348 2002-05-25  Richard Henderson  <rth@redhat.com>
1349
1350         PR target/6788
1351         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1352         using rtl instead of fprintf.
1353         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1354         * config/sparc/sparc-protos.h: Update.
1355
1356 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1357
1358         * Makefile.in (C_COMMON_H): Fix.
1359         Update other targets.
1360         * c-common.c: Don't include c-lex.h.
1361         (builtin_define_with_value): Make static and prototype.
1362         (builtin_define_std): Move from c-lex.h.
1363         * c-common.h (init_c_lex): Move from c-lex.h.
1364         * c-decl.c: Don't include c-lex.h.
1365         (make_pointer_declarator): Move from c-parse.in.
1366         * c-lex.c: Don't include c-lex.h.
1367         * c-lex.h: Remove.
1368         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1369         (make_pointer_declarator): Move to c-decl.c.
1370         * c-pragma.c: Don't include c-lex.h.
1371         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1372         * c-tree.h (make_pointer_declarator): New.
1373 doc:
1374         * passes.texi, tm.texi: Update.
1375 objc:
1376         * Make-lang.in: Update and correct.
1377         * objc-act.c: Don't include c-lex.h or cpplib.h.
1378 treelang:
1379         * treetree.c: Don't include c-lex.h.
1380 config:
1381         * darwin-c.c: Don't include c-lex.h.
1382         * c4x/c4x-c.c: Don't include c-lex.h.
1383         * c4x/t-c4x: Update.
1384         * i370/i370-c.c: Don't include c-lex.h.
1385         * i370/t-i370: Update.
1386         * i960/i960-c.c: Don't include c-lex.h.
1387         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1388         * i960/t-960bare: Update.
1389         * i960/t-vxworks: Update.
1390         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1391         * rs6000/t-darwin: Update.
1392         * rs6000/t-rs6000-c-rule: Update.
1393         * v850/v850-c.c: Don't include c-lex.h.
1394         * v850/v850.c: Don't include c-lex.h or cpplib.h.
1395
1396
1397 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1398
1399         * tree.def: Fix typos.
1400         * doc/install.texi: Likewise.
1401
1402 2002-05-25  Richard Henderson  <rth@redhat.com>
1403
1404         * configure.in (HAVE_AS_TLS): Add ia64 test.
1405         * configure: Rebuild.
1406         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1407         (override_options): Set it.
1408         (TARGET_HAVE_TLS): New.
1409         (sdata_symbolic_operand): Look for 's'.
1410         (tls_symbolic_operand): New.
1411         (ia64_expand_load_address): Abort for tls symbols.
1412         (gen_tls_get_addr): New.
1413         (gen_thread_pointer): New.
1414         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
1415         (rtx_needs_barrier): Add new unspecs.
1416         (ia64_encode_section_info): Handle tls symbols.
1417         (ia64_strip_name_encoding): Strip two encoding chars.
1418         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1419         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1420         (TARGET_OPTIONS): Add tls-size.
1421         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1422         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1423         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1424         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1425         (movsf, movdf): Likewise.
1426         (movdi_symbolic): Use match_scratch.  Don't split if we won't
1427         have a scratch availiable.
1428         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1429         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1430         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1431         * config/ia64/ia64-protos.h: Update.
1432         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1433         sdata_symbolic_operand.
1434         (ASM_OUTPUT_LABELREF): Strip two characters.
1435
1436 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1437
1438         * combine.c (simplify_set): Remove an unnecessary subreg.
1439
1440 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1441
1442         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1443
1444         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1445
1446 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1447
1448         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
1449
1450 2002-05-25  Roger Sayle  <roger@eyesopen.com>
1451
1452         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1453         (cond (compare x y) 0) into the equivalent (cond x y).
1454
1455 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1456
1457         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
1458
1459 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
1460
1461         * config.gcc: Remove all stanzas for previously obsoleted
1462         systems.  Where necessary, add explicit error stanzas to
1463         prevent removed systems from being misidentified as something
1464         else.  Begin a fresh obsoletions list, with the systems that
1465         were reprieved last round.
1466         * doc/install.texi: Remove all mention of dead targets.
1467         * fixinc/mkfixinc.sh: Likewise.
1468
1469         * config/arm/arm.h: Bit 31 of target_flags is no longer
1470         reserved.
1471
1472         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1473         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1474         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1475         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1476         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1477         config/alpha/osf12.h, config/alpha/osf2or3.h,
1478         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1479         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1480         config/clipper/clipper-protos.h, config/clipper/clipper.c,
1481         config/clipper/clipper.h, config/clipper/clipper.md,
1482         config/clipper/clix.h, config/convex/convex-protos.h,
1483         config/convex/convex.c, config/convex/convex.h,
1484         config/convex/convex.md, config/convex/fixinc.convex,
1485         config/convex/proto.h, config/elxsi/elxsi-protos.h,
1486         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1487         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1488         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1489         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1490         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1491         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1492         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1493         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1494         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1495         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1496         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1497         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1498         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1499         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1500         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1501         config/m68k/altos3068.h, config/m68k/apollo68.h,
1502         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1503         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1504         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1505         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1506         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1507         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1508         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1509         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1510         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1511         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1512         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1513         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1514         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1515         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1516         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1517         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1518         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1519         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1520         config/mips/dec-osf1.h, config/mips/elflorion.h,
1521         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1522         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1523         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1524         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1525         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1526         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1527         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1528         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1529         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1530         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1531         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1532         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1533         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1534         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1535         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1536         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1537         Delete file.
1538
1539 2002-05-24  Richard Henderson  <rth@redhat.com>
1540
1541         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1542         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1543         * config/i386/i386.c (tls_model_chars): Add leading space.
1544         (tls_symbolic_operand): Don't bias by 1.
1545         (legitimize_address): Don't unbias by 1.
1546
1547 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1548
1549         * lcm.c (optimize_mode_switching): Change bb used as indices
1550         to bb->index.
1551
1552 2002-05-24  Richard Henderson  <rth@redhat.com>
1553
1554         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1555         of update_life_info_in_dirty_blocks.
1556
1557 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1558
1559         PR other/6782
1560         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1561
1562 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1563
1564         PR preprocessor/6780
1565         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1566
1567 2002-05-24  Jim Blandy  <jimb@redhat.com>
1568
1569         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1570         entry with a type code of zero, marking the end of the compilation
1571         unit's macro info.
1572
1573 2002-05-24  Richard Henderson  <rth@redhat.com>
1574
1575         * varasm.c (asm_output_bss): Always output one byte.
1576         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1577
1578 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1579
1580         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1581         namespace.
1582
1583 2002-05-24  Andreas Jaeger  <aj@suse.de>
1584
1585         * ggc-page.c (alloc_page): Cast variables of type size_t to
1586         unsigned long, adjust printf format string.
1587         (ggc_alloc): Likewise.
1588         (ggc_print_statistics): Likewise.
1589         (ggc_print_statistics): Correct printf format string for SCALE to
1590         use unsigned long.
1591
1592 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1593
1594         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1595
1596 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1597             Zack Weinberg     <zack@codesourcery.com>
1598
1599         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1600         quoted strings.
1601         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1602         directive in assembly file.
1603         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1604         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1605         * config/pj/pj.h (ASM_FILE_START): Likewise.
1606         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1607         * config/avr/avr.c (asm_file_end): Likewise.
1608         * toplev.c (output_quoted_string): Handle possibly signed plain
1609         char.
1610         * toplev.h (output_clean_symbol_name): Declare
1611         * toplev.c (output_clean_symbol_name): Define.
1612         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1613         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1614
1615 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1616
1617         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1618
1619 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1620
1621         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1622         of size of unsigned.
1623
1624 2002-05-23  Richard Henderson  <rth@redhat.com>
1625
1626         * configure.in (HAVE_AS_TLS): New test.
1627         * config.in, configure: Rebuild.
1628         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1629         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1630         (override_options): Set it.
1631         (tls_model_chars, tls_symbolic_operand): New.
1632         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1633         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1634         (local_exec_symbolic_operand): New.
1635         (get_pic_label_name): Merge into output_set_got.
1636         (ix86_asm_file_end): Emit pic_label_name if defined.
1637         (legitimate_constant_p, constant_address_p): New.
1638         (legitimate_pic_operand_p): New.
1639         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1640         (legitimate_address_p): Likewise.
1641         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1642         (ix86_strip_name_encoding): New.
1643         (get_thread_pointer): New.
1644         (legitimize_address): Handle tls symbols.
1645         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1646         Remove UNSPEC_PLT.
1647         (struct machine_function): Add some_ld_name.
1648         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1649         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1650         (output_addr_const_extra): New.
1651         (maybe_get_pool_constant): New.
1652         (ix86_split_to_parts): Use it.
1653         (ix86_expand_move): Handle tls symbols.
1654         (ix86_tls_get_addr): New.
1655         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1656         (TARGET_OPTIONS): Add tls-dialect.
1657         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1658         (LEGITIMATE_CONSTANT_P): Likewise.
1659         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1660         (TARGET_STRIP_NAME_ENCODING): New.
1661         (ASM_OUTPUT_LABELREF): New.
1662         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1663         (OUTPUT_ADDR_CONST_EXTRA): New.
1664         (PREDICATE_CODES): Update.
1665         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1666         * config/i386/i386.md: Regroup and renumber unspec constants.
1667         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1668         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1669         (tls_global_dynamic, tls_local_dynamic_base): New.
1670         (tls_local_dynamic_once): New.
1671         * config/i386/i386-protos.h: Update.
1672
1673 2002-05-23  Richard Henderson  <rth@redhat.com>
1674
1675         * genemit.c (gen_insn): Print file:lineno comment before function.
1676         (main): likewise.
1677         * gensupport.c (struct queue_elem): Add filename member.
1678         (queue_pattern): Initialize it; update all callers.
1679         (process_include): Don't free filename.
1680         (read_md_rtx): Set read_rtx_filename.
1681
1682 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1683
1684         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1685
1686 2002-05-23  Richard Henderson  <rth@redhat.com>
1687
1688         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1689
1690 2002-05-23  Richard Henderson  <rth@redhat.com>
1691
1692         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1693         commentary from Mark.
1694
1695 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1696
1697         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1698         Use FOR_EACH_BB macros to iterate over basic block chain.
1699         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1700         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1701         Likewise.
1702         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1703         find_unreachable_blocks, create_edge_list, verify_edge_list,
1704         remove_fake_edges, add_noreturn_fake_exit_edges,
1705         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1706         Likewise.
1707         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1708         find_sub_basic_blocks): Likewise.
1709         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1710         Likewise.
1711         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1712         Likewise.
1713         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1714         Likewise.
1715         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1716         commit_edge_insertions, commit_edge_insertions_watch_calls,
1717         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1718         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1719         * conflict.c (conflict_graph_compute): Likewise.
1720         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1721         df_modified_p, df_refs_unlink, df_dump): Likewise.
1722         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1723         * final.c (compute_alignments): Likewise.
1724         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1725         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1726         count_or_remove_death_notes): Likewise.
1727         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1728         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1729         classic_gcse, compute_transp, cprop, compute_pre_data,
1730         compute_transpout, invalidate_nonnull_info,
1731         delete_null_pointer_checks_1, delete_null_pointer_checks,
1732         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1733         compute_store_table, build_store_vectors, store_motion): Likewise.
1734         * global.c (global_conflicts, mark_elimination): Likewise.
1735         * graph.c (print_rtl_graph_with_bb): Likewise.
1736         * haifa-sched.c (sched_init): Likewise.
1737         * ifcvt.c (if_convert): Likewise.
1738         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1739         compute_available, compute_nearerout, compute_rev_insert_delete,
1740         optimize_mode_switching): Likewise.
1741         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1742         * predict.c (estimate_probability, note_prediction_to_br_prob,
1743         propagate_freq, counts_to_freqs, expensive_function_p,
1744         estimate_bb_frequencies): Likewise.
1745         * profile.c (instrument_edges, get_exec_counts,
1746         compute_branch_probabilities, compute_checksum, branch_prob,
1747         find_spanning_tree): Likewise.
1748         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1749         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1750         Likewise.
1751         * regclass.c (scan_one_insn, regclass): Likewise.
1752         * regmove.c (mark_flags_life_zones, regmove_optimize,
1753         record_stack_memrefs): Likewise.
1754         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1755         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1756         * resource.c (find_basic_block): Likewise.
1757         * sched-ebb.c (schedule_ebbs): Likewise.
1758         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1759         find_single_block_region, find_rgns, schedule_insns)
1760         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1761         * ssa-ccp.c (optimize_unexecutable_edges,
1762         ssa_ccp_df_delete_unreachable_insns): Likewise.
1763         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1764         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1765         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1766         compute_coalesced_reg_partition, rename_equivalent_regs,
1767         convert_from_ssa): Likewise.
1768         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1769         process_for_unwind_directive): Likewise.
1770
1771         * df.c (FOR_ALL_BBS): Removed.
1772         * gcse.c (struct null_pointer_info): Type of current_block field
1773         changed.
1774         (struct reg_avail_info): Type of last_bb field changed.
1775         * config/ia64/ia64.c (block_num): Removed.
1776         (need_copy_state): Type changed.
1777         (last_block): New.
1778
1779 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1780
1781         * cppinit.c (mark_named_operators): Split out from init_builtins.
1782         (cpp_finish_options): Call it from here instead.
1783
1784 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1785
1786         * builtin-attrs.def: Update copyright years.
1787         (ATTR_NONNULL): New attribute identifier.
1788         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1789         attribute tree lists.
1790         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1791         format operand.
1792         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1793         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1794         attribute lists.  Chain the appropriate nonnull attribute.
1795         * c-format.c (check_format_arg): Remove null format string
1796         warning.
1797         * testsuite/gcc.dg/format/null-1.c: New test.
1798
1799 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1800
1801         * Makefile.in (ADAC): Define.
1802         (SYSLIBS): Define.
1803         (.SUFFIXES): Move before language makefile fragments.
1804         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1805
1806 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1807
1808         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1809         placed in common.
1810
1811 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1812
1813         * cfg.c (dump_flow_info): Print results of
1814         maybe_hot/probably_never_executed predicates.
1815         * toplev.c (open_dump_file): Print function frequency.
1816
1817 2002-05-23  David S. Miller  <davem@redhat.com>
1818
1819         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1820         regsets.
1821
1822 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1823
1824         * c-common.c (warn_nonnull): Declare.
1825         (c_common_attribute_table): Add "nonnull" attribute.
1826         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1827         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1828         check_function_arguments_recurse): New functions.
1829         * c-common.h (warn_nonnull): Declare extern.
1830         (check_function_arguments, check_function_arguments_recurse): New
1831         prototypes.
1832         * c-decl.c (c_decode_option): Add -Wnonnull option.
1833         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1834         format checking.
1835         (format_check_context): New structure.
1836         (check_format_info_recurse): Remove recursion and rename to...
1837         (check_format_arg): ...this.  Update comment.
1838         (check_format_info): Use check_function_arguments_recurse.
1839         * c-typeck.c (build_function_call): Call check_function_arguments
1840         instead of check_function_format.
1841         * doc/extend.texi: Document "nonnull" attribute.
1842         * doc/invoke.texi: Docuemnt -Wnonnull option.
1843         * testsuite/gcc.dg/nonnull-1.c: New test.
1844         * testsuite/gcc.dg/nonnull-2.c: New test.
1845
1846 2002-05-23  David S. Miller  <davem@redhat.com>
1847
1848         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1849         * cfgcleanup.c (cleanup_cfg): If it is set do not
1850         attempt to delete trivially dead insns.
1851         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1852         * toplev.c (rest_of_compilation): Document non-trivial aspect
1853         the RTL before optimize_save_area_alloca is run.
1854
1855 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1856
1857         * c-lex.c (indent_level): Remove.
1858         (cb_file_change, c_lex): Remove indent level handling.
1859         * c-lex.h (indent_level): Remove.
1860         * input.h (struct file_stack): Remove indent_level.
1861         * toplev.c (push_srcloc): Remove indent_level handling.
1862
1863 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1864
1865         PR target/6753
1866         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1867         of x in constraints for clarity.
1868         (sse_mov?fcc split): abort if op2 == op3.
1869         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1870         sse_movsfcc_const0_4): Add earlyclobber.
1871         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1872         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1873         Use Y instead of x in constraints.
1874
1875 2002-05-23  Richard Henderson  <rth@redhat.com>
1876
1877         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1878         (C++98 Thread-Local Edits): New subsection.
1879
1880         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1881         (ix86_arch): Set type to enum processor_type.
1882
1883         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1884         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1885
1886 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1887
1888         * configure.in: Fix as version test for binutils 2.12.1 releases
1889         (without dates).
1890         * configure: Rebuilt.
1891
1892 2002-05-23  Richard Henderson  <rth@redhat.com>
1893
1894         * config/i386/i386.c (get_pic_label_name): New.
1895         (load_pic_register): Remove.
1896         (output_set_got): New.
1897         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1898         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1899         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1900         (prologue_set_got, prologue_get_pc): Remove.
1901         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1902         (builtin_setjmp_receiver): Use gen_set_got.
1903         * config/i386/i386-protos.h: Update.
1904
1905 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1906
1907         * gcse.c (hash_expr): Do not use alias set for hashing.
1908
1909 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1910
1911         * dbxout.c (dbxout_class_name_qualifiers): New function.
1912         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1913
1914 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1915
1916         * cpperror.c (_cpp_begin_message): No special casing
1917         of CPP_FATAL_LIMIT.
1918         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1919         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1920         * cpplib.c (do_include_common): Use DL_ERROR.
1921         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1922         (DL_ICE): Renumber.
1923         * fix-header.c (read_scan_file): Update.
1924
1925 2002-05-22  Richard Henderson  <rth@redhat.com>
1926
1927         * config/i386/i386.c (ix86_expand_call): New function, extracted
1928         from md call patterns.  Add pic_offset_table_rtx to
1929         CALL_INSN_FUNCTION_USAGE when needed.
1930         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1931         (call_value_pop, call_value, untyped_call): Likewise.
1932         (call_exp, call_value_exp): Remove.
1933         * config/i386/i386-protos.h: Update.
1934
1935 2002-05-22  Richard Henderson  <rth@redhat.com>
1936
1937         * varasm.c (default_section_type_flags): Check for VAR_DECL
1938         before using DECL_THREAD_LOCAL.
1939
1940 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1941
1942         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1943         (STARTFILE_SPEC): Delete PE crt0.o.
1944         * config/rs6000/aix51.h: Same.
1945         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1946         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1947         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1948         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1949         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1950
1951 2002-05-22  Richard Henderson  <rth@redhat.com>
1952
1953         * varasm.c (default_section_type_flags): Handle tls data and
1954         default sections.
1955         (default_unique_section): Handle tls sections.
1956
1957 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1958
1959         * configure.in (CROSS): Define NATIVE_CROSS.
1960         * configure: Regenerate.
1961         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1962         (startfile_prefix_spec): New var.
1963         (static_specs): Add startfile_prefix_spec.
1964         (do_spec_2): Split out from..
1965         (do_spec): ..here.
1966         (main): Process startfile_prefix_spec.
1967         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1968         dynamic linker.
1969         (STARTFILE_PREFIX_SPEC): Define.
1970         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1971         absolute paths.
1972
1973 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1974
1975         * cpperror.c: Fix formatting.
1976         * cppexp.c: Likewise.
1977         * cppfiles.c: Likewise.
1978         * cpphash.c: Likewise.
1979         * cpphash.h: Likewise.
1980         * cppinit.c: Likewise.
1981         * cpplex.c: Likewise.
1982         * cpplib.c: Likewise.
1983         * cppmacro.c: Likewise.
1984         * cppmain.c: Likewise.
1985         * cppspec.c: Likewise.
1986
1987 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1988
1989         * combine.c (force_to_mode): Use gen_int_mode.
1990         Don't clear CONST_INT bits outside of mode.
1991
1992 2002-05-22  Richard Henderson  <rth@redhat.com>
1993
1994         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1995         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1996
1997 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1998
1999         PR c/6643
2000         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
2001         if DECL_SIZE_UNIT is INTEGER_CST.
2002
2003 2002-05-22  Richard Henderson  <rth@redhat.com>
2004
2005         * flow.c (life_analysis): Delete broken reg_label check.
2006
2007 2002-05-22  Richard Henderson  <rth@redhat.com>
2008
2009         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
2010         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2011
2012 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2013
2014         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
2015         (embed-bb.c): New rule.
2016         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
2017         * config/sh/embed_bb.c: Delete.
2018
2019 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
2020
2021         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
2022
2023 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
2024
2025         * config/h8300/h8300.md (*andorqi3): New.
2026
2027 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2028
2029         PR preprocessor/6517
2030         * Makefile.in: Update.
2031         * c-common.c (c_common_post_options): Add preprocessor
2032         errors to the error count.
2033         * c-lang.c (c_post_options): Kill.
2034         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2035         * hooks.h: Add header guards.
2036         * langhooks-def.h: Include hooks.h.
2037         (LANG_HOOKS_POST_OPTIONS): Update.
2038         * langhooks.h (struct lang_hooks): Update post_options.
2039         * toplev.c (parse_options_and_default_flags): Update.
2040 objc:
2041         * objc-lang.c (objc_post_options): Kill.
2042         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2043
2044 2002-05-21  Bruce Korb  <bkorb@gnu.org>
2045
2046         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
2047         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
2048         * fixinc/fixincl.x: regen.
2049
2050 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
2051
2052         * cfgbuild.c: Fix formatting.
2053         * cfg.c: Likewise.
2054         * cfgcleanup.c: Likewise.
2055         * cfglayout.c: Likewise.
2056         * cfgloop.c: Likewise.
2057         * cfgrtl.c: Likewise.
2058
2059 2002-05-21  Richard Henderson  <rth@redhat.com>
2060
2061         * c-common.h (enum rid): Add RID_THREAD.
2062         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
2063         (grokdeclarator): Grok __thread.
2064         * c-parse.in (reswords): Add __thread.
2065         (rid_to_yy): Add RID_THREAD.
2066
2067         * tree.h (DECL_THREAD_LOCAL): New.
2068         (struct tree_decl): Add thread_local_flag.
2069         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
2070         * tree.c (staticp): TLS variables are not static.
2071
2072         * target-def.h (TARGET_HAVE_TLS): New.
2073         * target.h (have_tls): New.
2074         * output.h (SECTION_TLS): New.
2075         * varasm.c (assemble_variable): TLS variables can't be common for now.
2076         (default_section_type_flags): Handle .tdata and .tbss.
2077         (default_elf_asm_named_section): Handle SECTION_TLS.
2078         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
2079
2080         * flags.h (flag_tls_default): Declare.
2081         * toplev.c (flag_tls_default): Define.
2082         (display_help): Display help for it.
2083         (decode_f_option): Set it.
2084
2085         * doc/extend.texi (Thread-Local): New node describing language-level
2086         thread-local storage.
2087         * doc/invoke.texi (-ftls-model): Document.
2088
2089         * fixinc/inclhack.def (thread_keyword): New.
2090         * fixinc/fixincl.x: Rebuild.
2091
2092 2002-05-21  Jeffrey A Law  <law@redhat.com>
2093
2094         * optabs.c (expand_binop): For double-word integer multiplies,
2095         do not compute intermediate results into something that is
2096         not a register (such as a SUBREG or MEM).
2097
2098         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
2099         (ix86_sched_reorder): Make sure to initialize scheduling
2100         data even when there's only one insn in the ready queue.
2101
2102 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
2103
2104         * genautomata.c (reserv_sets_hash_value): Fix a typo.
2105
2106 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
2107
2108         * genautomata.c (reserv_sets_hash_value): Define hash_value as
2109         set_el_t.  Transform the hash value into unsigned.
2110         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
2111         (transform_3): Add code to process `(A,B)+(D,E)'.
2112
2113 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
2114
2115         * reload1.c (do_output_reload): Run delete_output_reload
2116         only if optimizing.
2117
2118 2002-05-21  Roger Sayle  <roger@eyesopen.com>
2119
2120         PR middle-end/6600
2121         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
2122         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
2123         (can_store_by_pieces): ... and here to limit the largest mode used.
2124         Add a comment to document this function.
2125
2126 2002-05-21  Richard Henderson  <rth@redhat.com>
2127
2128         * flow.c (life_analysis): Fix test for deleted label.
2129
2130 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2131
2132         * doc/tm.texi: Fix typo.
2133
2134 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
2135
2136         * c-common.c (c_common_init): Set options->unsigned_char from
2137         flag_signed_char.
2138         (cb_register_builtins): Define __STRICT_ANSI__ and
2139         __CHAR_UNSIGNED__ here...
2140         * cppinit.c (init_builtins): Not here.
2141         (cpp_create_reader): unsigned_char option defaults to 0, not
2142         !DEFAULT_SIGNED_CHAR.
2143         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
2144         and -funsigned-char.
2145
2146         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
2147         * cpphash.c (_cpp_init_hashtable): Don't set it.
2148         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
2149         directly.  Clarify comment.
2150
2151 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2152
2153         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
2154         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
2155         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
2156         BASIC_BLOCK (n_basic_blocks - 1).
2157         * cfganal.c (can_fallthru, flow_call_edges_add,
2158         flow_preorder_transversal_compute): Too.
2159         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
2160         find_sub_basic_blocks): Too.
2161         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
2162         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
2163         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
2164         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
2165         * combine.c (this_basic_block): Type changed to basic_block.
2166         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
2167         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2168         get_last_value, distribute_notes, distribute_links): Too.
2169         * final.c (compute_alignments): Too.
2170         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
2171         * function.c (thread_prologue_and_epilogue_insns): Too.
2172         * gcse.c (compute_code_hoist_vbeinout): Too.
2173         * global.c (build_insn_chain): Too.
2174         * ifcvt.c (find_if_block, find_cond_trap): Too.
2175         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
2176         * regmove.c (regmove_optimize): Too.
2177         * resource.c (find_basic_block): Too.
2178         * sched-ebb.c (schedule_ebbs): Too.
2179         * ssa-dce.c (find_control_dependence, find_pdom): Too.
2180
2181 2002-05-21  Andreas Jaeger  <aj@suse.de>
2182
2183         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
2184
2185 2002-05-21  Richard Henderson  <rth@redhat.com>
2186
2187         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
2188         unspec names, not numbers.
2189
2190 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2191
2192         * doc/sourcebuild.texi: Mention snapshot-README and
2193         snapshot-index.html as needing updating for new front ends.
2194
2195 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2196
2197         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2198         disabling checking, and avoid multiple evaluation of RTX.
2199
2200 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
2201
2202         * bitmap.c (bitmap_find_bit): Return early if we have the correct
2203         element cached.
2204
2205 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2206
2207         * profile.c (gen_edge_profiler):  Set alias set before the memory is
2208         used.
2209
2210 2002-05-20  David S. Miller  <davem@redhat.com>
2211
2212         * cselib.c (max_value_regs): New.
2213         (cselib_lookup, cselib_invalidate_regno): Initialize it when
2214         adding new entries to the REG_VALUES table and we are dealing with
2215         a hard register.
2216         (clear_table): Initialize it.
2217         (cselib_invalidate_regno): Use it to determine which hard
2218         registers to scan when mode is not VOIDmode.
2219
2220 2002-05-20  Duraid Madina   <duraid@fl.net.au>
2221
2222         * tradcpp.c (fixup_newlines): Use old-style function header.
2223
2224 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
2225
2226         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2227
2228 2002-05-20  H.J. Lu  (hjl@gnu.org)
2229
2230         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2231
2232         * config/mips/mips.h (DFMODE_NAN): Defined.
2233         (SFMODE_NAN): Likewise.
2234
2235 2002-05-20  Dale Johannesen  <dalej@apple.com>
2236
2237         * combine.c (cant_combine_insn_p):  Back out my
2238         previous patch.
2239
2240 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
2241
2242         * params.c: Fix formatting.
2243         * params.h: Likewise.
2244         * predict.c: Likewise.
2245         * prefix.c: Likewise.
2246         * print-rtl.c: Likewise.
2247         * print-tree.c: Likewise.
2248         * profile.c: Likewise.
2249
2250 2002-05-20  H.J. Lu  (hjl@gnu.org)
2251
2252         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2253
2254 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
2255
2256         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2257         switches straight on to the assembler, do not abbreviate them.
2258         * config/arm/elf.h (ASM_SPEC): As above.
2259         * config/arm/semi.h (ASM_SPEC): As above.
2260         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2261         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2262         -mcpu=xscale on to the assembler by default.
2263         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2264
2265 2002-05-20  Richard Henderson  <rth@redhat.com>
2266
2267         * cse.c (canon_hash): Reorder do_not_record test.  Always
2268         allow pic_offset_table_rtx.
2269
2270 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
2271
2272         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2273         (expand_binop): Ditto (3 times).
2274
2275 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
2276
2277         * Makefile.in (distclean): Remove QMTest stuff.
2278         (QMTEST_PATH): New variable.
2279         (QMTESTFLAGS): Likewise.
2280         (QMTESTRUNFLAGS): Likewise.
2281         (QMTEST): Likewise.
2282         (QMTEST_GPP_TESTS): Likewise.
2283         (QMTEST_DIR): Likewise.
2284         (QMTEST_DIR/context): New target.
2285         (qmtest-g++): Likeise.
2286         (qmtest-gui): Likewise.
2287         (QMTEST_DIR/gpp-expected.qmr): Likewise.
2288
2289 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
2290
2291         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2292         an altivec register if TARGET_ALTIVEC.
2293
2294         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2295         to ALTIVEC_VECTOR_MODE.
2296         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2297         (rs6000_va_arg): Vectors may go in registers if they are not
2298         altivec vectors.
2299
2300 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
2301
2302         * protoize.c: Fix formatting.
2303
2304 2002-05-19  Richard Henderson  <rth@redhat.com>
2305
2306         * gensupport.c (init_include_reader): Merge into ...
2307         (process_include): ... here.  Simplify composite path creation.
2308         Plug memory leaks.  Fix file/line number tracking.  Do not
2309         process_define_cond_exec.  Return void.
2310         (process_rtx): Don't check process_include return value.
2311
2312 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2313
2314         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2315         fields.
2316         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2317         traversing basic block chain.
2318         (create_basic_block_structure, create_basic_block): Declaration changed.
2319         (link_block, unlink_block): Declare.
2320         * cfg.c (entry_exit_blocks): Initialize new fields.
2321         (link_block, unlink_block): New.
2322         (expunge_block_nocompact): Unlink basic block.
2323         (dump_flow_info): Print prev_bb/next_bb fields.
2324         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2325         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2326         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2327         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2328         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2329         (verify_flow_info): Check that list agrees with numbering.
2330
2331 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2332
2333         * c-common.c (preprocessing_asm): New macro.
2334         * c-lex.h (builtin_define, builtin_assert): Use pfile.
2335 doc:
2336         * tm.texi: Update.
2337 config/alpha:
2338         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2339         (CPP_SPEC): Simplify.
2340         (TARGET_CPU_CPP_BUILTINS): Update.
2341         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2342         (CPP_SPEC): Simplify.
2343         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2344         (TARGET_OS_CPP_BUILTINS): Update.
2345         * osf.h (CPP_XFLOAT_SPEC): Kill.
2346         (TARGET_OS_CPP_BUILTINS): Update.
2347         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2348         * osf5.h (CPP_XFLOAT_SPEC): Kill.
2349         * vms.h (CPP_SUBTARGET_SPEC): Kill.
2350         (TARGET_OS_CPP_BUILTINS): Update.
2351
2352 2002-05-19  Richard Henderson  <rth@redhat.com>
2353
2354         * varasm.c (default_binds_local_p): Fix typo.
2355
2356 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2357
2358         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2359         CONST_INT operand to the correct mode after adding 1 to it.
2360
2361 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
2362
2363         * config.gcc (powerpc-wrs-windiss*): New target.
2364
2365 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2366
2367         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2368         (ashrdi3): Use it.
2369
2370 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
2371
2372         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2373         alphasort.
2374         * config.in: Regenerated.
2375         * configure: Regenerated.
2376
2377 2002-05-19  Richard Henderson  <rth@redhat.com>
2378
2379         * target-def.h (TARGET_BINDS_LOCAL_P): New.
2380         * target.h (struct gcc_target): Move boolean fields to the end.
2381         Add binds_local_p.
2382         * varasm.c (default_binds_local_p): New.
2383         * output.h: Declare it.
2384
2385         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2386         * config/cris/cris.c (cris_encode_section_info): Likewise.
2387         * config/i386/i386.c (i386_encode_section_info): Likewise.
2388         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2389         * config/sh/sh.c (sh_encode_section_info): Likewise.
2390
2391         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2392         (TARGET_BINDS_LOCAL_P): New.
2393
2394 2002-05-19  Richard Henderson  <rth@redhat.com>
2395
2396         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2397         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2398         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2399
2400         * toplev.c (display_help): Kill -a -ax help.
2401
2402         * config/1750a/1750a.h, config/alpha/alpha.h,
2403         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2404         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2405         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2406         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2407
2408         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2409         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2410
2411         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2412         (ix86_output_function_block_profiler): Kill.
2413         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2414         (m68hc11_function_block_profiler): Kill.
2415         * config/m68hc11/m68hc11-protos.h: Update.
2416         * config/m88k/m88k.c (output_block_profiler): Kill.
2417         (output_function_block_profiler): Kill.
2418         * config/m88k/m88k-protos.h: Update.
2419
2420 2002-05-19  Richard Henderson  <rth@redhat.com>
2421
2422         * system.h (STRIP_NAME_ENCODING): Poison it.
2423         * output.h (STRIP_NAME_ENCODING): Remove.
2424         (default_strip_name_encoding): Declare.
2425         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2426         * target.h (strip_name_encoding): New.
2427         * varasm.c (default_strip_name_encoding): New.
2428
2429         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2430         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2431         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2432         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2433         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2434         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2435         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2436         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2437         config/v850/v850.h: Use the hook, not the macro.
2438
2439         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2440         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2441         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2442         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2443         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2444         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2445         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2446         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2447         config/v850/v850.c, config/v850/v850.h:
2448         Move STRIP_NAME_ENCODING to out-of-line function and add
2449         TARGET_STRIP_NAME_ENCODING.
2450
2451         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2452         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2453         with TARGET_STRIP_NAME_ENCODING referencing existing function;
2454         make function static.
2455
2456         * xcoffout.c: Include target.h
2457         * Makefile.in (xcoffout.o): Update.
2458
2459         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2460         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2461         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2462         reloc argument unused.
2463         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2464
2465         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2466         STRIP_NAME_ENCODING docs.
2467
2468 2002-05-19  Andreas Jaeger  <aj@suse.de>
2469
2470         * gengenrtl.c: Add prototype for excluded_rtx.
2471
2472         * real.h: Add prototype for exact_real_truncate.
2473
2474 2002-05-18  Richard Henderson  <rth@redhat.com>
2475
2476         * system.h (ENCODE_SECTION_INFO): Poison it.
2477         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2478         * target.h (encode_section_info): New.
2479         * varasm.c (make_decl_rtl, output_constant_def): Use it.
2480         * hooks.c (hook_tree_int_void): New.
2481         * hooks.h: Declare it.
2482
2483         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2484         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2485         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2486         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2487         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2488         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2489         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2490         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2491         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2492         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2493         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2494         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2495         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2496         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2497         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2498         referencing existing function.  Make function static.
2499
2500         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2501         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2502         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2503         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2504         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2505         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2506         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2507         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2508         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2509         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2510         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2511         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2512         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2513         Move ENCODE_SECTION_INFO to out-of-line function and add
2514         TARGET_ENCODE_SECTION_INFO.
2515
2516         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2517         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2518
2519         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2520         from SUBTARGET_*
2521         (switch_to_section): Replace in_rdata case with in_readonly_data.
2522
2523         * config/h8300/h8300.c (h8300_encode_label): Make static.
2524         * config/h8300/h8300-protos.h: Update.
2525
2526         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2527         from rs6000_encode_section_info; make static.
2528         (rs6000_xcoff_encode_section_info): New.
2529
2530         * config/v850/v850.c (v850_encode_data_area): Make static.
2531         * config/v850/v850-protos.h: Update.
2532
2533         * config/vax/vax.c: Include flags.h.
2534         (vms_select_section): Fix typo.
2535
2536         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2537         ENCODE_SECTION_INFO docs.
2538
2539 2002-05-18  Richard Henderson  <rth@redhat.com>
2540
2541         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2542         REGISTER_TARGET_PRAGMAS.
2543         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2544
2545         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2546
2547 2002-05-18  Richard Henderson  <rth@redhat.com>
2548
2549         * system.h (SELECT_RTX_SECTION): Poison.
2550         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2551         * target.h (select_rtx_section): New.
2552         * varasm.c (output_constant_pool): Use it.
2553         (default_select_rtx_section, default_elf_select_rtx_section): New.
2554         * output.h: Declare them.
2555
2556         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2557         * config/darwin.c (machopic_select_rtx_section): ... here.
2558         * config/darwin-protos.h: Update.
2559
2560         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2561         * config/nextstep.c (machopic_select_rtx_section): ... here.
2562         (nextstep_select_section): Rename variable to avoid macro clash.
2563         * config/nextstep-protos.h: Update.
2564
2565         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2566         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2567         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2568         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2569         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2570         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2571         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2572         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2573         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2574         (SELECT_RTX_SECTION): Remove.
2575
2576         * config/darwin.h, config/elfos.h, config/nextstep.h,
2577         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2578         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2579         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2580         config/sparc/lynx.h, config/xtensa/xtensa.c
2581         (TARGET_ASM_SELECT_RTX_SECTION): New.
2582
2583         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2584         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2585         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2586         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2587         (ia64_aix_select_rtx_section): New.
2588         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2589         redefining.
2590         * config/mips/mips.c (mips_select_rtx_section): Make static.
2591         Support ELF SHF_MERGE features.
2592         * config/mips/mips-protos.h: Update.
2593         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2594         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2595         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2596         make static, fall back to default_elf_select_rtx_section.
2597         * config/rs6000/rs6000-protos.h: Update.
2598         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2599         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2600         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2601         * config/romp/romp.c (romp_select_rtx_section): New.
2602         * config/s390/s390.c (s390_select_rtx_section): New.
2603         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2604         declarations before target macro definition.
2605         (xtensa_emit_call): Use static buffer.
2606         (xtensa_select_rtx_section): New.
2607         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2608         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2609         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2610
2611         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2612         SELECT_RTX_SECTION docs.
2613
2614 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2615
2616         * i386.md (movsi/movdi): Fix template.
2617         (sse2 patterns): Set attributes consistently.
2618
2619         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2620
2621 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2622
2623         * optabs.c (complex_part_zero_p): New.
2624         * (expand_cmplxdiv_straight): Use it.
2625         * (expand_cmplxdiv_wide): Ditto.
2626         * (expand_binop): Ditto.
2627
2628 2002-05-18  Richard Henderson  <rth@redhat.com>
2629
2630         * final.c (HAVE_READONLY_DATA_SECTION): New.
2631         (shorten_branches): Use it instead of ifdefs.
2632         * varasm.c (enum in_section): Add in_readonly_data.
2633         (text_section, data_section): Tidy.
2634         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2635
2636         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2637         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2638         (READONLY_DATA_SECTION): Don't undef.
2639
2640         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2641         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2642         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2643
2644         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2645         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2646         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2647         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2648
2649         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2650         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2651         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2652         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2653         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2654         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2655         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2656         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2657         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2658
2659         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2660         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2661         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2662         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2663         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2664         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2665
2666         * config/elfos.h, config/netware.h, config/svr3.h,
2667         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2668         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2669         config/h8300/h8300.h, config/i386/i386-interix.h,
2670         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2671         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2672
2673         * config/elfos.h, config/netware.h, config/svr3.h,
2674         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2675         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2676         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2677         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2678
2679         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2680         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2681         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2682         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2683         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2684         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2685         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2686         config/rs6000/sysv4.h, config/v850/v850.h
2687         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2688         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2689
2690         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2691         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2692         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2693         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2694         * config/alpha/alpha.c (alpha_start_function): Likewise.
2695         (alpha_write_linkage): Likewise.
2696         * config/m32r/m32r.c (m32r_select_section): Likewise.
2697         * config/m88k/m88k.c (m88k_select_section): Likewise.
2698         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2699         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2700         (rs6000_elf_select_section): Likewise.
2701         * config/v850/v850.c (v850_select_section): Likewise.
2702
2703         * config/1750a/1750a.h, config/i860/sysv3.h
2704         (READONLY_DATA_SECTION_ASM_OP): New.
2705         READONLY_DATA_SECTION_ASM_OP.
2706         * config/i386/interix.c, config/i386/winnt.c
2707         (i386_pe_unique_section): Always use .rdata prefix.
2708         * config/pa/som.h (readonly_data): Always switch to read-only section.
2709         (READONLY_DATA_SECTION): Predicate on flag_pic.
2710         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2711         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2712         (READONLY_DATA_SECTION): Update.
2713
2714 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2715
2716         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2717         is used without -Wformat.
2718         * c-common.h (warn_format_zero_length): Declare extern.
2719         * c-decl.c (warn_options): Add "format-zero-length".
2720         * c-format.c (warn_format_zero_length): Declare.
2721         (set_Wformat): Set warn_format_zero_length for -Wformat.
2722         (check_format_info): Only warn about zero-length formats if
2723         warn_format_zero_length is true.  Include the format type
2724         name in the warning message.
2725         * doc/invoke.texi: Document -Wformat-zero-length.
2726         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2727
2728 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2729
2730         * timevar.c: Fix formatting.
2731         * tlink.c: Likewise.
2732         * toplev.c: Likewise.
2733         * tree-dump.c: Likewise.
2734         * tree-inline.c: Likewise.
2735
2736 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2737
2738         * cppinit.c (cpp_post_options): If preprocessed, turn off
2739         traditional.  If traditional, turn off column numbers.
2740         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2741         * cpptrad.c (handle_newline): Update line_base.
2742         (skip_comment): Handle -Wcomment.
2743
2744 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2745
2746         * cppinit.c (struct builtin): Remove unused fields.
2747         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2748         (operator_array): New - was second half of builtin_array.
2749         (init_builtins): Simplify loop over builtin_array/operator_array.
2750
2751 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2752
2753         * defaults.h (UNIQUE_SECTION): Remove.
2754         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2755
2756 2002-05-17  Richard Henderson  <rth@redhat.com>
2757
2758         * expr.c (init_expr_once): Don't use start/end_sequence.
2759         Use rtx_alloc instead of emit_insn.
2760         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2761         (lang_independent_init): ... not here.
2762
2763 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2764
2765         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2766
2767 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2768
2769         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2770         for fixed registers, possibly used for global register variables.
2771         (initial_elimination_offset, avr_output_function_prologue,
2772         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2773
2774 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2775
2776         * Makefile.in: Update for cpptrad.c.
2777         * cpphash.h (struct cpp_buffer): New members for buffer
2778         overlays.
2779         (struct cpp_reader): New members for traditional output.
2780         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2781         * cppinit.c (cpp_create_reader): Set trad_line.
2782         (cpp_destroy): Free trad_out_base if used.
2783         (cpp_read_main_file): Overlay an empty buffer if traditional.
2784         (cpp_finish_options): Don't do builtins.
2785         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2786         (cpp_handle_option): Handle it.
2787         * cpplex.c (continue_after_nul): New.
2788         (_cpp_lex_direct): Use handle_nul.
2789         * cpplib.h (struct cpp_options): New traditional option.
2790         * cpptrad.c: New file.
2791
2792 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2793
2794         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2795         and set the options flag.
2796         * cppinit.c (lang_flags): Remove objc.
2797         (lang_defaults): Remove OBJC and OBJCXX.
2798         (set_lang): Update.
2799         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2800         (cpp_handle_option): Remove -+ and -lang-objc++.
2801         For ObjC, just set a flag.
2802         (print_help): Update.
2803         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2804
2805 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2806
2807         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2808         bootstrap with -mips3.
2809
2810 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2811
2812         * final.c: Fix formatting.
2813         * fix-header.c: Likewise.
2814         * flow.c: Likewise.
2815         * fold-const.c: Likewise.
2816         * function.c: Likewise.
2817
2818 2002-05-17  David S. Miller  <davem@redhat.com>
2819
2820         PR c/6689, PR optimization/6615
2821         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2822         and make it a pointer to rtx.  Update comments.
2823         (update_equiv_regs): When scanning for equivalences, record
2824         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2825         it while making the equiv replacements.
2826
2827 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2828
2829         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2830
2831 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2832
2833         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2834         when encoding visibility into SYMBOL_REF_FLAG.
2835
2836 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2837
2838         * expr.c (force_operand): Fix reversed move.
2839
2840 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2841
2842         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2843         that can be ignored.
2844
2845 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2846
2847         * doc/install.texi (Final install): Recommend to install into a
2848         "clean" target directory.
2849
2850 2002-05-17  Richard Henderson  <rth@redhat.com>
2851
2852         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2853         for code blocks.  Tidy whitespace.
2854
2855 2002-05-17  Richard Henderson  <rth@redhat.com>
2856
2857         * hooks.c (hook_tree_bool_false): New.
2858         * hooks.h: Declare it.
2859         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2860         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2861         * target.h (select_section, unique_section): New.
2862         (in_small_data_p): New.
2863         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2864         (variable_section, output_constant_def_contents): Likewise.
2865         (default_select_section, default_unique_section): New.
2866         (categorize_decl_for_section, default_elf_select_section): New.
2867         * output.h: Declare them.
2868
2869         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2870         (TARGET_ASM_SELECT_SECTION): New.
2871         (SELECT_SECTION): Move ...
2872         * config/darwin.c (machopic_select_section): ... here.
2873         * config/darwin-protos.h: Update.
2874
2875         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2876         (SELECT_SECTION): Move ...
2877         * config/nextstep.c (nextstep_select_section): ... here.
2878         * config/nextstep-protos.h: Update.
2879
2880         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2881         (TARGET_ASM_SELECT_SECTION): New.
2882         * config/svr3.h (SELECT_SECTION): Remove.
2883
2884         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2885         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2886         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2887         (alpha_encode_section_info): Use it.
2888         * config/alpha/alpha-protos.h: Update.
2889         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2890         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2891         (TARGET_ASM_SELECT_SECTION): New.
2892         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2893
2894         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2895         (TARGET_ASM_UNIQUE_SECTION): New.
2896
2897         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2898         (avr_unique_section): Rename from unique_section; make static.
2899         * config/avr/avr-protos.h: Update.
2900         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2901
2902         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2903
2904         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2905         (TARGET_ASM_UNIQUE_SECTION): New.
2906         * config/i386/i386-interix.h: Likewise.
2907         * config/i386/win32.h: Likewise.
2908         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2909         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2910         * config/i386/sco5.h (SELECT_SECTION): Remove.
2911         (TARGET_ASM_SELECT_SECTION): New.
2912         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2913
2914         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2915         instead of SELECT_SECTION.
2916         * config/m68k/dpx2.h: Likewise.
2917         * config/rs6000/lynx.h: Likewise.
2918
2919         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2920         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2921         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2922         (ia64_in_small_data_p): New.
2923         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2924         (ia64_aix_select_section, ia64_aix_unique_section): New.
2925         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2926         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2927
2928         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2929         (TARGET_ASM_SELECT_SECTION): New.
2930         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2931         * config/m32r/m32r-protos.h: Update.
2932
2933         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2934         (SELECT_SECTION): Move ...
2935         * config/m88k/m88k.c (m88k_select_section): ... here.
2936
2937         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2938         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2939         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2940         (mcore_unique_section): Make static.
2941         * config/mcore/mcore-protos.h: Update.
2942
2943         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2944         (TARGET_ASM_UNIQUE_SECTION): New.
2945         * config/mips/elf64.h: Likewise.
2946         * config/mips/iris6gld.h: Likewise.
2947         * config/mips/linux.h: Likewise.
2948         * config/mips/mips-protos.h: Update.
2949         * config/mips/mips.c (mips_select_section): Add align argument.
2950         * config/mips/mips.h (SELECT_SECTION): Remove.
2951         (TARGET_ASM_SELECT_SECTION): New.
2952
2953         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2954         * config/mmix/mmix.c (mmix_select_section): Remove.
2955         (mmix_unique_section): Remove.
2956         * config/mmix/mmix-protos.h: Update.
2957
2958         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2959         (SELECT_SECTION): Move ...
2960         * config/pa/pa.c (pa_select_section): ... here.
2961         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2962
2963         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2964         from rs6000_select_section and make static.
2965         (rs6000_elf_unique_section): Similarly.
2966         (rs6000_xcoff_select_section): From xcoff.h.
2967         (rs6000_xcoff_unique_section): Likewise.
2968         * config/rs6000/rs6000-protos.h: Update.
2969         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2970         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2971         * config/rs6000/xcoff.h: Likewise.
2972
2973         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2974         (SELECT_SECTION): Move ...
2975         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2976
2977         * config/v850/v850.h (SELECT_SECTION): Move ...
2978         * config/v850/v850.c (v850_select_section): ... here.
2979         (TARGET_ASM_SELECT_SECTION): New.
2980
2981         * config/vax/vms.h (SELECT_SECTION): Move ...
2982         * config/vax/vax.c (vms_select_section): ... here.
2983         (TARGET_ASM_SELECT_SECTION): New.
2984
2985         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2986         for the target hooks.
2987
2988 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
2989
2990         * config/arm/arm.c (emit_multi_reg_push): Do not set
2991         RTX_FRAME_RELATED_P on the SEQUENCE.
2992
2993 2002-05-16  Richard Henderson  <rth@redhat.com>
2994
2995         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2996         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
2997
2998 2002-05-16  Richard Henderson  <rth@redhat.com>
2999
3000         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
3001
3002         * config/ia64/ia64.c (saveable_obstack): Do not declare.
3003
3004 2002-05-16  Richard Henderson  <rth@redhat.com>
3005
3006         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
3007         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
3008         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
3009         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
3010         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
3011         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
3012         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
3013         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
3014         Revert "Basic block renumbering removal", and two followup patches.
3015
3016 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
3017
3018         * lcm.c (optimize_mode_switching): Revert previous change.
3019
3020 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3021
3022         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
3023         with only extant block numbers.
3024
3025 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
3026
3027         * lcm.c (optimize_mode_switching): Fix typo.
3028
3029 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3030
3031         * flow.c (calculate_global_regs_live): Queue blocks in program order.
3032
3033 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3034
3035         * doc/install.texi (Configuration): Document PWDCMD.
3036
3037 2002-05-16  Dale Johannesen  <dalej@apple.com>
3038
3039         * combine.c (cant_combine_insn_p):  Reenable combinations
3040         involving hard regs unless CLASS_LIKELY_SPILLED_P.
3041
3042 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3043
3044         * c-common.c (cb_register_builtins): Handle more built-ins
3045         here rather than in gcc.c specs.
3046         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
3047         (cpp_options): Pass -O flags even when only preprocessing.
3048         * toplev.c (set_fast_math_flags): New prototype.
3049         (fast_math_flags_set_p): New.
3050         (set_no_fast_math_flags): Remove.
3051         (decode_f_option): Update.
3052         * toplev.h (set_fast_math_flags): Update.
3053         (fast_math_flags_set_p): New.
3054         (set_no_fast_math_flags): Remove.
3055 config:
3056         * c4x/c4x.c (c4x_override_options): Update.
3057
3058 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
3059
3060         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
3061         Default-define here.
3062         (builtin_define_with_value): Can now wrap the expansion in
3063         quotation marks if such is wanted.
3064         (cb_register_builtins): Update calls to builtin_define_with_value.
3065         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
3066         here.
3067         (c_common_init): Set options->stdc_0_in_system_headers.
3068         * c-lex.h: Update prototype of builtin_define_with_value.
3069         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
3070         and REGISTER_PREFIX.
3071
3072         * cppinit.c (VERS, ULP, C, X): Kill.
3073         (builtin_array): Remove entries for __VERSION__,
3074         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
3075         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
3076         a constant.
3077         (init_builtins): Kill off a bunch of now-dead code.
3078         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
3079         -fno-leading-underscore.
3080         (cpp_handle_option): Remove code to set user_label_prefix.
3081         (cpp_post_options): Likewise.
3082
3083         * cpplib.h (struct cpp_options): Remove user_label_prefix.
3084         (stdc_0_in_system_headers): New.
3085         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
3086         stdc_0_in_system_headers) too to decide the value of __STDC__.
3087
3088         * tradcpp.c (user_label_prefix): Kill.
3089         (main): Remove code handling -f(no-)leading-underscore.
3090         (initialize_builtins): Don't define __REGISTER_PREFIX__
3091         or __USER_LABEL_PREFIX__.
3092         (install_value): Wrap compound statement in dummy loop so the
3093         macro works properly in an if statement.
3094
3095
3096 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
3097
3098         * loop.h (struct loop_info): Add member has_prefetch.
3099         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
3100         (prescan_loop): Initialize has_prefetch.
3101         (struct prefetch_info): Change prefetch_in_loop and
3102         prefetch_before_loop from bit fields to ints.
3103         (emit_prefetch_instructions): Several small fixes.
3104         (check_dbra_loop): Don't reverse loop that uses prefetch.
3105
3106 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3107
3108         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
3109         * configure.in: Likewise.
3110         * fixinc/check.tpl: Likewise.
3111         * fixinc/fixinc.dgux: Likewise.
3112         * fixinc/fixinc.svr4: Likewise.
3113         * fixinc/fixinc.winnt: Likewise.
3114         * fixinc/fixincl.sh: Likewise.
3115         * fixproto: Likewise.
3116         * configure: Regenerate.
3117
3118 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3119
3120         Basic block renumbering removal:
3121         * basic_block.h (struct basic_block_def): Renamed index to sindex,
3122         added prev_bb and next_bb fields.
3123         (n_basic_blocks): Renamed to num_basic_blocks.
3124         (last_basic_block): New, index of last basic block.
3125         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3126         traversing basic block chain.
3127         (BLOCK_NUM): index -> sindex.
3128         (create_basic_block_structure, create_basic_block): Declaration changed.
3129         (debug_num2bb): Declare.
3130         (expunge_block_nocompact): Declaration removed.
3131         (link_block, unlink_block, compact_blocks): Declare.
3132         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
3133         * cfg.c (entry_exit_blocks): Initialize new fields.
3134         (clear_edges, alloc_block, expunge_block, cached_make_edge,
3135         redirect_edge_pred, dump_flow_info, dump_edge_info,
3136         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
3137         free_aux_for_edges): Modified.
3138         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
3139         (expunge_block_nocompact): Removed.
3140         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
3141         find_unreachable_blocks, create_edge_list, print_edge_list,
3142         verify_edge_list, flow_edge_list_print, remove_fake_successors,
3143         remove_fake_edges, flow_reverse_top_sort_order_compute,
3144         flow_depth_first_order_compute, flow_preorder_transversal_compute,
3145         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
3146         flow_dfs_compute_reverse_execute): Modified.
3147         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
3148         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
3149         Modified.
3150         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3151         merge_blocks_move_predecessor_nojumps,
3152         merge_blocks_move_successor_nojumps, merge_blocks,
3153         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
3154         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
3155         * cfglayout.c (skip_insns_after_block, label_for_bb,
3156         record_effective_endpoints, scope_to_insns_finalize,
3157         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
3158         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
3159         cfg_layout_duplicate_bb): Modified.
3160         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
3161         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3162         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
3163         flow_loops_find, flow_loop_outside_edge_p): Modified.
3164         * cfgrtl.c (create_basic_block_structure, create_basic_block,
3165         flow_delete_block, compute_bb_for_insn, split_block,
3166         try_redirect_by_replacing_jump, redirect_edge_and_branch,
3167         force_nonfallthru_and_redirect, tidy_fallthru_edge,
3168         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
3169         commit_edge_insertions, commit_edge_insertions_watch_calls,
3170         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3171         purge_all_dead_edges): Modified.
3172         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
3173         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3174         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
3175         Modified.
3176         * conflict.c (conflict_graph_compute): Modified.
3177         * df.c (FOR_ALL_BBS): Removed.
3178         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3179         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
3180         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
3181         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
3182         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3183         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
3184         * final.c (compute_alignments, final_scan_insn): Modified.
3185         * flow.c (verify_local_live_at_start, update_life_info,
3186         update_life_info_in_dirty_blocks, free_basic_block_vars,
3187         delete_noop_moves, calculate_global_regs_live,
3188         initialize_uninitialized_subregs, allocate_bb_life_data,
3189         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
3190         mark_used_reg, count_or_remove_death_notes): Modified.
3191         * function.c (thread_prologue_and_epilogue_insns): Modified.
3192         * gcse.c (struct null_pointer_info): Change typo of current_block
3193         to basic_block.
3194         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3195         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3196         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3197         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3198         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3199         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3200         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3201         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3202         pre_delete, one_pre_gcse_pass, compute_transpout,
3203         invalidate_nonnull_info, delete_null_pointer_checks_1,
3204         free_code_hoist_mem, compute_code_hoist_vbeinout,
3205         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3206         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3207         compute_store_table, build_store_vectors, insert_insn_start_bb,
3208         insert_store, replace_store_insn, free_store_memory, store_motion):
3209         Modified.
3210         * global.c (global_alloc, global_conflicts, mark_elimination,
3211         build_insn_chain): Modified.
3212         * graph.c (print_rtl_graph_with_bb): Modified.
3213         * haifa-sched.c (sched_init): Modified.
3214         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3215         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3216         if_convert): Modified.
3217         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3218         compute_insert_delete, pre_edge_lcm, compute_available,
3219         compute_farthest, compute_nearerout, compute_rev_insert_delete,
3220         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3221         Modified.
3222         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3223         * loop.c (loop_dump_aux): Modified.
3224         * predict.c (combine_predictions_for_insn, estimate_probability,
3225         last_basic_block_p, process_note_prediction, process_note_predictions,
3226         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3227         expensive_function_p, estimate_bb_frequencies,
3228         compute_function_frequency): Modified.
3229         * print-rtl.c (print_rtx): Modified.
3230         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3231         get_exec_counts, compute_branch_probabilities, compute_checksum,
3232         branch_prob, find_spanning_tree): Modified.
3233         * recog.c (split_all_insns, peephole2_optimize): Modified.
3234         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3235         convert_regs_1, convert_regs_2, convert_regs): Modified.
3236         * regclass.c (scan_one_insn, regclass): Modified.
3237         * regmove.c (mark_flags_life_zones, regmove_optimize,
3238         combine_stack_adjustments): Modified.
3239         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3240         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3241         * reorg.c (dbr_schedule): Modified.
3242         * resource.c (find_basic_block, init_resource_info): Modified.
3243         * sbitmap.c (sbitmap_intersection_of_succs,
3244         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3245         sbitmap_union_of_preds): Modified.
3246         * sched-deps.c (init_dependency_caches): Modified.
3247         * sched-ebb.c (schedule_ebbs): Modified.
3248         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3249         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3250         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3251         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3252         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3253         ssa_const_prop): Modified.
3254         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3255         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3256         * ssa.c (remove_phi_alternative, find_evaluations,
3257         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3258         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3259         make_regs_equivalent_over_bad_edges,
3260         make_equivalent_phi_alternatives_equival,
3261         compute_conservative_reg_partition,
3262         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3263         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3264         Modified.
3265
3266 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
3267
3268         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3269
3270 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
3271
3272         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3273         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3274         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3275         calling CONSTANT_POOL_ADDRESS_P.
3276         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3277         to decide whether to define __arm__ or __thumb.
3278         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3279         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3280
3281 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3282
3283         * config/arc/arc.h (CPP_PREDEFINES): Remove.
3284         (CPP_SPEC): Update.
3285         (TARGET_CPU_CPP_BUILTINS): New.
3286
3287 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3288
3289         * cpphash.h (cpp_macro): Move here, and make expansion a union.
3290         * cppmacro.c (cpp_macro): Remove.
3291         (enter_macro_context, replace_args, warn_of_redefinition,
3292         _cpp_create_definition, cpp_macro_definition): Update.
3293
3294 2002-05-16  Jason Merrill  <jason@redhat.com>
3295
3296         * config/mips/mips.c (mips_output_external): Don't do sdata
3297         optimization for a variable with DECL_COMDAT set.
3298
3299 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3300
3301         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3302         Cleanups for accepting modifiers on pointers.
3303         Fix predicate typos.
3304         Allow long pointers as well as int pointers.
3305
3306 2002-05-15  Richard Henderson  <rth@redhat.com>
3307
3308         * varasm.c (merge_weak): Remove special case for extern and common.
3309
3310 2002-05-15  Matt Hiller  <hiller@redhat.com>
3311
3312         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3313         XFAILing.
3314         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3315         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3316         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3317         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3318         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3319         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3320
3321 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3322
3323         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3324
3325 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3326
3327         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3328         ("altivec_mfvscr"): Read from VSCR.
3329
3330         Add vscr sets for the following insns: altivec_vctuxs,
3331         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3332         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3333         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3334         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3335         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3336         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3337         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3338         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3339         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3340         altivec_vsum2sws, altivec_vsumsws.
3341
3342         * config/rs6000/rs6000.h: Add VSCR fixed register.
3343         (CALL_REALLY_USED_REGISTERS): Add vscr.
3344         (CALL_USED_REGISTERS): Same.
3345         (FIXED_REGISTERS): Same.
3346         (REG_ALLOC_ORDER): Same.
3347         (reg_class): Add VSCR_REGS.
3348         (REG_CLASS_NAMES): Same.
3349         (REG_CLASS_CONTENTS): Same.
3350         (VSCR_REGNO): New.
3351         (REGISTER_NAMES): Add vscr.
3352         (DEBUG_REGISTER_NAMES): Same.
3353         (ADDITIONAL_REGISTER_NAMES): Same.
3354         (FIRST_PSEUDO_REGISTER): Increment.
3355         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3356
3357 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
3358
3359         * fold-const.c (fold): Fix a typo.
3360
3361 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
3362
3363         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3364         comparison against the highest or lowest integer value before
3365         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3366         transformation and that of an unsigned comparison against 0
3367         right after.
3368
3369 2002-05-15  Richard Henderson  <rth@redhat.com>
3370
3371         * varasm.c (merge_weak): Error for any weakening after definition.
3372         Adjust weakening after use warning to catch more cases.
3373         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3374         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3375
3376 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
3377
3378         * invoke.texi (-malign-double): Re-add lost warning.
3379
3380         * i386-protos.h (x86_output_mi_thunk): Declare.
3381         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3382         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3383
3384         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3385         when flag_asynchronous_unwind_tables is set.
3386
3387         * flags.h (flag_reorder_functions): Declare.
3388         * function.c (prepare_function_start): Initialize frequnecy.
3389         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3390         * Makefile.in (predict.o): Add dependency on target.h and params.h
3391         * defaults.h (HOT_TEXT_SECTION_NAME,
3392         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3393         * predict.c (choose_function_section): New function.
3394         (estimate_bb_frequencies): Use it.
3395         * toplev.c (flag_reorder_functions): New global variable.
3396         (lang_independent_options): New.
3397         (parse_options_and_default_flags): Set.
3398         * varasm.c (assemble_start_function): Bypass functdion alignment
3399         for never executed functions.
3400         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3401         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3402         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3403         Document.
3404
3405         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3406
3407         * predict.c: Inlude profile.h
3408         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3409         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3410         Use the information about maximal counter in the program.
3411
3412         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3413
3414         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3415         probably_never_executed_bb_p): New functions.
3416         * cfgcleanup.c (outgoing_edges_match): Use them.
3417         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3418         (maybe_hot_bb_p, probably_cold_bb_p,
3419         probably_never_executed_bb_p): New functions.
3420
3421         * function.h (function): Add new field function_frequency.
3422         * predict.c (compute_function_frequency): New function.
3423         (estimate_probability): Call it.
3424
3425 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3426
3427         PR optimization/5172, optimization/5200
3428         * gcse.c (gcse_main): Disable store_motion.
3429
3430 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
3431
3432         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3433         (c_common_nodes_and_builtins): Use it.
3434         (builtin_define_with_value): New function.
3435         (cb_register_builtins): Define __SIZE_TYPE__,
3436         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3437         using builtin_define_with_value.  Use consistent notation when
3438         defining __GXX_WEAK__.
3439         (WCHAR_TYPE_SIZE): Don't redefine.
3440         (combine_strings): Don't use WCHAR_TYPE_SIZE.
3441
3442         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3443         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3444         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3445         * tradcpp.c (initialize_builtins): Likewise.
3446         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3447
3448         * c-lex.h (builtin_define_with_value): Prototype.
3449         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3450         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3451         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3452
3453         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3454         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3455         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3456         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3457         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3458         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3459         config/sparc/sol2-bi.h, config/sparc/sparc.h:
3460         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
3461         to __SIZE_TYPE__ etc from all spec strings. When this makes
3462         extra specs empty, delete them.
3463
3464 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3465
3466         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3467         for PA8000 or generating dwarf2 call frame information.
3468         (output_call): Remove DO_FRAME_NOTES check from return pointer
3469         optimization.
3470         (following_call): Return 0 when scheduling for PA8000 or generating
3471         dwarf2 call frame information.  Revise comment.
3472
3473 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3474
3475 config/alpha:
3476         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3477         and __IEEE_FP_INEXACT as appropriate.
3478         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3479         (CPP_SPEC): Remove ieee defines.
3480         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3481
3482 2002-05-14  Richard Henderson  <rth@redhat.com>
3483
3484         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3485         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3486
3487 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3488
3489         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3490         (CPP_SPEC): Update.
3491         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3492         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3493         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3494         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3495         (EXTRA_SPECS): Update.
3496         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3497         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3498         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3499         define TARGET_OS_CPP_BUILTINS if necessary.
3500
3501 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3502
3503         * gcc.c (cpp_options): Must pass -m* and -f* options
3504         to the front end even when only preprocessing.
3505         (cc1_options): Remove redundant -lang-c.
3506         * tradcpp.c (main): Ignore -m options.
3507 objc:
3508         * lang-specs.h: Similarly.
3509
3510 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3511
3512         * genautomata.c (transform_3): Add code for transformation
3513         `(A,B,...)+C -> A+C,B,...'.
3514
3515 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3516
3517         * final.c (end_final): Do not output profile_arcs constructor, when
3518         no functions are instrumented.
3519
3520 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3521
3522         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3523
3524 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3525
3526         * doc/install.texi: Remove special markup originally required for
3527         HTML generation with texi2html.
3528
3529 2002-05-14  Andreas Schwab  <schwab@suse.de>
3530
3531         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3532         SELECT_SECTION.
3533         (UNIQUE_SECTION): Define to get small data correctly.
3534
3535         * varasm.c (resolve_unique_section): Add third parameter
3536         flag_function_or_data_sections and use it instead of
3537         flag_function_sections.
3538         (assemble_start_function): Pass flag_function_sections.
3539         (asm_emit_uninitialised): Pass flag_data_sections.
3540         (assemble_variable): Likewise.
3541
3542 2002-05-14  Richard Henderson  <rth@redhat.com>
3543
3544         * config/i386/i386.md: Use define_constants for unspec numbers.
3545         * config/i386/i386.c: Likewise.
3546
3547 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3548
3549         * doc/contrib.texi: Update my entry.
3550
3551 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3552
3553         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3554         * fixinc/fixincl.x: Regenerated.
3555         * fixinc/tests/base/math.h: Update.
3556         * fixinc/tests/base/testing.h: Likewise.
3557
3558 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3559
3560         * genattr.c (gen_attr): Don't emit a comma after the last
3561         enumerator.
3562
3563 2002-05-13  Richard Henderson  <rth@redhat.com>
3564
3565         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3566         by non-local gotos.
3567         * recog.c (peephole2_optimize): Likewise.
3568
3569 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3570
3571         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3572         input to O_BINARY.
3573
3574 2002-05-13  Jeffrey A Law  (law@redhat.com)
3575
3576         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3577         Update prototype and callers.
3578         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3579         the mem_set_list which reference the stack pointer, as do
3580         calls to constant functions as they may clobber outgoing
3581         argument space.
3582
3583         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3584
3585         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3586         (ia32_multipass_dfa_lookahead): New function.
3587
3588 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3589
3590         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3591         (translate_options): Remove 'V'.
3592         (process_command): Similarly.
3593 doc:
3594         * invoke.texi: Remove documentation of 'V'.
3595
3596 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3597
3598         * config/s390/linux.h: Revert 2002-04-22 changes.
3599
3600 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3601
3602         * config/fr30/fr30.md: Only allow splits of immediate loads
3603         if the destination is a register.
3604
3605 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3606
3607         * Makefile.in (c-common.o, cppinit.o): Update.
3608         * c-common.c: Include except.h.
3609         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3610         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3611         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3612         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3613         CPP_PREDEFINES): Handle here.
3614 config:
3615         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3616         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3617         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3618         TARGET_OS_CPP_BUILTINS.
3619         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3620         (CPP_SPEC, EXTRA_SPECS): Update.
3621         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3622         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3623         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3624         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3625         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3626 doc:
3627         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3628         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3629
3630 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3631
3632         * emit-rtl.c (global_rtl): Update comment.
3633         (const_double_htab, const_double_htab_hash,
3634         const_double_htab_hash, lookup_const_double): New.
3635         (const_int_htab_hash, const_int_htab_eq): Remove const
3636         qualifiers, which cause tons of warnings with RTL checking on.
3637         (gen_rtx_CONST_DOUBLE): Deleted.
3638         (const_double_from_real_value): New function - bears some
3639         resemblance to the former immed_real_const_1.
3640         (immed_double_const): Moved here from varasm.c and
3641         simplified.
3642         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3643         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3644         (gen_rtx): Use immed_double_const.
3645         (init_emit_once): Initialize the const_double_htab.  Use
3646         REAL_VALUE_FROM_INT where possible.  Can now use
3647         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3648         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3649         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3650         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3651         (init_varasm_status, mark_varasm_status): Don't touch
3652         x_const_double_chain.
3653
3654         * output.h: Delete prototype for clear_const_double_mem.
3655         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3656         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3657         const_double_from_real_value, not immed_real_const_1, and use
3658         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3659         CONST_DOUBLE_ATOF.
3660         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3661         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3662         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3663         (gen_rtx_REG): Second arg is unsigned.
3664
3665         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3666         (excluded_rtx): New, return true for CONST_DOUBLE.
3667         (genmacro): Write nothing for excluded codes.
3668         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3669         * expr.c (expand_expr): Likewise.
3670         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3671         CONST_DOUBLE_CHAIN.
3672         * toplev.c (rest_of_compilation): Don't call
3673         clear_const_double_mem.
3674
3675         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3676         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3677         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3678         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3679         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3680         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3681         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3682         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3683
3684 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3685
3686         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3687
3688 2002-05-12  Tom Tromey  <tromey@redhat.com>
3689
3690         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3691
3692 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3693
3694         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3695         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3696         * gensupport.h: Prototype new routines.
3697         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3698         use of printf.
3699         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3700         (next_comma_elt): Use scan_comma_elt.
3701
3702         * config/i386/i386.md: Use new attribute notation to break up
3703         long lines in define_attr forms.
3704
3705 2002-05-12  Richard Henderson  <rth@redhat.com>
3706
3707         * expr.c (compress_float_constant): New.
3708         (emit_move_insn): Use it.
3709         (float_extend_from_mem): New.
3710         (init_expr_once): Initialize it.
3711         * real.c (exact_real_truncate): New.
3712
3713         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3714         dropped into memory; penalize for size.
3715         (RTX_COSTS): FLOAT_EXTEND is free.
3716         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3717         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3718
3719 2002-05-12  Richard Henderson  <rth@redhat.com>
3720
3721         * profile.h (profile_info): Add missing extern to declaration.
3722         * profile.c (profile_info): Define it.
3723
3724 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3725
3726         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3727         used for DImode and TImode.
3728
3729 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3730
3731         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3732         fake a newline.
3733
3734 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3735
3736         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3737         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3738         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3739         (rs6000_override_options): Handle -m(no-)longcall.
3740         (init_cumulative_args, output_mi_thunk): Check for both
3741         longcall and shortcall attributes on the function.
3742         (rs6000_attribute_table): Add "shortcall".
3743         (rs6000_handle_longcall_attribute): Update comment.
3744         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3745         altivec_expand_ternop_builtin): Add default clauses to switches
3746         to silence warnings.
3747
3748         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3749         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3750         (TARGET_OPTIONS): Add longcall and no-longcall.
3751
3752         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3753         call_value_nonlocal_sysv): Split by alternatives.  One pair
3754         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3755         the call cookie.  The other pair accepts only LR/CTR and has
3756         no restriction.
3757
3758         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3759         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3760         tmake_file.
3761         * config/rs6000/rs6000-c.c: New file.
3762         * config/rs6000/t-rs6000-c-rule: New file.
3763         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3764         Prototype rs6000_pragma_longcall.
3765
3766         * doc/extend.texi: Document shortcall attribute.
3767         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3768
3769 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3770
3771         * reorg.c (dbr_schedule): Remove unnecessary test.
3772
3773 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3774
3775         * i386.md (testsi to testqi spliters): New.
3776
3777         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3778
3779         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3780
3781         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3782
3783         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3784         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3785         that can be made fallthru.
3786
3787         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3788
3789         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3790         (cfg_layout_initialize): Use it.
3791
3792 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3793
3794         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3795         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3796         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3797
3798 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3799
3800         * dbxout.c: Fix formatting.
3801         * dependence.c: Likewise.
3802         * df.c: Likewise.
3803         * diagnostic.c: Likewise.
3804         * doloop.c: Likewise.
3805         * dominance.c: Likewise.
3806         * doschk.c: Likewise.
3807         * dwarf2asm.c: Likewise.
3808         * dwarf2out.c: Likewise.
3809         * dwarfout.c: Likewise.
3810
3811 2002-05-10  Richard Henderson  <rth@redhat.com>
3812
3813         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3814         Convert integers constants as needed.  Replace "nwords" field with
3815         "sizeof_bb".
3816         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3817         * function.h: Fix typo in comment.
3818         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3819
3820 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3821
3822         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3823         into the equivalent (signed char)c > 0.
3824
3825 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3826
3827         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3828         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3829         (struct prefetch_info): Fix spelling of member bytes_accessed.
3830         (emit_prefetch_instructions): Make dump messages more regular;
3831         restructure code to add more dump messages; use new macros for
3832         heuristics. (There are no code generation changes in any of this).
3833
3834 2002-05-10  David S. Miller  <davem@redhat.com>
3835
3836         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3837         (struct rtx_def): Update unchanging flag comment.
3838         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3839         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3840         to be handled to INSN too.
3841         (dbr_schedule): Likewise.
3842         * resource.c (next_insn_no_annul): Likewise.
3843
3844         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3845         casing.
3846
3847 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3848
3849         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3850         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3851         (possibly) work around broken /bin/sh.
3852
3853 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3854
3855         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3856         . as N64/N32 libgcc_s.so subdirs.
3857
3858 2002-05-10  David S. Miller  <davem@redhat.com>
3859
3860         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3861
3862         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3863         more accurately.
3864         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3865         comment.
3866         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3867         * doc/rtl.texi: Document these macros more accurately.
3868         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3869         JUMP_INSNs and CALL_INSNs.
3870         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3871         or INSN_FROM_TARGET_P if the code is appropriate.
3872
3873 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3874
3875         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3876         before using SYMBOL_REF_FLAG (addr).
3877
3878         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3879         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3880         Make non-static.  Update all callers.
3881         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3882         New insns to clear/set/test a single bit in I/O address space.
3883
3884 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3885
3886         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3887
3888 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3889
3890         * Makefile.in: Update.
3891         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3892         builtin_define_std): New.
3893         (c_common_init): Register CPP builtins callback.
3894         * c-common.h (flag_iso, flag_undef): New.
3895         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3896         * c-lex.c: Don't include target.h.
3897         (cb_register_builtins): Move to c-common.c.
3898         (init_c_lex): Don't register hook here.
3899         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3900         (cpp_define, cpp_assert): Remove.
3901         * gcc.c (cc1_options): Pass -undef to front end.
3902         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3903         (TARGET_INITIALIZER): Update.
3904         * target.h (struct cpp_reader): Don't predeclare.
3905         (struct gcc_target): Remove cpp builtin hook.
3906         * tree.c (default_register_cpp_builtins): Remove.
3907 doc:
3908         * tm.texi: Update.
3909
3910 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3911
3912         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3913
3914 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3915
3916         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3917         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3918
3919 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3920
3921         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3922         * config/sparc/libgcc-sparc-glibc.ver: New file.
3923         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3924         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3925
3926 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3927
3928         PR target/6429
3929         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3930         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3931         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3932         base multilibs.
3933         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3934         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3935         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3936         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3937
3938 2002-05-09  Richard Henderson  <rth@redhat.com>
3939
3940         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3941         * config/ia64/ia64.c: Likewise.
3942
3943 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3944
3945         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3946         (save_restore_insns): Likewise.
3947         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3948         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3949
3950 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3951
3952         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3953         * i386.md: Move scheduling information into new files.
3954
3955         * i386.md (type attribute): Add "rotate" for rotate insns.
3956         (rotate insns): Set type to "rotate".
3957         (various attributes and function units): Treat rotate like shift.
3958         (pent_pair attribute): Only rotates by one bit position are
3959         pairable.
3960         (sbb insns): Explicitly set pent_pair attribute on a couple
3961         that were missing it.
3962
3963 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3964
3965         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3966         make sure that buffer starts on odd word address.
3967         (sh_va_arg): Skip odd fp registers when reading a double precision
3968         value.
3969
3970 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3971
3972         * tree.h (preserve_data, object_permanent_p, type_precision):
3973         Remove.
3974
3975 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3976
3977         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3978         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3979 doc:
3980         * cpp.texi: Update for removal of obsolete features.
3981
3982 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
3983                           Jeffrey A Law  (law@redhat.com)
3984
3985         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
3986         the DFA interface for Pentium processors.
3987         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3988         (attr_pent_pair, ix86_pent_find_pair): Remove.
3989         (ix86_sched_reorder_pentium): Remove.
3990         (ix86_sched_reorder): Remove reordering for Pentium.
3991         * i386.md (Pentium scheduling): Rewrite using DFA description.
3992
3993 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3994
3995         * cfganal.c (can_fallthru): Fix fast path.
3996         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3997         with edges to the next block.
3998
3999 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
4000                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
4001
4002         * final.c (end_final): Use C trees to output data structures for profiling.
4003
4004         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
4005         (profile.o): New dependency profile.h
4006         (final.o): New dependency profile.h
4007         * profile.h: New file. New global structure profile_info.
4008         * final.h (count_edges_instrumented_now): Declare.
4009         (current_function_cfg_checksum): Declare.
4010         (function_list): New structure.
4011         (functions_head, functions_tail): New static variables.
4012         (end_final): Emits more data, removed some -ax stuff.
4013         (final): Stores function names and chcksums.
4014         * gcov-io.h (__write_gcov_string): New function.
4015         (__read_gcov_string): New function.
4016         * gcov.c (read_profile): New function.
4017         (create_program_flow_graph): Uses read_profile instead of reading
4018         da_file.
4019         (read_files): Removed da_file checking, it's done by read_profile now.
4020         * libgcc2.c (bb_function_info): New structure.
4021         (bb): New field in structure, removed some -ax stuff.
4022         (__bb_exit_func): Changed structure of da_file.
4023         * profile.c (count_edges_instrumented_now): New global variable.
4024         (current_function_cfg_checksum): New global variable.
4025         (max_counter_in_program): New global variable.
4026         (get_exec_counts): New function.
4027         (compute_checksum): New function.
4028         (instrument_edges): Sets count_edges_instrumented_now.
4029         (compute_branch_probabilities): Uses get_exec_counts instead of
4030         reading da_file.
4031         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
4032         (init_branch_prob): Removed da_file checking, done in get_exec_counts
4033         now.
4034         (end_branch_prob): Removed da_file checking, done in get_exec_counts
4035         now.
4036         * gcov.texi: Updated information about gcov file format.
4037
4038 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
4039
4040         * sbitmap.c: Fix formatting.
4041         * scan.c: Likewise.
4042         * scan-decls.c: Likewise.
4043         * sched-deps.c: Likewise.
4044         * sched-ebb.c: Likewise.
4045         * sched-rgn.c: Likewise.
4046         * sched-vis.c: Likewise.
4047         * sdbout.c: Likewise.
4048         * sibcall.c: Likewise.
4049         * simplify-rtx.c: Likewise.
4050         * ssa.c: Likewise.
4051         * ssa-ccp.c: Likewise.
4052         * ssa-dce.c: Likewise.
4053         * stmt.c: Likewise.
4054         * stor-layout.c: Likewise.
4055         * stringpool.c: Likewise.
4056
4057 2002-05-09  David S. Miller  <davem@redhat.com>
4058
4059         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
4060
4061 2002-05-07  David S. Miller  <davem@redhat.com>
4062
4063         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
4064         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
4065         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
4066         library implementation clobbers the output before the inputs
4067         are fully consumed, use stack temporary for the output.
4068
4069 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
4070
4071         * config/netbsd.h (CPP_SPEC): Remove.
4072         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
4073         * config/i386/netbsd.h (CPP_SPEC): Define.
4074         * config/ns32k/netbsd.h (CPP_SPEC): Define.
4075         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
4076         * config/sparc/netbsd.h (CPP_SPEC): Define.
4077         * config/vax/netbsd.h (CPP_SPEC): Define.
4078
4079 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
4080
4081         * read-rtl.c: Fix formatting.
4082         * real.c: Likewise.
4083         * recog.c: Likewise.
4084         * regclass.c: Likewise.
4085         * regmove.c: Likewise.
4086         * reg-stack.c: Likewise.
4087         * reload1.c: Likewise.
4088         * reload.c: Likewise.
4089         * resource.c: Likewise.
4090         * rtlanal.c: Likewise.
4091         * rtl.c: Likewise.
4092         * rtl-error.c: Likewise.
4093
4094 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4095
4096         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
4097         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
4098
4099 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
4100
4101         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
4102         use __SSE2__ macro instead.
4103         * config/i386/xmmintrin.h: Likewise.
4104
4105 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
4106
4107         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
4108         and use it in all invocations of these macros.  Clean up comments.
4109         * rtl.c (rtl_check_failed_flag): Add an argument for the name
4110         of the flag access macro whose check failed.
4111         * doc/rtl.texi (Flags): Document additional flag uses.
4112
4113 2002-05-08  Robert Spier <rspier@pobox.com>
4114             Neil Booth  <neil@daikokuya.demon.co.uk>
4115
4116         PR preprocessor/6521
4117         * cppfiles.c (handle_missing_header): Don't do anything
4118         different for <> includes.
4119 doc:
4120         * cppopts.texi: Update documentation for -MG.
4121
4122 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4123
4124         * cpplex.c (cpp_interpret_charconst): Truncate as well as
4125         sign-extend.
4126 doc:
4127         * cpp.texi: Clarify multichar charconst valuation.
4128
4129 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4130
4131         * doc/invoke.texi: Document -mwindiss option.
4132
4133 2002-05-08  Jason Merrill  <jason@redhat.com>
4134
4135         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
4136
4137         * dwarf2out.c (gen_type_die): Abort on broken recursion.
4138
4139         PR c++/6381
4140         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
4141         REAL_CST.
4142
4143 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
4144
4145         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
4146         little-endian multilibs to override arm/thumb multilibs.
4147         Do not build hardware floating point multilibs, nor apcs-26
4148         multilibs for the Thumb.
4149
4150 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4151
4152         PR c/6569.
4153         * varasm.c (mark_weak): New function.
4154         (merge_weak): Use it.  Do not call declare_weak.
4155         (declare_weak): Use merge_weak.
4156
4157 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4158
4159         * cse.c (dead_libcall_p): Update counts.
4160         (delete_trivially_dead_insns): Update call of dead_libcall_p.
4161
4162 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
4163
4164         * cfglayout.c (function_tail_eff_head): Rename to ...
4165         (function_footer): ... this one.
4166         (unlink_insn_chain): New functions.
4167         (label_for_bb): Only call block_label and emit debug message.
4168         (record_effective_endpoints): Actually unlink the headers and footers.
4169         (fixup_reorder_cahin): Re-insert the unlinked sequences.
4170         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
4171         * cfglayout.h (struct reorder_block_def): New fields footer/header;
4172         remove eff_head/eff_end.
4173         * rtl.h (set_first_insn): Declare.
4174         * emit-rtl.c (set_first_insn): New function.
4175
4176         * cfglayout.c (fixup_reorder_chain): Dump duplicated
4177         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4178         cfg_layout_duplicate_bb): New global function.
4179         (duplicate_insn_chain): New static function.
4180         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4181         cfg_layout_duplicate_bb): Declare.
4182         (struct reorder_block_def): Add "original" field.
4183         * emit-rtl.c (emit_copy_of_insn_after): New function.
4184         * rtl.h (emit_copy_of_insn_after): Declare.
4185
4186         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
4187         (fixup_reorder_chain): properly handle edges to exit block.
4188
4189 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4190                                Jan Hubicka  <jh@suse.cz>
4191
4192         * basic-block.h (note_prediction_to_br_prob): declare.
4193         * c-semantics.c: Inlucde predit.h
4194         (expand_stmt): predict GOTO_STMT as not taken.
4195         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4196         (cleanup_cfg): Do not free tail_recursion_list.
4197         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4198         (flow_delete_block): Kill predictions past end of basic block.
4199         * output.h (delete_unreachable_blocks): Declare.
4200         * predict.c (predicted_by_p, process_note_predictions,
4201         process_note_prediction, last_block_p): New function.
4202         (estimate_probability): Bypass loop on PRED_CONTINUE;
4203         do not handle noreturn heuristics; kill PRED_RETURN; add
4204         PRED_EARLY_RETURN.
4205         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4206         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4207         * predict.h (IS_TAKEN): New constant.
4208         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4209         * rtl.c (NOTE_INSN_PREDICTION): New.
4210         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4211         New macro.
4212         (insn_note): add NOTE_INSN_PREDICTION.
4213         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4214         CFG; free tail_recursion_label_list.
4215         * stmt.c: Include predict.h;
4216         (return_prediction): New.
4217         (expand_value_return): Use it.
4218         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4219
4220 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
4221
4222         * config/mips/mips.md: Name the unspecs with define_constant.
4223         (*HILO_delay): Rename to 'hilo_delay' (no star).
4224         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4225         (reload_outdi, reload_outsi): Likewise.
4226
4227 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
4228
4229         * toplev.c: Fix formatting.
4230
4231 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
4232
4233         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4234         * configure.in (ac_rtlflag_checking): New.
4235         * doc/install.texi (--enable-checking): Document RTL flag checking.
4236
4237 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4238
4239         * c-common.c (c_common_init): Set options->unsigned_wchar.
4240         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4241         group target dependencies.
4242         (init_builtins, cpp_handle_option): Update.
4243         * cpplex.c (cpp_interpret_charconst): Update.
4244         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4245         signed_char to unsigned_char, group target dependencies.
4246         * defaults.h (WCHAR_UNSIGNED): Remove.
4247         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4248 config:
4249         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4250         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4251         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4252         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4253         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4254 doc:
4255         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4256
4257 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4258
4259         * fixinc/inclhack.def (windiss_math1): New fix.
4260         (windiss_math2): Likewise.
4261         (windiss_valist): Likewise.
4262         * fixinc/fixincl.x: Regenerated.
4263
4264 2002-05-07  Andreas Jaeger  <aj@suse.de>
4265
4266         * genautomata.c (output_internal_min_issue_delay_func): Add
4267         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4268         (output_internal_trans_func): Likewise.
4269
4270 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
4271
4272         * pa.c (hppa_profile_hook): Use force_reg to get the address
4273         of the profile hook into an appropriate pseudo register.
4274
4275 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4276
4277         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4278         (LINK_START_SPEC): Handle it.
4279         (LINK_OS_SPEC): Likewise.
4280         (CPP_SPEC): Likewise.
4281         (STARTFILE_SPEC): Likewise.
4282         (LIB_SPEC): Likewise.
4283         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
4284         all platforms.
4285         (CRTSAVRES_DEFAULT_SPEC): New macro.
4286         (LIB_WINDISS_SPEC): New macro.
4287         (CPP_OS_WINDISS_SPEC): Likewise.
4288         (STARTFILE_WINDISS_SPEC): Likewise.
4289         (ENDFILE_WINDISS_SPEC): Likewise.
4290         (LINK_START_WINDISS_SPEC): Likewise.
4291         (LINK_OS_WINDISS_SPEC): Likewise.
4292         * config/rs6000/windiss.h: New file.
4293
4294 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
4295
4296         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4297
4298 2002-05-06  David S. Miller  <davem@redhat.com>
4299
4300         * config/sparc/sparc.md (shift insns): Do not mask off
4301         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4302         take care of it.
4303
4304 2002-05-06  Richard Henderson  <rth@redhat.com>
4305
4306         PR c++/6212
4307         * expr.c (highest_pow2_factor_for_type): New.
4308         (expand_assignment): Use it.
4309
4310 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
4311
4312         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4313         unspec_volatile.
4314         ("altivec_mfvscr"): Same.
4315
4316 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4317
4318         * rtl.h (struct rtx_def): Update comments.
4319         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
4320         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
4321         RTL_FLAG_CHECK macros with list of expected RTL codes.
4322         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4323         (rtl_check_failed_flag): New.
4324         * reload1.c (reload): Use REG macro before changing rtx to MEM.
4325         (reload_cse_noop_set_p): Check rtx code before using access macro.
4326         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4327         before using access macro.
4328
4329 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4330
4331         * doc/rtl.texi (Flags): Update to reflect current usage.
4332
4333 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4334
4335         PR opt/3995
4336         * fold-const.c (sign_bit_p): New function.
4337         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4338         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4339         Reapply fold when converting (A & C) == C into (A & C) != 0.
4340         (fold_binary_op_with_conditional_arg): Fix typo in comment.
4341
4342 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4343
4344         * c-common.c (warn_multichar): New.
4345         (c_common_init): Set CPP's warn_multichar.
4346         * c-common.h (warn_multichar): New.
4347         * c-decl.c (warn_multichar): Remove.
4348         * c-lex.c (lex_charconst): Update.
4349         * c-tree.h (warn_multichar): Remove.
4350         * cppexp.c (eval_token): Sign-extend charconst value.
4351         * cppinit.c (cpp_create_reader): Set warn_multichar.
4352         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4353         each character.  Update prototype.  Sign-extend the result.
4354         * cpplib.h: Fix conditions.
4355         (struct cpp_options): Add new warning flag.
4356         (cpp_interpret_charconst): Update prototype.
4357 doc:
4358         * cpp.texi: Update documentation.
4359
4360 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
4361
4362         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4363         Fix typo in usage of allof instead of unit.
4364
4365 2002-05-06  Richard Henderson  <rth@redhat.com>
4366
4367         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4368         and any jump or call for IN.
4369
4370 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
4371
4372         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4373         -msse2.
4374         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4375
4376 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4377
4378         * fold-const.c (lshift-double): Cast the high word to an unsigned
4379         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4380         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4381         avoid compiler warning.  (fold): Remove redundant code from
4382         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4383
4384 2002-05-06  Jeff Law  <law@redhat.com>
4385
4386         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4387         * pa.c (pa_adjust_cost): Remove all true dependency cost
4388         adjustments.  Also remove support for non-DFA scheduling.
4389         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4390         to adjust true dependency costs.  Update various comments.
4391         (7100lc, 7200, 7300 scheduling): Simplify by combining the
4392         FP ALU & MPY units into a single unit.
4393
4394 2002-05-06  Catherine Moore  <clm@redhat.com>
4395
4396         * config/v850/v850.c (compute_register_save_size): Make sure
4397         to count all of the registers that will be saved.
4398
4399 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4400
4401         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4402
4403 2002-05-06  David S. Miller  <davem@redhat.com>
4404
4405         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4406         allow result to overlap input operands in memory.
4407
4408 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4409
4410 doc:
4411         * cpp.texi: Update multichar charconst docs.
4412
4413 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4414
4415         * cpplex.c (cpp_interpret_charconst): Sign-extend each
4416         character.  Don't ignore excess characters.  Treat
4417         multicharacter character constants as signed.
4418         (cpp_parse_escape): Clarify diagnostic.
4419
4420 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4421
4422         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4423         use add instead of shift.
4424         (ashldi3_sp64): Likewise.
4425         (ashlsi3_const1, ashldi3_const1): Remove.
4426         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4427         * config/sparc/sparc.c (const1_operand): New.
4428
4429 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
4430
4431         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4432
4433 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4434
4435         PR target/6561
4436         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4437
4438 2002-05-05  Richard Henderson  <rth@redhat.com>
4439
4440         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4441         memory latency adjustments.
4442         (alpha_variable_issue): Remove.
4443         (alpha_use_dfa_pipeline_interface): New.
4444         (alpha_multipass_dfa_lookahead): New.
4445         * config/alpha/alpha.md: Remove define_function_unit scheduling;
4446         include new dfa scheduling.
4447         (attr type): Add none.
4448         (blockage): Use it.
4449         * config/alpha/ev4.md: New.
4450         * config/alpha/ev5.md: New.
4451         * config/alpha/ev6.md: New.
4452
4453 2002-05-05  David S. Miller  <davem@redhat.com>
4454
4455         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4456
4457 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
4458
4459         * cse.c: Fix formatting.
4460         * emit-rtl.c: Likewise.
4461
4462 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4463
4464         * genautomata.c (initiate_states): Add additional guard to
4465         initialize `units_array'.
4466
4467 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4468
4469         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4470         process_unit_to_form_the_same_automaton_unit_lists,
4471         form_the_same_automaton_unit_lists
4472         check_unit_distributions_to_automata): New prototypes and
4473         functions.
4474         (check_automata): Rename it into `check_automata_insn_issues'.
4475         (unit_decl): New fields `the_same_automaton_unit' and
4476         `the_same_automaton_message_reported_p'.
4477         (unit_decl_t): New typedef.
4478         (the_same_automaton_lists): New gloval variable.
4479         (unit_regexp, unit_set_el, units_array, units_cmp,
4480         output_get_cpu_unit_code_func): Use the typedef.
4481         (evaluate_max_reserv_cycles): Increment
4482         `description->max_insn_reserv_cycles'.
4483         (initiate_states): Don't increment `max_cycles_num'.
4484         (transform_insn_regexps): Move code around transformation of
4485         regexps from `generate'.
4486         (generate): Remove call of `transform_insn_regexps'.
4487         (expand_automata): Call `transform_insn_regexps' and
4488         `check_unit_distributions_to_automata'.  Check errors before
4489         `generate'.
4490
4491         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4492         automaton `ultrasparc3_1'.
4493
4494 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4495
4496         * c-common.c (c_common_init): Set up CPP arithmetic.
4497         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4498         something reasonable for the host.
4499         (sanity_checks): Add checks.
4500         (cpp_read_main_file): Call sanity_checks() from here...
4501         (cpp_post_options): ... not here.
4502         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4503         * cpplib.h (struct cpp_options): New member int_precision.
4504
4505 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4506
4507         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4508
4509 2002-05-04  David S. Miller  <davem@redhat.com>
4510
4511         * config/sparc/linux.h, config/sparc/linux64.h
4512         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4513
4514         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4515         more RTX codes.
4516         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4517
4518         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4519         of SETs.
4520
4521 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4522
4523         * treelang; New directory for new sample language treelang.
4524
4525 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4526
4527         * Makefile.in (c-lex.o): Update.
4528         * c-lex.c: Include target.h.
4529         (cb_register_builtins): New.
4530         (init_c_lex): Set builtins callback.
4531         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4532         * cppinit.c (init_builtins): Use callback, including for
4533         GXX_WEAK.
4534         * cpplib.h (struct cpp_callbacks): New member.
4535         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4536         (TARGET_INITIALIZER): Update.
4537         * target.h (struct gcc_target): New hook.
4538         * tree.c (default_register_cpp_builtins): New.
4539         * tree.h (default_register_cpp_builtins): New.
4540 doc:
4541         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4542
4543 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4544
4545         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4546         (cpp_post_options): Move sanity checks to...
4547         (sanity_checks): New.
4548         * cpplex.c (maybe_read_ucs): Fix prototype.
4549         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4550         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4551         if necessary.
4552
4553 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4554
4555         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4556         builtins.  Use V2DI patterns instead of TI for logical operations.
4557         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4558         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4559         (ix86_expand_builtins): Change the pattern used for movntdq.
4560         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4561         sse2_nandv2di3): New patterns.
4562         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4563         on operands.
4564         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4565         (cvtdq2pd): Correct mode on operand 1.
4566         (sse2_umulsidi3): Describe without unspec.
4567         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4568         machine modes.
4569         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4570         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4571         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4572         ashlv4si3, ashlv2di3): Use SImode for shift count.
4573         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4574         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4575         New patterns.
4576         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4577         New typedefs.
4578         (__m128i, __m128d): New macros.
4579         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4580         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4581         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4582         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4583         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4584         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4585         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4586         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4587         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4588         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4589         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4590         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4591         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4592         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4593         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4594         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4595         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4596         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4597         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4598         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4599         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4600         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4601         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4602         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4603         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4604         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4605         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4606         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4607         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4608         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4609         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4610         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4611         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4612         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4613         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4614         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4615         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4616         functions.
4617         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4618         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4619
4620 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4621
4622         * dwarf2out.c: Fix formatting.
4623         * varasm.c: Likewise.
4624
4625 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4626
4627         PR c/6543
4628         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4629         clobber and use result as temporary value.
4630
4631 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4632
4633         * expr.c (force_operand): Use expand_simple_* to handle more
4634         cases.
4635
4636 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4637
4638         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4639         and sign-extension.
4640         (lex_charconst): Update for change in prototype of
4641         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4642         appropriately.
4643         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4644         * cppinit.c (cpp_create_reader): Initialize them for no
4645         change in semantics.
4646         (cpp_post_options): Add sanity checks.
4647         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4648         and truncation issues.  Calculate in type cppchar_t.
4649         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4650         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4651         run-time dependent precision correctly.  Return whether the
4652         result is signed or not.
4653         * cpplib.c (dequote_string): Use cppchar_t; update.
4654         * cpplib.h (cppchar_signed_t): New.
4655         struct cpp_options): New precision members.
4656         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4657         * cppexp.c (eval_token): Update.
4658
4659 2002-05-03  David S. Miller  <davem@redhat.com>
4660
4661         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4662         * config/sparc/sparc.c (sparc_rtx_costs): New function
4663         implementing RTX_COSTS and CONST_COSTS.
4664         * config/sparc/sparc.h (CONST_COSTS): Delete.
4665         (RTX_COSTS_CASES): Define.
4666         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4667         the work.
4668
4669         * config/sparc/sparc.md (DFA schedulers): Split out...
4670         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4671         config/sparc/sparclet.md, config/sparc/supersparc.md,
4672         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4673
4674         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4675         checks on it, always defined for Sparc.
4676
4677         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4678         Tweak, and add more detailed comments.
4679
4680 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4681
4682         * Re-apply patch accidentally reverted with
4683         DFA scheduler merge: remove all rules and variables to slurp
4684         source files out of libiberty and rebuild them with HOST_CC.
4685         ($(HOST_PREFIX_1)varray.o): New rule.
4686         (genattrtab rule): Word wrap.
4687
4688 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4689
4690         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4691         (CPP_SUBTARGET_SPEC): Define.
4692         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4693         cpp_subtarget specs.
4694         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4695
4696 2002-05-03  David S. Miller  <davem@redhat.com>
4697
4698         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4699         * target.h (struct gcc_target): Delete cycle_display member.
4700
4701         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4702         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4703         (ia64_sched_reorder2): Mention need for cycle display handling
4704         once such notes exist.
4705
4706 2002-05-03  Richard Henderson  <rth@redhat.com>
4707
4708         * real.c (etoasc): Strip most trailing zeros for clarity.
4709         * sched-vis.c: Include real.h.
4710         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4711         * Makefile.in (sched-vis.o): Add real.h.
4712
4713 2002-05-03  David S. Miller  <davem@redhat.com>
4714
4715         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4716         no longer needed.
4717
4718 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4719
4720         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4721         when we get an out of range literal.
4722         (altivec_expand_ternop_builtin): Same.
4723         (altivec_expand_unop_builtin): Same.
4724         (altivec_expand_builtin): Same, for dss.
4725         (altivec_expand_builtin): Use trees instead of rtl when
4726         determining literal argument validity.
4727
4728 2002-05-03  David S. Miller  <davem@redhat.com>
4729
4730         Delete cycle display scheduling hook.
4731         * config/ia64/ia64.c (ia64_cycle_display,
4732         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4733         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4734         and use emit_insn_before instead of ia64_emit_insn_before.
4735         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4736         (cycle_display): Delete insn pattern.
4737         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4738         (cycle_display): Delete insn pattern.
4739         * config/sparc/sparc.c (sparc_cycle_display,
4740         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4741         * doc/md.texi (cycle_display): Don't mention.
4742         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4743
4744 2002-05-03  Richard Henderson  <rth@redhat.com>
4745
4746         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4747         * recog.h: Declare them.
4748
4749         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4750         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4751         * config/sparc/sparc-protos.h: Update.
4752
4753 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4754
4755         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4756         -D__arch64__.  Add -D_LP64.
4757         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4758         from sparc.h.
4759         (CPP_ARCH64_SPEC): Likewise.
4760         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4761         (NO_BUILTIN_SIZE_TYPE): Undef.
4762
4763 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4764
4765         * genautomata.c (min_issue_delay_pass_states): Change return type
4766         in the prototype.
4767         (min_issue_delay_pass_states): Change the algorithm.
4768         (min_issue_delay): Set up min_insn_issue_delay for the state.
4769         (output_min_issue_delay_table): Interchange the nested loops and
4770         and initiate min_insn_issue_delay for states.
4771
4772 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4773
4774         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4775         jump is simplejump.
4776
4777 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4778
4779         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4780         sequence.
4781
4782 2002-05-03  Richard Henderson  <rth@redhat.com>
4783
4784         PR opt/6534
4785         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4786         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4787         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4788         code before JUMP, not EARLIEST.
4789
4790 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4791
4792         * c-format.c (check_format_info_main): Don't check for presence of
4793         parameter for * width until after operand number has been read,
4794         and only check for it if format parameters are available.
4795         Fixes PR c/6547.
4796
4797 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4798
4799         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4800         (LINK_SPEC): Undef before defining.
4801
4802 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4803
4804         PR preprocessor/6489
4805         * tradcpp.c (fixup_newlines): New.
4806         (main, finclude): Use it.
4807
4808 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4809
4810         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4811         * config/mips/mips.c (mips_unique_section): Strip encoding from
4812         decl name.
4813
4814 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4815
4816         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4817         mode.
4818
4819 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4820
4821         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4822         (Specific): Removed buildstats references.
4823         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4824         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4825         Accomodate Solaris versions beyond 8.
4826         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4827         (Specific, *-*-solaris2.8): Removed, obsolete.
4828
4829 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4830
4831         PR target/6542
4832         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4833         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4834         fill leaf_reg_remap with identity.
4835         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4836
4837 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4838
4839         * config/h8300/crti.asm: Remove trailing spaces.
4840         * config/h8300/h8300.c: Likewise.
4841         * config/h8300/lib1funcs.asm: Likewise.
4842
4843 2002-05-02  Jason Merrill  <jason@redhat.com>
4844
4845         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4846         * c-decl.c (c_init_decl_processing): Use it.
4847         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4848         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4849         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4850
4851 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4852
4853         * regrename.c: Fix formatting.
4854         * tree.c: Likewise.
4855
4856 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4857
4858         * i386.md (attribute memory): Handle compares properly.
4859
4860 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4861
4862         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4863         to none.
4864
4865 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4866
4867         * function.c: Fix formatting.
4868
4869 2002-05-02  Jan Hubicka  <jh@suse.cz>
4870
4871         * haifa-sched.c (schedule_insn): Print table of instructions and
4872         reservations.
4873         (sched_block): Do not print ready list at verbosity level 1.
4874         * sched-vis.c (print_insn): Make global.
4875         * sched-ebb.c (ebb_print_insn): Rename from...
4876         (print_insn): ... this one.
4877         * sched-int.h (print_insn): Declare
4878
4879 2002-05-02  Richard Henderson  <rth@redhat.com>
4880
4881         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4882         emitted by cycle_display.
4883
4884 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4885
4886         * doc/install.texi (*-*-freebsd*): Update to latest status.
4887
4888 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4889
4890         PR target/6540
4891         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4892         * config/float-sparc.h: Assume 128-bit long double if
4893         __LONG_DOUBLE_128__ is defined.
4894
4895 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4896
4897         * genattrtab.c (write_function_unit_info): Add a dummy element
4898         when num_units == 0.
4899
4900 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4901
4902         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4903         TYPE_MODE (double_type_node) instead of DFmode.
4904
4905 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4906
4907         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4908         jumps post reload.
4909         * toplev.c (rest_of_compilation): Revert Richard's patch.
4910
4911 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4912
4913         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4914
4915 2002-05-02  Catherine Moore  <clm@redhat.com>
4916
4917         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4918
4919 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4920
4921         * combine.c: Fix comment typos.
4922         * expr.c: Likewise.
4923         * genautomata.c: Likewise.
4924         * stmt.c: Likewise.
4925         * tree.h: Likewise.
4926
4927 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4928
4929         * doc/install.texi: State GNAT version requirements.
4930
4931 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4932
4933         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4934         of the frame pointer or arg pointer register which strict register
4935         checking is not enabled.
4936
4937 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4938
4939         * gcc.dg/altivec-8.c: New.
4940
4941         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4942         PRE_INC and PRE_DEC for altivec modes.
4943
4944 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4945
4946         * fixinc/check.tpl(set-writable): make sure the function exists first
4947         * fixinc/inclhack.def(alpha_assert): fix test_text
4948         * fixinc/tests/base/assert.h: add in missing result
4949
4950 2002-05-01  Jeff Law  <law@redhat.com>
4951
4952         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4953         'T' constraint.
4954
4955 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4956
4957         * dbxout.c (dbxout_type): Emit size information for range types,
4958         as well, but only when using GDB extensions.
4959
4960 2002-05-01  Richard Henderson  <rth@redhat.com>
4961
4962         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4963         target-independent gnu binutils date test.
4964
4965 2002-05-01  Richard Henderson  <rth@redhat.com>
4966
4967         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4968         info before expunging the block.
4969
4970 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4971
4972         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4973         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4974         -M -or -MM is in effect.
4975
4976 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4977
4978         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4979         A29k configurations.
4980         * doc/install.texi: Update to match.
4981
4982 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4983
4984         PR bootstrap/6514
4985         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4986         for duplicates. Always loop over whole list.
4987
4988 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4989
4990         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4991
4992 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4993
4994         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4995         support routines.
4996
4997 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4998
4999         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
5000
5001 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
5002
5003         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
5004         (nabs_nopower): Same.
5005         (floatdisf2): New pattern.
5006         (absdi2): Convert to define_insn_and_split.
5007         (nabsdi2): Same.
5008         (trunctfsf2): Same.
5009         (floatditf2): Same.
5010         (floatsitf2): Same.
5011         (fix_trunctfdi2): Same.
5012         (fix_trunctfsi2): Same.
5013
5014 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
5015
5016         * doc/install.texi: Update Texinfo version requirement
5017         documentation.
5018
5019 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
5020
5021         PR target/6512, PR target/5628
5022         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
5023         when memory is not aligned.
5024         (movdf_insn_v9only_vis): Likewise.
5025         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
5026         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
5027         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
5028
5029 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
5030
5031         * gcc.dg/altivec-7.c: New.
5032
5033         * config/rs6000/altivec.h: Cleanup.
5034
5035 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
5036
5037         * doc/invoke.texi (Option Summary): Add -mvrsave=.
5038         (RS/6000 and PowerPC Options): Document -mvrsave=.
5039
5040         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
5041         (rs6000_altivec_vrsave_string): Same.
5042         (rs6000_override_options): Call rs6000_parse_vrsave_option.
5043         (rs6000_parse_vrsave_option): New.
5044         (rs6000_stack_info): Only generate vrsave instructions when
5045         TARGET_ALTIVEC_VRSAVE.
5046
5047         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
5048         (rs6000_altivec_vrsave_string): Define extern.
5049         (rs6000_altivec_vrsave): Same.
5050         (TARGET_ALTIVEC_VRSAVE): New.
5051
5052 2002-04-30  Richard Henderson  <rth@redhat.com>
5053
5054         PR opt/6516
5055         * toplev.c (rest_of_compilation): Don't run cross-jump before
5056         bb-reorder.
5057
5058 2002-04-30  Tom Rix  <trix@redhat.com>
5059
5060         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
5061         check which_alternative.
5062
5063 2002-04-30  Kazu Hirata  <kazu@hxi.com>
5064
5065         * cpplex.c: Fix comment formatting.
5066         * function.c: Likewise.
5067         * integrate.c: Likewise.
5068         * regrename.c: Likewise.
5069         * sibcall.c: Likewise.
5070         * simplify-rtx.c: Likewise.
5071         * tree-inline.c: Likewise.
5072
5073 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5074
5075         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
5076         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
5077         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
5078         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
5079         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
5080         * pa/x-ada: New file.  Define ADA_CFLAGS.
5081
5082 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
5083
5084         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
5085         from MMIX_LAST_REGISTER_FILE_REGNUM.
5086         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
5087         (struct machine_function): New member highest_saved_stack_register
5088         previously static variable in mmix.c.
5089         (MACHINE_DEPENDENT_REORG): Define.
5090         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
5091         (MMIX_OUTPUT_REGNO): New.
5092         (mmix_target_asm_function_prologue): Move calculation of last used
5093         saved-stack-register into...
5094         (mmix_machine_dependent_reorg): New function.  Update to also handle
5095         !TARGET_ABI_GNU.
5096         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
5097         register names, simplify somewhat by new variable regno.
5098         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
5099         register.
5100         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
5101         emitting register names.
5102         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
5103         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
5104         Remove fixed FIXME.
5105         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
5106         Declare.
5107
5108         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
5109
5110 2002-04-30  Richard Henderson  <rth@redhat.com>
5111
5112         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5113         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
5114         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
5115         emit_tfmode_cvt): New.
5116         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
5117         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
5118         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
5119         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
5120         * config/sparc/sparc-protos.h: Update.
5121
5122 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
5123
5124         * install.texi (Final install): Add to the list of info to include
5125         in a report of a successful bootstrap, and add link to 3.1 list.
5126
5127 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
5128
5129         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
5130         (mode): Add vector modes
5131         (i387): Kill attribute.
5132         (unit): New attribute.
5133         (length_immediate): Grok new types.
5134         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
5135         (modrm): Use "unit".
5136         (memory): Handle MMX/SSE properly.
5137         (scheduling descriptions): Kill uses of fop1.
5138         (sse, mmx, fp patterns): Set type and mode properly.
5139
5140 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
5141
5142         * pa.c (override_options): Default to PA8000 scheduling.
5143         * doc/invoke.texi (HP-PA options): Mention newly added 7300
5144         scheduling parameter.
5145
5146         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
5147         handling of double precision multiplies.
5148
5149         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
5150         fpdiv and fpsqrt instructions.
5151         (7200 & 7300 scheduling): Fix typo in handling of
5152         store-load and store-store penalties.
5153
5154 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5155
5156         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
5157         mips.  Add two missing commas.
5158
5159 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
5160
5161         * doc/contrib.texi (Contributors): Update Paolo Carlini's
5162         and Benjamin Kosnik's entries.
5163
5164 2002-04-29  David S. Miller  <davem@redhat.com>
5165
5166         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
5167         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5168         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
5169         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5170
5171 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5172
5173         * combine.c (find_split_point): Use gen_int_mode.
5174
5175 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5176
5177         Merging code from dfa-branch:
5178
5179         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5180
5181         * genautomata.c (output_reserv_sets): Fix typo.
5182
5183         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
5184
5185         * genautomata.c (output_reserv_sets): Remove
5186         next_cycle_output_flag.
5187
5188         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
5189
5190         * sched-rgn.c (init_ready_list): Make the DFA code handle
5191         USE/CLOBBER insns in the same way as the traditional
5192         scheduler.
5193         (new_ready): Similarly..
5194
5195         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
5196
5197         * haifa-sched.c (schedule_block): Change the DFA state only after
5198         issuing insn.
5199
5200         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
5201
5202         * pa.c (hppa_use_dfa_pipeline_interface): New function.
5203         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5204         (override_options): Add PA7300 scheduling support.
5205         (pa_adjust_cost): Update various comments.  Properly
5206         handle anti and output dependencies when using the
5207         DFA scheduler.
5208         (pa_issue_rate): Add PA7300 scheduling support.
5209         (pa_can_combine_p): Call extract_insn before calling
5210         constrain_operands (taken from mainline tree).
5211         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5212         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
5213         descriptions using DFA descriptions.  Add PA7300
5214         scheduling support.
5215
5216         2002-03-30  David S. Miller  <davem@redhat.com>
5217
5218         Add UltraSPARC-III DFA scheduling support.
5219         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5220         Update FP conditional move on register insn patterns to use it, as
5221         appropriate.
5222         (define_attr cpu): Add ultrasparc3.
5223         (define_attr us3load_type): New, update integer load patterns to
5224         set it, as appropriate.
5225         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5226         (rest): Add UltraSPARC3 scheduling description.
5227         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5228         (PROCESSOR_ULTRASPARC3): New.
5229         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5230         ({ASM,CPP}_CPU_SPEC): Likewise.
5231         (REGISTER_MOVE_COST): Likewise.
5232         (RTX_COSTS): Likewise.
5233         * config/sparc/sparc.c (sparc_override_options,
5234         sparc_initialize_trampoline, sparc64_initialize_trampoline,
5235         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5236         sparc_issue_rate): Likewise.
5237         * config/sparc/sol2.h: Likewise.
5238         * config/sparc/sol2-sld-64.h: Likewise.
5239         * config/sparc/linux64.h: Likewise.
5240
5241         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
5242
5243         * doc/md.texi: Add comments about usage the latency time for the
5244         different dependencies and about case when two or more conditions
5245         in different define_insn_reservations returns TRUE for an insn.
5246
5247         * doc/md.texi: Add reference for automaton based pipeline
5248         description.
5249
5250         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
5251
5252         * doc/passes.texi: Add missed information about genattrtab.
5253
5254         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
5255
5256         * genautomata.c (output_automata_list_transition_code): Check
5257         automata_list on NULL.
5258
5259         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
5260
5261         * genautomata.c (output_insn_code_cases,
5262         output_automata_list_min_issue_delay_code,
5263         output_automata_list_transition_code,
5264         output_automata_list_state_alts_code): Comment the functions.
5265
5266         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
5267
5268         * genautomata.c (automata_list_el_t): New typedef.
5269         (get_free_automata_list_el,free_automata_list_el,
5270         free_automata_list, automata_list_hash, automata_list_eq_p,
5271         initiate_automata_lists, automata_list_start, automata_list_add,
5272         automata_list_finish, finish_automata_lists,
5273         output_insn_code_cases, output_automata_list_min_issue_delay_code,
5274         output_automata_list_transition_code,
5275         output_automata_list_state_alts_code, add_automaton_state,
5276         form_important_insn_automata_lists): New functions and prototypes.
5277         (insn_reserv_decl): Add members important_automata_list and
5278         processed_p.
5279         (ainsn): Add members important_p.
5280         (automata_list_el): New structure.
5281         (first_free_automata_list_el, current_automata_list,
5282         automata_list_table): New global variables.
5283         (create_ainsns): Initiate member important_p.
5284         (output_internal_min_issue_delay_func): Generate the switch and
5285         call output_insn_code_cases.
5286         (output_internal_trans_func, output_internal_state_alts_func):
5287         Ditto.
5288         (generate): Call initiate_automata_lists.
5289         (automaton_states): New global variable.
5290         (expand_automata): Call form_important_insn_automata_lists.
5291         (write_automata): Call finish_automata_lists.
5292
5293         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
5294
5295         * genautomata.c (add_excls, add_presence_absence): Check that
5296         cpu units in the sets belong the same automaton.
5297
5298         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5299         about that cpu units in the sets belong the same automaton.
5300
5301         * doc/md.texi: Ditto.
5302
5303         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
5304                     Nitin Gupta  <niting@noida.hcltech.com>
5305
5306         * config/sh/sh.c (sh_use_dfa_interface): New function.
5307
5308         (sh_issue_rate): New Function.
5309         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5310         TARGET_SCHED_ISSUE_RATE: define.
5311
5312         * config/sh/sh.md: Add DFA based pipeline description for SH4.
5313
5314         (define_attr insn_class): New attribute used for DFA
5315          scheduling.
5316         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5317         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5318          cmpeqdi_t): Likewise.
5319
5320         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5321          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5322          ex_group.
5323         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5324
5325         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5326
5327         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5328         break.
5329
5330         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5331
5332         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5333         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5334         necessary.
5335         (output_dfa_start_func): Initiate new variable insn_codes_length,
5336         (write_automata): Output definition of the new variable.
5337
5338         2001-10-02  David S. Miller  <davem@redhat.com>
5339
5340         * haifa-sched.c (advance_one_cycle): New function.
5341         (schedule_block): Use it.
5342         (queue_to_ready): Use it, and also make sure to advance the DFA
5343         state on all stall cycles, not just those where insn_queue links
5344         are found.
5345
5346         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
5347
5348         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
5349         non-zero if the highest-priority instruction could be scheduled.
5350         (choose_ready): Remove last argument from max_issue call.
5351
5352         2001-09-28  David S. Miller  <davem@redhat.com>
5353
5354         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5355         ultrasparc and 3 for other multi-issue sparcs.
5356
5357         2001-09-27  David S. Miller  <davem@redhat.com>
5358
5359         * config/sparc/sparc.md (cycle_display): New pattern.
5360         * config/sparc/sparc.c (sparc_cycle_display): New.
5361         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5362
5363         2001-09-25  David S. Miller  <davem@redhat.com>
5364
5365         Convert all of Sparc scheduling to DFA
5366         * config/sparc/sparc.md: Kill all define_function_unit
5367         directives and replace with DFA equivalent.
5368         * config/sparc/sparc.c (ultrasparc_adjust_cost,
5369         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5370         ultra_fpmode_conflict_exists, ultra_find_type,
5371         ultra_build_types_avail, ultra_flush_pipeline,
5372         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5373         ultrasparc_variable_issue, ultrasparc_sched_init,
5374         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5375         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5376         ultra_cur_hist, ultra_cycles_elapsed): Kill.
5377         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5378         ultrasparc_store_bypass_p): New.
5379         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5380         Declare.
5381
5382         2001-09-24  David S. Miller  <davem@redhat.com>
5383
5384         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5385         ready->vec[foo] not ready[foo].
5386
5387         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5388
5389         * doc/md.texi: Correct examples for define_insn_reservations
5390         `mult' and `div'.
5391
5392         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5393
5394         * genautomata.c (create_automata): Print message about creation of
5395         each automaton.
5396         (generate): Remove printing meease about creation of
5397         automata.
5398
5399         2001-09-05  David S. Miller  <davem@redhat.com>
5400
5401         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5402         * config/sparc/linux64.h: Likewise.
5403
5404         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
5405
5406         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5407         schedule_block, sched_init, sched_finish): Add missed calls of
5408         use_dfa_pipeline_interface.
5409
5410         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5411         Ditto.
5412
5413         * sched-vis.c (get_visual_tbl_length): Ditto.
5414
5415         2001-08-27  Richard Henderson  <rth@redhat.com>
5416
5417         * genattr.c (main): Emit state_t even when not doing scheduling.
5418
5419         2001-08-27  Richard Henderson  <rth@redhat.com>
5420
5421         * genautomata.c (expand_automata): Always create a description.
5422
5423         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5424
5425         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5426         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5427         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5428         RTL constructions.
5429
5430         * genattr.c (main): New variable num_insn_reservations.  Increase
5431         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5432         pipeline hazard recognizer interface.
5433
5434         * genattrtab.h: New file.
5435
5436         * genattrtab.c: Include genattrtab.h.
5437         (attr_printf, check_attr_test, make_internal_attr,
5438         make_numeric_value): Move protypes into genattrtab.h.  Define them
5439         as external.
5440         (num_dfa_decls): New global variable.
5441         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5442         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5443         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5444         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5445
5446         * genautomata.c: New file.
5447
5448         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5449
5450         * sched-int.h: (curr_state): Add the external definition for
5451         automaton pipeline interface.
5452         (haifa_insn_data): Add comments for members blockage and units.
5453
5454         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5455         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5456         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5457         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5458         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5459         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5460         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5461         macros.
5462         (TARGET_SCHED): Use the new macros.
5463
5464         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5465         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5466         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5467         dfa_bubble): New members in gcc_target.sched.
5468
5469         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5470         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5471         (insn_queue): Redefine it as pointer to array.
5472         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5473         INSN_QUEUE_SIZE.
5474         (max_insn_queue_index_macro_value): New variable.
5475         (curr_state, dfa_state_size, ready_try): New varaibles for
5476         automaton interface.
5477         (ready_element, ready_remove, max_issue): New function prototypes
5478         for automaton interface.
5479         (choose_ready): New function prototype.
5480         (insn_unit, blockage_range): Add comments.
5481         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5482         FUNCTION_UNITS_SIZE == 0.
5483         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5484         actual_hazard, potential_hazard): Add comments.
5485         (insn_cost): Use cost -1 as undefined value.  Remove
5486         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5487         pipeline interface.
5488         (ready_element, ready_remove): New functions for automaton
5489         interface.
5490         (schedule_insn): Add new code for automaton pipeline interface.
5491         (queue_to_ready): Add new code for automaton pipeline interface.
5492         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5493         (debug_ready_list): Print newline when the queue is empty.
5494         (max_issue): New function for automaton pipeline interface.
5495         (choose_ready): New function.
5496         (schedule_block): Add new code for automaton pipeline interface.
5497         Print ready list before scheduling each insn.
5498         (sched_init): Add new code for automaton pipeline interface.
5499         Initiate insn cost by -1.
5500         (sched_finish): Free the current automaton state and finalize
5501         automaton pipeline interface.
5502
5503         * sched-rgn.c: Include target.h.
5504         (init_ready_list, new_ready, debug_dependencies): Add new code for
5505         automaton pipeline interface.
5506
5507         * sched-vis.c: Include target.h.
5508         (get_visual_tbl_length): Add code for automaton interface.
5509         (target_units, print_block_visualization):  Add comments.
5510
5511         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5512         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5513         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5514         (getruntime.o, genautomata.o): New entries.
5515         (genattrtab.o): Add new dependency file genattrtab.h.
5516         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5517         (getruntime.o, hashtab.o): New entries for canadian cross.
5518
5519         * doc/md.texi: Description of automaton based model.
5520
5521         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5522         Add comments.
5523         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5524         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5525         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5526         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5527         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5528         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5529         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5530         hook descriptions.
5531         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5532         MAX_DFA_ISSUE_RATE): New macro descriptions.
5533
5534         * doc/contrib.texi: Add dfa based scheduler contribution.
5535
5536         * doc/gcc.texi: Add more information about genattrtab.
5537
5538 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5539
5540         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5541         adjust_address_nv call.
5542
5543 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5544
5545         * doc/install.texi (Testing): Provide additional information, and
5546         a stronger encouragement, for running the testsuites.
5547
5548 2002-04-29  DJ Delorie  <dj@redhat.com>
5549
5550         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5551         given in upper case.
5552
5553 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5554
5555         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5556         Solaris 2 <widec.h> if missing.
5557         * fixinc/fixincl.x: Regenerate.
5558         * fixinc/tests/base/widec.h: New file.
5559
5560 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5561
5562         * toplev.c (f_options): Add "profile" switch so that
5563         -fno-profile can be used to disable -p.
5564
5565 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5566
5567         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5568         UV2DImode.
5569         * tree.c (build_common_tree_nodes_2): Likewise.
5570         * tree.h (enum tree_index): Likewise.
5571         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5572
5573         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5574         entries.
5575         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5576         (ix86_expand_builtin): Add support for SSE2 builtins.
5577         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5578         (VALID_SSE_REG_MODE): Use it.
5579         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5580         (enum ix86_builtins): Add SSE2 builtins.
5581         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5582         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5583         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5584         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5585         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5586         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5587         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5588         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5589         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5590         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5591         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5592         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5593         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5594         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5595         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5596         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5597         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5598         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5599         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5600         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5601         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5602         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5603         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5604         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5605         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5606         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5607         lfence_insn): New patterns.
5608         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5609         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5610
5611 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5612
5613         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5614
5615 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5616
5617         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5618         Janis Johnson.
5619         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5620         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5621         and CPU instead of cpu.
5622
5623 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5624
5625         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5626         variables.
5627         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5628         (rest_of_compilation): Do if conversion only when asked for.
5629         (parse_options_and_default_flags): Set new variables to 1 for -O1
5630         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5631
5632 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5633
5634         * i386.c (dbx64_register_map): Fix typo.
5635
5636 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5637
5638         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5639         real_one_half, real_bb_freq_max): New static variables.
5640         (debug_profile_bbauxs): Kill.
5641         (process_note_predictions): Kill unused variable.
5642         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5643         volatile double.
5644         (propagate_freq): Use REAL_ARITHMETICS.
5645         (estimate_bb_frequencies): Likevise; init new static variables.
5646         * Makefile.in (predict.o): Add dependency on real.h
5647
5648 2002-04-28  David S. Miller  <davem@redhat.com>
5649
5650         PR target/6500
5651         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5652         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5653         several {reads,writes} instead.
5654         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5655         Define.
5656
5657 2002-04-27  David S. Miller  <davem@redhat.com>
5658
5659         PR target/6494
5660         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5661         of the stack bias.
5662
5663         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5664         including signal.h and sys/ucontext.h, not needed.
5665
5666 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5667
5668         * varasm.c (output_constant_def): Correct test for not calling
5669         ENCODE_SECTION_INFO for INTEGER_CST.
5670
5671 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5672
5673         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5674         keep most cases as function eval_token.
5675         (eval_token): New function.
5676         (_cpp_parse_expr): Read token here for improved diagnostics.
5677         Don't use op_as_text.  Detect bad ':' here.
5678         (reduce): Don't detect bad ':' here.
5679         (op_as_text): Remove.
5680         * cpphash.h (_cpp_test_assertion): Change prototype.
5681         * cpplib.c (_cpp_test_assertion): Change prototype.
5682
5683 2002-04-28  Richard Henderson  <rth@redhat.com>
5684
5685         PR c/5154
5686         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5687         (ggc_mark_rtx_children): New.
5688
5689 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5690
5691         PR target/6496
5692         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5693         after call peepholes for UltraSPARC.
5694         (call + jump 64-bit peepholes): Remove.
5695
5696 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5697
5698         PR c/6497
5699         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5700         result as temporary value.
5701
5702 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5703
5704         PR c++/6396
5705         * toplev.c (rest_of_compilation): Only run regrename and copy
5706         propagation if optimizing.
5707
5708 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5709
5710         PR optimization/6475
5711         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5712         register of REGNO_DECL (i).
5713         * Makefile.in (reload1.o): Add $(TREE_H).
5714
5715 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5716
5717         * cppexp.c (lex): Update to use state.skip_eval.
5718         (struct op): Remove prio and flags members.
5719         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5720         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5721         (LEFT_ASSOC): New macro.
5722         (optab): New table of operator priorities and flags.
5723         (SHIFT): Update.
5724         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5725         malloc-ed parser stack.
5726         (reduce): New; reduce the operator stack.
5727         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5728         * cpphash.h (struct op): Predeclare.
5729         (struct cpp_reader): New members op_stack, op_limit.
5730         (struct lexer_state): New member skip_eval.
5731         (_cpp_parse_expr): Update.
5732         (_cpp_expand_op_stack): New.
5733         * cpplib.c (do_if): Update.
5734         * cppinit.c (cpp_create_reader): Create op stack.
5735         (cpp_destroy): And destroy it.
5736         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5737         (TTYPE_TABLE): Correct.
5738
5739 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5740
5741         PR c/6343
5742         * c-decl.c (duplicate_decls): Call merge_weak.
5743         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5744         * output.h (merge_weak): Prototype merge_weak.
5745         * varasm.c (merge_weak): New function.
5746         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5747         Mark RTL with SYMBOL_REF_WEAK.
5748
5749 2002-04-27  Kurt Garloff <garloff@suse.de>
5750
5751         * tree-inline.c (inlinable_function_p): Improve heuristics
5752         by using a smoother function to cut down allowable inlinable size.
5753         * param.def: Add parameters max-inline-insns-single,
5754         max-inline-slope, min-inline-insns that determine the exact
5755         shape of the above function.
5756         * param.h: Likewise.
5757
5758 2002-04-26  Richard Henderson  <rth@redhat.com>
5759
5760         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5761         (yyoverflow): Re-add.  Set them.
5762         (free_parser_stacks): New.
5763         * c-common.h: Declare it.
5764         * c-lex.c (c_common_parse_file): Call it.
5765
5766 2002-04-26  Richard Henderson  <rth@redhat.com>
5767
5768         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5769         for fallthru search.
5770
5771 2002-04-26  Eric Christopher  <echristo@redhat.com>
5772
5773         PR optimization/3700
5774         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5775         (TARGET_SCHED_ISSUE_RATE): Use.
5776
5777 2002-04-25  David S. Miller  <davem@redhat.com>
5778
5779         PR target/6422
5780         * reorg.c (optimize_skip): Do not allow exception causing
5781         instructions to be considered for delay slots.
5782         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5783         (relax_delay_slots): Do not try to consider exception causing
5784         instructions as redundant.
5785
5786 2002-04-26  Richard Henderson  <rth@redhat.com>
5787
5788         PR c/5225
5789         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5790
5791 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5792
5793         PR bootstrap/6445
5794         * config/i386/i386.md (untyped_call): Return the value in a float
5795         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5796         TARGET_80387.
5797
5798 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5799
5800         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5801         in unsigned-ness correctly.
5802
5803 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5804
5805         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5806         portable runtime model.
5807
5808 2002-04-26  Richard Henderson  <rth@redhat.com>
5809
5810         * c-parse.in (yyoverflow): Revert.
5811
5812 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5813             Richard Henderson  <rth@redhat.com>
5814
5815         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5816         result as temporary value.
5817
5818 2002-04-26  Richard Henderson  <rth@redhat.com>
5819
5820         PR c/3581
5821         * c-common.c (fix_string_type): Split out of ...
5822         (combine_strings): ... here.  Take a varray, not a tree list.
5823         (c_expand_builtin_printf): Use fix_string_type.
5824         * c-common.h: Update decls.
5825         * c-parse.in (string): Remove.  Update all uses to use STRING
5826         instead, and not call combine_strings.
5827         (yylexstring): New.
5828         (_yylex): Use it.
5829         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5830         (build_asm_stmt): Likewise.
5831         * objc/objc-act.c (my_build_string): Use fix_string_type.
5832         (build_objc_string_object): Build varray for combine_strings.
5833
5834 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5835
5836         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5837         x86-64.
5838
5839 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5840
5841         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5842         (HAVE_NO_R_OPERAND): Remove.
5843         (HAVE_VALUE): Remove.
5844         (op_to_prio): Update.
5845         (UNARY): Don't alter flags.
5846         (_cpp_parse_expr): want_value used to indicate whether
5847         a number or unary operator is expected next.  Distinguish
5848         unary and binary +/-.
5849         (op_as_text): Update for unary operators.
5850
5851 2002-04-25  Richard Henderson  <rth@redhat.com>
5852
5853         PR c/2161
5854         * c-parse.in (yyoverflow): New.
5855
5856 2002-04-25  Richard Henderson  <rth@redhat.com>
5857
5858         PR c/2098
5859         * c-common.c (shorten_compare): Simplfy conditions leading to
5860         the generation of a warning.
5861
5862 2002-04-25  Richard Henderson  <rth@redhat.com>
5863
5864         PR c/2035
5865         * expmed.c (extract_bit_field): Fall through to generic code rather
5866         than aborting on subreg special case.
5867
5868 2002-04-25  David S. Miller  <davem@redhat.com>
5869
5870         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5871         for DECL being NULL.
5872
5873 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5874
5875         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5876
5877 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5878
5879         * c-decl.c (grokdeclarator): Remove outdated ??? note
5880         on invalid declaration of flexible array members.
5881
5882 2002-04-25  Richard Henderson  <rth@redhat.com>
5883
5884         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5885
5886 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5887
5888         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5889         needed by the compiler, even if they are used as global regs.
5890
5891 2002-04-25  Matt Hiller  <hiller@redhat.com>
5892
5893         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5894         functions.
5895         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5896         of the corresponding functions.
5897         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5898         New prototypes.
5899
5900 2002-04-25  Matt Hiller  <hiller@redhat.com>
5901
5902         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5903
5904         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5905         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5906         registers, adjust comment accordingly.
5907         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5908         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5909         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5910         for coprocessor registers.
5911         (ADDITIONAL_REGISTER_NAMES): Include
5912         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5913
5914         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5915         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5916         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5917         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5918         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5919
5920         (mips_char_to_class): Adjust comment to include coprocessor
5921         constraint letters.
5922
5923         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5924         New functions.
5925         (mips_reg_names, mips_regno_to_class): Include coprocessor
5926         information.
5927         (mips_sw_reg_names): Ditto, make non-static.
5928         (mips_move_1word): Handle moves to and from coprocessor registers.
5929         (mips_move_2words): Handle moves to and from coprocessor
5930         registers.
5931         (mips_class_max_nregs, mips_register_move_cost): Handle
5932         coprocessor register classes.
5933         (override_options): Initialize mips_char_to_class and
5934         mips_hard_regno_mode_ok properly for coprocessor registers.
5935
5936         * config/mips/mips.md (movdi_internal, movdi_internal2,
5937         movsi_internal1, movsi_internal2): Add constraint-sets for
5938         coprocessor registers.
5939         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5940         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5941         isn't mips.
5942         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5943         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5944         isn't mips.
5945         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5946         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5947         isn't mips.
5948         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5949         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5950         isn't mips.
5951
5952         * doc/tm.texi: Document feature.
5953
5954 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5955
5956         * integrate.c (function_attribute_inlinable_p): Simplify.
5957         Check the table pointer is not NULL.
5958
5959 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5960
5961         * doc/c-tree.texi: Fix typo in introduction.
5962
5963 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5964
5965         * c-common.h (c_common_parse_file): Update.
5966         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5967         * c-lex.c (YYDEBUG): Get from c-lex.h.
5968         (c_common_parse_file): Update.
5969         * c-lex.h (YYDEBUG, yydebug): New.
5970         * c-parse.in (YYDEBUG): Get from c-lex.h.
5971         (c_set_yydebug): Remove.
5972         * c-tree.h (c_set_yydebug): Remove.
5973         * langhooks-def.h (lhd_do_nothing_i): New.
5974         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5975         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5976         * langhooks.c  (lhd_do_nothing_i): New.
5977         (lhd_set_yydebug): Remove.
5978         * langhooks.h (struct lang_hooks): Update.
5979         * toplev.c (set_yydebug): New.
5980         (compile_file): Update call to parse_file hook.
5981         (decode_d_option): Update.
5982 objc:
5983         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5984
5985 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
5986
5987         * loop.c (load_mems): Don't change the interface of called functions.
5988
5989         * calls.c (expand_call): Take current_function_pretend_args_size
5990         into account when setting argblock for sibcalls.
5991
5992 2002-04-24  Matt Hiller  <hiller@redhat.com>
5993
5994         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5995         * c-lex.c: Ditto.
5996
5997         * cpplex.c (skip_line_comment): Process comment one multibyte
5998         character at a time rather than one char at a time, if
5999         appropriate.
6000         (parse_string): Process string one multibyte character at a time
6001         rather than one char at a time, if appropriate.
6002         * c-lex.c (lex_string): Lex and copy multibyte strings
6003         appropriately.
6004         * cpplib.h (cppchar_t): Change to unsigned.
6005
6006 2002-04-24  Richard Henderson  <rth@redhat.com>
6007
6008         PR c/3467
6009         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
6010         for c99.
6011
6012 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
6013
6014         * sh.c (sh_va_arg): If argument was passed by reference,
6015         dereference the pointer.
6016
6017         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6018
6019         * sh.md (divsi3_i4_media): Use match_operand for input values
6020         rather than hard registers.
6021         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
6022         unnecessarily through hard registers.  Keep copies of pseudo
6023         registers outside of the libcall sequence.
6024
6025         * sh.md (casesi_shift_media): Add modes.
6026
6027         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
6028         values in memory.
6029
6030 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6031
6032         * attribs.c (c_common_attribute_table): Move table and handlers
6033         to c-common.c.
6034         (format_attribute_table, lang_attribute_table,
6035         lang_attribute_common): Remove.
6036         (init_attributes): Replace NULL pointers with pointers to the
6037         empty table.
6038         (handle_packed_attribute, handle_nocommon_attribute,
6039         handle_common_attribute, handle_noreturn_attribute,
6040         handle_noinline_attribute, handle_always_inline_attribute,
6041         handle_used_attribute, handle_unused_attribute,
6042         handle_const_attribute, handle_transparent_union_attribute,
6043         handle_constructor_attribute, handle_destructor_attribute,
6044         handle_mode_attribute, handle_section_attribute,
6045         handle_aligned_attribute, handle_weak_attribute,
6046         handle_alias_attribute, handle_visibility_attribute,
6047         handle_no_instrument_function_attribute, handle_malloc_attribute,
6048         handle_no_limit_stack_attribute, handle_pure_attribute,
6049         handle_deprecated_attribute, handle_vector_size_attribute,
6050         vector_size_helper): Move to c-common.c.
6051         * c-common.c (c_common_attribute_table,
6052         handle_packed_attribute, handle_nocommon_attribute,
6053         handle_common_attribute, handle_noreturn_attribute,
6054         handle_noinline_attribute, handle_always_inline_attribute,
6055         handle_used_attribute, handle_unused_attribute,
6056         handle_const_attribute, handle_transparent_union_attribute,
6057         handle_constructor_attribute, handle_destructor_attribute,
6058         handle_mode_attribute, handle_section_attribute,
6059         handle_aligned_attribute, handle_weak_attribute,
6060         handle_alias_attribute, handle_visibility_attribute,
6061         handle_no_instrument_function_attribute, handle_malloc_attribute,
6062         handle_no_limit_stack_attribute, handle_pure_attribute,
6063         handle_deprecated_attribute, handle_vector_size_attribute,
6064         vector_size_helper): Move from attribs.c.
6065         * c-common.h (c_common_attribute_table,
6066         c_common_format_attribute_table): New.
6067         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6068         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6069         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
6070         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
6071         (LANG_HOOKS_INITIALIZER): Update.
6072         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
6073         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
6074         * target.h: Update comment.
6075         * tree.c (default_target_attribute_table): Remove.
6076         * tree.h (default_target_attribute_table, format_attribute_table,
6077         lang_attribute_table, lang_attribute_common): Remove.
6078 objc:
6079         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6080         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6081
6082 2002-04-24  Jason Merrill  <jason@redhat.com>
6083
6084         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
6085         * dwarf2out.c (dwarf_attr_name): Support it.
6086         (gen_array_type_die): Emit it.
6087         (lookup_type_die): No special handling for VECTOR_TYPE.
6088         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
6089
6090 2002-04-24  Richard Henderson  <rth@redhat.com>
6091
6092         * config/mips/mips.md (movdi_usd): Renumber.
6093
6094 2002-04-24  David S. Miller  <davem@redhat.com>
6095
6096         PR target/6420
6097         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
6098         32-bit Sparc and current_function_returns_struct is true.
6099
6100 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6101
6102         * loop.c (canonicalize_condition): Use gen_int_mode.
6103
6104 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
6105
6106         * config/rs6000/altivec.h: Cleanup file.  Add non individual
6107         variants.
6108         (vec_vaddubm): New.
6109         (vec_vadduhm): New.
6110         (vec_vadduwm): New.
6111         (vec_vaddfp): New.
6112         (vec_vaddcuw): New.
6113         (vec_vaddubs): New.
6114         (vec_vaddsbs): New.
6115         (vec_vadduhs): New.
6116         (vec_vadduws): New.
6117         (vec_vaddsws): New.
6118         (vec_vand): New.
6119         (vec_vandc): New.
6120         (vec_vavgub): New.
6121         (vec_vavgsb): New.
6122         (vec_vavguh): New.
6123         (vec_vavgsh): New.
6124         (vec_vavguw): New.
6125         (vec_vavgsw): New.
6126         (vec_vrfip): New.
6127         (vec_vcmpbfp): New.
6128         (vec_vcmpequb): New.
6129         (vec_vcmpequh): New.
6130         (vec_vcmpequw): New.
6131         (vec_vcmpeqfp): New.
6132         (vec_vcmpgefp): New.
6133         (vec_vcmpgtub): New.
6134         (vec_vcmpgtsb): New.
6135         (vec_vcmpgtuh): New.
6136         (vec_vcmpgtsh): New.
6137         (vec_vcmpgtuw): New.
6138         (vec_vcmpgtsw): New.
6139         (vec_vcmpgtfp): New.
6140         (vec_vcmpgefp): New.
6141         (vec_vcfux): New.
6142         (vec_vcfsx): New.
6143         (vec_vctsxs): New.
6144         (vec_vctuxs): New.
6145         (vec_vexptefp): New.
6146         (vec_vrfim): New.
6147         (vec_lvx): New.
6148         (vec_lvebx): New.
6149         (vec_lvehx): New.
6150         (vec_lde): Add vector float variant.
6151         (vec_lvewx): New.
6152         (vec_lvxl): New.
6153         (vec_vlogefp): New.
6154         (vec_vmaddfp): New.
6155         (vec_vmhaddshs): New.
6156         (vec_vmaxub): New.
6157         (vec_vmaxsb): New.
6158         (vec_vmaxuh): New.
6159         (vec_vmaxsh): New.
6160         (vec_vmaxuw): New.
6161         (vec_vmaxsw): New.
6162         (vec_vmaxsw): New.
6163         (vec_vmaxfp): New.
6164         (vec_vmrghb): New.
6165         (vec_vmrghh): New.
6166         (vec_vmrghw): New.
6167         (vec_vmrglb): New.
6168         (vec_vmrglh): New.
6169         (vec_vmrglw): New.
6170         (vec_vminub): New.
6171         (vec_vminsb): New.
6172         (vec_vminuh): New.
6173         (vec_vminsh): New.
6174         (vec_vminuw): New.
6175         (vec_vminsw): New.
6176         (vec_vminfp): New.
6177         (vec_vmladduhm): New.
6178         (vec_vmhraddshs): New.
6179         (vec_msumubm): New.
6180         (vec_vmsummbm): New.
6181         (vec_vmsumuhm): New.
6182         (vec_vmsumshm): New.
6183         (vec_vmsumuhs): New.
6184         (vec_vmsumshs): New.
6185         (vec_vmuleub): New.
6186         (vec_vmulesb): New.
6187         (vec_vmuleuh): New.
6188         (vec_vmulesh): New.
6189         (vec_vmuloub): New.
6190         (vec_mulosb): New.
6191         (vec_vmulouh): New.
6192         (vec_vmulosh): New.
6193         (vec_vnmsubfp): New.
6194         (vec_vnor): New.
6195         (vec_vor): New.
6196         (vec_vpkuhum): New.
6197         (vec_vpkuwum): New.
6198         (vec_vpkpx): New.
6199         (vec_vpkuhus): New.
6200         (vec_vpkshss): New.
6201         (vec_vpkuwus): New.
6202         (vec_vpkswss): New.
6203         (vec_vpkshus): New.
6204         (vec_vpkswus): New.
6205         (vec_vperm): New.
6206         (vec_vrefp): New.
6207         (vec_vrlb): New.
6208         (vec_vrlh): New.
6209         (vec_vrlw): New.
6210         (vec_vrfin): New.
6211         (vec_vrsqrtefp): New.
6212         (vec_vsel): New.
6213         (vec_vslb): New.
6214         (vec_vslh): New.
6215         (vec_vslw): New.
6216         (vec_vsldoi): New.
6217         (vec_vsl): New.
6218         (vec_vslo): New.
6219         (vec_vspltb): New.
6220         (vec_vsplth): New.
6221         (vec_vspltw): New.
6222         (vec_vspltisb): New.
6223         (vec_vspltish): New.
6224         (vec_vspltisw): New.
6225         (vec_vsrb): New.
6226         (vec_vsrh): New.
6227         (vec_vsrw): New.
6228         (vec_vsrab): New.
6229         (vec_vsrah): New.
6230         (vec_vsraw): New.
6231         (vec_vsr): New.
6232         (vec_vsro): New.
6233         (vec_stvx): New.
6234         (vec_stvebx): New.
6235         (vec_stvehx): New.
6236         (vec_stvewx): New.
6237         (vec_stvxl): New.
6238         (vec_vsububm): New.
6239         (vec_vsubuhm): New.
6240         (vec_vsubuwm): New.
6241         (vec_vsubfp): New.
6242         (vec_vsubcuw): New.
6243         (vec_vsububs): New.
6244         (vec_vsubsbs): New.
6245         (vec_vsubuhs): New.
6246         (vec_vsubshs): New.
6247         (vec_vsubuws): New.
6248         (vec_vsubsws): New.
6249         (vec_vsum4ubs): New.
6250         (vec_vsum4sbs): New.
6251         (vec_vsum4shs): New.
6252         (vec_vsum2sws): New.
6253         (vec_vsumsws): New.
6254         (vec_vrfiz): New.
6255         (vec_vupkhsb): New.
6256         (vec_vupkhpx): New.
6257         (vec_vupkhsh): New.
6258         (vec_vupklsb): New.
6259         (vec_vupklpx): New.
6260         (vec_vupklsh): New.
6261         (vec_vxor): New.
6262
6263 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
6264
6265         PR c/5430
6266         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6267         added literals from substracted literals.
6268         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6269         (fold) [associate]: Preserve MINUS_EXPR if needed.
6270
6271 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
6272
6273         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6274         are obsoleted.
6275
6276 2002-04-23  Tom Tromey  <tromey@redhat.com>
6277
6278         * gcc.c: Added --resource.  For PR java/6314.
6279
6280 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6281
6282         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6283         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6284         these libraries.
6285
6286 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6287
6288         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6289
6290 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6291
6292         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6293         workaround.
6294         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6295         (ix86_expand_clrstr): Fix typo.
6296         * loop.c (gen_load_of_final_value): New.
6297         (loop_givs_rescan, strength_reduce, check_dbra_loop):
6298         Use it.
6299
6300 2002-04-23  Roger Sayle  <roger@eyesopen.com>
6301
6302         * builtins.c (builtin_memset_gen_str): New function.
6303         (expand_builtin_memset): Optimize the case of constant length, but
6304         unknown value.
6305
6306 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
6307
6308         * config/rs6000/altivec.h (vec_step): Remove extraneous
6309         parentheses.
6310         (vec_ctu): Cast return.
6311
6312 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
6313
6314         PR target/6413
6315         * function.h: (struct function): Add profile_label_no field.
6316         (current_function_profile_label_no): Define.
6317         * function.c: (profile_label_no): New static var.
6318         (expand_function_start): Increment it, and copy to
6319         current_function_profile_label_no.
6320         * output.h (profile_label_no): Delete.
6321         * final.c (profile_label_no): Delete.
6322         (profile_function): Use current_function_profile_label_no.
6323         (final_end_function): Don't increment profile_label_no here.
6324         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6325         profile_label_no with current_function_profile_label_no.
6326         * config/pa/pa.c (current_function_number): Delete.
6327         (pa_output_function_prologue): Don't output profile label here.
6328         (hppa_profile_hook): Use label_no param rather than
6329         current_function_number.
6330         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6331         * config/pa/pa.h: .. here.
6332         (FUNCTION_PROFILER): Output profile label here.
6333
6334 2002-04-22  Eric Christopher  <echristo@redhat.com>
6335
6336         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6337         patch of 2002-04-09 due to binutils issues.
6338         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6339
6340 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6341
6342         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6343         constraint to 'o' for m=r and r=m alternatives.
6344         ("*movv8hi_internal1"): Same.
6345         ("*movv16qi_internal1"): Same.
6346         ("*movv4sf_internal1"): Same.
6347
6348 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
6349
6350         * rtl.h (RTX_FLAG): New macro.
6351         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6352         * final.c (alter_subreg): Use macro to access rtx flag.
6353         * integrate.c (copy_rtx_and_substitute): Use new access macro.
6354         * print-rtl.c (print_rtx): Use new access macro.
6355
6356         * cse.c (insert): Check rtx code before accessing flag.
6357
6358         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6359         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6360         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6361         convert_const_symbol_ref, make_canonical, make_alternative_compare,
6362         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6363         simplify_test_exp, optimize_attrs, simplify_by_exploding,
6364         find_and_mark_used_attributes, unmark_used_attributes,
6365         add_values_to_cover, simplify_with_current_value,
6366         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6367         copy_rtx_unchanging, main): Use new access macros.
6368
6369 2002-04-22  Tom Rix  <trix@redhat.com>
6370
6371         * expmed.c (init_expmed): Generate shifted constant once.
6372
6373 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
6374
6375         * c-lex.c (lex_charconst): Call convert to get constant in
6376         proper type; don't just smash the type field.
6377         Fixes PR c/6300.
6378
6379         * config.gcc: Add list of obsolete configurations.  Disallow
6380         building these without --enable-obsolete.
6381         * doc/install.texi: Document --enable-obsolete and obsoletion
6382         policy.  Mention obsoletion of individual targets in
6383         appropriate places.
6384
6385 2002-04-22  Richard Henderson  <rth@redhat.com>
6386
6387         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6388
6389 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
6390
6391         PR f/6138.
6392         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6393         (walk_fixup_memory_subreg): Likewise.
6394         (fixup_var_refs_insn): Adjust accordingly.
6395         (fixup_var_refs_1): Likewise.
6396
6397 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
6398
6399         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6400         LIBPATH_ARCH64_SPEC): Define.
6401         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6402         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6403         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6404         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6405
6406 2002-04-22      Joel Sherrill <joel@OARcorp.com>
6407
6408         * gthr-rtems.h: Correct prototypes to remove warnings.
6409
6410 2002-04-22  Richard Henderson  <rth@redhat.com>
6411
6412         PR c/6344
6413         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6414
6415         * gcse.c (free_insn_expr_list_list): New.
6416         (clear_modify_mem_tables): Use it.  Fix bit set usage.
6417         (canon_list_insert): Use EXPR_LISTs for expressions.
6418         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6419
6420 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6421
6422         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
6423         file change and include code to _cpp_pop_buffer.
6424         * cpphash.h (struct pending_option): Predeclare.
6425         (struct cpp_reader): New member next_include_file.
6426         (_cpp_pop_file_buffer): Update.
6427         (_cpp_push_next_buffer): Update, rename.
6428         * cppinit.c (cpp_destroy): Free include chain and pending here.
6429         (cpp_finish_options): Simplify.
6430         (_cpp_push_next_buffer): Rename and clean up.
6431         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6432         Clarify.
6433         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6434
6435 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6436
6437         * config/rs6000/altivec.h (vec_xor): Add variant for both args
6438         being vector signed int.
6439         (vec_andc): Same.
6440         (vec_xor): Add variant for both args being vector signed char.
6441         Remove redundant variant.
6442         (vec_andc): Same.
6443
6444 2002-04-21  David S. Miller  <davem@redhat.com>
6445
6446         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6447         compare mode in output RTL.
6448
6449 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
6450
6451         * config/rs6000/rs6000.c (rs6000_override_options): Correct
6452         style and formatting of previous patch.
6453
6454 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
6455
6456         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6457         flag_pic for ABI_AIX.
6458
6459 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6460
6461         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6462         * cppfiles.c (read_include_file): Similarly.
6463         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6464         uxstrdup ustrchr, ufputs): Similarly.
6465         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6466         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6467         cpp_ideq, parse_identifier, parse_number): Similarly.
6468         * cpplib.c (struct directive, dequote_string, D, run_directive,
6469         cpp_push_buffer): Similarly.
6470         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6471         _cpp_create_definition, check_trad_stringification,
6472         cpp_macro_definition): Similarly.
6473
6474 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6475
6476         * cppmacro.c (funlike_invocation_p): Don't step back
6477         over CPP_EOF.
6478
6479 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
6480
6481         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6482         labelno.
6483
6484 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6485
6486         * doc/invoke.texi: Remove Chill references.
6487         * doc/gcc.texi: Update last modified date.
6488
6489 2002-04-20  Kazu Hirata  <kazu@hxi.com>
6490
6491         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6492         push and pop.  Replace add.l with add.w.
6493
6494 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6495
6496         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6497         multiply instructions for H8/300H case.
6498
6499 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6500
6501         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6502         Bum three instructions from each routine.
6503
6504 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6505
6506         * Makefile.in: Update.
6507         * decl.c (push_c_function_context, pop_c_function_context,
6508         mark_c_function_context): Rename for consistency.
6509         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6510         * c-tree.h (push_c_function_context, pop_c_function_context,
6511         mark_c_function_context): Rename for consistency.
6512         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6513         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6514         * function.c (init_lang_status, save_lang_status,
6515         restore_lang_status, mark_lang_status, free_lang_status):
6516         Move to langhooks.h.
6517         (push_function_context_to, pop_function_context_from,
6518         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6519         Update.
6520         * function.h (init_lang_status, save_lang_status,
6521         restore_lang_status, mark_lang_status, free_lang_status):
6522         Move to langhooks.h.
6523         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6524         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6525         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6526         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6527         (LANG_HOOKS_INITIALIZER): Update.
6528         (lhd_do_nothing_f): New.
6529         * langhooks.h (struct lang_hooks_for_functions): New.
6530         (struct lang_hooks): New hooks.
6531         * langhooks.c (lhd_do_nothing_f): New.
6532 objc:
6533         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6534         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6535
6536 2002-04-19  David S. Miller  <davem@redhat.com>
6537
6538         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6539         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6540
6541 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6542
6543         PR optimization/3756
6544         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6545         x = ((int) y < 0) ? cst1 : cst2.
6546
6547 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6548
6549         PR c/6358
6550         * function.c: Reapply patch for c/6358.
6551         (expand_function_end): Copy decl_rtl's mode, not
6552         current_function_return_rtx mode.
6553
6554 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6555
6556         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6557         targets.
6558
6559 2002-04-19  Tom Tromey  <tromey@redhat.com>
6560
6561         * doc/install.texi (Specific): Update status of Solaris 2.8.
6562         For PR libgcj/6158.
6563
6564 2002-04-19  Andreas Schwab  <schwab@suse.de>
6565
6566         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6567         (PUT_REAL): Restore old definition.
6568
6569 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6570             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6571
6572         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6573         binutils 2.11.2 and higher generate smaller binaries than Sun's
6574         native tools.
6575
6576 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6577
6578         PR c++/6352
6579         * toplev.c (rest_of_compilation): Do not defer functions for which
6580         TREE_SYMBOL_REFERENCED has already been set.
6581
6582 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6583
6584         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6585         alternative.
6586
6587 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6588
6589         * builtins.c: Include langhooks.h.
6590         (lang_type_promotes_to): Remove.
6591         (expand_builtin_va_arg): Use new hook.
6592         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6593         (simple_type_promotes_to): Move to c-typeck.c.
6594         * c-common.h (simple_type_promotes_to): Remove.
6595         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6596         * c-format.c: Include langhooks.h.
6597         (check_format_types): Update.
6598         * c-tree.h (c_type_promotes_to): New.
6599         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6600         (type_lists_compatible_p): Update.
6601         * langhooks-def.h (lhd_type_promotes_to): New.
6602         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6603         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6604         * langhooks.c (lhd_type_promotes_to): New.
6605         * langhooks.h (struct lang_hooks_for_types): New hook.
6606         * tree.h (lang_type_promotes_to): Remove.
6607 objc:
6608         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6609
6610 2002-04-18  Richard Henderson  <rth@redhat.com>
6611
6612         * function.c: Revert patch for c/6358.
6613
6614 2002-04-18  Richard Henderson  <rth@redhat.com>
6615
6616         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6617         blocks.  Handle multiple references to the TRAP block.  Handle
6618         non-adjacent THEN and OTHER blocks.
6619
6620 2002-04-18  Richard Henderson  <rth@redhat.com>
6621
6622         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6623         crash with no type for by-mode libcalls.
6624
6625         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6626
6627 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6628
6629         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6630         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6631         the register windows.
6632
6633 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6634
6635         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6636         appropriate.  Document need for extended precision even when
6637         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6638         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6639         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6640         instead of relying on later syntax error when REAL_WIDTH > 5.
6641         * real.c: Define NE based only on whether or not we have a
6642         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6643         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6644         define GET_REAL and PUT_REAL as simple memcpy operations; no
6645         need to byteswap or round.
6646         Use #error instead of #ifdef-ing out the entire file, for
6647         prompt error detection.
6648
6649         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6650
6651 2002-04-18  David S. Miller  <davem@redhat.com>
6652
6653         * config/sparc/sparc.h (BRANCH_COST): Define.
6654
6655         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6656         does it.
6657
6658 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6659
6660         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6661         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6662         propagate_block calls after relaxation loop using new variable
6663         stabilized_prop_flags.
6664
6665 2002-04-18  Richard Henderson  <rth@redhat.com>
6666
6667         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6668         (ia64_va_arg): Expect variable sized types by reference.
6669         * config/ia64/ia64-protos.h: Update.
6670         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6671         ia64_function_arg_pass_by_reference.
6672
6673 2002-04-18  Richard Henderson  <rth@redhat.com>
6674
6675         * ifcvt.c: Include except.h.
6676         (block_has_only_trap): Break out from find_cond_trap.
6677         (find_cond_trap): Use it.  Always delete the trap block.
6678         (merge_if_block): Allow then block null.  Be less simplistic about
6679         what insns can end a block.
6680         * Makefile.in (ifcvt.o): Depend on except.h.
6681
6682         * config/ia64/ia64.md (trap, conditional_trap): New.
6683
6684 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6685
6686         PR c/6358
6687         * function.c (assign_parms): Assign hard current_function_return_rtx
6688         register here...
6689         (expand_function_end): ...not here.
6690
6691 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6692
6693         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6694         * c-tree.h (c_incomplete_type_error): New.
6695         * c-typeck.c (require_complete_type, build_component_ref): Update.
6696         (incomplete_type_error): Rename.
6697         * langhooks-def.h (lhd_incomplete_type_error): New.
6698         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6699         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6700         * langhooks.c (lhd_incomplete_type_error): New.
6701         * langhooks.h (struct lang_hooks_for_types): New hook.
6702         * tree.c (size_in_bytes): Use new hook.
6703         * tree.h (incomplete_type_error): Remove.
6704 objc:
6705         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6706
6707 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6708
6709         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6710         TARGET_FLOAT_FORMAT blocks.
6711
6712 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6713
6714         * doc/install.texi (Downloading the source): Do not mention Chill
6715         any longer, but mention Ada.
6716         (Configuration): Do not mention Chill any longer.
6717
6718 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6719
6720         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6721
6722 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6723
6724         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6725         in last patch.
6726
6727 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6728
6729         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6730         instead of unsigned_type.
6731
6732 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6733
6734         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6735         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6736         later.
6737
6738 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6739
6740         * attribs.c (vector_type_node_list): New static variable.
6741         (handle_vector_size_attribute): Use it to avoid generating a
6742         new type node each time we are called.
6743
6744         * combine.c (subst): Avoid trying to make a vector mode subreg of
6745         an integer constant.
6746         (gen_lowpart_for_combine): Likewise.
6747
6748 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6749             Jakub Jelinek  <jakub@redhat.com>
6750
6751         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6752         for integer constant c (if x has unsigned type or sign bit is not
6753         set in c).  This folds the zero/sign extension into the bit-wise and
6754         operation.
6755
6756 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6757
6758         PR middle-end/6205
6759         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6760         otherwise xorps.
6761
6762 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6763
6764         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6765
6766 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6767
6768         * gcc.c (read_specs): Detect and fail if an attempt is made to
6769         rename a spec string to an already existing string.
6770
6771 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6772
6773         * config/s390/s390.c (legitimize_pic_address): Do not generate
6774         illegal address constant without CONST.
6775
6776 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6777
6778         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6779         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6780
6781 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6782
6783         PR optimization/6305
6784         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6785         to make sure previous reloads are taken into account.  Generate
6786         better code if one operand is an in-range immediate constant.
6787
6788 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6789
6790         * doc/install.texi (Building): libgcj requires GNU make.
6791
6792 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6793
6794         PR bootstrap/6315
6795         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6796         even if hard quad and register is not floating.
6797         (movtf reg<-mem split): Disallow splitting if hard quad and
6798         register is floating.
6799         (movtf mem<-reg split): Likewise.
6800         * config/sparc/sparc.c (fp_register_operand): New predicate.
6801         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6802
6803 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6804
6805         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6806         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6807         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6808         UNPROTOIZE on command line.
6809         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6810         (in_system_include_dir): Use cpp_include_defaults (defined in
6811         cppdefault.o).
6812         * unprotoize.c: Delete file.
6813
6814 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6815
6816         * config/rs6000/altivec.h (vec_ld): Add array variants.
6817         (vec_lde): Same.
6818         (vec_ldl): Same.
6819
6820 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6821             Aldy Hernandez <aldyh@redhat.com>
6822
6823         * config/rs6000/altivec.h: Define __ALTIVEC__.
6824         (bool): New.
6825         (__pixel): New.
6826         (pixel): New.
6827         (vec_cfux): New.
6828         (vec_vmaddfp): New.
6829         (vec_vsldoi): New.
6830         Add parentheses to all macro arguments.
6831
6832 2002-04-16  Richard Henderson  <rth@redhat.com>
6833
6834         PR c++/6320
6835         * except.c (remove_eh_handler): Insert inner regions at beginning
6836         of sibling chain.  Refactor expressions.
6837
6838 2002-04-16  Richard Henderson  <rth@redhat.com>
6839
6840         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6841         * config/sparc/sol2-gas-bi.h: New file.
6842         * config.gcc (sparc*-solaris): Add it as needed.
6843         * configure.in (AS_SPARC64_FLAG): Remove check.
6844         * config.in, configure: Regenerate.
6845
6846         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6847
6848 2002-04-16  Richard Henderson  <rth@redhat.com>
6849
6850         * config/mips/mips.c (override_options): Don't override N32 for
6851         a 64-bit ISA.
6852
6853         PR 6202
6854         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6855         (HILO_delay): Set can_delay false.
6856
6857 2002-04-16  Dale Johannesen <dalej@apple.com>
6858
6859         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6860         instruction addresses.
6861         (rs6000_output_function_epilogue): Likewise.
6862
6863 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6864
6865         * c-parse.in (poplevel, compstmt_start,
6866         compstmt_primary_start): Add ending ';', in accordance
6867         with POSIX.
6868
6869 2002-04-16  Richard Henderson  <rth@redhat.com>
6870
6871         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6872         Adjust tm_file order to get TARGET_DEFAULT set properly.
6873         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6874         * doc/install.texi (sparc-solaris): Update.
6875
6876 2002-04-16  Dale Johannesen <dalej@apple.com>
6877
6878         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6879         comparison operands do not match each other or if modes of
6880         conditions do not match result.
6881
6882 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6883
6884         PR target/6305
6885         * config/s390/s390.md (mulsidi3): Set both subregs of the
6886         multiword register.
6887
6888 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6889
6890         * config/rs6000/altivec.h (vec_addc): Type check.
6891
6892 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6893
6894         PR middle-end/6279
6895         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6896
6897         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6898
6899 2002-04-15  Richard Henderson  <rth@redhat.com>
6900
6901         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6902         call_really_used_regs too.
6903
6904 2002-04-15  Richard Henderson  <rth@redhat.com>
6905
6906         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6907
6908 2002-04-15  David S. Miller  <davem@redhat.com>
6909
6910         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6911         as being CLOBBERed.
6912
6913 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6914
6915         PR c/6290
6916         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6917         CONST_VECTOR is { 0, ... 0 }.
6918
6919 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6920
6921         * doc/install.texi (Installing GCC: Configuration): Clarify
6922         the only supported ways to configure gcc.
6923
6924 2002-04-15  Roland McGrath  <roland@frob.com>
6925
6926         * config.gcc (alpha*-*-gnu*): New target configuration.
6927         * config/alpha/gnu.h: New file for it.
6928         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6929
6930 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6931
6932         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6933         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6934         * tree.h (expand_start_stmt_expr): Update prototype.
6935         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6936         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6937         on the STMT_EXPR created for the inline function.
6938
6939 2002-04-15  Richard Henderson  <rth@redhat.com>
6940
6941         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6942         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6943         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6944         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6945         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6946         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6947         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6948         Define __gnu_linux__, not gnu_linux.
6949         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6950
6951 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6952
6953         Remove Chill front end.
6954         * gcc.c (default_compilers): Remove Chill entries.
6955         * ch: Remove directory.
6956         * doc/frontends.texi: Remove information about Chill.
6957         * doc/sourcebuild.texi: Likewise.
6958         * doc/standards.texi: Likewise.
6959
6960 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6961
6962         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6963         (LONGLONG_STANDALONE): Define.
6964
6965 2002-04-15  David S. Miller  <davem@redhat.com>
6966
6967         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6968         Call emit_library_call with LCT_NORMAL.
6969         (sparc_initialize_trampoline): Use LCT_foo instead of
6970         magic constant in emit_library_call invocations.
6971         (sparc64_initialize_trampoline): Likewise.
6972         (sparc_profile_hook): Likewise.
6973         * config/sparc/sparc.md: Likewise.
6974
6975         * config/sparc/sparc.c (sparc_extra_constraint_check):
6976         Fix type of argument 'c'.
6977         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6978         Likewise.
6979
6980 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6981
6982         * diagnostic.h (output_buffer_state): Redefine.
6983         (output_format_decoder): New macro.
6984         (output_prefixing_rule): Likewise.
6985         (output_line_cutoff): Likewise.
6986         (diagnostic_format_decoder): Adjust.
6987         (diagnostic_prefixing_rule): Likewise.
6988         (diagnostic_line_cutoff): Likewise.
6989         (diagnostic_state): Likewise.
6990         (diagnostic_kind_count): Likewise.
6991         (diagnostic_buffer): Now a macro.
6992
6993         * diagnostic.c (diagnostic_buffer): Remove definition.
6994         (output_is_line_wrapping): Adjust.
6995         (set_real_maximum_length): Likewise.
6996         (output_set_maximum_length): Likewise.
6997         (init_output_buffer): Likewise.
6998         (lhd_print_error_function): Likewise.
6999         (output_do_verbatim): Likewise.
7000
7001 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7002
7003         * cpperror.c (print_location): Don't print include chain
7004         if line == 0.
7005         (cpp_begin_message): Update to use DL_ macros.
7006         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7007         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7008         cpp_notice, cpp_notice_from_errno): Remove.
7009         (cpp_error, cpp_error_with_line): Update to take a diagnostic
7010         level.
7011         (cpp_errno): New.
7012         * cppexp.c (CPP_ICE): Remove.
7013         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
7014         lex, integer_overflow, _cpp_parse_expr): Update.
7015         * cppfiles.c (read_include_file, find_include_file,
7016         handle_missing_header, _cpp_read_file, remap_filename): Update.
7017         * cpphash.h (enum error_type): Remove.
7018         (_cpp_begin_message): Update.
7019         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
7020         cpp_handle_option, cpp_post_options): Update.
7021         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
7022         skip_whitespace, parse_identifier, parse_slow, parse_string,
7023         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
7024         cpp_interpret_charconst): Update.
7025         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
7026         lex_macro_node, do_undef, glue_header_name, parse_include,
7027         do_include_common, read_flag, do_line, do_linemarker, do_ident,
7028         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
7029         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
7030         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
7031         _cpp_pop_buffer, do_diagnostic): Update.
7032         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
7033         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
7034         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7035         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7036         cpp_notice, cpp_notice_from_errno): Remove.
7037         (cpp_error, cpp_error_with_line): Update to take a diagnostic
7038         level.
7039         (cpp_errno): New.
7040         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
7041         collect_args, enter_macro_context, save_parameter, parse_params,
7042         _cpp_create_definition, check_trad_stringification,
7043         cpp_macro_definition): Update.
7044         * cppmain.c (cpp_preprocess_file): Update.
7045         * fix-header.c (read_scan_file): Update.
7046
7047 2002-04-14  Andreas Schwab  <schwab@suse.de>
7048
7049         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
7050
7051 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7052
7053         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
7054
7055 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
7056
7057         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
7058         not gnu_hurd.
7059
7060 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
7061
7062         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
7063
7064 2002-04-13      Joel Sherrill <joel@OARcorp.com>
7065
7066         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
7067         sparc-elf and sparc-rtems targets.
7068
7069 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
7070
7071         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
7072         defined, and __gnu_hurd__ wherever __GNU__ is defined.
7073         * arm/linux-elf.h: Likewise.
7074         * cris/aout.h: Likewise.
7075         * cris/linux.h: Likewise.
7076         * i370/linux.h: Likewise.
7077         * i386/gnu.h: Likewise.
7078         * i386/linux-aout.h: Likewise.
7079         * i386/linux-oldld.h: Likewise.
7080         * i386/linux.h: Likewise.
7081         * i386/linux64.h: Likewise.
7082         * ia64/linux.h: Likewise.
7083         * m68k/linux-aout.h: Likewise.
7084         * m68k/linux.h: Likewise.
7085         * mips/linux.h: Likewise.
7086         * pa/pa-linux.h: Likewise.
7087         * pj/linux.h: Likewise.
7088         * rs6000/sysv4.h: Likewise.
7089         * s390/linux.h: Likewise.
7090         * sh/linux.h: Likewise.
7091         * sparc/linux-aout.h: Likewise.
7092         * sparc/linux.h: Likewise.
7093         * sparc/linux64.h: Likewise.
7094         * xtensa/linux.h: Likewise.
7095
7096 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
7097
7098         * stmt.c (check_unique_operand_names): Expect operand names to
7099         be strings rather than identifiers.  Use simple_cst_equal to
7100         compare them.
7101         (resolve_operand_name_1): Make same identifier to string change here.
7102         * c-parse.in (asm_operand): Convert a named operand into a string.
7103         * cp/parse.y (asm_operand): Likewise.
7104
7105 2002-04-13  Andreas Schwab  <schwab@suse.de>
7106
7107         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
7108
7109 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
7110
7111         Revert these changes:
7112
7113         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7114
7115         PR c++/5571
7116         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7117
7118 2002-04-12  Richard Henderson  <rth@redhat.com>
7119
7120         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
7121         (sparc*-*-solaris): Clean up header files.
7122         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
7123         and plan on generating 64-bit code.
7124         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
7125         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
7126         * config/sparc/sol2-sld-64.h: Rename ...
7127         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
7128         for AS_SPARC64_FLAG not defined.
7129         * config/sparc/sol2-gld-bi.h: New.
7130         * config/sparc/sol2-sld.h: Remove.
7131         * config/sparc/sol26-sld.h: New.
7132         * config/sparc/sol2.h: Tidy comments.
7133         * doc/install.texi: Document sparc-solaris configury changes.
7134
7135 2002-04-12  Richard Henderson  <rth@redhat.com>
7136
7137         * recog.c (offsettable_address_p): Match the logic in adjust_address.
7138
7139         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
7140         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
7141
7142 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7143
7144         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
7145
7146 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
7147
7148         * pa.c (pa_can_combine_p): Call extract_insn before calling
7149         constrain_operands.
7150
7151 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
7152
7153         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
7154         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
7155         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7156         (CPP_PREDEFINES): Handle __declspec.
7157         * config/i386/t-interix (USER_H): Remove.
7158
7159 2002-04-12  DJ Delorie  <dj@redhat.com>
7160
7161         * integrate.c (compare_blocks): Make comparisons safe for when
7162         sizeof(int) < sizeof(char *).
7163         (find_block): Likewise.
7164
7165 2002-04-12  Jan Hubicka  <jh@suse.cz>
7166             David Edelsohn  <edelsohn@gnu.org>
7167
7168         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
7169         registers.
7170         (symbol_ref_operand): New.
7171         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
7172         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
7173
7174 2002-04-12  Andreas Schwab  <schwab@suse.de>
7175
7176         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
7177         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
7178         overrides the definition in config/svr4.h.
7179
7180 2002-04-12      Eric Norum <eric.norum@usask.ca>
7181
7182         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
7183         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
7184         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
7185         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
7186         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
7187         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
7188         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
7189         definitions to config/rtems.h and make the targets more similar.
7190
7191 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7192
7193         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7194         POINTERS_EXTEND_UNSIGNED.
7195         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7196         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7197
7198         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7199         not specified.
7200
7201 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
7202
7203         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7204         depends on TARGET_SHMEDIA, not TARGET_SH5.
7205
7206 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
7207
7208         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7209         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7210
7211 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
7212
7213         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7214         no r0 clobber.
7215
7216 2002-04-12  Andreas Schwab  <schwab@suse.de>
7217
7218         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7219
7220 2002-04-12  Richard Henderson  <rth@redhat.com>
7221
7222         PR bootstrap/4191
7223         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7224
7225         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7226         modes spanning multiple hard regs.
7227
7228         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7229
7230 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7231
7232         * pa.c (pa_output_function_prologue): Don't accumulate the total
7233         number of code bytes when using TARGET_64BIT, or gas, SOM and not
7234         the portable runtime.
7235         (output_deferred_plabels): Handle 64bit plabels.
7236         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7237         generating pic code using the GAS assembler for object formats that
7238         are not SOM (ie., ELF32 and ELF64).
7239         (output_millicode_call): Check attribute type if attribute length is 28.
7240         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
7241         dbr_sequence_length once.
7242         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7243         dbr_sequence_length once.
7244         * pa.h (TARGET_SOM): Define if not defined.
7245         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7246         with GAS and not SOM.
7247         (jump, call_internal_reg, call_value_internal_reg): Likewise.
7248         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
7249
7250 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7251
7252         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7253         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7254         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7255         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7256         elfos.h and dbxelf.h values are fine now.
7257         * config/i386/freebsd.h, config/alpha/freebsd.h
7258         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7259
7260 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7261
7262         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7263         or set Acpu or Amachine.  Reformat.
7264         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7265         define.
7266         (LINK_SPEC): Do not need to undef.
7267         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7268         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7269         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7270         define.
7271         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7272         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7273         (LINK_SPEC): Do not need to undef.
7274         (DONT_USE_BUILTIN_SETJMP): Do not define.
7275         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7276         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
7277         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7278         Remove trailing spaces.
7279         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7280         __ELF__, or set Acpu or Amachine.  Reformat.
7281         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7282         define.
7283
7284 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7285
7286         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7287         all other *-*-freebsd* targets.
7288
7289 2002-04-11  Richard Henderson  <rth@redhat.com>
7290
7291         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7292
7293 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7294
7295         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7296         Include {cpu}/{cpu}.h thru tm_file.
7297         (alpha*-*-linux*ecoff): Remove target.
7298         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7299         (LINK_SPEC): Remove, is not OS independent.
7300         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7301         (LINK_SPEC): Do not need to #undef any longer.
7302         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7303         any longer.
7304         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7305         __ELF__.
7306         (LINK_SPEC): Moved here from alpha/elf.h.
7307         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7308         SUB_CPP_PREDEFINES.
7309         * config/alpha/linux-ecoff.h: Remove.
7310         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7311         (CPP_SPEC): Define _POSIX_SOURCE as needed.
7312         (CPP_SUBTARGET_SPEC): Do not define.
7313         (LINK_SPEC): Do not need to #undef any longer.
7314         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7315         * config/alpha/vms.h: Likewise.
7316
7317 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
7318
7319         * doc/extend.texi: Remove old claim that typedefs cannot have
7320         an alignment attribute.
7321
7322 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7323
7324         PR optimization/6177
7325         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7326         bitpos is 0 and bitsize CONCAT size.
7327
7328 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7329
7330         PR c/6223
7331         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7332
7333 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
7334
7335         * config/alpha/freebsd.h: Minor reformatting.
7336         (CPP_SPEC): Define ELF and add cpp_subtarget.
7337         (ASM_SPEC): No longer needed.
7338
7339 2002-04-11  Richard Henderson  <rth@redhat.com>
7340
7341         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7342         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
7343         (dimode mem/zero splitter): New.
7344
7345 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
7346
7347         * config/cris/cris.c (cris_override_options): Tweak error message
7348         for PIC not implemented.
7349
7350         * config/cris/cris.h: Tweak comments related to parameter-passing.
7351
7352         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7353
7354 2002-04-10  Richard Henderson  <rth@redhat.com>
7355
7356         * except.c (add_ehl_entry): Allow duplicates after landing pad
7357         creation.
7358
7359 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
7360
7361         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7362
7363 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
7364
7365         * c-decl.c (c_init_decl_processing): Move generation of
7366         decls for g77_integer_type_node and friends from here ...
7367         * c-common.c (c_common_nodes_and_builtins): ... to here.
7368
7369 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
7370
7371         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7372         is only used as frame pointer when frame_pointer_needed is true.
7373
7374 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
7375
7376         PR target/817
7377         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7378         for the fact that the pool entry uses two words.
7379         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
7380         1k bytes.
7381         (movdf_soft_insn): Similarly.
7382         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7383         for the fact that the pool entry uses three words.
7384
7385 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
7386
7387         * config/mips/mips.c (mips_va_arg): When using the struct version
7388         of the EABI va_list, allow arguments in the register save area to
7389         take up less room than a stack argument.
7390
7391 2002-04-10  Richard Henderson  <rth@redhat.com>
7392
7393         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7394         if EXPAND_INITIALIZER.
7395
7396 2002-04-09  Richard Henderson  <rth@redhat.com>
7397
7398         * config/alpha/alpha.md (movdi_er_maybe_g): New.
7399         * config/alpha/alpha.c (alpha_expand_mov): Use it.
7400
7401 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
7402
7403         PR optimization/6233
7404         * rtlanal.c (pure_call_p): New function.
7405         * rtl.h (pure_call_p): Declare.
7406         * loop.c (prescan_loop): Use it to set has_nonconst_call.
7407         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7408
7409 2002-04-09  Eric Christopher  <echristo@redhat.com>
7410
7411         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7412         information to .comm directive.
7413
7414 2002-04-09  Richard Henderson  <rth@redhat.com>
7415
7416         PR c/5078
7417         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7418
7419 2002-04-09  Richard Henderson  <rth@redhat.com>
7420
7421         * basic-block.h (flow_delete_block_noexpunge): Declare.
7422         (expunge_block_nocompact): Declare.
7423         * cfg.c (expunge_block_nocompact): Split out from ...
7424         (expunge_block): ... here.
7425         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7426         (flow_delete_block_noexpunge): Split out from ...
7427         (flow_delete_block): ... here.
7428         * cfgcleanup.c (delete_unreachable_blocks): Compact while
7429         removing dead blocks.
7430         * except.c (exception_handler_labels): Remove.
7431         (exception_handler_label_map): New.
7432         (struct eh_region): Add aka member.
7433         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7434         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7435         (for_each_eh_label, for_each_eh_label_1): New.
7436         (init_eh): Register exception_handler_label_map.
7437         (free_eh_status): Use free_region.
7438         (find_exception_handler_labels): Use the map, not the list.
7439         (remove_exception_handler_label): Likewise.
7440         (maybe_remove_eh_handler): Likewise.
7441         (remove_eh_handler): Use the region aka bitmap.
7442         * except.h (exception_handler_labels): Remove.
7443         (for_each_eh_label): Declare.
7444         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7445         * loop.c (invalidate_loops_containing_label): New.
7446         (find_and_verify_loops): Use it.  Use for_each_eh_label.
7447         * sched-rgn.c (is_cfg_nonregular): Use
7448         current_function_has_exception_handlers.
7449
7450 2002-04-09  Richard Henderson  <rth@redhat.com>
7451
7452         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7453         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7454         Do not return changed status.
7455         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7456         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7457         New functions that do return changed status.
7458         * sbitmap.h: Update decls.
7459         * gcse.c, lcm.c: Use _cg functions as needed.
7460
7461 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7462
7463         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7464         (sh64-*-elf*, sh-*-rtemself*): Likewise.
7465         * config/sh/embed_bb.c: New file.
7466         * config/sh/embed-elf.h: New file.
7467         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7468         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
7469         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7470         __PTRDIFF_TYPE__ .
7471         (SUBTARGET_CPP_PTR_SPEC): Don't define.
7472         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7473         Add subtarget_asm_endian_spec.
7474         (ASM_SPEC): Use subtarget_asm_endian_spec.
7475         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7476         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7477         (WCHAR_UNSIGNED): Define.
7478         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7479         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7480         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7481         Fix value.
7482         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7483         (sh_adjust_cost): Likewise.
7484         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7485         __PTRDIFF_TYPE__ .
7486         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7487         (WCHAR_TYPE_SIZE): Likewise.
7488         (ASM_SPEC): Use subtarget_asm_endian_spec.
7489         (SH_ELF_WCHAR_TYPE): #undef/ #define.
7490         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7491         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7492         (MAX_WCHAR_TYPE_SIZE): Don't #define .
7493         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7494         (USER_LABEL_PREFIX): Don't #undef /#define .
7495         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7496         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7497         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7498         (ASM_SPEC): Likewise.
7499         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7500         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7501         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7502         (LIB2FUNCS_EXTRA): Define.
7503         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7504         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7505         (LIB1ASMFUNCS_CACHE): Define.
7506         (LIB2FUNCS_EXTRA): Redefine empty.
7507
7508 2002-04-08  Richard Henderson  <rth@redhat.com>
7509
7510         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7511
7512 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7513
7514         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7515         and optimize for size.
7516         (__do_global_ctors): Fix pointer comparison.
7517         (__do_global_dtors): Likewise.
7518
7519 2002-04-09  David S. Miller  <davem@redhat.com>
7520
7521         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7522         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7523         allow reloading pseudos.
7524         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7525         * config/sparc/sparc-protos.h: Declare it.
7526
7527         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7528         unsigned comparison warning.
7529         (output_restore_regs): Mark leaf_function as unused.
7530
7531 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7532
7533         * expr.c (is_aligning_offset): New function.
7534         (expand_expr, case COMPONENT_EXPR): Call it.
7535
7536 2002-04-08  David S. Miller  <davem@redhat.com>
7537
7538         PR target/6082
7539         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7540
7541         Make init_priority work on Sparc when using GNU ld.
7542         * config/sparc/linux.h, config/sparc/linux64.h,
7543         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7544         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7545         * config/sparc/sol2-gld.h: New file to do the same.
7546         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7547         sparc/sol2-gld.h to tm_file.
7548
7549         PR optimization/4328
7550         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7551         * doc/md.texi: Document it.
7552         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7553         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7554         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7555         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7556         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7557
7558 2002-04-08  Andreas Jaeger  <aj@suse.de>
7559
7560         * stmt.c (expand_asm_operands): Revert last patch from Richard
7561         Henderson.
7562
7563 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7564
7565         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7566         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7567
7568 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7569
7570         * doc/contrib.texi (Contributors): Add David O'Brien.
7571
7572 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7573
7574         * configure.in (auto-build.h): Use target_alias and build_alias
7575         when running configure.
7576         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7577         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7578         * configure: Regenerate.
7579
7580 2002-04-07  David S. Miller  <davem@redhat.com>
7581
7582         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7583
7584 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7585
7586         PR 5933
7587         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7588         generating 32-bit pic code.
7589
7590 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7591
7592         * cppinit.c (cpp_create_reader): Initialize
7593         discard_comments_in_macro_exp.
7594         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7595         (cpp_handle_option): Handle "-CC" option.
7596         * cpplex.c (save_comment): If saving a C++ comment in
7597         a directive, convert it to a C comment.
7598         (_cpp_lex_direct): Pass second comment start character to
7599         save_comment to indicate comment type.
7600         * cpplib.c (_cpp_handle_directive): If processing
7601         a "#define" directive and discard_comments_in_macro_exp
7602         is false,  re-enable saving of comments.
7603         (lex_macro_node): If discard_comments_in_macro_exp is false,
7604         discard any comments before the macro identifier.
7605         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7606         member.
7607         * cppmacro.c (cpp_get_token): If expanding a macro while
7608         processing a directive, discard any comments we might encounter.
7609         (parse_params): If discard_comments_in_macro_exp is false,
7610         ignore comments in the macro parameter list.
7611         * gcc.c (cpp_unique_options): Add "-CC" option.
7612         (option_map): Map "--comments-in-macros" to "-CC".
7613         * doc/cppopts.texi: Document "-CC" option.
7614         * f/lang-specs.h: Add "-CC" option.
7615         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7616         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7617         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7618         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7619         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7620         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7621
7622 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7623
7624         PR middle-end/6180
7625         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7626
7627 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7628
7629         PR c++/5571
7630         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7631
7632         PR opt/5120
7633         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7634         RTX_UNCHANGING_P for the functions arguments when a tail call
7635         is made.
7636
7637 2002-04-06  Jason Merrill  <jason@redhat.com>
7638
7639         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7640         (parse_options_and_default_flags): Set them appropriately.
7641         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7642
7643 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7644
7645         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7646         here.
7647
7648         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7649         semicolon.
7650
7651         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7652         types come in by-reference.  Fix typo in comment.
7653
7654 2002-04-05  David S. Miller  <davem@redhat.com>
7655
7656         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7657         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7658         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7659         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7660
7661 2002-04-05  David S. Miller  <davem@redhat.com>
7662
7663         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7664         are not going to emit return instructions, emit at least a nop
7665         for the sake of sane backtraces.
7666
7667 2002-04-05  Richard Henderson  <rth@redhat.com>
7668
7669         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7670
7671 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7672
7673         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7674
7675 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7676
7677         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7678         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7679         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7680
7681 2002-04-05  Andreas Schwab  <schwab@suse.de>
7682
7683         * c-convert.c: Include c-common.h.
7684         * Makefile.in (c-convert.o): Updated.
7685
7686 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7687
7688         * mklibgcc.in: Use separate libgcc.map for each multilib.
7689         * Makefile.in (distclean): Don't remove libgcc.map here.
7690
7691 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7692
7693         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7694         genmultilib invocation.
7695
7696 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7697
7698         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7699         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7700         to num_gprs for symmetry.
7701         * config/mips/mips.c: Adjust accordingly.
7702
7703 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7704
7705         * c-common.c (truthvalue_conversion): Rename, update.
7706         * c-common.h (c_common_truthvalue_conversion): New.
7707         * c-convert.c (convert): Update.
7708         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7709         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7710         * c-typeck.c (build_binary_op, build_unary_op,
7711         build_conditional_expr): Update.
7712         * fold-const.c (constant_boolean_node, fold): Use langhook.
7713         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7714         * langhooks.h (struct lang_hooks): New hook.
7715         * stmt.c (expand_decl_cleanup): Use langhook.
7716         * tree.h (truthvalue_conversion): Remove.
7717 objc:
7718         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7719
7720 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7721
7722         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7723         Add rules to make null object file.
7724
7725 2002-04-04  Jim Blandy  <jimb@redhat.com>
7726
7727         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7728         macro formal parameter names.
7729
7730 2002-04-04  David S. Miller  <davem@redhat.com>
7731
7732         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7733
7734 2002-04-04  Richard Henderson  <rth@redhat.com>
7735
7736         PR middle-end/5099
7737         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7738         Support copies into and out of memory.  Don't accept allows_reg
7739         and allows_mem as gospel.
7740
7741 2002-04-04  Richard Henderson  <rth@redhat.com>
7742
7743         PR opt/6165
7744         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7745         (write_dependence_p): Likewise.
7746
7747 2002-04-04  Richard Henderson  <rth@redhat.com>
7748
7749         * predict.c (estimate_bb_frequencies): Do frequency calculation
7750         with a volatile temporary.
7751
7752 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7753
7754         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7755
7756 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7757
7758         PR c++/6119
7759         * final.c (final_start_function): Don't bump profile_label_no here...
7760         (final_end_function): ...but here.
7761
7762 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7763
7764         * config/sparc/sparc.md (pic): New attribute.
7765         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7766         into stack slots.
7767         (split after do_builtin_setjmp_setup): New.
7768
7769 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7770
7771         PR fortran/6106
7772         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7773         change.
7774
7775 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7776
7777         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7778         UNITS_PER_WORD for zero sized aggregates.
7779
7780 2002-04-03  David S. Miller  <davem@redhat.com>
7781
7782         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7783         one-character spec for this, just use %(link_gcc_c_sequence).
7784
7785 2002-04-03  David S. Miller  <davem@redhat.com>
7786
7787         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7788         handling.
7789
7790 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7791
7792         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7793         (DWARF_FRAME_RETURN_COLUMN): Move.
7794         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7795         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7796         * pa.c (except.h, predict.h): Include.
7797         (FRP): Delete.
7798         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7799         (output_ascii): Add cast.
7800         (store_reg_modify): Revise to add frame notes.
7801         (set_reg_plus_d): Likewise.
7802         (compute_frame_size): Include space for eh data registers in frame if
7803         the current function calls eh_return.
7804         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7805         function calls eh_return.  Save eh data registers if the current
7806         function calls eh_return.  Fix code to add frame notes.  Emit
7807         blockage to prevent insns with frame notes being scheduled in the
7808         delay slot of calls.
7809         (hppa_expand_epilogue): Restore eh data registers and do final stack
7810         adjustment if the current function calls eh_return.  Don't add frame
7811         notes.
7812         (output_call): Revise for change in length of call insn.  Don't do
7813         return pointer adjustment for an unconditional jump in the delay slot
7814         of a call when using frame notes.
7815         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7816         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7817         (ARG_POINTER_CFA_OFFSET): Define.
7818         * pa.md (return_external_pic): New pattern.
7819         (prologue): Correct formatting.  Use return_external_pic if current
7820         function calls eh_return.
7821         (call_internal_symref, call_value_internal_symref,
7822         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7823         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7824         respectively.
7825         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7826
7827         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7828         list of targets to check using "nop" insn.
7829         * configure: Rebuilt.
7830
7831 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7832
7833         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7834
7835 2002-04-03  David S. Miller  <davem@redhat.com>
7836
7837         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7838         library sequence passed to the linker.
7839         (LINK_COMMAND_SPEC): Use it.
7840         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7841         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7842         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7843
7844 2002-04-03  Jason Merrill  <jason@redhat.com>
7845
7846         * except.c (struct eh_status): Remove protect_list.
7847         (begin_protect_partials, end_protect_partials): Remove.
7848         (add_partial_entry): Remove.
7849         * except.h: Remove prototypes.
7850
7851         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7852         expand_decl_cleanup_eh.
7853
7854         PR c++/5636
7855         * tree.h (CLEANUP_EH_ONLY): New macro.
7856         * stmt.c (expand_decl_cleanup_eh): New fn.
7857         (expand_cleanups): Check CLEANUP_EH_ONLY.
7858         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7859         Use expand_decl_cleanup_eh.
7860         (expand_stmt): Adjust.
7861         * c-common.h: Adjust prototype.
7862
7863 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7864
7865         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7866         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7867         (cris_target_asm_function_epilogue): Ditto.
7868         (cris_initial_frame_pointer_offset): Ditto.
7869         (cris_simple_epilogue): Ditto.
7870         (cris_expand_builtin_va_arg): Variable-size types come in
7871         by-reference.
7872
7873 2002-04-03  David S. Miller  <davem@redhat.com>
7874
7875         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7876         little-endian.
7877         (set_fast_math): Correct 'fsr' type.
7878
7879 2002-04-03  Richard Henderson  <rth@redhat.com>
7880
7881         PR opt/3569
7882         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7883         * toplev.c (check_global_declarations): Use it.
7884         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7885         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7886         (LANG_HOOKS_DECLS): Add it.
7887         * langhooks.c (lhd_warn_unused_global_decl): New.
7888         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7889         * c-objc-common.c (c_warn_unused_global_decl): New.
7890         * c-tree.h (c_warn_unused_global_decl): Declare.
7891         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7892
7893 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7894
7895         * langhooks-def.h (lhd_set_decl_assembler_name,
7896         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7897         (LANG_HOOKS_INITIALIZER): Update.
7898         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7899         * langhooks.h (struct lang_hooks): New hook.
7900         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7901         (lang_set_decl_assembler_name): Remove.
7902         (init_obstacks): Don't set hook.
7903         (decl_assembler_name): New function.
7904         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7905         (decl_assembler_name): New.
7906         (lang_set_decl_assembler_name): Remove.
7907
7908 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7909
7910         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7911         works properly with .hidden symbols.
7912         * configure: Rebuilt.
7913         * config.in: Rebuilt.
7914         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7915         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7916         properly with .hidden symbols.
7917
7918 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7919
7920         PR middle-end/6102
7921         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7922         USE argument.
7923
7924 2002-04-03  Richard Henderson  <rth@redhat.com>
7925
7926         PR opt/4120
7927         * sched-rgn.c (sets_likely_spilled): New.
7928         (sets_likely_spilled_1): New.
7929         (add_branch_dependences): Use it.
7930
7931 2002-04-02  Richard Henderson  <rth@redhat.com>
7932
7933         PR opt/4311
7934         * loop.h (LOOP_FIRST_PASS): New.
7935         * loop.c (strength_reduce): Mind it when deciding to unroll.
7936         * toplev.c (rest_of_compilation): Set it.
7937
7938 2002-04-02  David S. Miller  <davem@redhat.com>
7939
7940         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7941         mems_ok_for_ldd_peep when the order of the loads being examined
7942         is reversed.
7943         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7944         existing comment to increase comprehension of this situation.
7945
7946 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7947
7948         * config/sh/sh.md: Don't use union real_extract.
7949
7950 2002-04-02  Richard Henderson  <rth@redhat.com>
7951
7952         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7953
7954 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7955
7956         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7957         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7958         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7959         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7960         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7961         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7962         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7963         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7964         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7965         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7966         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7967         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7968         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7969         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7970         Include as many configury headers via tm_file as possible.  This
7971         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7972         * config/openbsd-oldgas.h: New file.
7973         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7974         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7975         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7976         config/i386/i386-coff.h, config/i386/i386-interix.h,
7977         config/i386/iscdbx.h, config/i386/linux-aout.h,
7978         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7979         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7980         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7981         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7982         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7983         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7984         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7985         config/i386/vxi386.h: Do not directly include configury headers.
7986         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7987         Directly include configury headers that are no longer automatically
7988         included by the above headers.
7989         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7990         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7991         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7992         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7993         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7994         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7995         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7996         (TARGET_VERSION): Define.
7997         * config/i386/beos-elf.h, config/i386/freebsd.h,
7998         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7999         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
8000         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
8001         config/i386/sco5.h, config/i386/sysv4.h
8002         (TARGET_VERSION): Do not need to protect.
8003         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
8004         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
8005         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
8006         config/i386/i386-interix.h, config/i386/linux-aout.h,
8007         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
8008         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
8009         (YES_UNDERSCORES): Do not define - not needed.
8010         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
8011         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8012         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
8013         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
8014         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8015         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
8016         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
8017         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
8018
8019 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
8020             Richard Henderson  <rth@redhat.com>
8021
8022         PR c/5484
8023         * function.c (assign_temp): Accept either type or decl argument.
8024         Detect variables whose size is too large to fit into an integer.
8025         * stmt.c (expand_decl): Pass the decl, not the type.
8026
8027 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
8028
8029         * protoize.c: Match include directory usage with cppdefault.c.
8030
8031 2002-04-03  Jeffrey A Law  (law@redhat.com)
8032             Hans-Peter Nilsson  <hp@bitrange.com>
8033
8034         * combine.c (simplify_comparison): Avoid narrowing a comparison
8035         with a paradoxical subreg when doing so would drop signficant bits.
8036
8037 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
8038
8039         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
8040         if POINTERS_EXTEND_UNSIGNED is defined.
8041
8042 2002-04-02  Richard Henderson  <rth@redhat.com>
8043
8044         PR opt/3967
8045         * local-alloc.c (contains_replace_regs): LO_SUM may contain
8046         replace regs.
8047
8048 2002-04-02  Richard Henderson  <rth@redhat.com>
8049
8050         * doc/standards.texi: Document required freestanding libc entry points.
8051
8052 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
8053
8054         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
8055         associated splitter.  Remove MQ constraint.
8056         (ctrdi_internal4): Correct CCmode clobber.
8057
8058 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8059
8060         * milli64.S ($$dyncall): New function.
8061         * t-linux (LIB1ASMFUNCS): Revise module list.
8062         (LIB1ASMSRC): Use pa/milli64.S.
8063
8064 2002-04-02  Richard Henderson  <rth@redhat.com>
8065
8066         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
8067         rename solaris_sys_varargs_h.
8068
8069 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8070
8071         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
8072         the same mode as its component.
8073
8074 2002-04-02  Richard Henderson  <rth@redhat.com>
8075
8076         PR opt/190
8077         * final.c (this_is_asm_operands): Export.
8078         * output.h (this_is_asm_operands): Declare.
8079         * config/i386/i386.c (print_operand): Error odd asm operands.
8080
8081 2002-04-02  Richard Henderson  <rth@redhat.com>
8082
8083         PR opt/420
8084         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
8085
8086 2002-04-01  Richard Henderson  <rth@redhat.com>
8087
8088         PR target/1538
8089         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
8090         * fixinc/fixincl.x: Rebuild.
8091
8092 2002-04-01  Richard Henderson  <rth@redhat.com>
8093
8094         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
8095         (atomic_alloc, atomic_free): New.
8096         (SIZE, MASK_FOR, PTR_IN): New.
8097         (emergency_reg_state, emergency_reg_state_free): New.
8098         (emergency_labeled_state, emergency_labeled_state_free): New.
8099         (reg_state_alloced, labeled_state_alloced): New.
8100         (alloc_reg_state, free_reg_state): New.
8101         (alloc_label_state, free_label_state, free_label_states): New.
8102         (push, pop, dup_state_stack, free_state_stack): Use them.
8103         (desc_label_state): Likewise.
8104         (uw_frame_state_for): Free label states and state stack.
8105         (uw_update_reg_address): Eliminate warnings.
8106
8107 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
8108
8109         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
8110         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
8111
8112 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8113
8114         * c-decl.c (grokdeclarator): Update.
8115         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8116         * c-tree.h (c_mark_addressable): New.
8117         * c-typeck.c (default_function_array_conversion, build_unary_op,
8118         build_array_ref, convert_for_assignment): Update.
8119         (mark_addressable): Rename.
8120         * calls.c (try_to_integrate, expand_call): Use langhook.
8121         * expr.c (expand_expr): Use langhook.
8122         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
8123         * langhooks.h (struct lang_hooks): New hook.
8124         * stmt.c (expand_asm_operands): Use langhook.
8125         * tree.h (mark_addressable): Remove.
8126 objc:
8127         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8128
8129 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
8130
8131         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
8132         in previous change.
8133
8134 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
8135
8136         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
8137         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
8138
8139 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8140
8141         * c-common.c (unsigned_conversion_warning, convert_and_check,
8142         unsigned_type, signed_type, shorten_compare,
8143         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
8144         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
8145         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
8146         New.
8147         * c-decl.c (grokdeclarator): Update.
8148         * c-format.c (check_format_types): Update.
8149         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8150         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8151         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
8152         * convert.c (convert_to_integer): Use new hooks.
8153         * expmed.c (make_tree): Use new hooks.
8154         * expr.c (store_expr): Use new hooks.
8155         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
8156         all_ones_mask_p, unextend, fold): Use new hooks.
8157         * langhooks.h (struct lang_hooks_for_types): New hooks.
8158         * tree.h (signed_or_unsigned_type, signed_type,
8159         unsigned_type): Remove.
8160 objc:
8161         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8162         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8163
8164 2002-03-31  Richard Henderson  <rth@redhat.com>
8165
8166         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
8167         (desc_frgr_mem): Fix reference to f16-f31.
8168
8169 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8170
8171         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
8172         RTVEC_ELT): Const-ify.
8173         * varray.h (VARRAY_CHECK): Const-ify.
8174         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
8175         ggc_mark_rtvec, ggc_mark): Const-ify.
8176
8177 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8178
8179         * diagnostic.c: Include langhooks-def.h.
8180         * Makefile.in (diagnostic.o): Update.
8181
8182 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8183
8184         * c-common.c (c_unsafe_for_reeval): Rename.
8185         * c-common.h (c_unsafe_for_reeval): Rename.
8186         * c-decl.c (finish_incomplete_decl): Rename.
8187         (c_init_decl_processing): Don't set langhook.
8188         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8189         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8190         * c-objc-common.c (c_objc_common_init): Don't set langhook.
8191         * c-tree.h (finish_incomplete_decl): Rename.
8192         * langhooks-def.h (lhd_unsafe_for_reeval): New.
8193         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8194         (LANG_HOOKS_INITIALIZER): Update.
8195         * langhooks.c (lhd_unsafe_For_reeval): New.
8196         * langhooks.h (struct langhooks): New hooks.
8197         * toplev.c (incomplete_decl_finalize_hook): Remove.
8198         (wrapup_global_declarations): Update.
8199         * tree.c (lang_unsafe_for_reeval): Remove.
8200         (unsafe_for_reeval): Update.
8201         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8202         Remove.
8203 objc:
8204         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8205         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8206
8207 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8208
8209         * diagnostic.c (print_error_function): Remove.
8210         (default_print_error_function): Rename.
8211         (report_error_function): Update.
8212         * diagnostic.h (print_error_function): Remove.
8213         (default_print_error_function): Remove.
8214         * langhooks-def.h (struct diagnostic_context): Predeclare.
8215         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8216         (LANG_HOOKS_INITIALIZER): Update.
8217         * langhooks.h (struct diagnostic context): Predeclare.
8218         (struct lang_hooks): New hook.
8219
8220 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8221
8222         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8223         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8224         !flag_pic.
8225         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8226         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8227         of PIC_OFFSET_TABLE_REGNUM thruout.
8228         * config/rs6000/rs6000.md: Likewise.
8229         * config/rs6000/darwin.h: Likewise.
8230
8231 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8232
8233         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8234         unsigned HOST_WIDE_INT, not unsigned int.
8235
8236 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8237
8238         PR middle-end/6096, middle-end/6098, middle-end/6099
8239         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8240         CODE_LABELs.
8241         (fill_slots_from_thread): Likewise.
8242
8243 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8244
8245         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8246         floating fields in float regs.
8247         (function_arg_record_value_2): Likewise.
8248
8249 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8250
8251         * config/mmix/mmix.md (define_constants): Remove misleading
8252         FIXME.  Add MMIX_fp_rO_OFFSET.
8253         ("nonlocal_goto_receiver"): Don't have stack-frame address of
8254         saved rO as part of the pattern.  Remove FIXME.
8255         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
8256         here, at output-time.
8257
8258 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8259
8260         PR middle-end/6100
8261         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8262         REG_BR_PRED.
8263         (output_v9branch): Likewise.
8264
8265 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8266
8267         * gcc.c: Revert previous patch for now.
8268         * config/i386/djgpp.h: Likewise.
8269
8270 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8271
8272         * config/mmix/crti.asm (_init): Register _fini with atexit.
8273         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8274
8275 2002-03-31  Richard Henderson  <rth@redhat.com>
8276
8277         PR target/3997
8278         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8279         (ASM_OUTPUT_DEF_FROM_DECLS): New.
8280
8281 2002-03-31  Richard Henderson  <rth@redhat.com>
8282
8283         * libgcc2.c (__bb_exit_func): Make static.
8284
8285         * config/alpha/alpha.md (trap): New.
8286
8287 2002-03-31  Richard Henderson  <rth@redhat.com>
8288
8289         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8290         promoted argument types; build trap.
8291         (expand_builtin_trap): New.
8292         (expand_builtin): Use it.
8293         * stmt.c (expand_nl_goto_receivers): Likewise.
8294         * expr.h (expand_builtin_trap): Declare.
8295         * libfuncs.h (LTI_abort, abort_libfunc): New.
8296         * optabs.c (init_optabs): Init abort_libfunc.
8297
8298 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8299
8300         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8301         (LINK_COMMAND_SPEC): ... from here.
8302         (init_gcc_specs): Duplicate it here too, omitting
8303         shared_name in the second copy.
8304         (init_spec): Test for duplicate
8305         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8306
8307 2002-03-30  David S. Miller  <davem@redhat.com>
8308
8309         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8310         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8311
8312 2002-03-30  Roger Sayle <roger@eyesopen.com>
8313             Richard Henderson  <rth@redhat.com>
8314
8315         * regmove.c (combine_stack_adjustments_for_block): Avoid
8316         emitting a stack adjustment of zero bytes.  Let delete_insn
8317         update bb->head.
8318
8319 2002-03-30  Richard Henderson  <rth@redhat.com>
8320
8321         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8322         (sparc_emitting_epilogue): New.
8323         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8324         * config/sparc/sparc-protos.h: Update.
8325         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8326         (TARGET_SWITCHES): Update.
8327         * config/sparc/sparc.md (return): Remove.
8328         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8329         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8330         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8331         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8332         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8333         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8334         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8335         Remove MASK_EPILOGUE.
8336         * doc/invoke.texi: Update.
8337
8338 2002-03-30  Daniel Berlin  <dan@dberlin.org>
8339
8340         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8341         CPP will start the file for us.
8342
8343 2002-03-30  Richard Henderson  <rth@redhat.com>
8344
8345         PR target/5446
8346         * config/ia64/ia64.c (group_barrier_needed_p): Special case
8347         prologue_allocate_stack.
8348         (ia64_single_set): Use insn codes for recognition of special
8349         cases, not rtl matching.
8350         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8351
8352 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
8353
8354         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8355
8356 2002-03-30  Richard Henderson  <rth@redhat.com>
8357
8358         PR target/6032
8359         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8360         or -fomit-frame-pointer with profiling.
8361         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8362         (FUNCTION_PROFILER): Do nothing.
8363         (PROFILE_HOOK): New.
8364         * config/sparc/sparc.c (sparc_override_options): Don't check
8365         code models for profiling.
8366         (sparc_function_profiler): Remove.
8367         (sparc_profile_hook): New.
8368         * config/sparc/sparc-protos.h: Update.
8369
8370 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8371
8372         PR optimization/6086
8373         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8374         of SUBREG of volatile MEM or because the MEM was mode dependent,
8375         return CLOBBER instead of unmodified SUBREG.
8376
8377 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
8378
8379         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8380         when not optimizing.
8381
8382         * toplev.c (rest_of_compilation): Cann mark_constant_function
8383         only when optimizing.
8384
8385         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8386         are NULL.
8387
8388         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8389         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8390         (try_optimize_cfg): clear all AUX fields.
8391
8392         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8393         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8394         (ix86_address_cost): Be prepared for SUBREGed registers.
8395         (legitimate_address_p): Accept SUBREGed registers.
8396
8397 2002-03-29  Richard Henderson  <rth@redhat.com>
8398
8399         PR target/5672
8400         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8401
8402 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8403
8404         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8405         for aggregate and TFmode types.
8406
8407 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8408
8409         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8410
8411 2002-03-29  Richard Henderson  <rth@redhat.com>
8412
8413         PR target/5886
8414         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8415         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8416
8417 2002-03-29  Richard Henderson  <rth@redhat.com>
8418
8419         PR target/6041
8420         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8421         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8422         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8423         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8424         conditional.
8425         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8426
8427 2002-03-29  Dale Johannesen <dalej@apple.com>
8428
8429         * loop.c (combine_movables): Do allow combination of pseudos.
8430
8431 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
8432
8433         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8434         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8435         No functional change except ...
8436         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
8437         * doc/install.texi (*-*-freebsd*): Document port configuration.
8438
8439 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8440
8441         * Makefile.in (convert.o, calls.o, expmed.o): Update.
8442         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8443         Use new hooks.
8444         * builtin-types.def (BT_PTRMODE): Update.
8445         * c-common.c (type_for_size): Rename c_common_type_for_size.
8446         (type_for_mode): Similarly.
8447         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8448         Use new hook.
8449         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8450         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8451         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8452         Redefine.
8453         * c-typeck.c (common_type, comptypes, default_conversion):
8454         Use new hooks.
8455         * calls.c: Include langhooks.h.
8456         (emit_library_call_value_1): Use new hooks.  Avoid redundant
8457         calls.
8458         * convert.c: Include langhooks.h
8459         (convert_to_pointer, convert_to_integer): Use new hooks.
8460         * except.c (init_eh): Similarly.
8461         * expmed.c: Include langhooks.h.
8462         (expand_mult_add): Use new hooks.
8463         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8464         try_casesi): Similarly.
8465         * fold-const.c (optimize_bit_field_compare, make_range,
8466         decode_field_reference, fold_truthop, fold): Similarly.
8467         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8468         put_var_into_stack): Similarly.
8469         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8470         LANG_HOOKS_TYPE_FOR_SIZE): New.
8471         (LANG_HOOKS_TYPES_INITIALIZER): Update.
8472         * langhooks.h (lang_hooks_for_types): New hooks.
8473         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8474         * tree.c (get_unwidened, get_narrower): Similarly.
8475         * tree.h (type_for_mode, type_for_size): Remove.
8476         * varasm.c (force_const_mem): Use new hooks.
8477         * utils2.c (nonbinary_modular_operation): Update.
8478 objc:
8479         * objc-act.c (handle_impent): Update.
8480         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8481         Redefine.
8482
8483 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
8484
8485         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8486         * config/ia64/ia64.c (basereg_operand): New.
8487         * config/ia64/ia64-protos.h (basereg_operand): Declare.
8488         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8489
8490 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8491
8492         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8493         unwind information when frame_pointer_needed.
8494         (mmix_assemble_integer): Tweak wording in comment.
8495
8496 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8497
8498         * Makefile.in (except.o): Update.
8499         * except.c: Include langhooks.h.
8500         (init_eh): Use langhook.
8501         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8502         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8503         (LANG_HOOKS_INITIALIZER): Update.
8504         * langhooks.h (lang_hooks_for_types): New.
8505         (struct lang_hooks): Add it.
8506         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8507         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8508 config:
8509         * alpha/alpha.c: Include langhooks.h.
8510         (alpha_build_va_list): Use langhook.
8511         * d30v/d30v.c: Include langhooks.h.
8512         (d30v_build_va_list): Use langhook.
8513         * i386/i386.c: Include langhooks.h.
8514         (ix86_build_va_list): Use langhook.
8515         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8516         * s390/s390.c: Include langhooks.h.
8517         (s390_build_va_list): Use langhook.
8518         * stormy16/stormy16.c: Include langhooks.h.
8519         (stormy16_build_va_list): Use langhook.
8520
8521 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8522
8523         PR c++/5964
8524         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8525         attributes.
8526         (length): Compute variable length for branches/calls/jumps here.
8527         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8528         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8529         define branch_type attribute.
8530         (divsi3_sp32): Maximum length is 6 not 7.
8531         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8532         call_address_untyped_struct_value_sp32,
8533         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8534         * config/sparc/sparc.c (empty_delay_slot): New function.
8535         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8536         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8537
8538 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8539
8540         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8541         nonzero_bits if not needed.
8542         (nonzero_bits) [XOR]: Likewise.
8543         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8544         reg_last_set_mode and mode are both MODE_INT, but not equal.
8545         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8546         in nonzero_bits_mode for MODE_INT modes.
8547
8548 2002-03-28  Richard Henderson  <rth@redhat.com>
8549
8550         PR target/5715
8551         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8552         to GAS.  Correct drift between alternatives.
8553
8554 2002-03-28  Richard Henderson  <rth@redhat.com>
8555
8556         PR target/6087
8557         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8558
8559 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8560
8561         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8562         emulation to the linker.
8563
8564 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8565
8566         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8567         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8568
8569 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8570
8571         * combine.c (simplify_and_const_int): Make sure to apply mask
8572         when force_to_mode returns a constant integer.  PR3311.
8573
8574 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8575
8576         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8577
8578 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8579
8580         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8581         and Objective-C Dialect Options.
8582
8583 2002-03-28  Richard Henderson  <rth@redhat.com>
8584
8585         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8586         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8587
8588 2002-03-28  Richard Henderson  <rth@redhat.com>
8589
8590         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8591         on to c_expand_body.
8592         * c-tree.h (finish_function): Update decl.
8593         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8594
8595 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8596
8597         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8598
8599 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8600
8601         * rtlanal.c: Include flags.h
8602         (may_trap_p): Do not mark FP operations if trapping
8603         if !flag_trapping_math
8604         * Makefile.in (rtlanal.o): Add dependency on flag.h
8605         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8606
8607 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8608
8609         * mips.md: Use dconst1, not 1.0, as first argument of
8610         REAL_VALUE_LDEXP.  Don't use union real_extract.
8611
8612 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8613
8614         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8615         rather than $target.  Heed program_prefix and
8616         program_transform_name.  Search for gas in cross-compiler case too.
8617         "test -x" rather than "test -f".
8618         (gcc_cv_ld): Likewise.
8619         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8620         (gcc_cv_objdump): Likewise.
8621         * configure: Regenerate.
8622
8623 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8624
8625         * Makefile.in (attribs.o): Update.
8626         * attribs.c: Include langhooks.h.
8627         (decl_attributes): Use langhook.
8628         * c-decl.c (insert_default_attributes): Rename.
8629         * c-tree.h (c_insert_default_attributes): New.
8630         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8631         (LANG_HOOKS_INITIALIZER): Update.
8632         * langhooks.h (struct lang_hooks): New hook.
8633         * tree.h (insert_default_attributes): Remove.
8634 objc:
8635         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8636
8637 2002-03-27  Andreas Schwab  <schwab@suse.de>
8638
8639         * config/i386/i386.c (classify_argument): Also check for
8640         QUAL_UNION_TYPE.
8641
8642 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8643
8644         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8645         any more.
8646
8647 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8648
8649         * i960.md (ret): Set PC.
8650         (nonlocal_goto): Fix expander.
8651         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8652         some jump or call.
8653
8654 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8655
8656         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8657         of libcall regions.
8658
8659 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8660
8661         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8662         assigning to BLOCK_FOR_INSN directly.
8663
8664 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8665
8666         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8667
8668 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8669
8670         * c-common.c (c_expand_expr): Fix prototype.
8671         * c-common.h (c_expand_expr): Always declare, update.
8672         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8673         * c-objc-common.c (c_objc_common_init): No global hook.
8674         * expr.c (expand_expr): Use langhook.
8675         * expr.h (enum expand_modifier): Conditionally declare.
8676         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8677         (LANG_HOOKS_INITIALIZER): Update.
8678         * langhooks.c (lhd_expand_expr): New.
8679         * langhooks.h (struct lang_hooks): New hook.
8680         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8681         (lang_independent_init): Don't default hook.
8682 objc:
8683         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8684
8685 2002-03-27  Richard Henderson  <rth@redhat.com>
8686
8687         PR target/6054
8688         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8689         TARGET_CONST_GP.  Simplify conditions.
8690
8691 2002-03-27  Richard Henderson  <rth@redhat.com>
8692
8693         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8694         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8695         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8696
8697 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8698
8699         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8700         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8701         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8702         Remove unnecessary masks.
8703         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8704         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8705         -mwindows, -mdll switches and their negations.
8706
8707 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8708
8709         * gcc-common.c (lang_mark_false_label_stack): Remove.
8710         * ggc.h (lang_mark_false_label_stack): Similarly.
8711
8712 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8713
8714         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8715
8716         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8717         or __rtems_ is defined.
8718
8719 2002-03-26  Richard Henderson  <rth@redhat.com>
8720
8721         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8722         if a non-trivial load was emitted.
8723         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8724         in high+extra+low case.
8725
8726 2002-03-26  Richard Henderson  <rth@redhat.com>
8727
8728         * config.gcc (sparc*-solaris): Use float_format=sparc.
8729
8730 2002-03-26  Richard Henderson  <rth@redhat.com>
8731
8732         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8733         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8734         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8735         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8736         (WINT_TYPE_SIZE): Fix at 32.
8737
8738 2002-03-26  Richard Henderson  <rth@redhat.com>
8739
8740         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8741         until after eh landing pad generation.
8742         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8743         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8744
8745 2002-03-26  Richard Henderson  <rth@redhat.com>
8746
8747         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8748
8749 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8750
8751         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8752         and warning switches.
8753         (cc1_options):  Likewise.
8754
8755 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8756
8757         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8758         Restore more of the signal context.  Set no_reg_stack_frame.
8759         * config/ia64/unwind-ia64.c (unw_state_record):
8760         Add no_reg_stack_frame, comments.
8761         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8762         (uw_update_context): Adjust bsp when unwinding from leaf,
8763         but not signal frame.
8764
8765 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8766
8767         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8768
8769 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8770
8771         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8772
8773 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8774
8775         PR target/5621
8776         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8777         "Add a pool_range attribute", which was lost during the ARM/Thumb
8778         merge.
8779
8780 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8781
8782         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8783         a register into the MAC16 accumulator.
8784
8785 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8786
8787         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8788         (Warning Options): Document -Wswitch-enum.
8789         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8790         -Wswitch.
8791         (warn_switch_enum): Define variables.
8792         * flags.h (warn_switch_enum): Declare variables.
8793         * stmt.c (expand_end_case_type): When warn_switch_enum /
8794         -Wswitch-enum, perform switch checks.
8795         Fix PR c/5044.
8796
8797 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8798
8799         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8800         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8801         (reload_muladdsi_compare0_scratch): Delete.
8802
8803 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8804
8805         * doc/install.texi (*-*-freebsd*): Update.
8806
8807 2002-03-26  Richard Henderson  <rth@redhat.com>
8808
8809         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8810         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8811
8812         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8813         types from the normal argument frame.
8814
8815         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8816         variable sized objects by reference.
8817         (sparc_va_arg): Receive them by reference too.
8818
8819 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8820
8821         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8822         code to not restoring global registers.
8823
8824 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8825
8826         * Makefile.in (ggc-common.o): Update.
8827         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8828         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8829         * c-tree.h (c_mark_tree): New.
8830         * ggc-common.c: Include langhooks.h.
8831         (gcc_mark_trees): Use new langhook.
8832         * ggc-callbacks.c: Delete file.
8833         * ggc.h (lang_mark_tree): Remove.
8834         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8835         (LANG_HOOKS_INITIALIZER): Update.
8836         * langhooks.h (struct lang_hooks): New hook.
8837 objc:
8838         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8839
8840 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8841
8842         * doc/cpp.texi: Exclude entire Top node from printed manual.
8843         Move option index after directive index.  Insert page breaks
8844         before GFDL and concept index.  Index environment variables
8845         with command line options.
8846         * doc/cppenv.texi: Use @vtable for environment variable list.
8847         Add paragraph explaining semantics of empty elements in path
8848         variables.  Exclude a cross-reference to Fishkill from the
8849         manpage.  Remove an unnecessary cross-reference of the entry
8850         right above the referer.  Don't use @anchor in text that goes
8851         into manpage.
8852         * doc/cppopts.texi: Cross-reference the environment variables
8853         section, not the specific environment variable, for consistency.
8854
8855 2002-03-25  Richard Henderson  <rth@redhat.com>
8856
8857         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8858         anywhere in the block.  Don't refer to insns that have been
8859         removed from the chain.  Iterate backward through the new insns.
8860         Don't refer to edges that have been removed.
8861
8862 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8863
8864         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8865         test for overflow of constant.
8866
8867 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8868
8869         PR target/2623
8870         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8871         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8872         these patterns on arm_archv4.
8873
8874 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8875
8876         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8877         int".
8878
8879 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8880
8881         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8882         float_handled, float_handler, float_signal, set_float_handler,
8883         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8884         * toplev.h: Don't prototype do_float_handler.
8885
8886         * c-lex.c: Fold parse_float into lex_number.  Make warning
8887         about portability of hex float constants more informative, and
8888         don't issue it on top of a syntax error.
8889         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8890         their callers.
8891         * real.h: Define REAL_VALUE_ABS here...
8892         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8893         simplify_unary_real, simplify_binary_real, and
8894         simplify_binary_is2orm1 into their callers.
8895         * tree.c: Fold build_real_from_int_cst_1 into caller.
8896
8897         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8898
8899         * tsystem.h: Include float.h here...
8900         * libgcc2.c: ... not here.
8901
8902 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8903
8904         Fixes for: PR bootstrap/3591, target/5676
8905         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8906         defined.  Do not disable exceptions or rtti.
8907         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8908         mcore.h.  Disable exceptions and rtti, since they are not
8909         supported by EPOC.
8910
8911 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8912
8913         * c-decl.c (maybe_build_cleanup): Remove.
8914         * expr.c (expand_expr): Use langhook.
8915         * langhooks-def.h (lhd_return_null_tree,
8916         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8917         (LANGHOOKS_INITIALIZER): Update.
8918         * langhooks.c (lhd_return_null_tree): New.
8919         * langhooks.h (struct lang_hooks): New hook.
8920         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8921         * tree.h (maybe_build_cleanup): Remove.
8922
8923 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8924
8925         * regrename.c (build_def_use): Move recog_memoized
8926         before extract_insn.
8927
8928 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8929
8930         PR target/6043
8931         * expr.c (emit_group_store): Handle storing into CONCAT.
8932
8933 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8934
8935         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8936         corresponding MATCH_DUP.
8937
8938 2002-03-24  Richard Henderson  <rth@redhat.com>
8939
8940         * unroll.c (unroll_loop): Zero label_map.
8941
8942         * gcse.c: Include except.h.
8943         * Makefile.in (gcse.o): Update.
8944
8945 2002-03-24  Richard Henderson  <rth@redhat.com>
8946
8947         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8948         Do resolve_unique_section before shared data clause.
8949
8950 2002-03-24  Richard Henderson  <rth@redhat.com>
8951
8952         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8953
8954 2002-03-24  Richard Henderson  <rth@redhat.com>
8955
8956         * recog.c (peephole2_optimize): Split blocks when EH insns are
8957         generated in the middle of a block.  Do global life update if
8958         zapped EH edges.
8959
8960 2002-03-24  Richard Henderson  <rth@redhat.com>
8961
8962         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8963
8964 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8965
8966         preprocessor/3951
8967         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8968         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8969         (init_dependency_output): Don't make no_output decision here.
8970
8971 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8972
8973         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8974         warn_switch.  Update description.
8975         (expand_end_case_type): Call check_for_full_enumeration_handling
8976         when warn_switch.
8977
8978 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8979
8980         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8981         (m68hc11_split_move): Call it to see if the source and destination
8982         operands use the same direction auto inc/dec mode, otherwise make the
8983         source an offsetable memory operand and generate an add.
8984
8985 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8986
8987         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8988         register for operand 2.
8989         ("*subsi3_zero_extendqi"): Likewise.
8990         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8991         bits so that it is compatible with a pop.
8992         ("*andhi3_gen"): Likewise.
8993         ("xorhi3"): Likewise.
8994
8995 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8996
8997         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8998         -pedantic here...
8999         (cpp_post_options): ... not here.
9000
9001 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9002             Aldy Hernandez  <aldyh@redhat.com>
9003
9004         Removal of separate preprocessor cpp0.
9005
9006         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
9007         cpp0, install-common): Update.
9008         * c-common.c (flag_preprocess_only): New.
9009         (c_common_init): Preprocess for -E.
9010         * c-common.h (flag_preprocess_only): New.
9011         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
9012         * c-objc-common.c (c_init_decl_processing): Exit quickly
9013         for NULL return from c_common_init.
9014         * cpplib.h (cpp_preprocess_file): New.
9015         * cppmain.c (main, general_init, pfile, progname): Remove.
9016         (do_preprocessing): Rename cpp_preprocess_file, don't call
9017         cpp_finish.  Don't close stdout here.
9018         (setup_callbacks): Update prototype.
9019         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
9020         Update.
9021         * tradcpp.c (main): Ignore -quiet.
9022 objc:
9023         * lang-specs.h (default_compilers): Preprocess with cc1obj.
9024
9025 2002-03-24  Richard Henderson  <rth@redhat.com>
9026
9027         PR optimization/5742
9028         * machmode.def: Add inner mode field to complex modes.
9029         * config/mips/mips.c (mips_function_value): Always define.  Add
9030         new argument to handle libcalls.
9031         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
9032         (FUNCTION_VALUE): Likewise.
9033         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
9034         * config/mips/mips-protos.h: Update.
9035
9036 2002-03-23  Richard Henderson  <rth@redhat.com>
9037
9038         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
9039         * config/sparc/sparc-protos.h: Update.
9040         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
9041
9042 2002-03-23  Richard Henderson  <rth@redhat.com>
9043
9044         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
9045         _start or _init begins the text segment.
9046
9047 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
9048
9049         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
9050         not HOST_WIDEST_INT.
9051         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
9052
9053 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
9054
9055         PR java/5489
9056         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
9057         operand argument to output_return_instruction.
9058         * arm.c (arm_print_operand, case 'd'): If the operand is
9059         const_true_rtx then just return.
9060         (arm_print_operand, case 'D'): If the operand is const_true_rtx
9061         then abort.
9062
9063 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9064
9065         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
9066         (Warning Options): Document -Wswitch-default.
9067         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
9068         -Wswitch.
9069         (warn_switch_default): Define variable.
9070         (warn_switch): Update comment.
9071         * flags.h (warn_switch_default): Declare variable.
9072         (warn_switch): Update comment.
9073         * stmt.c (expand_end_case): Check for and, when
9074         warn_switch_no_default, warn of a missing default case.
9075
9076 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
9077
9078         * real.h (N): Special case 128 bit doubles.
9079
9080         * combine.c (simplify_comparison): When widening modes, ignore
9081         sign extension on CONST_INTs.
9082
9083 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
9084
9085         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
9086         passed to adjust_address.  Fix comment formatting.
9087
9088
9089 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
9090
9091         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
9092         Always make REAL_VALUE_TYPE a struct containing an array of
9093         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
9094         big it is.  Don't declare or use union real_extract.
9095
9096         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
9097         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
9098         (print_operand), config/arm/arm.c (output_move_double),
9099         config/arm/arm.md (consttable_4, consttable_8),
9100         config/romp/romp.c (output_fpops), config/s390/s390.h
9101         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
9102         (xtensa_output_literal): Don't use union real_extract.
9103
9104         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
9105         (sfmode_constant_to_ulong), config/ns32k/merlin.h
9106         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
9107         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
9108         (PRINT_OPERAND): Don't use local version of union
9109         real_extract.
9110
9111         * config/convex/convex.c (check_float_value), config/vax/vax.c
9112         (vax_float_literal), config/m88k/m88k.md (divdf3),
9113         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
9114         config/pdp11/pdp11.c (output_move_quad): Don't do host
9115         arithmetic on target floating point quantities.
9116
9117         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
9118         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
9119
9120         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
9121         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
9122
9123         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
9124         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
9125         INFINITY.
9126         * print-rtl.c (print_rtx): Disable code which needs
9127         floating-point emulator.
9128         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
9129         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
9130         depending on HOST_FLOAT_FORMAT to be defined properly.
9131
9132         * config/1750a/1750a.c (get_double, float_label): Delete.
9133         (print_operand): Delete huge commented-out chunk.  Use
9134         REAL_VALUE_TO_DECIMAL.
9135         * config/1750a/1750a-protos.h: Delete prototypes of deleted
9136         functions.
9137         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
9138         IEEE_FLOAT_FORMAT.
9139         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
9140         Use REAL_VALUE_TO_DECIMAL as ELF version does.
9141         * config/m88k/m88k.c (real_power_of_2_operand,
9142         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
9143         real_extract out of the union; run the input through
9144         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
9145         from that into the union.
9146         * config/pdp11/pdp11.c (output_move_double): Rearrange
9147         parentheses to make automatic indenter happy.
9148
9149         * doc/tm.texi (Cross-compilation): Rename node to "Floating
9150         Point" and rewrite to describe current situation.  Also adjust
9151         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
9152         match code.
9153         * doc/rtl.texi: Adjust cross reference.
9154
9155 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
9156
9157         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
9158         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
9159         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
9160         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
9161         prevent use of sp as a reload register.
9162         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
9163         non_acc_reg_operand.
9164         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
9165         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
9166         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
9167         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
9168
9169 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9170
9171         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
9172         * cpplex.c (unterminated): Delete.
9173         (parse_string): No string literal may extend over multiple
9174         lines.  Suppress the error when preprocessing assembly.
9175         * cppmain.c (scan_translation_unit): Strings are single-line.
9176
9177         * doc/cpp.texi: Update to match.
9178
9179 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9180
9181         PR optimization/5854
9182         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
9183         Shut up warnings.
9184         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
9185         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
9186         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
9187         const0 if scratch register was not allocated.
9188         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
9189         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
9190         with GEN_INT (...).
9191         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
9192         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
9193         with GEN_INT (...) everywhere.  Remove constraints in define_split
9194         patterns.
9195         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9196         require scratch register for setting 0 into regs/non-pushable memory.
9197
9198 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9199
9200         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9201         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9202
9203 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
9204
9205         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
9206         * cppinit.c (cpp_create_reader):  On by default.
9207         (cpp_handle_option):  Handle -W[no-]endif-labels.
9208         (cpp_post_options):  Also enable if -pedantic.
9209         * cpplib.c (do_else):  Use it.
9210         (do_endif):  Likewise.
9211         * doc/cppopts.texi:  Document new option.
9212         * doc/invoke.texi:  Document new option.
9213
9214 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
9215
9216         * config/i386/i386.c, config/i386/i386.md: Change all occurences
9217         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9218
9219 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9220
9221         * flow.c (calculate_global_regs_live): Clear aux fields of
9222         ENTRY and EXIT.
9223
9224 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9225
9226         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9227         REG or MEM subregs, pass rtx * instead of rtx to it.
9228         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9229         rtx * instead of rtx to alter_subreg.
9230         * config/m32r/m32r.c (gen_split_move_double): Likewise.
9231         * config/pj/pj.c (pj_output_rval): Likewise.
9232
9233 2002-03-22  Richard Henderson  <rth@redhat.com>
9234
9235         PR target/3177
9236         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9237         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9238         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9239         (ia64_expand_prologue): Look at int_regs, not words, for number
9240         of incomming int regs.
9241
9242 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
9243
9244         * expr.c (expand_expr): A RESULT_DECL is part of a call.
9245
9246 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
9247
9248         * toplev.c (flag_loop_optimize, flag_crossjumping):
9249         New static variables.
9250         (rest_of_compilation): Conditionalize crossjumping and
9251         loop optimizer.
9252         (parse_options_and_default_flags): Default loop_optimize and
9253         crossjumping.
9254         (lang_independent_options): Add -fcrossjumping and -floop-optimize
9255         * invoke.texi (crossjumping, loop-optimize): Document.
9256
9257 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9258
9259         * real.c (eiisneg): Move outside #ifdef NANS.
9260
9261 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
9262
9263         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9264         frequencies match; avoid match on different loop depths.
9265         (try_crossjump_to_bb): Kill tests that no longer brings time
9266         savings.
9267         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9268         updating code.
9269         (split_edge): Likewise.
9270
9271         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9272         variable.
9273
9274         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9275         * cfgrtl.c: Include insn-config.h
9276         (split_block) Dirtify block in presence of conditional execution
9277
9278 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9279
9280         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9281         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9282         (function_arg): Constify CUMULATIVE_ARGS.
9283         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9284         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9285         (UNITS_PER_DOUBLE): New macro.
9286         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
9287         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
9288         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
9289         fp_regs and stack_words.
9290         (EABI_FLOAT_VARARGS_P): New macro.
9291         * config/mips/mips.c (struct mips_arg_info): New.
9292         (mips_arg_info): New function.
9293         (function_arg_advance): Use it.  Add adjustment instructions here
9294         rather than in function_arg.
9295         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
9296         for VOIDmode at the beginning of the function.
9297         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
9298         (function_arg_pass_by_reference): Likewise.
9299         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9300         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9301         (mips_va_start): Likewise.  Use the new stack_words field of
9302         CUMULATIVE_ARGS to set up overflow area.  Reformat.
9303         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
9304         doubles and other types, aligning the overflow pointer for non-doubles
9305         too.  Remove some code duplication.  Replace hard-coded constants.
9306
9307 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9308
9309         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9310         (CLASS_UNITS): Undefine.
9311         (CLASS_MAX_NREGS): Use FP_INC.
9312         * config/mips/mips.c (compute_frame_size): Likewise.
9313         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9314
9315 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9316
9317         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9318         prototype, and handle lexing numbers and identifiers.
9319         (parse_identifier): Update to new form of parse_slow.
9320         (parse_number): Fast path only, use parse_slow otherwise.
9321         (_cpp_lex_direct): Update calls to parse_number.
9322
9323 2002-03-21  DJ Delorie  <dj@redhat.com>
9324
9325         * bb-reorder.c (make_reorder_chain_1): Protect against
9326         when redundant edges are omitted.
9327         * predict.c (dump_prediction): Likewise.
9328
9329 2002-03-21  Richard Henderson  <rth@redhat.com>
9330
9331         PR target/5996
9332         * fixinc/inclhack.def (solaris_stdio_tag): New.
9333         * fixinc/fixincl.x: Regenerate.
9334
9335 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9336
9337         PR c/5597
9338         * c-typeck.c (process_init_element): Flag non-static
9339         initialization of a flexible array member as illegal.
9340
9341 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
9342
9343         * config/rs6000/t-linux64: New.
9344         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9345         t-ppccomm.  Use t-rs6000 and t-linux64.
9346         (powerpc64-*-gnu* <tmake_file>): Likewise.
9347         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9348         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9349         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9350
9351 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
9352
9353         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9354         flag_really_no_inline instead of optimize == 0.
9355
9356         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9357
9358         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9359
9360         * flags.h (flag_really_no_inline): New.
9361
9362         * c-common.c (c_common_post_options): Initialize
9363         flag_really_no_inline.
9364
9365         * toplev.c (flag_really_no_inline): New.
9366
9367 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9368
9369         * config/avr/avr.md (length): Fix length computation for
9370         conditional branches.
9371
9372 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9373
9374         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9375         sdbout.o, profile.o): Update.
9376         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9377         langhook.
9378         * c-common.h (gettags): Move here from tree.h.
9379         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9380         insert_block, getdecls, kept_level_p, global_bindings_p): New.
9381         * dbxout.c (dbxout_init): Use getdecls langhook.
9382         * expr.c (expand_expr): Use insert_block langhook.
9383         * fold-const.c: Include langhooks.h.
9384         (fold_range_test, fold_binary_op_with_conditional_arg,
9385         fold): Use global_bindings_p langhook.
9386         * integrate.c (expand_inline_function): Use insert_block langhook.
9387         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9388         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9389         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9390         LANG_HOOKS_GETDECLS): New.
9391         (LANG_HOOKS_INITIALIZER): Update.
9392         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9393         langhook.
9394         * langhooks.h (struct lang_hooks_for_decls): New.
9395         (struct lang_hooks): Update.
9396         * profile.c: Include langhooks.h.
9397         (output_func_start_profiler): Use new langhooks.
9398         * sdbout.c: Include langhooks.h.
9399         (sdbout_init, sdbout_finish): Use getdecls langhook.
9400         * stmt.c: Include langhooks.h.
9401         (expand_fixup, fixup_gotos): Use new langhooks.
9402         * stor-layout.c: Include langhooks.h.
9403         (variable_size): Use global_bindings_p langhook.
9404         * toplev.c (compile_file): Use getdecls langhook.
9405         * tree-inline.c (remap_block): Use insert_block langhook.
9406         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9407         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9408
9409 2002-03-21  Richard Henderson  <rth@redhat.com>
9410
9411         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9412         constants in .data when -fpic.
9413
9414 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9415
9416         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9417         where appropriate.
9418
9419 2002-03-21  Tom Tromey  <tromey@redhat.com>
9420
9421         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
9422
9423 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9424
9425         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9426
9427         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9428
9429 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9430             Richard Henderson  <rth@redhat.com>
9431
9432         PR c/5354
9433         * c-common.c (c_expand_expr): Preserve result of a statement
9434         expression if needed.
9435
9436 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9437
9438         PR bootstrap/4195
9439         * genrecog.c (maybe_both_true_mode): Remove.
9440         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9441         * machmode.def (Pmode): Likewise.
9442
9443 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
9444
9445         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9446         (nonlocal_mentioned_p_1): New function.
9447         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9448         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9449         (mark_constant_function): Recognize pure functions.
9450         * rtl.h (global_reg_mentioned_p): New prototype.
9451         * rtlanal.c (global_reg_mentioned_p,
9452         global_reg_mentioned_p_1): New function.
9453
9454 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9455
9456         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9457         UNIX assert.h.
9458         * fixinc/fixincl.x: Regenerate.
9459
9460 2002-03-20  Jason Merrill  <jason@redhat.com>
9461
9462         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9463
9464 2002-03-20  Michael Meissner  <meissner@redhat.com>
9465
9466         * doc/invoke.texi (Optimize Options): Document that -O2 sets
9467         -fstrict-aliasing.
9468
9469 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9470
9471         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9472         ".literal_position" directive before the constant pool.
9473
9474 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9475
9476         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9477         Add Craig Rodrigues.
9478         Add Brad Lucier to testers.
9479
9480 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9481
9482         PR target/4792
9483         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9484         to if_then_else.
9485         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9486         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9487         instead of insn_extract.
9488
9489 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9490
9491         PR bootstrap/4192
9492         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9493
9494         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9495         stmt if some case has been output.
9496
9497 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9498
9499         PR c/5972
9500         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9501         movsfcc_1, movdfcc_1): Add %O2.
9502         * config/i386/i386.c (print_operand): Handle %ON.
9503         Print . before float condition codes in Sun as cmov syntax.
9504         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9505         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9506         no longer true.
9507
9508 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9509
9510         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9511         return instruction if PC was popped.
9512
9513 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9514
9515         * config/xtensa/xtensa.md: Remove unused type attributes.
9516         (adddi_carry, subddi_carry): Change type attribute to "multi".
9517
9518 2002-03-19  Dale Johannesen  <dalej@apple.com>
9519
9520         PR optimization/5999, middle-end/5731
9521         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9522         multiplications by reciprocals.
9523
9524 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9525
9526         * Makefile.in: Update.
9527         * c-common.c: Include langhooks.h.
9528         (inline_forbidden_p): Use new hook.
9529         * diagnostic.c: Include langhooks.h.
9530         (format_with_decl, announce_function,
9531         default_print_error_function): Use new hook.
9532         * dwarf2out.c (dwarf2_name): Use new hook.
9533         * function.c: Include langhooks.h.
9534         (init_function_start): Use new hook.
9535         * langhooks-def.h (lhd_decl_printable_name): New.
9536         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9537         (LANGHOOKS_INITIALIZER): Update.
9538         * langhooks.c (lhd_decl_printable_name): New.
9539         * langhooks.h (struct lang_hooks): New hook.
9540         * toplev.c (decl_name, decl_printable_name): Remove.
9541         (open_dump_file): Use new hook.
9542         (process_options): Remove old hook.
9543         * tree.h (decl_printable_name): Remove.
9544 objc:
9545         * objc-act.c (objc_init): Remove old hook.
9546         (objc_printable_name): Export.
9547         * objc-act.h (objc_printable_name): New.
9548         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9549
9550 2002-03-19  Jim Blandy  <jimb@redhat.com>
9551
9552         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9553         the start_source_file debug hook, not the current line number.
9554
9555 2002-03-19  Richard Henderson  <rth@redhat.com>
9556
9557         * flow.c (EH_USES): Provide default.
9558         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9559         * doc/tm.texi (EH_USES): New.
9560
9561         * config/ia64/ia64.c (ia64_eh_uses): New.
9562         * config/ia64/ia64-protos.h: Update.
9563         * config/ia64/ia64.h (EH_USES): New.
9564
9565 2002-03-19  Richard Henderson  <rth@redhat.com>
9566
9567         * varasm.c (output_constant_def): Fix stupid typo.
9568
9569 2002-03-19  Richard Henderson  <rth@redhat.com>
9570
9571         PR 5879
9572         * except.c (current_function_has_exception_handlers): New.
9573         * except.h: Declare it.
9574         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9575         Combine tests that disable all sibcalls for the function.
9576
9577 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9578
9579         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9580         for INTEGER_CST.
9581
9582 2002-03-19  Richard Henderson  <rth@redhat.com>
9583
9584         PR 5977, 5991
9585         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9586         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9587
9588 2002-03-19  Jim Blandy  <jimb@redhat.com>
9589
9590         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9591         name, even if the replacement list contains no tokens, as required
9592         by Dwarf.
9593
9594 2002-03-19  Jason Merrill  <jason@redhat.com>
9595
9596         * varasm.c (globalize_decl): Get the name from the RTL, not
9597         DECL_ASSEMBLER_NAME.
9598
9599         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9600
9601 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9602
9603         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9604         subdi_carry): Define.
9605
9606 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9607
9608         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9609         about -fpic/-fPIC if extra_warnings set.
9610
9611 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9612
9613         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9614         TREE_STRING_POINTER.
9615         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9616
9617 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9618
9619         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9620         in favor of SP if FRAME_POINTER_REQUIRED is false.
9621
9622 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9623
9624         * emit-rtl.c (gen_int_mode): New function.
9625         * rtl.h: Prototype for it.
9626         * combine.c (make_extraction, simplify_comparison), expmed.c
9627         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9628         (convert_modes, store_field), optabs.c (expand_fix),
9629         simplify-rtx.c (neg_const_int, simplify_unary_real),
9630
9631         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9632         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9633
9634 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9635
9636         PR c/5656
9637         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9638         convert_parm_for_inlining.
9639         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9640         Define.
9641         * langhooks-def.h: Likewise.
9642         * objc/objc-lang.c: Likewise.
9643         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9644         function.
9645         * tree-inline.c (initialize_inlined_parameters):
9646         Call convert_parm_for_inlining lang hook if needed.
9647         * c-typeck.c (c_convert_parm_for_inlining): New function.
9648         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9649
9650 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9651
9652         * calls.c (precompute_arguments): Do not assume that temporaries
9653         can be destroyed after expanding the argument.
9654         (expand_call): Likewise.
9655
9656 2002-03-15  Eric Christopher  <echristo@redhat.com>
9657
9658         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9659         Fix register preference on last change.
9660         * config/mips/mips.c (mips_return_in_memory): New function.
9661         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9662         * config/mips/mips-protos.h: Declare.
9663         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9664         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9665
9666 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9667
9668         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9669         a register too.
9670         (anddi3, iorsi3): Likewise.
9671
9672         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9673         use %gprel for symbols that are going to be placed in linkonce
9674         sections.
9675
9676         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9677         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9678         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9679         not needed.  Disregard leaf_function_p().
9680         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9681         mips16 frame pointer.
9682         * config/mips/mips.md (store ra): Only to small SP offsets.
9683         2001-08-22  Graham Stott  <grahams@redhat.com>
9684         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9685         return a REG rtx for the return address register.
9686
9687 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9688
9689         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9690         constant-pool addresses as "mode-dependent".
9691         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9692
9693 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9694
9695         PR target/5740
9696         * expr.c (emit_group_load): Use extract_bit_field if
9697         needed for CONCAT arguments.
9698
9699 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9700
9701         PR target/4863
9702         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9703         offset to the base of the table.
9704         (thumb_tablejump): Matcher for Thumb tablejump insn.
9705         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9706         as the difference of two labels.
9707         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9708         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9709         tables in the code.
9710         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9711         * arm.c (get_jump_table_size): If the table is not in the text
9712         section, return zero.
9713
9714 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9715
9716         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9717         of gen_rtx_SUBREG.
9718         (arm_reload_out_hi): Use gen_lowpart instead of
9719         gen_rtx_SUBREG to access QImode components.
9720         * config/arm/arm.md: Disable zero_extend split for QImode
9721         subregs in BIG_ENDIAN mode.
9722         (storehi_bigend): Match use of least significant byte.
9723         (storeinthi): Remove extraneous SUBREG.
9724         Add missing construction of operands[2].
9725         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9726         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9727         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9728
9729 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9730
9731         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9732         any_operand.
9733
9734 2002-03-17  Richard Henderson  <rth@redhat.com>
9735
9736         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9737         explicitly.
9738
9739 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9740
9741         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9742         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9743
9744 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9745
9746         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9747
9748         * predict.c (estimate_bb_frequencies): Delete unused variables.
9749
9750 2002-03-17  Richard Henderson  <rth@redhat.com>
9751
9752         * config/ia64/ia64.c (ia64_attribute_table): Move before
9753         targetm definition.  Make static.
9754
9755 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9756
9757         * c-common.h (yyparse, c_common_parse_file): New.
9758         * c-lang.c: Include c-common.h.
9759         (LANG_HOOKS_PARSE_FILE): Redefine.
9760         * c-lex.c: Include c-common.h.
9761         (yyparse): Rename c_common_parse_file.  Call yyparse.
9762         * c-parse.in (yyparse): Remove macro.
9763         * c-tree.h (yyparse_1): Remove.
9764         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9765         (LANG_HOOKS_INITIALIZER): Update.
9766         * langhooks.h (struct lang_hoooks): New hook parse_file.
9767         * toplev.c (compile_file): Use parse_file hook.
9768         * tree.h (yyparse): Remove.
9769         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9770
9771 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9772
9773         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9774         float_truncate, not fix.
9775         ("*truncdfsf2_real"): Ditto.
9776         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9777
9778         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9779
9780 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9781
9782         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9783         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9784         where appropriate.  Make the second reference to
9785         leaf_function_p a function call, as intended.  Reindented.
9786
9787         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9788         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9789
9790         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9791         add register to non-constant into sp.
9792
9793         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9794         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9795         (mips16_gp_pseudo_rtx): Lose.
9796         (INIT_EXPANDERS): Deleted.
9797         * config/mips/mips.c (mips_init_machine_status): New.
9798         (mips_free_machine_status): New.
9799         (mips_mark_machine_status): New.
9800         (override_options): Set them.
9801         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9802         (struct machine_function): ... new.  Replaced all references.
9803         (mips_add_gc_roots): Don't mark them.
9804         (embedded_pic_fnaddr_reg): New, extracted from...
9805         (embedded_pic_offset): ... here.
9806         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9807         (movsi): Likewise.
9808
9809 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9810
9811         * cppinit.c: Revert -MD removal.
9812
9813 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9814
9815         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9816         soft registers by default for 68HC12.
9817         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9818         when compiling with -fomit-frame-pointer.
9819         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9820         (expand_epilogue): Likewise.
9821         (m68hc11_gen_rotate): Use exg when rotating by 8.
9822
9823 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9824
9825         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9826         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9827         (splits): Remove unused add splits.
9828         ("*addhi3_68hc12"): Tune constraints.
9829         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9830         constant fits in 8-bits and D is dead use abx/aby instructions.
9831         ("*addhi3"): Remove extern declaration of ix_reg.
9832         ("*subsi3"): Optimize and provide new split.
9833         ("subhi3"): Cleanup.
9834         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9835         (arith splits): For 68hc12 save the address register on the stack
9836         and do the arithmetic operation with a pop.
9837
9838 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9839
9840         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9841         allocating QImode in address registers.
9842         ("*movqi_m68hc11"): Likewise.
9843
9844 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9845
9846         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9847
9848 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9849
9850         * cppinit.c (print_help): Display -MD and -MMD.
9851         Don't display usage string.  Update assertion syntax and
9852         typo.
9853         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9854         (cpp_handle_option): Update.
9855
9856 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9857
9858         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9859         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9860         and define it so that regardless of target CPU size,
9861         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9862         of "int" rather than "long."
9863
9864 2002-03-15  Richard Henderson  <rth@redhat.com>
9865
9866         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9867         size as a tree.
9868
9869 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9870
9871         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9872         ("tstqi" split): Avoid using memory for tstqi on address register.
9873         (splits): Remove constraints.
9874         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9875         ("cmpdf", "cmpsf"): Remove since not used.
9876         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9877         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9878
9879 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9880
9881         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9882         ("neghi2"): Tighten constraints.
9883         ("one_cmplsi2"): Optimize and simplify split.
9884         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9885
9886 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9887
9888         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9889         and split of AND operation to clear the upper bits.
9890         ("*logicalsi3_zextqi"): Likewise.
9891         ("*logicallhi3_zexthi_ashift8"): Likewise.
9892         ("*logicalsi3_silshr16"): Likewise.
9893         ("logicalsi3_silshl16"): Likewise.
9894         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9895
9896 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9897
9898         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9899         (m68hc11_indirect_p): New function.
9900         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9901         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9902         TARGET_M6812.
9903         (asm_print_register): Likewise.
9904         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9905         (m68hc11_indirect_p): Declare.
9906         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9907         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9908         (TARGET_SWITCHES): New option -mrelax.
9909         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9910         destination.
9911         ("iorsi3", "xorsi3"): Likewise.
9912         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9913         ("*andhi3_mem"): New to handle destination in memory with bclr
9914         and a scratch register.
9915         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9916         ("*andhi3_const"): New when operand2 is constant.
9917         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9918         ("*andhi3_gen"): Cleanup of the old "andhi3".
9919         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9920         ("xorqi3"): Update constraints.
9921
9922 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9923
9924         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9925         for reg_equiv_memory_loc when the operand is a register that does
9926         not get a hard register (stack location).
9927         (tst_operand): After reload, accept all memory operand.
9928         (symbolic_memory_operand): Fix detection of symbolic references.
9929         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9930         accept symbols and any constant.
9931
9932 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9933
9934         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9935         note on the insn that sets the soft frame register.
9936         (must_parenthesize): ix and iy are also reserved names.
9937         (print_operand_address): One more place where parenthesis are required
9938         to avoid confusion with register names.
9939         (m68hc11_gen_movhi): Allow push of stack pointer.
9940         (m68hc11_check_z_replacement): Fix handling of parallel with a
9941         clobber.
9942         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9943         the replacement register is.
9944         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9945         and D8_REGS classes.
9946         (MODES_TIEABLE_P): All modes are tieable except QImode.
9947
9948 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9949
9950         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9951         (___subdi3): Likewise.
9952         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9953         (__map_data_section): Optimize 68hc11 case.
9954
9955 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9956
9957         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9958         than a shift to avoid adding a register with itself.
9959         (m68hc11_memory_move_cost): Take into account NO_REGS.
9960         (m68hc11_register_move_cost): Update and use memory move cost
9961         for soft registers.
9962         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9963         it gives more opportunities to cse to optimize.
9964         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9965         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9966
9967 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9968
9969         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9970         * c-common.def (CLEANUP_STMT): New tree node.
9971         * c-common.h (CLEANUP_DECL): New macro.
9972         (CLEANUP_EXPR): Likewise.
9973         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9974         * expr.c (expand_expr): Tidy.
9975         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9976         * tree-inline.c (initialize_inlined_parameters): Clean up
9977         new local variables.
9978
9979 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9980
9981         PR bootstrap/4128
9982         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9983         before movrXX only, use reg_overlap_mentioned_p.
9984         Only special case NE if just one insn can be generated.
9985
9986 2002-03-15  Jason Merrill  <jason@redhat.com>
9987
9988         * varasm.c (assemble_variable): Call resolve_unique_section before
9989         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
9990         of error_mark_node.
9991
9992 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9993
9994         PR target/5170
9995         * arm.md (split pattern for thumb shiftable immediates): Add comment
9996         explaining non-obvious test.
9997
9998 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9999
10000         PR target/5712
10001         * arm.md (movaddr, movaddr_insn): Delete.
10002
10003 2002-03-15  Jason Merrill  <jason@redhat.com>
10004
10005         * toplev.c (wrapup_global_declarations): Clarify variable handling.
10006         -fkeep-static-consts doesn't apply to comdats.
10007
10008 2002-03-14  Richard Henderson  <rth@redhat.com>
10009
10010         * c-decl.c: Include c-pragma.h.
10011         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
10012         (finish_function): Tidy.
10013         * c-pragma.c: Include c-common.h.
10014         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
10015         (handle_pragma_weak): Use them.
10016         (init_pragma): Register pending_weaks.
10017         * c-pragma.h (maybe_apply_pragma_weak): Declare.
10018         * print-tree.c (print_node): Print DECL_WEAK.
10019         * varasm.c (mark_weak_decls): Remove.
10020         (remove_from_pending_weak_list): Remove.
10021         (add_weak): Remove.
10022         (asm_emit_uninitialised): Call globalize_decl for weak commons.
10023         (weak_decls): Make a tree_list.
10024         (declare_weak): Cons weak_decls directly.
10025         (globalize_decl): Remove weak_decls elements directly.
10026         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
10027         symbols.  Don't pretend to handle aliases.
10028         (init_varasm_once): Update weak_decls registry.
10029         * Makefile.in: Update dependencies.
10030
10031 2002-03-14  Richard Henderson  <rth@redhat.com>
10032
10033         PR target/5312
10034         * config/ia64/ia64.c: Include tm_p.h last.
10035         (gen_nop_type): Remove duplicate definition.
10036         (cycle_end_fill_slots): Set sched_data for second L slot.
10037         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
10038         (nop_cycles_until): Fix typos.
10039
10040 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
10041
10042         PR optimization/5891
10043         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
10044
10045 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
10046
10047         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
10048           descriptors correctly.
10049
10050 2002-03-14  Michael Meissner  <meissner@redhat.com>
10051
10052         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
10053         100, allowing MAX_UNROLLED_INSNS to be overridden.
10054
10055         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
10056         --param.
10057
10058         * unroll.c (params.h): Include.
10059         (MAX_UNROLLED_INSNS): Delete, now in params.h.
10060
10061         * doc/invoke.texi (--param max-unroll-insns): Document.
10062
10063         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
10064
10065 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
10066
10067         * arm.md: Fix warnings about constraints in peepholes and splits.
10068
10069 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
10070
10071         * cpphash.h (struct lexer_state): Remove line_extension member.
10072         * cpplib.c (dequote_string, do_linemarker): New functions.
10073         (linemarker_dir): New data object.
10074         (DIRECTIVE_TABLE): No longer need to interpret #line in
10075         preprocessed source.  Delete obsolete comment about return
10076         values of handlers.
10077         (end_directive, directive_diagnostics, _cpp_handle_directive):
10078         Don't muck with line_extension.
10079         (directive_diagnostics): No need to issue warnings for
10080         linemarkers here.
10081         (_cpp_handle_directive): Issue warnings for linemarkers here,
10082         when appropriate.  Dispatch linemarkers to do_linemarker, not
10083         do_line.
10084         (do_line): Code to handle linemarkers split out to do_linemarker.
10085         Convert escape sequences in filename argument, both places.
10086
10087         * cppmacro.c (quote_string): Rename cpp_quote_string and
10088         export.  All callers changed.
10089         * cpplib.h (cpp_quote_string): Prototype.
10090         * cppmain.c (print_line): Call cpp_quote_string on to_file
10091         before printing it.
10092
10093         * doc/cpp.texi: Document that escapes are now interpreted in
10094         #line and in linemarkers, and that non-printing characters are
10095         converted to octal escapes when linemarkers are generated.
10096
10097 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10098
10099         * emit-rtl.c (try_split): Use delete_insns.
10100         * recog.c (split_all_insns): Fix terminating condition.
10101
10102 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
10103             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10104
10105         PR target/5828
10106         * arm.c (arm_output_epilogue): Fix floating-point register save
10107         adjustment when using a frame pointer.
10108
10109 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
10110
10111         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
10112         * config/mips/mips.c (compute_frame_size): Retrofit them here.
10113         (save_restore_insns, mips_expand_epilogue): And here.
10114         (build_mips16_call_stub): And here.
10115         (mips_function_value): Use the new macros to decide whether a single
10116         or complex float can be returned in floating-point registers.  Return
10117         a parallel rtx in the complex case.
10118
10119 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
10120
10121         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
10122         call after liveness analysis.
10123
10124         * recog.c (split_insn): Use delete_insn_and_edges.
10125
10126         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
10127         instructions to have branch prediction notes.
10128         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
10129
10130 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
10131
10132         * configure.in: Don't pass -Wno-long-long to a ADA compiler
10133         that doesn't support it.
10134         * configure: Regenerate.
10135
10136 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10137
10138         PR target/5626
10139         * config/sparc/sparc.md (normal_branch, inverted_branch,
10140         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10141         inverted_fp_branch): Adjust calls to output_cbranch.
10142         Set length attribute.
10143         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
10144         output_v9branch.  Set length attribute.
10145         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
10146         predicates.
10147         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
10148         (output_cbranch): Likewise.  Handle far branches.
10149         (output_v9branch): Handle far branches.
10150         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
10151         Adjust prototypes.
10152         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
10153         noov_compare64_op predicates.
10154
10155 2002-03-13  Jason Merrill  <jason@redhat.com>
10156
10157         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
10158         into the function and constify it.
10159         * gthr-dce.h, gthr-solaris.h: Likewise.
10160
10161 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
10162
10163         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
10164         * config/rs6000/rs6000.c (rs6000_va_arg): Use
10165         std_expand_builtin_va_arg if not ABI_V4.
10166
10167 2002-03-13  Jason Merrill  <jason@redhat.com>
10168
10169         * varasm.c (globalize_decl): New fn.
10170         (assemble_start_function): Use it.
10171         (asm_emit_uninitialized): Use it.
10172         (assemble_alias): Use it.
10173         (assemble_variable): Use it.
10174
10175 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
10176
10177         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
10178         2002-03-12 internal visibility change.
10179         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
10180         visibility into SYMBOL_REF_FLAG.
10181
10182 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
10183
10184         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
10185         VOIDmode operand.  Add compile-time optimization for constant results.
10186
10187 2002-03-12  Jason Merrill  <jason@redhat.com>
10188
10189         * c-typeck.c (convert_for_assignment): Don't allow conversions
10190         between pointers and references.  Only allow lvalues to convert to
10191         reference.
10192
10193 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
10194
10195         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10196         before prologue, to avoid scheduling problems.
10197
10198 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10199
10200         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10201         (ELIMINABLE_REGS): Add sfp->sp.
10202         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10203
10204 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10205
10206         PR optimization/5892
10207         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10208
10209 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10210
10211         * loop.c (basic_induction_var): Don't call convert_modes if mode
10212         classes are different.
10213
10214 2002-03-12  Richard Henderson  <rth@redhat.com>
10215
10216         PR optimization/5901
10217         * function.c (reposition_prologue_and_epilogue_notes): Position
10218         the markers after/before the last/first insn not deleted.
10219
10220 2002-03-12  Richard Henderson  <rth@redhat.com>
10221
10222         PR optimization/5878
10223         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10224         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10225         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10226
10227         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10228         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10229         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10230
10231         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10232         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10233         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10234         also.  Don't set it if not flag_pic.
10235         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10236         to be INVALID_REGNUM when not used.
10237
10238 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
10239
10240         * expmed.c (store_bit_field): Reset alias set for memory.
10241         (extract_bit_field): Same.
10242
10243 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10244
10245         * c-common.c (c_tree_code_type, c_tree_code_length,
10246         c_tree_code_name, add_c_tree_codes): Delete.
10247         * c-common.h (add_c_tree_codes): Delete.
10248         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10249         Define.
10250         * c-objc-common.c (c_objc_common_init): Don't call
10251         add_c_tree_codes, instead set lang_unsafe_for_reeval.
10252         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10253         objc_tree_code_name, add_objc_tree_codes): Delete.
10254         (objc_init): Don't call add_objc_tree_codes.
10255         * objc/objc-lang.c (tree_code_type, tree_code_length,
10256         tree_code_name): Define.
10257         * toplev.c (lang_independent_init): Don't set
10258         tree_code_length[IDENTIFIER_NODE].
10259         * tree.c (tree_code_type, tree_code_length, tree_code_name):
10260         Delete definitions, moved to language front-ends.
10261         * tree.def (IDENTIFIER_NODE): Hardwire the length.
10262         * tree.h (tree_code_type, tree_code_length, tree_code_name):
10263         Const-ify.
10264         (tree_code_length): Change type to unsigned char.
10265
10266 2002-03-12  Richard Henderson  <rth@redhat.com>
10267
10268         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10269         internal visibility change.
10270
10271 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10272
10273         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10274         validize_mem() instead of change_address to avoid clobbering
10275         memory attributes.
10276
10277 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10278
10279         * c-lex.h (position_after_whitespace): Remove.
10280
10281 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
10282
10283         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10284         (lex_string): Use unsigned char pointers.
10285
10286 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10287
10288         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10289         is not a valid memory_operand.
10290
10291 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10292
10293         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10294         * config/xtensa/lib1funcs.asm: Fix copyright to include
10295         special case for libgcc files.
10296         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10297         (__divsi3): Likewise.
10298         (__umodsi3): Likewise.
10299         (__modsi3): Likewise.
10300         * config/xtensa/lib2funcs.S: Fix copyright to include
10301         special case for libgcc files.
10302
10303 2002-03-12  Tom Rix  <trix@redhat.com>
10304
10305         * collect2.c (resolve_lib_name): Move outside of
10306         OBJECT_FORMAT_COFF ifdef.
10307         (ignore_library): Same.
10308
10309 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10310
10311         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10312
10313 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10314
10315         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10316         to function_section before writing out the constant pool.
10317
10318 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
10319
10320         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10321         zero_constant.
10322         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10323
10324 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
10325
10326         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10327         (adddi3): Likewise.
10328         (movdf): Likewise.
10329         (movdi): Likewise.
10330         (cmpsi splitter): Likewise.
10331         (modsi3): Fail if <= 0.
10332         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10333         redundant test when HOST_BITS_PER_WIDE_INT != 32.
10334         (reg_or_sub_cint64_operand): Likewise.
10335         (num_insns_constant_wide): Optimize sign extension.
10336         (rs6000_legitimize_address): Likewise.
10337
10338 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10339
10340         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10341         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10342
10343 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10344
10345         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10346         address calculation.
10347
10348 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10349
10350         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10351         scratch register to DImode / TImode.
10352         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10353         register used does not overlap the target.
10354
10355 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10356
10357         * Makefile.in (debug.o): Depend on debug.h.
10358         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10359         * debug.c (do_nothing_debug_hooks): Likewise.
10360         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10361         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10362         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10363         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10364         * dwarfout.c (dwarf_debug_hooks): Likewise.
10365         * integrate.c (output_inline_function): Likewise.
10366         * objc/objc-act.c (synth_module_prologue): Likewise.
10367         * sdbout.c (sdb_debug_hooks): Likewise.
10368         * toplev.c (debug_hooks): Likewise.
10369         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10370
10371 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10372
10373         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10374         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10375         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10376         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10377         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10378         * defaults.h (POINTER_SIZE): Define.
10379         * doc/tm.texi (POINTER_SIZE): Document default.
10380
10381 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10382
10383         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10384
10385 2002-03-11  Richard Henderson  <rth@redhat.com>
10386
10387         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10388         if rebuild_label_notes_after_reload.
10389
10390 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
10391
10392         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
10393         emit pic register load if "internal" visibility.
10394         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10395         (cris_expand_builtin_va_arg): Do all computations on trees.
10396
10397 2002-03-11  Richard Henderson  <rth@redhat.com>
10398
10399         * rtlanal.c: Include recog.h.
10400         (keep_with_call_p): Fix thinko.
10401         * Makefile.in (rtlanal.o): Update dependencies.
10402
10403 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
10404
10405         * genflags.c (gen_insn): Use IS_VSPACE.
10406         * genoutput.c (output_insn_data): Likewise.
10407         (process_template): Likewise.
10408
10409 2002-03-11  Richard Henderson  <rth@redhat.com>
10410
10411         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10412
10413 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10414
10415         * Makefile.in: Update.
10416         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10417         Update documentation.
10418         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10419         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10420
10421 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
10422
10423         * Makefile.in: Give texi2pod its input file as a command line
10424         argument, not on stdin.
10425
10426 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
10427             Daniel Berlin  <dan@dberlin.org>
10428
10429         C++ alias analysis improvement.
10430         * alias.c (record_component_aliases): Record aliases for base
10431         classes too.
10432
10433 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
10434
10435         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10436
10437 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
10438
10439         * toplev.c (vms_fopen): Remove, not needed.
10440
10441         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10442
10443         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10444
10445         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10446         for FP, already done later.
10447
10448         * toplev.c (debug_args): Add entry for VMS_DEBUG.
10449         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10450
10451 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
10452
10453         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10454         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10455         LARGEST_EXPONENT_IS_NORMAL for the given mode.
10456         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10457         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10458         (ediv, emul, eldexp, esqrt): Likewise.
10459         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10460         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10461         (saturate): New function.
10462         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10463         (make_nan): Use a saturation value instead of a NaN if
10464         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
10465         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10466         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
10467         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
10468         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10469         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10470         !ROUND_TOWARDS_ZERO.
10471         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10472         (ROUND_TOWARDS_ZERO): Document.
10473
10474 2002-03-11  Andreas Jaeger  <aj@suse.de>
10475
10476         * cfg.c (dump_flow_info): Remove unused variable.
10477
10478 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
10479
10480         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10481         computations on trees.
10482
10483 2002-03-10  Richard Henderson  <rth@redhat.com>
10484
10485         PR 5693:
10486         * reload.c (copy_replacements_1): New.
10487         (copy_replacements): Use it to recurse through the rtx.
10488
10489 2002-03-10  Richard Henderson  <rth@redhat.com>
10490
10491         * loop.c (strength_reduce): Compute number of iterations as
10492         unsigned HOST_WIDE_INT.
10493
10494 2002-03-10  Richard Henderson  <rth@redhat.com>
10495
10496         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10497         to move away from the end of the block.
10498
10499 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10500
10501         PR preprocessor/5899
10502         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10503
10504 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10505
10506         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10507
10508         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10509
10510 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10511
10512         * config/mmix/mmix.c: Improve comments.
10513         (mmix_target_asm_function_prologue): Drop variable
10514         empty_stack_frame.  Don't allocate unused slot above fp.
10515         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10516         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10517         brace in first column.
10518         (enum reg_class): Ditto.
10519         (FIRST_PARM_OFFSET): Now 0.
10520         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10521
10522 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10523
10524         * combine.c (make_extraction): Fix error in last change.
10525
10526 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10527
10528         * c4x.c (c4x_fp_reglist): Const-ify.
10529         * cris.c (cris_print_operand): Likewise.
10530         * i386.c (ix86_va_arg): Likewise.
10531         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10532         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10533         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10534         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10535         * mcore.h (regno_reg_class): Likewise.
10536         * mips.c (gen_int_relational): Likewise.
10537         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10538         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10539         * pdp11.c (move_costs): Likewise.
10540         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10541         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10542         Likewise.
10543         * s390.h (regclass_map): Likewise.
10544         * sh.c (shift_amounts): Likewise.
10545         * sh.md (rotlsi3): Likewise.
10546
10547 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10548
10549         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10550         (ne0+5): Use new clobber to generate proper shift pattern.
10551         Patch by Michael Matz <matz@kde.org>.
10552
10553 2002-03-09  Andreas Schwab  <schwab@suse.de>
10554
10555         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10556
10557 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10558
10559         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10560
10561 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10562
10563         PR middle-end/5877
10564         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10565         even for non-representable constants.
10566
10567 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10568
10569         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10570         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10571         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10572         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10573         (pop_function_context): Compute MAY_SHARE parameter for
10574         fixup_var_refs.
10575         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10576         (gen_mem_addressof): Call fixup_var_refs with new parm.
10577
10578         * combine.c (make_extraction): Don't make extension of CONST_INT.
10579
10580 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10581
10582         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10583         in o32 and o64 ABIs.
10584         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10585         but getting fixed-size structs passed in registers regardless of
10586         padding in o32 and o64 ABIs.
10587
10588         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10589         offset before loading address of argument passed by transparent
10590         reference.
10591
10592 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10593
10594         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10595
10596 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10597
10598         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10599         marker such that registers after it are saved.
10600
10601 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10602
10603         * sparc.c (arith_4096_operand): Fix error in last change.
10604
10605 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10606
10607         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10608         defaults for MEABI.
10609
10610 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10611
10612         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10613         vectors.
10614
10615 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10616
10617         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10618
10619 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10620
10621         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10622         removed; fix return value.
10623         * combine.c (combine_instructions): Dirtify blocks where we failed to
10624         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10625         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10626
10627 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10628
10629         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10630
10631 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10632
10633         * recog.c (peephole2_optimize): Re-distribute EH edges.
10634
10635 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10636
10637         * expr.c (expand_expr): Use unsave lang hook.
10638         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10639         (LANG_HOOKS_INITIALIZER): Update.
10640         * langhooks.h (struct lang_hooks): New hook unsave.
10641         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10642         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10643         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10644         (unsave_expr_now): Remove.
10645         * tree.h (unsave_expr_now, lang_unsave,
10646         lang_unsave_expr_now): Remove.
10647         (lhd_unsave): New.
10648
10649 2002-03-08  Andreas Jaeger  <aj@suse.de>
10650
10651         * flow.c (propagate_block_delete_insn): Remove unused variable.
10652
10653 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10654
10655         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10656         insn length for memory load/store.
10657
10658 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10659
10660         * doc/install.texi (--with-libiconv-prefix): Document.
10661
10662 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10663
10664         * doc/sourcebuild.texi: Fix typo.
10665
10666 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10667
10668         PR c/3711
10669         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10670         trees.
10671
10672 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10673
10674         * rtl.c (copy_most_rtx): Move from here ...
10675         * emit-rtl.c (copy_most_rtx): ... to here.
10676
10677 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10678
10679         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10680         SUBTARGET_CPP_SIZE_SPEC.
10681         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10682
10683         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10684
10685 2002-03-07  Matt Hiller  <hiller@redhat.com>
10686
10687         * gensupport.c (first_dir_md_include): Renamed from include;
10688         change all references.
10689         (last_dir_md_include): Renamed from last_include; change all
10690         references.
10691         (init_md_reader): Unconditionally initialize base_dir whether or
10692         not filename is a relative path.
10693
10694 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10695
10696         * config/fp-bit.c (_unord_f2): Compile it in even if
10697         US_SOFTWARE_GOFAST is enabled.
10698
10699         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10700         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10701         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10702         NULL_RTX, try reversing the comparison and the operands.
10703
10704 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10705
10706         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10707         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10708         and MATCH_OP_DUP.
10709
10710 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10711
10712         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10713
10714 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10715
10716         * basic-block.h (fixup_abnormal_edges): Declare.
10717         * reload1.c (fixup_abnormal_edges): New function.
10718         * reg-stack.c (convert_regs): Use it.
10719
10720         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10721
10722         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10723
10724 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10725
10726         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10727         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10728         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10729         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10730         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10731         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10732         unless x and y could be infinite.
10733         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10734         Check that the common type of both arguments is a real, even for
10735         targets without unordered comparisons.  Allow an integer argument
10736         to be compared against a real.
10737         (expand_tree_builtin): Use expand_unordered_cmp.
10738         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10739         * cse.c (fold_rtx): Likewise.  Fix indentation.
10740         * fold-const.c (fold_real_zero_addition_p): New.
10741         (fold): Use it, and the new HONOR_... macros.
10742         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10743         * jump.c (reversed_comparison_code_parts): After searching for
10744         the true comparison mode, use HONOR_NANS to decide whether it
10745         can be safely reversed.
10746         (reverse_condition_maybe_unordered): Remove IEEE check.
10747         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10748         to decide which simplifications are valid.  Allow the following
10749         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10750         and (a - -b) to (a + b).
10751         (simplify_relational_operation): Use HONOR_NANS.
10752         * doc/tm.texi: Document the MODE_HAS_... macros.
10753
10754 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10755
10756         * combine.c (simplify_comparison): If simplifying a logical shift
10757         right and compare with constant, force the comparison to unsigned.
10758
10759 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10760
10761         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10762
10763         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10764         -mabi=no-altivec
10765         (alt_reg_names): Remove % for vrsave.
10766
10767 2002-03-06  Richard Henderson  <rth@redhat.com>
10768
10769         PR optimization/5844
10770         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10771         if used indicates we've already emitted one copy of an operand.
10772         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10773         (gen_split): Supply a non-null used.
10774
10775 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10776
10777         * reload1.c (reload): Unshare all rtl after reload is done.
10778
10779         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10780         but simply fail if the expression is too complex to simplify.
10781         (simplify_gen_binary): Handle simplify_plus_minus failures.
10782
10783 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10784
10785         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10786         consistently call delete_trivially_dead_insns after CSE and GCSE;
10787         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10788         after liveness2; update comment in last crossjumping.
10789         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10790
10791 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10792
10793         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10794         after completing fast dead code elimination.
10795
10796         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10797         COMPARE operator.
10798
10799 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10800
10801         * version.c:  Fix misplaced leading blanks on first line.
10802
10803 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10804
10805         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10806
10807 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10808
10809         * cfgcleanup.c (mentions_nonequal_regs): New function.
10810         (thread_jump): Use it.
10811         * toplev.c (rest_of_compilation): Run jump threading after
10812         liveness.
10813
10814 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10815
10816         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10817         patch.
10818
10819 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10820
10821         * predict.c (estimate_bb_frequencies): Do not reload the
10822         frequencies from notes.
10823
10824 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10825
10826         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10827         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10828
10829         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10830         delete_noop_moves): Return indeger.
10831         * flow.c (ndead): New variable.
10832         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10833         BB argument; update callers.
10834         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10835         (life_analysis): Do not call purge_all_dead_edges.
10836         (update_life_info): Return number of deleted insns; print statistics.
10837         (update_life_info_in_dirty_blocks): likewise.
10838         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10839         return number of insns deleted.
10840
10841         * cse.c: Include timevar.h
10842         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10843         iterate until stabilizes; print statistics; return number of killed
10844         insns.
10845         * Makefile.in: (cse.o): Add timevar.h dependency
10846         * rtl.h (delete_trivially_dead_insns): New.
10847         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10848         * toplev.c (rest_of_compilation): Update callers.
10849
10850         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10851         (try_optimize_cfg): Do not update liveness.
10852         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10853         removal stabilizes; use delete_trivially_dead_insns.
10854
10855         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10856
10857 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10858
10859         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10860         callbacks when processing assembly language.
10861
10862 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10863
10864         * pa.h (ASM_FILE_END): Define.
10865         * som.h (ASM_FILE_END): Delete.
10866
10867         * pa.c (function_arg): Don't pass floats in general registers in
10868         indirect calls if TARGET_ELF32.
10869
10870 2002-03-05  Richard Henderson  <rth@redhat.com>
10871
10872         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10873
10874 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10875
10876         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10877
10878 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10879
10880         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10881         -r command line.  Don't hide any symbols if not building
10882         shared libgcc.
10883
10884 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10885
10886         * cfg.c (dump_flow_info): Warn about profile mismatches.
10887         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10888         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10889
10890 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10891
10892         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10893         wide volatile memory by parts.
10894
10895 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10896
10897         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10898         is NULL.
10899
10900 2002-03-05  Richard Henderson  <rth@redhat.com>
10901
10902         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10903
10904 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10905
10906         * toplev.c (documented_lang_options): Document more
10907         language-specific options.
10908         * doc/invoke.texi (Warning Options): Correct documentation for
10909         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10910         * c-decl.c (c_decode_option): Use a table to handle warning options.
10911
10912 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10913
10914         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10915         parameter to mmix_encode_section_info.
10916         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10917         relocatably.  Always produce ELF, not mmo if linking relocatably.
10918         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10919         first is non-zero, don't add symbol prefix.
10920         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10921         prototype accordingly.
10922
10923 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10924
10925         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10926
10927 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10928
10929         * configure.in: Increase required makeinfo version to 4.1.
10930         * configure: Regenerate.
10931
10932 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10933
10934         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10935         elsewhere now.
10936
10937 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10938
10939         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10940         * doc/invoke.texi: Fix @math uses.
10941
10942 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10943
10944         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10945         removal
10946
10947 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10948
10949         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10950         (powerpc-*-eabisimaltivec*): Same.
10951
10952         * config/rs6000/t-ppcendian: New.
10953
10954 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10955
10956         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10957         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10958         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10959
10960 2002-03-03  Richard Henderson  <rth@redhat.com>
10961
10962         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10963
10964 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10965
10966         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10967         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10968         tree.c, config/m68k/m68k.c:
10969         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10970         REAL_ARITHMETIC blocks unconditional.  Delete some further
10971         #ifdef blocks predicated on REAL_ARITHMETIC.
10972         * flags.h, toplev.c: Delete remaining references to
10973         flag_pretend_float.
10974
10975         * doc/invoke.texi: Remove documentation of -fpretend-float.
10976         * doc/tm.texi: Describe the various REAL_* macros as provided by
10977         real.h, not by the target configuration files.
10978
10979         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10980         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10981         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10982         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10983         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10984         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10985         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10986         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10987         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10988         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10989         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10990         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10991         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10992         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10993         config/xtensa/xtensa.h:
10994         Do not define, undefine, or mention in comments any of
10995         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10996         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10997         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10998         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10999         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
11000         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
11001         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
11002         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
11003         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
11004
11005 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11006
11007         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
11008         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
11009         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
11010         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
11011         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
11012         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
11013         Delete.
11014         * defaults.h (BITS_PER_WORD): Define.
11015         * doc/tm.texi (BITS_PER_WORD): Document default value.
11016
11017         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
11018         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
11019         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
11020
11021 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11022
11023         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
11024         lieu of explicit sizeof/sizeof.
11025         * i386.c (override_options, ix86_init_mmx_sse_builtins,
11026         ix86_expand_builtin): Likewise.
11027         * mips.c (mips_add_gc_roots): Likewise.
11028         * mmix.c (mmix_output_condition): Likewise.
11029         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
11030         altivec_init_builtins): Likewise.
11031         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
11032         * cppexp.c (Nsuff, parse_number): Likewise.
11033         * cppinit.c (builtin_array_end): Likewise.
11034         * gcc.c (n_default_compilers, process_command): Likewise.
11035         * genpreds.c (output_predicate_decls): Likewise.
11036         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
11037         * lcm.c (N_ENTITIES): Likewise.
11038         * stor-layout.c (set_sizetype): Likewise.
11039
11040 2002-03-03  Richard Henderson  <rth@redhat.com>
11041
11042         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
11043         for types or labels.
11044
11045 2002-03-03  Richard Henderson  <rth@redhat.com>
11046
11047         * c-decl.c (start_decl): Initialized variables are not common.
11048
11049 2002-03-02  Per Bothner  <per@bothner.com>
11050
11051         * gcc.c (option_map):  Suport new --bootclasspath option.
11052         --CLASSPATH is now just an alias for --classpath.
11053
11054 2002-03-02  Richard Henderson  <rth@redhat.com>
11055
11056         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
11057         load if "internal" visibility.
11058         * doc/extend.texi: Document visibility meanings.
11059
11060 2002-03-02  Richard Henderson  <rth@redhat.com>
11061
11062         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
11063         to functions as well.
11064
11065 2002-03-02  Richard Henderson  <rth@redhat.com>
11066
11067         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
11068         (handle_visibility_attribute): Don't call assemble_visibility.
11069         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
11070         without asmspec.  Invoke assemble_alias when needed.
11071         * varasm.c (maybe_assemble_visibility): New.
11072         (assemble_start_function, assemble_variable, assemble_alias): Use it.
11073
11074 2002-03-02  Richard Henderson  <rth@redhat.com>
11075
11076         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
11077         invoke ENCODE_SECTION_INFO with first call flag.
11078
11079         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
11080         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
11081         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
11082         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
11083         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
11084         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11085         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
11086         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
11087         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
11088         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
11089         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11090         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
11091         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
11092         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
11093         config/mcore/mcore-protos.h, config/mcore/mcore.c,
11094         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
11095         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
11096         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11097         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
11098         config/sh/sh.h, config/sparc/sparc.h,
11099         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
11100         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
11101         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
11102         FIRST argument.  As needed, examine it and do nothing.
11103
11104         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
11105         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11106         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
11107
11108         * config/arm/t-pe (pe.o): Add dependencies.
11109
11110 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11111
11112         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
11113         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
11114         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
11115         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
11116         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
11117         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
11118         * defaults.h (BITS_PER_UNIT): Define.
11119         * doc/tm.texi (BITS_PER_UNIT): Document default value.
11120
11121 2002-03-02  Kazu Hirata  <kazu@hxi.com>
11122
11123         * config/h8300/h8300-protos.h: Add a prototype for
11124         compute_a_shift_length.
11125         * config/h8300/h8300.c (h8300_asm_insn_count): New.
11126         (compute_a_shift_length): Likewise.
11127         (h8300_adjust_insn_length): Do not adjust insn length of shift
11128         insns.
11129         * config/h8300/h8300.md (anonymous shift patterns): Use
11130         compute_a_shift_length.
11131
11132 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11133
11134         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
11135         trunc_int_for_mode.
11136
11137         * emit-rtl.c (offset_address): Call update_temp_slot_address.
11138
11139 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11140
11141         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
11142         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
11143         * flags.h (flag_zero_initialized_in_bss): Declare.
11144         * toplev.c (flag_zero_initialized_in_bss): New flag.
11145         (lang_independent_options): Add flag_zero_initialized_in_bss.
11146         * tree.c (initializer_zerop): New function.
11147         * tree.h (initializer_zerop): Declare.
11148         * varasm.c (assemble_variable): If we can emit bss, put zero
11149         initializers in the bss section.
11150
11151 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
11152
11153         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
11154         like more than one symbol per .weak directive.
11155
11156 2002-03-01  Richard Henderson  <rth@redhat.com>
11157
11158         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
11159         adjust argument_pointer by pretend_args_size.
11160         (ia64_va_start): Adjust va_start address by -pretend_args_size.
11161
11162 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11163
11164         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
11165
11166 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
11167
11168         * toplev.c (rest_of_compilation): Delete dead jumptables before
11169         loop.
11170         * flow.c (delete_dead_jumptables): Make global.
11171         * rtl.h (delete_dead_jumptables): Declare.
11172
11173 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
11174
11175         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
11176         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
11177         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
11178
11179 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11180
11181         * config/h8300/h8300-protos.h: Fix formatting.
11182         * config/h8300/h8300.c: Likewise.
11183         * config/h8300/h8300.h: Likewise.
11184
11185 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11186
11187         * config/h8300/h8300.c (print_operand): Support 16-bit
11188         constant addresses.
11189         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
11190
11191 2002-02-28  Richard Henderson  <rth@redhat.com>
11192
11193         * expmed.c (store_bit_field): Prevent generation of CONCATs;
11194         pun complex values as integers; use gen_lowpart instead of
11195         gen_rtx_SUBREG.
11196         (extract_bit_field): Likewise.
11197
11198 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
11199             David Edelsohn  <edelsohn@gnu.org>
11200
11201         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11202         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11203         (SUPPORTS_WEAK): Likewise.
11204         * output.h (add_weak): Add tree param.
11205         * varasm.c (add_weak): Likewise.  Save decl.
11206         (struct weak_syms): Add decl field.
11207         (mark_weak_decls): New function.
11208         (init_varasm_once): ggc_add_root mark_weak_decls.
11209         (assemble_start_function): Use ASM_WEAKEN_DECL.
11210         (assemble_variable): Likewise.
11211         (assemble_alias): Likewise.
11212         (declare_weak): Pass decl to add_weak.
11213         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11214         (remove_from_pending_weak_list): Declare and define for
11215         ASM_WEAKEN_DECL.
11216         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11217         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11218         * defaults.h (SUPPORTS_WEAK): Likewise.
11219         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11220         .weak for code sym.  Do emit .size for descriptor sym.
11221         (ASM_DECLARE_FUNCTION_SIZE): Define.
11222         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11223         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
11224         .lglobl unless TARGET_XCOFF.  Formatting fixes.
11225         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11226         .weak for code sym.
11227         (HANDLE_PRAGMA_WEAK): Remove.
11228         (ASM_WEAKEN_LABEL): Remove.
11229         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11230
11231 2002-03-01  Jason Merrill  <jason@redhat.com>
11232
11233         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11234         (TARGET_EXPR_CLEANUP): New macro.
11235
11236 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
11237
11238         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11239         to take ptr_extend into account as third type of extension.
11240         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11241         fields used by SUBREG_PROMOTED_UNSIGNED_P.
11242         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11243         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11244         * calls.c (precompute_arguments): Use new macro.
11245         (expand_call): Ditto.
11246         * combine.c (nonzero_bits): Ditto.
11247         (record_promoted_value): Ditto.
11248         * expr.c (store_expr): Ditto.
11249         (expand_expr): Ditto.
11250         * function.c (assign_parms): Ditto.
11251
11252 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
11253
11254         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11255         override -shared and -shared-libgcc.
11256
11257 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
11258
11259         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11260         of "ultrasparc".
11261         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
11262         to be broken.
11263
11264 2002-02-28  Richard Henderson  <rth@redhat.com>
11265
11266         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11267         4 cycle latency from MM producers.
11268         (ia64_internal_sched_reorder): Likewise with pipeline flush.
11269
11270 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
11271
11272         * mklibgcc.in: Don't use GNU make extension.
11273
11274 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11275
11276         * c-parse.in (STATIC): New terminal.
11277         (scspec): New non-terminal.  Update productions accordingly.
11278         (program): Remove bogus ifc / end ifc.
11279         (array_declarator): Simplify production using STATIC.
11280
11281 2002-02-28  Jim Meyering  <meyering@lucent.com>
11282
11283         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11284         \a still means TARGET_BELL.
11285
11286 2002-02-28  Richard Henderson  <rth@redhat.com>
11287
11288         * haifa-sched.c (sched_emit_insn): New.
11289         (schedule_block): Use last_scheduled_insn to track last insn.
11290         * sched-int.h (sched_emit_insn): Prototype.
11291         * config/ia64/ia64.c (last_issued): Remove.
11292         (ia64_variable_issue): Don't set it.
11293         (nop_cycles_until): Use sched_emit_insn.
11294
11295 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
11296
11297         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11298         extended constants.
11299
11300 2002-02-28  Kazu Hirata  <kazu@hxi.com>
11301
11302         * config/h8300/h8300.c: Fix formatting.
11303         * config/h8300/h8300.h: Likewise.
11304
11305 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11306
11307         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11308         which may overwrite the high byte of the frame pointer.
11309
11310 2002-02-28  Bo Thorsen  <bo@suse.de>
11311
11312         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11313         (STARTFILE_SPEC): Add 64 bit files.
11314         (ENDFILE_SPEC): Likewise.
11315
11316 2002-02-28  Jason Merrill  <jason@redhat.com>
11317
11318         * c-decl.c (finish_function): Only warn about missing return
11319         statement with -Wreturn-type.
11320
11321 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11322
11323         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11324
11325         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11326         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11327
11328 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11329
11330         * basic-block.h (BB_REACHABLE): Renumber.
11331         (BB_DIRTY, BB_NEW): New flags.
11332         (clear_bb_flags): Declare.
11333         (update_life_info_in_dirty_blocks): Declare.
11334         * cfg.c (clear_bb_flags): New function.
11335         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11336         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11337         reorder_insns, emit_insn_after): Mark block as dirty.
11338         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11339         (update_life_info_in_dirty_blocks): New function.
11340         * recog.c (apply_change_group): Dirtify block.
11341
11342         * cse.c (cse_insn): Reorder emitting of jump insn to keep
11343         cfg consistent.
11344         * gcse.c (delete_null_pointer_checks): Likewise.
11345
11346         * toplev.c (dump_file_index): Move cse2 after bp,
11347         add DFI_null
11348         (dump_file_info): Similary.
11349         (rest_of_compilation): Avoid most of CFG rebuilds;
11350         do first if converision after null pointer checks, do cse2
11351         after branch prediction; avoid full liveness rebuild after
11352         initializing subregs.
11353         * invoke.texi (-d options): Document -du, renumber.
11354
11355         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11356         (notice_new_block): Do not set BB_UPDATE_LIFE.
11357         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11358          merge_blocks_move_successor_nojumps, merge_blocks,
11359          try_crossjump_to_edge): Likewise.
11360         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11361         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11362         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11363         (merge_of_block): Do not use life_data_ok.
11364         (find_if_case_1): Do not use SET_UPDATE_LIFE.
11365         (if_convert): Use BB_DIRTY mechanizm to update life.
11366         * lcm.c (optimize_mode_switching): Update
11367         update_life_info_in_dirty_blocks
11368
11369 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11370
11371         * Makefile.in (integrate.o): Update.
11372         * c-decl.c (copy_lang_decl): Rename.
11373         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11374         * integrate.c: Include langhooks.h.
11375         (copy_decl_for_inlining): Update to use langhook.
11376         * langhooks-def.h (lhd_do_nothing_t,
11377         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11378         (LANG_HOOKS_INITIALIZER): Update.
11379         * langhooks.c (lhd_do_nothing_t): New.
11380         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11381         * tree.h (copy_lang_decl): Remove.
11382 objc:
11383         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11384
11385 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
11386
11387         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11388         POST_DEC, and POST_MODIFY.
11389
11390 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11391
11392         * c-typeck.c (digest_init): Remove unused parameter; all
11393         callers changed.
11394
11395 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
11396
11397         * expmed.c (expand_shift): Correctly test for low part of a
11398         subreg.
11399
11400 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
11401
11402         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11403         insn UIDs with insn addresses.
11404
11405 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11406
11407         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11408         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11409         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11410         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11411         gcc.c, toplev.c: Delete code implementing -traditional mode.
11412
11413         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11414         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11415         Document removal of -traditional mode for compilation, and
11416         remove documentation only relevant to that mode.
11417
11418         * config/nextstep.h, config/ptx4.h, config/svr4.h,
11419         config/convex/convex.h, config/d30v/d30v.h,
11420         config/i386/dgux.h, config/i386/osf1elf.h,
11421         config/i386/osfelf.h, config/i386/osfrose.h,
11422         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11423         config/m68k/hp310.h, config/m88k/dgux.h,
11424         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11425         config/m88k/m88k.h, config/m88k/openbsd.h,
11426         config/mips/abi64.h, config/mips/osfrose.h,
11427         config/mips/svr4-5.h, config/mips/svr4-t.h,
11428         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11429         config/stormy16/stormy16.h: Remove all references to
11430         -traditional from target specs.  Delete all mention of the
11431         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
11432         delete a couple of commented-out definitions of
11433         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11434         to -traditional.
11435
11436         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11437         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11438
11439 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11440
11441         * mklibgcc.in: Don't use \n in a line subject to
11442         interpretation by echo.
11443
11444 2002-02-27  Graham Stott  <grahams@redhat.com>
11445
11446         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11447         Constify NAME.
11448
11449         * loop.c (prescan_loop): Handle PARALLEL.
11450
11451         * unroll.c (loop_iterations): Return 0 if the add_val for
11452         a BIV is REG.
11453
11454         * final.c (output_operand_lossage): Constify PFX_STR.
11455
11456         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11457
11458 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11459
11460         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11461         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11462
11463 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
11464
11465         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11466
11467 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11468
11469         * cpplex.c (_cpp_lex_token): Handle directives in macro
11470         arguments.
11471         * cpplib.c (_cpp_handle_directive): Save and restore state
11472         if parsing macro args when entering a directive.
11473         * cppmacro.c (collect_args): No need to handle directives
11474         in macro arguments.
11475         (enter_macro_context, replace_args): Use the original macro
11476         definition in case it was redefined whilst collecting arguments.
11477 doc:
11478         * cpp.texi: Update.
11479
11480 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
11481
11482         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11483         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11484         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11485         method on AIX.
11486         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11487         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11488         (load_toc_v4_PIC_2): Same.
11489
11490 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
11491
11492         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11493
11494 2002-02-26  Richard Henderson  <rth@redhat.com>
11495
11496         * config/alpha/alpha.md (ashldi_se): Re-enable.
11497
11498 2002-02-26  Richard Henderson  <rth@redhat.com>
11499
11500         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11501         MODULE_LOCAL_P; improve commentary.
11502
11503 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11504
11505         * doc/cpp.texi: Clarify documentation of relationship between
11506         #line and #include.
11507
11508 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11509
11510         * config/h8300/h8300-protos.h: Update the prototype for
11511         compute_logical_op_length.  Add the prototype for
11512         compute_logical_op_cc.
11513         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11514         code from operands.
11515         (compute_logical_op_cc): New.
11516         * config/h8300/h8300.md: Combine all the logical op patterns
11517         in HImode and SImode.  Use compute_logical_op_cc.
11518
11519 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11520
11521         * config/i386/i386.c (print_operand): Don't append ATT-style
11522         length suffixs to x87 opcodes when in Intel mode.
11523
11524 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11525
11526         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11527         (init_emit_once): Update calls.
11528         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11529         (init_syntax_once): Prototype.
11530
11531 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11532
11533         * pa-linux.h (LIB_SPEC): Update definition.
11534         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11535
11536 2002-02-26  Richard Henderson  <rth@redhat.com>
11537
11538         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11539         if we emitted a stop bit.
11540
11541 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11542
11543         * configure.in (libgcc_visibility): Substitute.
11544         * configure: Rebuilt.
11545         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11546         defined symbols .hidden.
11547
11548 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11549
11550         * attribs.c (c_common_attribute_table): Add visibility.
11551         (handle_visibility_attribute): New function.
11552         * varasm.c (assemble_visibility): New function.
11553         * output.h (assemble_visibility): Add prototype.
11554         * tree.h (MODULE_LOCAL_P): Define.
11555         * crtstuff.c (__dso_handle): Use visibility attribute.
11556         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11557         for MODULE_LOCAL_P symbols too.
11558         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11559         MODULE_LOCAL_P symbols the same way as local symbols.
11560         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11561         into .sdata/.sbss by the user.
11562         * doc/extend.texi (Function Attributes): Document visibility
11563         attribute.
11564
11565 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11566
11567         PR debug/5770
11568         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11569         STRING_CST initializer spanning the whole variable without
11570         embedded zeros.
11571         If expand_expr returned MEM, don't use it.
11572
11573 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11574
11575         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11576         generate a die for the lexical block.
11577
11578 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11579
11580         * config/h8300/h8300-protos.h: Add a prototype for
11581         compute_logical_op_length.
11582         * config/h8300/h8300.c (compute_logical_op_length): New.
11583         * config/h8300/h8300.md (anonymous logical patterns): Use
11584         compute_logical_op_length for length.
11585
11586 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11587
11588         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11589         for vectors.
11590         (gen_type_die): Same.
11591
11592         * attribs.c (handle_vector_size_attribute): Set debug information.
11593
11594 2002-02-26  Daniel Egger  <degger@fhm.edu>
11595
11596         * config/rs6000/rs6000.md: Swap define_insn attributes to
11597         fix incorrect generation of merge high instructions instead
11598         of merge low.
11599
11600 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11601
11602         * c-typeck.c (really_start_incremental_init): Use
11603         bitsize_zero_node for vectors.
11604
11605 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11606
11607         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11608         ("*set_vrsave_internal"): Same.
11609
11610 2002-02-25  Richard Henderson  <rth@redhat.com>
11611
11612         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11613         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11614
11615 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11616
11617         PR target/5755
11618         * config/i386/i386.c (ix86_return_pops_args): Only pop
11619         fake structure return argument if it was passed on the stack.
11620
11621 2002-02-25  Jason Merrill  <jason@redhat.com>
11622
11623         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11624         RESULT_DECL.
11625
11626 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11627
11628         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11629         link with shared_name only.
11630         * doc/invoke.texi (Link Options): Document new behavior.
11631
11632 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11633
11634         * c-typeck.c (push_init_level): Handle vectors.
11635
11636 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11637
11638         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11639         operands of SPARC_SETHI_P.
11640         (input_operand): Likewise.
11641         (sparc_emit_set_const32): Likewise.
11642         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11643         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11644         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11645         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11646         (movdi_insn_sp64_vis): Likewise.
11647         (movdi split, movdf split): Use SETHI32.
11648         * doc/md.texi: Document SPARC constraints L, M and N.
11649
11650 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11651
11652         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11653         ("*set_vrsave_internal"): use mfspr for Darwin.
11654
11655         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11656         gen_get_vrsave_internal.
11657
11658 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11659
11660         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11661
11662 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11663
11664         * cpplex.c (cpp_interpret_charconst): Get signedness or
11665         otherwise of wide character constants correct.
11666         * cppexp.c (lex): Get signedness of wide charconsts correct.
11667
11668 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11669
11670         * optabs.c (widen_operand): Only call convert_modes for
11671         promoted SUBREG if signedness matches.
11672         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11673
11674 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11675
11676         * cpplib.c (glue_header_name): Use local buffer to build up
11677         header name.
11678
11679 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11680
11681         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11682
11683 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11684
11685         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11686         H8/300[HS] separately.
11687         * config/h8300/h8300.md: Remove the early clobber constraint
11688         from bit field patterns.
11689
11690 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11691
11692         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11693         register_operand.
11694         (mulhisi3): Likewise.
11695         (umulqisi3): Likewise.
11696         (umulhisi3): Likewise.
11697
11698 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11699
11700         * cppinit.c (output_deps): Correct test for stdout output.
11701         (init_dependency_output): Cure warning.
11702
11703 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11704
11705         * expr.c (store_expr): When converting expression to promoted
11706         equivalent type, allow using SUBREG_REG of TARGET as the target
11707         of the expansion of EXP.
11708         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11709         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11710         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11711         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11712         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11713
11714 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11715
11716         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11717         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11718         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11719
11720 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11721
11722         PR optimization/5747
11723         * loop.c (scan_loop): Update reg info if move_movables created new
11724         pseudos.
11725
11726 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11727
11728         * gcc.c (init_gcc_spec): Revert last change.
11729
11730 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11731
11732         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11733         gpc_reg_operand constraint.
11734
11735 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11736
11737         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11738         Simplify comparison of `low'.
11739         (add_operand): Fix formatting.
11740         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11741         (mask_operand): Disallow mask to wrap in 64-bit mode.
11742         (rs6000_stack_info): Remove redundant test setting push_p.
11743         (output_toc): Fix formatting.
11744         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11745         cc_reg_not_cr0_operand constraint.
11746         (booldi3, boolcdi3 splitters): Same.
11747
11748 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11749
11750         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11751
11752 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11753
11754         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11755         gcc invoked with -shared-libgcc.
11756
11757 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11758
11759         PR c++/5748
11760         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11761         decl if any of elements was TREE_USED.
11762
11763 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11764
11765         * config/sparc/sol2.h: Don't include sys/mman.h.
11766         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11767         (arith_4096_operand): Don't throw high bits away.
11768         (const64_operand): Take sign extension of CONST_INTs into account.
11769         (const64_high_operand, sparc_emit_set_const32): Likewise.
11770         (GEN_HIGHINT64): Likewise.
11771         (sparc_emit_set_const64_quick1): Likewise.
11772         (const64_is_2insns): Likewise.
11773         (print_operand): Use trunc_int_for_mode for sign extension.
11774         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11775         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11776         chars.  Assume CONST_INT is already properly sign-extended.
11777         (movdi split): Sign-extend each SImode part.
11778         (andsi3 split): Don't mask high bits off, so that result
11779         remains properly sign-extend.
11780         (iorsi3 split): Likewise.
11781         (xorsi3 split): Likewise.
11782
11783 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11784
11785         * fold-const.c (fold): Fix typo in comments.
11786
11787 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11788
11789         * Makefile.in (langhooks.o): Update dependencies.
11790
11791 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11792
11793         * langhooks.c: Include flags.h.
11794
11795 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11796
11797         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11798
11799         * c-common.c (c_common_post_options): Set inline trees by
11800         default.
11801
11802         * doc/extend.texi (Function Attributes): Document always_inline
11803         attribute.
11804         Update documentation about inlining when not optimizing.
11805
11806         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11807
11808         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11809         unless DECL_ALWAYS_INLINE.
11810
11811         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11812         unless DECL_ALWAYS_INLINE.
11813         (c_disregard_inline_limits): Disregard if always_inline set.
11814
11815         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11816         Disregard if always_inline set.
11817         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11818         unless DECL_ALWAYS_INLINE.
11819
11820         * attribs.c (handle_always_inline_attribute): New.
11821         (c_common_attribute_table): Add always_inline.
11822
11823         * config/rs6000/altivec.h: Add prototypes for builtins
11824         requiring the always_inline attribute.
11825
11826 2002-02-21  Eric Christopher  <echristo@redhat.com>
11827
11828         * expmed.c (store_bit_field): Try to simplify the subreg
11829         before generating a new one when when the mode size of
11830         value is less than maxmode.
11831
11832 2002-02-21  Richard Henderson  <rth@redhat.com>
11833
11834         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11835         than gen_rtx_PLUS to form the sum.
11836         * explow.c (force_reg): Rearrange to not allocate new pseudo
11837         when force_operand returns a register.
11838         * expr.c (expand_assignment): Allow offset_rtx expansion to
11839         return a sum.  Do not force addresses into registers.
11840         (expand_expr): Likewise.
11841         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11842         to canonicalize arithmetic that didn't simpify.
11843         (simplify_plus_minus): New argument force; update
11844         all callers.  Don't split CONST unless we can do something with it,
11845         and wouldn't lose the constness of the operands.
11846
11847         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11848         that we generated earlier.
11849
11850 2002-02-21  Tom Tromey  <tromey@redhat.com>
11851
11852         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11853         (output_line_info): Use constant `1', with a long explanatory
11854         comment.
11855         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11856
11857 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11858
11859         * jump.c (redirect_jump): If old label has no UID, don't try to
11860         delete it.
11861
11862 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11863
11864         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11865         If input is constant, do shifts at compile time.
11866
11867 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11868
11869         * doc/extend.texi: Fix some more overfull hboxes.
11870
11871 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11872
11873         PR optimization/4994
11874         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11875         register moves.
11876
11877 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11878
11879         PR c++/4574
11880         * expr.h (expand_and): Add mode argument.
11881         * expmed.c (expand_and): Add mode argument.
11882         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11883         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11884         * except.c (expand_builtin_extract_return_addr): Likewise.
11885         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11886         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11887         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11888         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11889         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11890         gen_rtx (CONST_INT, VOIDmode, x).
11891
11892 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11893
11894         PR c/4697:
11895         * stmt.c (warn_if_unused_value): Move side effects test once more.
11896
11897 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11898
11899         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11900         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11901
11902 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11903
11904         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11905         SUBREG or ZERO_EXTEND.
11906
11907 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11908
11909         * sh.h (current_function_anonymous_args): Remove.
11910         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11911         of current_function_varargs and current_function_stdarg is set.
11912         * sh.c (sh_expand_prologue): Check current_function_varargs /
11913         current_function_stdarg / TARGET_SH5 instead of
11914         current_function_anonymous_args.
11915
11916         * sh64.h (TARGET_VERSION): Define.
11917
11918 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11919
11920         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11921         VRSAVE_REGNO on TARGET_ALTIVEC.
11922
11923 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11924
11925         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11926         bits of SImode const_int.
11927         (includes_rshift_p): Likewise.
11928         (print_operand): Call mask_operand and mask64_operand with correct
11929         mode.
11930         (rs6000_output_function_epilogue): Pad traceback table to word.
11931         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11932         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11933         mask64_operand with correct mode.
11934         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11935
11936 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11937
11938         PR debug/4461
11939         * varasm.c (get_pool_constant_mark): New.
11940         * rtl.h (get_pool_constant_mark): Add prototype.
11941         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11942         be represented if it has not been output.
11943
11944 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11945
11946         * combine.c (do_SUBST): Sanity check substitutions of
11947         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11948         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11949         CONST_INT into its operand.
11950         (known_cond): Likewise, for ZERO_EXTEND.
11951         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11952         allow for simplification of wide modes.  Reject CONST_INTs in
11953         ZERO_EXTEND when their actual mode is not given.
11954
11955 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11956
11957         * c-decl.c (pushdecl): If no global declaration is found for an
11958         extern declaration in block scope, try a limbo one.
11959
11960 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11961
11962         PR c++/4401
11963         * c-common.c (pointer_int_sum): Moved from...
11964         * c-typeck.c (pointer_int_sum): ...here.
11965         * c-common.h (pointer_int_sum): Add prototype.
11966
11967 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11968
11969         PR c++/5713
11970         * c-decl.c (duplicate_decls): Return 0 if issued error about
11971         redeclaration.
11972
11973 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11974             Jakub Jelinek  <jakub@redhat.com>
11975
11976         PR c/4389
11977         * tree.c (host_integerp): Ensure that the constant integer is
11978         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11979         when pos is zero or non-zero respectively.  Clarify comment.
11980         * c-format.c (check_format_info_recurse): Fix host_integerp
11981         usage; the pos argument should be zero when assigning to a
11982         signed HOST_WIDE_INT.
11983
11984 2002-02-20  Richard Henderson  <rth@redhat.com>
11985
11986         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11987         of the operand, rather than assuming TImode.
11988         (ix86_expand_binop_builtin): Cope with commutative patterns
11989         using nonimmediate_operand for both operands.
11990         (ix86_expand_timode_binop_builtin): Likewise.
11991         (ix86_expand_store_builtin): Validate operand 1.
11992         (ix86_expand_unop1_builtin): Likewise.
11993
11994 2002-02-20  Philip Blundell  <philb@gnu.org>
11995
11996         PR 5705
11997         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11998
11999 2002-02-20  Richard Henderson  <rth@redhat.com>
12000
12001         PR c/5615
12002         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
12003
12004 2002-02-20  Tom Tromey  <tromey@redhat.com>
12005
12006         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12007         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12008         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12009         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12010         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
12011         unconditionally.
12012
12013 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
12014
12015         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
12016           for (const_int 0) in X not just INTVAL.
12017
12018 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
12019
12020         * doc/extend.texi: Avoid or reduce overfull hboxes.
12021
12022 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
12023
12024         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
12025         operations if the field does not start at a mode boundary.
12026
12027 2001-02-20      Joel Sherrill <joel@OARcorp.com>
12028
12029         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
12030         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
12031         Also done for -Acpu and -Amachine.
12032
12033 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12034
12035         * cppinit.c (init_dependency_output): Take deps output file
12036         from -o if none given with -MF.  Suppress normal output.
12037         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
12038         * doc/cpp.texi, doc/invoke.texi: Update.
12039
12040 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
12041
12042         * toplev.c (output_quoted_string): Write unprintable
12043         characters with octal escapes.
12044
12045 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
12046
12047         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
12048         really_call_used[VRSAVE_REGNO] if not Altivec.
12049
12050 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
12051
12052         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
12053         MODE_MASK.
12054         (constant_pool_expr_1): Fix formatting.
12055         (rs6000_legitimize_reload_address): Likewise.
12056
12057 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12058
12059         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
12060         now that we have one.
12061
12062 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
12063
12064         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
12065         end of first block of bitfields (which was only seven bits);
12066         rename dummy to unused_1; remove comment which is no longer true.
12067
12068 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
12069
12070         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
12071
12072 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
12073
12074         PR 5399
12075         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
12076         if generating PIC.
12077
12078         PR 5054
12079         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
12080         arm_is_longcall_p rather than inspecting call-type cookie
12081         directly.
12082         (call_value_insn) [TARGET_THUMB]: Likewise.
12083
12084 2002-02-19  Graham Stott  <grahams@redhat.com>
12085
12086         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
12087
12088 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
12089
12090         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
12091         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
12092         (FP_SAVE_INLINE): Delete.
12093
12094         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
12095         * config/rs6000/eabi.asm: Remove ABI save restore routines.
12096         * config/rs6000/t-ppccomm: Build crtsavres.o.
12097         * config/rs6000/crtsavres.asm: New file.
12098
12099 2002-02-19  Philip Blundell  <philb@gnu.org>
12100
12101         * config/arm/arm.c (use_return_insn): Don't reject interrupt
12102         functions.
12103         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
12104         (output_return_instruction): Allow interrupt functions to return with
12105         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
12106         (arm_expand_prologue): Subtract 4 before stacking LR in an
12107         interrupt function.
12108
12109 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
12110
12111         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
12112         decl, not just FUNCTION_DECL.
12113         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
12114         (arm_assemble_integer): Likewise.
12115         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
12116         marked local.
12117
12118 2002-02-19  matthew green  <mrg@eterna.com.au>
12119
12120         * config.gcc (sparc-*-netbsdelf*): Enable target.
12121         (sparc64-*-netbsd*): New target.
12122         * config/sparc/netbsd-elf.h: New file.
12123         * config/sparc/t-netbsd64: New file.
12124
12125 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
12126
12127         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
12128
12129 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
12130
12131         * doc/invoke.texi: explicitly list the style guidelines that
12132         -Weffc++ checks for.
12133
12134 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
12135
12136         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
12137
12138 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12139
12140         PR other/5718
12141         * gcc.c (cpp_unique_options): Treat -o as indicating object file
12142         only if not -E.  If -E, pass -o through to the preprocessor.
12143
12144 2002-02-19  Kazu Hirata  <kazu@hxi.com>
12145
12146         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
12147         register number with an appropriate macro.
12148
12149 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12150
12151         * doc/rtl.texi (Constants): Close @code tag.
12152
12153 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
12154
12155         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
12156         ("mmx_uavgv4hi3"): Same.
12157         ("pmulhrwv4hi3"): Same.
12158
12159         * tree-inline.c (walk_tree): Handle vectors.
12160
12161         * c-common.c (constant_expression_warning): Handle vectors.
12162         (overflow_warning): Same.
12163
12164         * sched-deps.c (sched_analyze_2): Handle vectors.
12165
12166         * rtlanal.c (rtx_unstable_p): Handle vectors.
12167         (rtx_varies_p): Same.
12168         (count_occurrences): Same.
12169         (regs_set_between_p): Same.
12170         (modified_between_p): Same.
12171         (modified_in_p): Same.
12172         (volatile_insn_p): Same.
12173         (volatile_refs_p): Same.
12174         (side_effects_p): Same.
12175         (may_trap_p): Same.
12176         (inequality_comparisons_p): Same.
12177         (replace_regs): Same.
12178         (computed_jump_p_1): Same.
12179
12180         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
12181         argument.
12182         (inner_mode_array): New.
12183         (copy_rtx): Handle vectors.
12184         (copy_most_rtx): Same.
12185         (rtx_equal_p): Same.
12186         (get_mode_alignment): Adjust for vectors.
12187
12188         * resource.c (mark_referenced_resources): Handle vectors.
12189         (mark_set_resources): Same.
12190
12191         * reload1.c (eliminate_regs): Handle vectors.
12192         (elimination_effects): Same.
12193         (scan_paradoxical_subregs): Same.
12194
12195         * reload.c (subst_reg_equivs): Handle vectors.
12196
12197         * regrename.c (scan_rtx): Handle vectors.
12198
12199         * regclass.c (reg_scan_mark_refs): Handle vectors.
12200
12201         * recog.c (find_single_use_1): Handle vectors.
12202
12203         * local-alloc.c (equiv_init_varies_p): Handle vectors.
12204         (contains_replace_regs): Same.
12205         (memref_referenced_p): Same.
12206
12207         * integrate.c (copy_rtx_and_substitute): Handle vectors.
12208         (subst_constants): Same.
12209
12210         * genattrtab.c (attr_copy_rtx): Handle vectors.
12211         (encode_units_mask): Same.
12212         (clear_struct_flag): Same.
12213         (count_sub_rtxs): Same.
12214
12215         * gcse.c (want_to_gcse_p): Handle vectors.
12216         (oprs_unchanged_p): Same.
12217         (hash_expr_1): Same.
12218         (oprs_not_set_p): Same.
12219         (expr_killed_p): Same.
12220         (compute_transp): Same.
12221         (store_ops_ok): Same.
12222
12223         * function.c (purge_addressof_1): Do not allow paradoxical subregs
12224         of vectors.
12225         (fixup_var_refs_1): Same.
12226         (instantiate_virtual_regs_1): Same.
12227
12228         * fold-const.c (operand_equal_p): Handle vectors.
12229         (fold): Same.
12230         (rtl_expr_nonnegative_p): Same.
12231
12232         * flow.c (mark_used_regs): Handle vectors.
12233
12234         * df.c (df_uses_record): Handle vectors.
12235
12236         * cselib.c (cselib_subst_to_values): Handle vectors.
12237         (cselib_mem_conflict_p): Same.
12238         (hash_rtx): Same.
12239
12240         * cse.c (canon_reg): Handle vectors.
12241         (fold_rt): Same.
12242         (cse_process_notes): Same.
12243         (count_reg_usage): Same.
12244         (canon_hash): Same.
12245
12246         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12247
12248         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12249
12250         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12251         (gen_rtx): Handle CONST_VECTOR.
12252         (gen_const_vector_0): New.
12253         (copy_rtx_if_shared): CONST_VECTORs can be shared.
12254         (reset_used_flags): Same.
12255         (copy_insn_1): Same.
12256         (initializer_constant_valid_p): Handle VECTOR_CST.
12257
12258         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12259
12260         * doc/rtl.texi (Constants): Document const_vector.
12261         (CONST0_RTX): Update for vectors.
12262         (RTL sharing): Same.
12263
12264         * print-tree.c (print_node): Add case for VECTOR_CST.
12265
12266         * tree.h (TREE_VECTOR_CST_ELTS): New.
12267         (struct tree_vector): New.
12268         (union tree_node): Add vector node.
12269         (build_vector): Add prototype.
12270
12271         * tree.def (VECTOR_CST): New.
12272
12273         * tree.c (build_vector): New.
12274
12275         * expmed.c (make_tree): Handle CONST_VECTOR.
12276
12277         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12278         (CONST_VECTOR_ELT): New.
12279         (CONST_VECTOR_NUNITS): New.
12280
12281         * machmode.h (GET_MODE_INNER): New.
12282         (DEF_MACHMODE): Accept 8th arg.
12283
12284         * machmode.def: Add 8th argument for vector inner mode.
12285         Add inner vector modes for vectors.
12286
12287         * rtl.def (VEC_CONST): Remove.
12288         (CONST_VECTOR): New.
12289
12290         * expr.c (clear_storage): Allow vectors.
12291         (is_zeros_p): Handle VECTOR_CST.
12292
12293         * varasm.c (output_constant_pool): Handle vectors.
12294         (rtx_const): Add veclo and vechi fields.
12295         (kind): Add RTX_VECTOR.
12296         (decode_rtx_const): Add case for vector.
12297
12298         * config/rs6000/rs6000-protos.h: Add zero_constant.
12299
12300         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12301         constants.  Force easy vector constants into memory.
12302         (easy_vector_constant): New.
12303         (emit_easy_vector_constant): New.
12304         (rs6000_legitimize_reload_address): Do not generate bad reloads on
12305         darwin.
12306
12307         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12308         instruction does.
12309         ("altivec_lvxl"): Same.
12310         (altivec_lvebx): Same.
12311         (altivec_lvehx): Same.
12312         (altivec_lvewx): Same.
12313         ("*movv4si_const0"): New.
12314         ("*movv4sf_const0"): New.
12315         ("*movv8hi_const0"): New.
12316         ("*movv16qi_const0"): New.
12317
12318 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12319
12320         * config/h8300/h8300.c (notice_update_cc): Use
12321         cc_status.value2.
12322
12323 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12324
12325         * config/h8300/h8300.md (divmod patterns): Change the
12326         constraints for operands[1] to register_operand.
12327
12328 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12329
12330         * config/h8300/h8300-protos.h: Remove the prototype for
12331         p_operand.
12332         * config/h8300/h8300.c (p_operand): Remove.
12333         * config/h8300/h8300.md: Replace p_operand with
12334         const_int_operand.
12335
12336 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12337
12338         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12339         comment.
12340         (output_return_instruction): Allow use of LDR to unstack
12341         return addresss even for interrupt handlers or when
12342         interworking.  If compiling for ARMv5, use interworking-safe
12343         return instructions by default.  Remove duplicated code and
12344         lengthy "strcat" sequences.
12345
12346 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12347
12348         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12349         (LINK_EH_SPEC): Define.
12350         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12351
12352 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
12353
12354         * config/s390/s390.c (s390_emit_prologue): Do not set the
12355         frame_related flag for call-clobbered registers.
12356
12357 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12358
12359         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12360         (construct_container): Fix handling of SSE operands.
12361         (ix86_expand_builtin): Fix handling of 64bit pointers.
12362         (mmx_maskmovq_rex): New pattern.
12363
12364 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12365
12366         * regrename.c (kill_set_value): Handle subregs properly.
12367
12368 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
12369
12370         * objc/objc-act.c (handle_impent): Remove leading '*'
12371         from objc_class_name.
12372
12373 2002-02-17  Richard Henderson  <rth@redhat.com>
12374
12375         * config/alpha/alpha.c (some_small_symbolic_operand,
12376         some_small_symbolic_operand_1, split_small_symbolic_operand,
12377         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12378         Handle small SYMBOL_REFs anywhere, not just inside memories.
12379         * config/alpha/alpha-protos.h: Update.
12380         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12381         * config/alpha/alpha.md (small symbolic operand splitter): Update.
12382
12383 2002-02-17  Roland McGrath  <roland@frob.com>
12384
12385         * config.gcc (powerpc-*-gnu-gnualtivec*,
12386         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12387         * config/rs6000/gnu.h: New file.
12388         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12389         Grok "gnu" in rs6000_abi_name.
12390         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12391         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12392         Grok -mcall-gnu analogous to -mcall-linux et al.
12393         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12394         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12395         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12396
12397 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
12398
12399         PR c/3444:
12400         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12401         shortening.
12402
12403 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12404
12405         * config/cris/cris.h: Undefine STARTFILE_SPEC and
12406         ENDFILE_SPEC before (re)defining them.
12407
12408 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12409
12410         * config/h8300/h8300.c: Fix formatting.
12411         * config/h8300/h8300.h: Likewise.
12412
12413 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12414
12415         * doc/tm.texi: Explain why empty strings should not be
12416         marked for translation.
12417
12418 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12419
12420         * final.c (output_operand_lossage): Changed to accept
12421         printf style arguments. Change calls where necessary.
12422         * output.h (output_operand_lossage): Change declaration
12423         accordingly. Update copyright.
12424         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12425         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12426         Update copyright date where necessary.
12427
12428         * config/i386/i386.c (print_operand): Likewise. Remove use of
12429         sprintf.
12430
12431         * config/cris/cris.c (cris_operand_lossage): Likewise.
12432         Rename parameter so that exgettext recognizes it as
12433         translatable message.
12434         (LOSE_AND_RETURN): Rename parameter to msgid.
12435
12436 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12437
12438         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12439         hard coded register number with an appropriate macro.
12440         (HARD_REGNO_MODE_OK): Likewise.
12441         (ARG_POINTER_REGNUM): Likewise.
12442         (STATIC_CHAIN_REGNUM): Likewise.
12443         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12444         * config/h8300/h8300.md (define_constants): Define more
12445         register numbers.
12446
12447 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12448
12449         * config/i386/i386.h: Don't mark empty strings for translation.
12450
12451 2002-02-16  H.J. Lu <hjl@gnu.org>
12452
12453         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12454
12455 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
12456
12457         * cppinit.c (merge_include_chains): Check for brack being
12458         NULL before attempting to merge it with qtail.
12459
12460 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12461
12462         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12463         DBX_DEBUG.
12464
12465 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12466
12467         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12468
12469 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12470
12471         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12472         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12473         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12474
12475 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12476
12477         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12478         now only if !TARGET_FIX.
12479         (*movsi_nt_vms_fix): New pattern.
12480
12481 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
12482
12483         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12484         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12485         (alpha_sa_mask, alpha_sa_size): Reflect above change.
12486         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12487         (alpha_start_function, alpha_expand_epilogue): Likewise.
12488         (unicosmk_gen_dsib): Likewise.
12489
12490 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12491
12492         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12493
12494 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
12495
12496         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12497         check_and_change_labels, s390_final_chunkify): Delete.
12498         (s390_split_branches, s390_chunkify_pool): New functions.
12499         (s390_function_prologue): Call them.
12500
12501         * config/s390/s390.h (S390_REL_MAX): Delete.
12502         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12503
12504         * config/s390/s390.md (cjump, icjump, jump): Fix length
12505         attribute calculation.
12506
12507
12508 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12509
12510         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12511         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12512
12513 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12514
12515         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12516         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12517         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12518
12519 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12520
12521         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12522
12523 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12524
12525         * reload.c (find_dummy_reload): Check that an output register
12526         is valid for its mode.
12527
12528 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12529
12530         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12531         to simplify it.
12532
12533         * function.c (assign_parms): Demote promoted argument passed by
12534         transparent reference.
12535
12536 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12537
12538         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12539         -Acpu() and -Amachine() to eliminate warnings.
12540
12541 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12542
12543         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12544
12545 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12546
12547         * config/h8300/h8300-protos.h: Update the prototype for
12548         const_costs.
12549         * config/h8300/h8300.c (const_costs): Treat SET as a little
12550         more expensive operation.
12551         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12552         reference to const_costs.
12553
12554 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12555
12556         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12557
12558 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12559
12560         PR c/5503:
12561         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12562         use arguments from newtype.
12563
12564 2002-02-13  Eric Christopher  <echristo@redhat.com>
12565
12566         * config/mips/mips.c (override_options): Add check for march/mipsX
12567         on the same command line. Fix error message in cpu processing.
12568         Remove architecture and ISA checks.
12569
12570 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12571
12572         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12573
12574         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12575
12576 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12577
12578         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12579         alternatives.
12580         ("*movv8hi_internal1"): Same.
12581         ("*movv16qi_internal1"): Same.
12582         ("*movv4sf_internal1"): Same.
12583
12584         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12585         not push_reload for altivec modes.
12586
12587 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12588
12589         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12590         all RTEMS targets including removal of #includes from config/*/rtems*.h
12591         file and adding them to tm_file setting. Added xm_defines=POSIX to
12592         many targets.
12593         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12594         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12595         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12596         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12597         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12598         config/m68k/rtemself.h: Ditto.
12599         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12600         config/mips/rtems64.h: Ditto.
12601         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12602         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12603         Ditto.
12604         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12605         config/sparc/rtemself.h: Ditto.
12606         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12607         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12608         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12609         more like arm-elf.
12610         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12611         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12612         target made more similar to i386-elf.
12613         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12614         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12615         be similar to config/m68k/t-m68kelf.
12616         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12617
12618 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12619
12620         * regmove.c (kill_value): Handle subregs.
12621
12622 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12623
12624         * i386.md (mul patterns): Allow memory operand to be first;
12625         add expanders where needed; fix constraints.
12626         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12627         Allow memory operand to be the first.
12628
12629         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12630         operands.
12631
12632 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12633
12634         PR c/5681:
12635         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12636         GET_MODE (x).
12637
12638 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12639
12640         PR optimization/5547:
12641         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12642         all valid IA-32 address modes involving non-scaled %ebx and
12643         GOT/GOTOFF as displacement.
12644
12645 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12646
12647         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12648         after emitting ltorg insns.
12649
12650         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12651         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12652         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12653         *abssf2): Fix "op_type" attribute.
12654
12655 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12656
12657         * mkconfig.sh: Avoid using a subshell redirect.
12658         ($output.T): Change to $(output)T.
12659         (ENABLE_NLS): Remove unneeded undef.
12660
12661         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12662         * config/alpha/x-vms (libsubdir): Define.
12663
12664         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12665         register frame procedures. Optimize retrieving context.
12666
12667         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12668         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12669         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12670
12671 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12672
12673         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12674         Make same change as for find_base_value.
12675
12676 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12677
12678         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12679         of QImode and SImode.
12680
12681 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12682
12683         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12684         length computation of movsi.
12685         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12686
12687 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12688
12689         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12690         operands[2] to register_operand.
12691
12692 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12693
12694         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12695
12696 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12697
12698         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12699         for altivec_lvx* and altivec_stvx*.
12700         ("*movv4si_internal"): Add constraint for loading from GPRs.
12701         ("*movv8hi_internal1"): Same.
12702         ("*movv16qi_internal1"): Same.
12703         ("*movv4sf_internal1"): Same.
12704
12705         * config/rs6000/rs6000.c (altivec_register_operand): New.
12706
12707         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12708         altivec_register_operand.
12709
12710 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12711
12712         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12713         handle SYMBOL_REF.
12714
12715 2002-02-13  Stan Shebs  <shebs@apple.com>
12716
12717         * c-typeck.c (digest_init): Handle vectors.
12718         (really_start_incremental_init): Same.
12719         (pop_init_level): Same.
12720         (process_init_element): Same.
12721
12722         * varasm.c (output_constant): Same.
12723
12724         * expr.c (clear_storage): Same.
12725         (store_constructor): Same.
12726
12727 2002-02-12  Eric Christopher  <echristo@redhat.com>
12728
12729         * explow.c (hard_function_value): Add comment explaining
12730         signed/unsigned comparison.
12731
12732 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12733
12734         * jump.c (never_reached_warning): Add finish argument.
12735         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12736         real insn after end.
12737         * rtl.h (never_reached_warning): Adjust prototype.
12738         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12739         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12740         never_reached_warning.
12741
12742 2002-02-12  Graham Stott  <grahams@redhat.com>
12743
12744         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12745
12746 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12747
12748         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12749         logical shifts on H8/300.
12750         (shift_alg_si): Improve several shifts on H8/300.
12751         (get_shift_alg): Likewise.
12752
12753 2002-02-12  Graham Stott  <grahams@redhat.com>
12754
12755         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12756
12757 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12758
12759         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12760         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12761
12762 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12763
12764         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12765         non-CONST_INT through default_assemble_integer.
12766         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12767         <case 8>: Abort for CONST_DOUBLE.
12768
12769 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12770
12771         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12772         is specified.
12773         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12774         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12775
12776 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12777
12778         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12779
12780 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12781
12782         * regrename.c (regrename_optimize): Don't accept a
12783         part-clobbered register if the replaced register is not part
12784         clobbered.
12785
12786         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12787         take padding into account when computing the argument value.
12788
12789         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12790
12791         * combine.c (try_combine): Apply substitutions in
12792         CALL_INSN_FUNCTION_USAGE too.
12793
12794 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12795
12796         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12797         __builtin_altivec_abs*.
12798         (bdesc_abs): New.
12799
12800         * config/rs6000/rs6000.h (rs6000_builtins): Add
12801         ALTIVEC_BUILTIN_ABS*.
12802
12803         * config/rs6000/altivec.h: Use const char for builtins expecting
12804         literals.
12805         (vec_abs): New versions for C and C++.
12806         (vec_abss): Same.
12807
12808 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12809
12810         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12811         using Pmode.
12812
12813 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12814
12815         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12816         constant definition from h8300.md.
12817         (FRAME_POINTER_REGNUM): Likewise.
12818         * config/h8300/h8300.md (define_constants): Add FP_REG.
12819
12820 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12821
12822         * config/h8300/h8300.c (print_operand): Remove redundant code.
12823
12824 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12825
12826         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12827         * config/h8300/h8300.c (byte_reg): Make it static.
12828
12829 2002-02-10  Richard Henderson  <rth@redhat.com>
12830
12831         PR c/5623
12832         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12833
12834 2002-02-10  Richard Henderson  <rth@redhat.com>
12835
12836         PR c++/5624
12837         * tree.c (append_random_chars): Don't abort if main_input_filename
12838         does not exist.
12839
12840 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12841
12842         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12843
12844 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12845
12846         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12847         (pushhi1): Likewise.
12848
12849 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12850
12851         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12852         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12853
12854 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12855
12856         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12857         remove MASK_VIS.
12858         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12859
12860 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12861
12862         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12863         a half of an SImode register on H8/300.
12864
12865 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12866
12867         * i386.md (movdi_2): Add missing '!'.
12868
12869 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12870
12871         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12872         definitions.
12873
12874 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12875
12876         * config/h8300/h8300.md (length): Correct the distance valid
12877         for the short branch.
12878
12879 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12880
12881         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12882
12883 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12884
12885         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12886         registers in SImode.
12887         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12888         part-clobbered.
12889
12890         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12891         patch.
12892
12893         Contribute sh64-elf.
12894         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12895         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12896         (sh_cannot_modify_jumps_p): New function.
12897         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12898         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12899         (sh_ms_bitfield_layout_p): New function.
12900         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12901                     Zack Weinberg  <zack@codesourcery.com>
12902         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12903         expand_simple_binop instead of expand_binop.
12904         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12905         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12906         use of .quad and .uaquad.
12907         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12908         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12909         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12910         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12911         movdi_const_16bit): Make sure all CONSTs have modes.
12912         (sym2PIC): Ditto, but by adjusting all callers.
12913         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12914         if the prologue calls the SHmedia argument decoder or register
12915         saver.
12916         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12917         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12918         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12919         (sh_expand_epilogue): Don't emit USE of return target register.
12920         (prepare_move_operands): Legitimize DImode PIC addresses.
12921         (sh_media_register_for_return): Skip tr0, used to initialize the
12922         PIC register.
12923         (sh_expand_prologue): Remove explicit USE of return register.
12924         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12925         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12926         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12927         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12928         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12929         EXTRA_CONSTRAINT_T.
12930         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12931         (MOVI_SHORI_BASE_OPERAND_P): New.
12932         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12933         (EXTRA_CONSTRAINT_T): Define in terms of them.
12934         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12935         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12936         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12937         alternatives supporting TARGET_REGS.
12938         (UNSPEC_GOTPLT): New constant.
12939         (movdi split): Move incrementing of LABEL_NUSES...
12940         (movdi_const, movdi_const_32bit): Here.  Use
12941         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12942         (movdi_const_16bit): New.
12943         (call, call_value) [flag_pic]: Use GOTPLT.
12944         (call_pop, call_value_pop): New expands.
12945         (call_pop_compact, call_pop_rettramp): New insns.
12946         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12947         (sibcall) [flag_pic]: Use GOT.
12948         (builtint_setjmp_receiver): Remove bogus, unused expand.
12949         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12950         (*pt, *ptb, ptrel): New insns.
12951         (sym2GOT): Handle DImode GOT.
12952         (sym2GOTPLT, symGOTPLT2reg): New expands.
12953         (sym2PIC): New expand.
12954         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12955         (shcompact_return_tramp_i): Use return register explicitly.
12956         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12957         disable flag_reorder_blocks.
12958         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12959         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12960         clobbers, for clarity.
12961         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12962         restoring of r0 in macl as MAYBE_DEAD.
12963         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12964         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12965         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12966         alter_subreg all over.
12967         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12968         reload, instead of emitting instructions that would require
12969         reloading.
12970         (casesi_load_media): Add missing modes.
12971         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12972         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12973         as used if the argument decoder is called.
12974         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12975         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12976         Pmode, then extend it to DImode if necessary.
12977         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12978         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12979         constants in FPU-enabled SHmedia, let them be loaded from memory.
12980         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12981         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12982         Adjust whitespace in assembly output templates.
12983         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12984         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12985         mode of if_then_else.
12986         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
12987         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12988         sh.h.
12989         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
12990                     Joern Rennecke <amylaar@redhat.com>
12991         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12992         (SUBTARGET_CPP_PTR_SPEC): New.
12993         (SUBTARGET_CPP_SPEC): Remove.
12994         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12995         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12996         Fix typo in previous checkin.
12997         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
12998         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12999         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
13000                     Alexandre Oliva  <aoliva@redhat.com>
13001         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
13002         what single FP register can hold for SHmedia target.
13003         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
13004                     Alexandre Oliva  <aoliva@redhat.com>
13005         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
13006         Do not split into SUBREG.
13007         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
13008         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
13009         and added new functions as specified in SH5 ABI r9.
13010         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
13011         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
13012         8-byte boundary.
13013         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
13014         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
13015         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
13016         and consttable_window_ends.
13017         2001-06-03  Graham Stott  <grahams@redhat,com>
13018         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
13019         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
13020         * config/sh/sh.c (print_operand): Handle floating-point pair,
13021         vector and matrix registers.
13022         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
13023         vector modes into account.
13024         * config/sh/sh.md (movv2sf): Split move between registers into
13025         movdf.
13026         (movv4sf, movv16sf): Introduce insns that get split only after
13027         reload.
13028         * config/sh/shmedia.h: Fix Copyright dates.
13029         * config/sh/ushmedia.h: Likewise.  Move loop counter
13030         declarations into conditionals that uses them.
13031         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
13032         loop boundary.
13033         * config/sh/sshmedia.h: Fix Copyright dates.
13034         (sh_media_PUTCFG): Fix constraints.
13035         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
13036         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
13037         ptrmemfunc_vbit_in_delta for SH5.
13038         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
13039         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
13040         * invoke.texi: Likewise.
13041         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
13042         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
13043         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
13044         GCC_pop_shmedia_regs_nofpu): New global symbols.
13045         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
13046         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
13047         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
13048         compact function with nonlocal labels.
13049         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
13050         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
13051         (initial_elimination_offset): Account for their stack space.
13052         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
13053         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
13054         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
13055         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
13056         least one of the operands to be a register.
13057         (movv2sf): Likewise.  Renamed to movv2sf_i.
13058         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
13059         prepare_move_operands() before emitting SHmedia insns.
13060         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
13061         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
13062         Don't save nor initialize r12.  Don't mis-align the stack.
13063         Pad the code with a nop.
13064         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
13065         stack.
13066         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
13067         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
13068         [__SHMEDIA__]: Implement.
13069         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
13070         * config/sh/sh.md: Set latency of `pt' closer to reality.
13071         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
13072         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
13073         Set move, load and store type attributes.
13074         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
13075         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
13076         profiling.
13077         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
13078         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
13079         * config/sh/sh.c (sh_media_register_for_return): New function.
13080         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
13081         branch-target register.
13082         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
13083         * config/sh/sh.md (return_media_i): Use any call-clobbered
13084         branch-target register.
13085         (return_media): If r18 wasn't copied in the prologue, copy it
13086         here.
13087         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
13088         Clear class FP0_REGS.
13089         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
13090         from elf.h.
13091         2001-03-08  DJ Delorie  <dj@redhat.com>
13092         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
13093         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
13094         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
13095         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
13096         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
13097         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
13098         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
13099         return value correctly for call_cookie.
13100         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
13101         * config/sh/crt1.asm (start): Modified so as to call
13102         ___setup_argv_and_call_main.
13103         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
13104         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
13105         SHmedia mode.
13106         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
13107         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
13108         (STRIP_NAME_ENCODING): Use it.
13109         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
13110         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
13111         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
13112         prepare_scc_operands().
13113         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
13114         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
13115         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
13116         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
13117         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
13118         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
13119         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
13120         used in shcompact_incoming_args.
13121         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
13122         change.
13123         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
13124         mode.
13125         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
13126         Adjust accordingly.
13127         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
13128         Simplify.  Adjust.  Add sanity check.
13129         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
13130         FPU_SINGLE_BIT.
13131         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
13132         TARGET_SHCOMPACT.
13133         (udivsi3, divsi3): Use them.
13134         (force_mode_for_call): New insn.
13135         (call, call_value, sibcall_value): Emit it before SHcompact
13136         calls.
13137         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
13138         * config/sh/sh.md (call, call_value, sibcall): Make sure the
13139         call cookie is non-NULL before taking its value.
13140         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
13141         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
13142         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
13143         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
13144         block.
13145         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
13146         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
13147         temporary for stack adjusts.  Use MACL and MACH to pass
13148         arguments to shcompact_incoming_args.
13149         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
13150         clobber r1.
13151         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
13152         (nested_trampoline): Load static chain address into r1.
13153         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
13154         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
13155         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
13156         fp_arith_reg_operand().
13157         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
13158         * config/sh/sh.md (casesi): Sign-extend the first two operands,
13159         and use signed compares for them.
13160         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
13161         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
13162         ones properly aligned.
13163         (find_barrier): Account for extra alignment needed for 8-byte wide
13164         constants.
13165         (machine_dependent_reorg): Require a label for the second 4-byte
13166         constant after an 8-byte one.
13167         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
13168         change.
13169         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13170         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
13171         last_float when switching float modes.
13172         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
13173         auto-increment for general-purpose registers.
13174         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
13175         result.
13176         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
13177         for stack adjust.
13178         * config/sh/sh.c (sh_builtin_saveregs): Support using all
13179         registers for varargs.
13180         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
13181         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
13182         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
13183         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
13184         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
13185         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
13186         call_cookie accordingly.
13187         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
13188         (SHCOMPACT_BYREF): Likewise.
13189         (SHCOMPACT_FORCE_ON_STACK): New macro.
13190         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
13191         (sh_builtin_saveregs): Likewise.
13192         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13193         shcompact_incoming_args): Use new shift values.  Support
13194         sequences of consecutive and non-consecutive pushes/pops.
13195         * config/sh/sh.md (return): Don't explicitly use PR_REG.
13196         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
13197         * config/sh/sh.h (TEXT_SECTION): Define.
13198         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13199         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13200         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13201         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13202         return values on FPU-enabled SHmedia.
13203         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13204         FPU-enabled SHmedia.
13205         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13206         value is returned in a non-FP reg and is not returned by
13207         reference.
13208         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13209         jump_ind.
13210         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
13211         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13212         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13213         quad-aligned to be passed by callee-copy reference.
13214         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
13215         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13216         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13217         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
13218         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13219         copying low-numbered FP regs to r7 and r8.
13220         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13221         FP regs to general-purpose regs only if the copy was passed on the
13222         stack.
13223         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13224         copying FP reg to r9.
13225         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13226         copy FP regs to general-purpose regs only in outgoing calls.
13227         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13228         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
13229         HOST_WIDE_INT.
13230         * config/sh/sh.h (struct sh_args): Document all fields.
13231         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13232         passed partially on the stack should not consider making
13233         sibcalls.
13234         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13235         stack_regs only for incoming calls.  When passing FP args,
13236         make sure there are FP regs available before modifying
13237         call_cookie.
13238         (SHCOMPACT_BYREF): Pass double args in general-purpose
13239         registers by reference.
13240         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
13241         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13242         attempt to generate sibcalls if the caller got any arguments
13243         by reference.
13244         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13245         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13246         to 8-byte boundaries.
13247         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13248         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13249         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13250         stored in the stack.
13251         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13252         for the offsets to have the ISA bit set.
13253         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
13254         invocation.  Use beq instead of bgt to mark end of sequence of
13255         loads.
13256         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
13257         bgt to mark end of sequence of stores.
13258         * config/sh/sh.c (arith_operand): Don't check whether
13259         CONST_OK_FOR_J for now.
13260         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13261         instead of long for conversion.
13262         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
13263         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13264         before passing it to fprintf.
13265         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
13266         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13267         Call set_fpscr before reading/writing SR.
13268         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13269         Call set_fpscr.
13270         * config/sh/lib1funcs.asm: Add `.align 2' directives before
13271         SHmedia code.
13272         (FMOVD_WORKS): Define on SH5 with FPU.
13273         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
13274         setting.
13275         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13276         _fpscr_values.
13277         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
13278         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13279         address.
13280         (ia_main_table): Ditto.
13281         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
13282         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13283         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13284         the definitions from sh.h.
13285         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13286         TARGET_SH5.
13287         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13288         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13289         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13290         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
13291         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13292         Increment LABEL_NUSES.
13293
13294         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13295         TARGET_SH5.
13296         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13297         defined.
13298         * config/sh/elf.h (SIZE_TYPE): Likewise.
13299         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13300         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13301         shcompact_incoming_args): Load switch table addresses using
13302         datalabel.
13303         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13304         (NO_BUILTIN_SIZE_TYPE): Define.
13305         (SIZE_TYPE): Don't define.
13306         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13307         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13308         definition of __SH5__=32 for -m5-compact-nofpu.
13309         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13310         ADDR_DIFF_VEC.
13311         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
13312         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13313         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
13314         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13315         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13316         (INSN_LENGTH_ALIGNMENT): Likewise.
13317         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13318         * config/sh/sh.md (call, call_value, sibcall): Simplify
13319         copying of non-branch-target register.
13320         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13321         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
13322         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13323         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13324         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13325         floating-point values as structs.
13326         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13327         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13328         general-purpose register.
13329         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13330         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13331         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13332         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13333         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13334         (ENCODE_SECTION_INFO): Enclose variables and constants in
13335         DATALABEL unspecs.
13336         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13337         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13338         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13339         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13340         only for LABEL_REFs.  For SYMBOL_REFs, prepend
13341         SH_DATALABEL_ENCODING to the symbol name.
13342         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13343         convert_mode().
13344         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13345         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13346         UNSPEC_DATALABEL.
13347         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13348         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13349         (DATALABEL_REF_P): Don't require CONST.
13350         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13351         REL label.
13352         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
13353         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13354         right.
13355         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13356         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13357         Use shallow_copy_rtx and PUT_MODE to change the mode of
13358         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13359         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13360         on SHmedia using GENERAL_REGs.
13361         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13362         bltu_media_i): Fix reversion of conditions.
13363         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13364         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13365         * config/sh/sh.c (output_far_jump): Save r13 in macl.
13366         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
13367         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13368         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13369         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13370         (GCC_nested_trampoline): Likewise.
13371         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13372         * config/sh/sh.c (gen_datalabel_ref): Define.
13373         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13374         (INITIALIZE_TRAMPOLINE): Likewise.
13375         (TRAMPOLINE_ADJUST_ADDRESS): Define.
13376         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13377         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13378         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13379         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13380         (ic_invalidate): Adjust for SH5.
13381         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13382         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13383         _nested_trampoline.
13384         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
13385         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13386         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13387         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13388         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13389         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13390         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13391         * config/sh/sh.c (target_reg_operand): Match only target-branch
13392         registers and pseudos that aren't virtual registers.
13393         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13394         Copy operands that don't match target_reg_operand to pseudos.
13395         (call_media, call_value_media, sibcall_media): Use
13396         target_reg_operand instead of target_operand.
13397         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
13398         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13399         * config/sh/sh.c (target_reg_operand): Match hardware registers
13400         other than branch-target registers.
13401         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13402         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13403         (fpscr_values) [SH5 == 32]: Define.
13404         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13405         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13406         Handle function addresses coming in SUBREGs.
13407         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
13408         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13409         shcompact_return_trampoline): Use datalabel where appropriate.
13410         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
13411         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13412         general-purpose register to copy one branch-target register to
13413         another.
13414         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13415         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13416         SYMBOL_REFs with VOIDmode.
13417         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13418         bltu_media_i): New insns.
13419         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13420         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13421         (INIT_CUMULATIVE_ARGS): Likewise.
13422         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13423         * machmode.def (V16SFmode): New mode.
13424         * c-common.c (type_for_mode): Support V2SF and V16SF.
13425         * tree.c (build_common_tree_nodes_2): Likewise.
13426         * tree.h (tree_index): Likewise.
13427         * calls.c (emit_call_1): Take args_so_far.  Adjust all
13428         callers.  Introduce CALL_POPS_ARGS.
13429         * tm.texi (CALL_POPS_ARGS): Document.
13430         * config/sh/crt1.asm: Implement in SHmedia mode.
13431         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13432         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13433         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13434         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13435         Implement divsi and udivsi in SHmedia mode.  Introduce
13436         SHcompact trampolines.
13437         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13438         only in SHmedia64.
13439         (regno_reg_class): Rewrite.
13440         (fp_reg_names): Remove.
13441         (sh_register_names, sh_additional_register_names): New.
13442         (print_operand): Added `u'.  Support SUBREGs in addresses.
13443         Add parentheses around shifted CONSTs.
13444         (output_file_start): Output .mode and .abi directives.
13445         (shiftcosts, addsubcosts, multcosts): Adjust.
13446         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
13447         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
13448         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
13449         bytes, not registers.  Take into account the need for the
13450         SHcompact incoming args trampoline.  Adjust all callers.
13451         (sh_expand_prologue): Take stack_regs into account.  Call
13452         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
13453         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
13454         stack aligned as per SH5 ABI.
13455         (sh_builtin_saveregs): Support SH5 ABI.
13456         (sh_build_va_list, sh_va_start): Likewise.
13457         (initial_elimination_offset): Take alignment into account.
13458         Compute location of PR according to the SH5 stack frame.
13459         (arith_reg_operand): Reject branch-target registers.
13460         (shmedia_6bit_operand): New.
13461         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13462         (target_reg_operand): Match DImode only.  Accept SUBREGs.
13463         (target_operand): New.
13464         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13465         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
13466         SIBCALL_REGS for SHmedia.
13467         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13468         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13469         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13470         (TARGET_SWITCHES): New SH5 flags.
13471         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
13472         VALID_REGISTER_P to disable unsupported registers.
13473         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13474         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13475         (FUNCTION_ARG_PADDING): Define.
13476         (FASTEST_ALIGNMENT): Adjust.
13477         (SH_REGISTER_NAMES_INITIALIZER): New.
13478         (sh_register_names): Declare.
13479         (DEBUG_REGISTER_NAMES): Define.
13480         (REGISTER_NAMES): Define based on sh_register_names.
13481         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13482         (sh_additional_register_names): Declare.
13483         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13484         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13485         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13486         (REGISTER_NATURAL_MODE): Define.
13487         (FIRST_PSEUDO_REGISTER): Adjust.
13488         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13489         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13490         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13491         (VECTOR_MODE_SUPPORTED_P): Define.
13492         (REG_CLASS_CONTENTS): Adjust.
13493         (SMALL_REGISTER_CLASSES): Adjust.
13494         (REG_ALLOC_ORDER): Adjust.
13495         (INDEX_REG_CLASS): Adjust.
13496         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13497         (CONST_OK_FOR_LETTER_P): Adjust.
13498         (PREFERRED_RELOAD_CLASS): Adjust.
13499         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13500         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13501         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13502         (FIRST_FP_PARM_REG): Adjust.
13503         (CALL_POPS_ARGS): Define.
13504         (FUNCTION_ARG_REGNO_P): Adjust.
13505         (struct sh_args): New fields.
13506         (GET_SH_ARG_CLASS): Adjust.
13507         (INIT_CUMULATIVE_ARGS): Adjust.
13508         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13509         (FUNCTION_ARG_ADVANCE): Adjust.
13510         (FUNCTION_ARG): Adjust.
13511         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13512         (FUNCTION_ARG_CALLEE_COPIES): Define.
13513         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13514         (STRICT_ARGUMENT_NAMING): Define.
13515         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13516         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13517         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13518         (SETUP_INCOMING_VARARGS): Adjust.
13519         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13520         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13521         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13522         (SUBREG_OK_FOR_INDEX_P): Adjust.
13523         (EXTRA_CONSTRAINT_S): Update.
13524         (EXTRA_CONSTRAINT_T): New.
13525         (EXTRA_CONSTRAINT): Adjust.
13526         (GO_IF_LEGITIMATE_INDEX): Adjust.
13527         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13528         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13529         (MOVE_MAX): Adjust.
13530         (MAX_MOVE_MAX): Define.
13531         (Pmode): Adjust.
13532         (CONST_COSTS): Adjust.
13533         (REGISTER_MOVE_COST): Adjust.
13534         (BRANCH_COST): Adjust.
13535         (TEXT_SECTION_ASM_OP): Adjust.
13536         (DBX_REGISTER_NUMBER): Adjust.
13537         (ASM_OUTPUT_DOUBLE_INT): New.
13538         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13539         (PREDICATE_CODES): Adjust.
13540         (PROMOTE_MODE): Adjust.
13541         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13542         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13543         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13544         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13545         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13546         (TR0_REG, TR1_REG, TR2_REG): New.
13547         (XD0_REG): Renumber.
13548         (UNSPEC_COMPACT_ARGS): New.
13549         (type): Added pt and ptabs.
13550         (length): Default to 4 on SHmedia.  Default pt length to 12
13551         and     20 on SHmedia32 and SHmedia64, respectively.
13552         (pt): New function unit.
13553         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13554         Add whitespace between operands of SHmedia instructions.
13555         (movdicc): Fix.
13556         (adddi3_media, addsi3_media): Adjust constraints.
13557         (subsi3) [SHmedia]: Force operand 1 into a register.
13558         (udivsi3_i1_media, udivsi3_i4_media): New.
13559         (udivsi3): Support SHmedia.
13560         (divsi3_i1_media, divsi3_i4_media): New.
13561         (divsi3): Support SHmedia.
13562         (anddi3, iordi3, xordi3): Adjust constraints.
13563         (zero_extendhidi2, zero_extendqidi2): New.
13564         (extendsidi2, extendhidi2, extendqidi2): New.
13565         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13566         (pop_e, pop_fpul, pop_4): Likewise.
13567         (movsi_media): Support FP and BT registers.
13568         (movsi_media_nofpu): New.  Adjust splits to DImode.
13569         (lduw, ldub): Renamed to zero_extend* above.
13570         (movqi_media): Fix typo.
13571         (movdi_media): Support FP and BT registers.
13572         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13573         (movdi_const_32bit): New.
13574         (shori_media): Require immediate operand.  Use `u' for output.
13575         (movdf_media, movsf_media): Simplified.
13576         (movdf_media_nofpu, movsf_media_nofpu): New.
13577         (movdf, movsf): Adjust
13578         (movv2sf, movv2sf, movv16sf): New.
13579         (beq_media, beq_media_i): Adjust constraints.  Don't use
13580         scratch BT register.
13581         (bne_media, bne_media_i): Likewise.
13582         (bgt_media, bgt_media_i): Likewise.
13583         (bge_media, bge_media_i): Likewise.
13584         (bgtu_media, bgtu_media_i): Likewise.
13585         (bgeu_media, bgeu_media_i): Likewise.
13586         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13587         bunordered): Emit jump insn.  Force operands to registers when
13588         needed.
13589         (jump_media, jump): Simplify.
13590         (call_compact, call_compact_rettramp): New.
13591         (call_value_compact, call_value_compact_rettramp): New.
13592         (call_media, call_value_media): Simplify.
13593         (sibcall_compact, sibcall_media): New.
13594         (call, call_value): Adjust for SHmedia and SHcompact.
13595         (sibcall, sibcall_value, untyped_call): Likewise.
13596         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13597         (indirect_jump): Adjust for SHmedia.
13598         (casesi_jump_media): New.
13599         (nop): Re-enable for SHmedia.
13600         (call_site): Restrict to SH1.
13601         (casesi): Adjust for SHmedia.
13602         (casesi_shift_media, casesi_load_media): New.
13603         (return): Explicitly use PR register.  Call return trampoline
13604         on SHcompact.
13605         (return_i): Explicitly use PR register.
13606         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13607         (return_media): Adjust.
13608         (shcompact_incoming_args): New.
13609         (epilogue): Adjust.
13610         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13611         (movstrsi): Disable on SH5.
13612         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13613         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13614         (subsf3, subsf3_media): Likewise.
13615         (mulsf3, mulsf3_media, mac_media): Likewise.
13616         (divsf3, divsf3_media): Likewise.
13617         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13618         (floatsisf2, fux_truncsfsi2): Likewise.
13619         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13620         constraints.
13621         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13622         (cmpunsf_media, cmpsf): Likewise.
13623         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13624         (abssf2, abssf2_media): Likewise.
13625         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13626         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13627         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13628         (floatsidf2, fix_truncdfsi2): Likewise.
13629         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13630         constraints.
13631         (cmpeqdf_media, cmpgtdf_media): Likewise.
13632         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13633         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13634         (absdf2, absdf2_media): Likewise.
13635         (extendsfdf2, extendsfdf2_media): Likewise.
13636         (truncsfdf2, truncsfdf2_media): Likewise.
13637         * config/sh/sh64.h: New file.
13638         * config/sh/t-sh64: New file.
13639         * config/sh/shmedia.h: New file.
13640         * config/sh/ushmedia.h: New file.
13641         * config/sh/sshmedia.h: New file.
13642         * configure.in: Added sh64-*-elf.
13643         * configure: Rebuilt.
13644         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13645         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13646         (reg_class_from_letter): Use `b' for TARGET_REGS.
13647         (print_operand): Support `%M', `%m', `AND' and
13648         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13649         (andcosts): Adjust for SHmedia.
13650         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13651         Likewise.
13652         (target_reg_operand): New function.
13653         * config/sh/sh-protos.h (target_reg_operand): Declare.
13654         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13655         FP registers on SH5.
13656         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13657         on SH4.
13658         (TARGET_REGISTER_P): New macro.
13659         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13660         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13661         (EXTRA_CONSTRAINT_S): New macro.
13662         (EXTRA_CONSTRAINT): Adjust.
13663         (FLOAT_TYPE_SIZE): Define to 32.
13664         (Pmode): DImode on SHmedia.
13665         (CONST_COSTS): Adjust for SHmedia literals.
13666         (PREDICATE_CODES): Added target_reg_operand.
13667         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13668         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13669         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13670         (cmpdi): Accept SHmedia.
13671         (movdicc_false, movdicc_true): New insns.
13672         (movdicc): New expand.
13673         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13674         no_new_pseudos.
13675         (addsi3_media): Match `S' constraint.
13676         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13677         (negdi2): Expand for SHmedia.
13678         (one_cmpldi2): New expand.
13679         (zero_extendsidi2): Change from expand to insn.
13680         (extendsidi2): Add constraints.
13681         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13682         LD/ST address.  Fix SI immediate loading split.
13683         (movhi_media, movqi_media, lduw, ldub): New insns.
13684         (movhi, movqi): Accept SHmedia.
13685         (shori_media, movdi_media): Relax input constraints.  Split
13686         symbolic constants.
13687         (movdf_media, movsf_media): New insn.  New split to movdi.
13688         (movdf, movsf): Match on SHmedia.
13689         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13690         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13691         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13692         (bunordered): New expand.
13693         (jump_compact): Renamed from `jump'.
13694         (jump_media): New insn.
13695         (jump): New expand.
13696         (call_media, call_value_media): New insns.
13697         (call, call_value): Adjust.
13698         (indirect_jump_compact): Renamed from `indirect_jump'.
13699         (indirect_jump_media): New insn.
13700         (indirect_jump): New expand.
13701         (untyped_call, return): Accept SHmedia.
13702         (return_media): New insn.
13703         (prologue, epilogue, blockage): Accept SHmedia.
13704         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13705         (sunordered): New expand.
13706         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13707         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13708         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13709         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13710         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13711         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13712         abssf2_media): New insns.
13713         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13714         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13715         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13716         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13717         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13718         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13719         absdf2_media): New insns.
13720         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13721         (extendsfdf2_media, truncdfsf2_media): New insns.
13722         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13723         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13724         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13725         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13726         * config/sh/sh.md (adddi3): New expand.
13727         (adddi3_media, adddi3z_media): New insns.
13728         (adddi3_compact): Renamed from adddi3.
13729         (addsi3_media): Use add.l r63 to add constant zero.
13730         (subdi3): New expand.
13731         (subdi3_media): New insn.
13732         (subdi3_compact): Renamed from subdi3.
13733         (mulsidi3): New expand.
13734         (mulsidi3_media): New insn.
13735         (mulsidi3_compact): Renamed from mulsidi3.
13736         (umulsidi3): New expand.
13737         (umulsidi3_media): New insn.
13738         (umulsidi3_compact): Renamed from umulsidi3.
13739         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13740         (ashlsi3, ashrsi3, lshrsi3): Use them.
13741         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13742         (ashldi3, ashrdi3, lshrdi3): Use them.
13743         (zero_extendsidi2): New expand.
13744         (extendsidi2): New insn.
13745         (movsi_media): New insn.  Split to movdi to load constants.
13746         (movsi): Enable for shmedia.
13747         (movdi_media): New insn.  Use shori_media to load wide constants.
13748         (short_media): New insn.
13749         (movdi): Enable for shmedia.
13750         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13751         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13752         (SUBTARGET_CPP_SPEC): Added `!m5'.
13753         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13754         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13755         to all other SH variants.
13756         (TARGET_DEFAULT): Set to SH1_BIT.
13757         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13758         (BITS_PER_WORD): Raise to 64 on shmedia.
13759         (MAX_BITS_PER_WORD): Change to 64.
13760         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13761         (INT_TYPE_SIZE): Keep as 32.
13762         (UNITS_PER_WORD): Raise to 8 on shmedia.
13763         (MIN_UNITS_PER_WORD): Keep as 4.
13764         (POINTER_SIZE): Raise to 64 on shmedia.
13765         (CONST_OK_FOR_J): New macro.
13766         (CONST_OK_FOR_LETTER_P): Use it.
13767         (processor_type): Add PROCESSOR_SH5.
13768         * config/sh/sh.md: Conditionalize all expands, insns and
13769         splits to TARGET_SH1.
13770         (cpu): Added sh5.
13771         (addsi3_compact): Renamed from...
13772         (addsi3): Now an expand.
13773         (addsi3_media, subsi3_media): New insns.
13774         (subsi3): Don't negate constants with SHmedia.
13775
13776         * hooks.c: New file.
13777         * hooks.h: New file.
13778         * Makefile.in (HOOKS_H): New.
13779         (TARGET_DEF_H): Added $(HOOKS_H).
13780         (OBJS): Added hooks.o.
13781         (cfgcleanup.o, bb-reorder.o): Added target.h.
13782         (hooks.o): Added dependencies.
13783         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13784         (TARGET_INITIALIZER): this.
13785         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13786         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13787         * bb-reorder.c: Include target.h.
13788         (reorder_basic_blocks): Skip if cannot modify jumps.
13789         * cfgcleanup.c: Include target.h.
13790         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13791
13792 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13793
13794         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13795         Protect jump delay slot instructions with .set noreorder and
13796         .set nomacro.
13797
13798 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13799
13800         * config/mips/mips.md (casesi_internal_di): Calculate
13801         the index into the target offset table correctly.
13802
13803 2002-02-08  Richard Henderson  <rth@redhat.com>
13804
13805         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13806         * final.c (output_addr_const): Accept and discard SUBREG.
13807         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13808         mark them unknown instead.
13809         (simplify_subtraction): Handle RTX_UNKNOWN.
13810         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13811
13812 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13813
13814         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13815
13816 2002-02-08  Richard Henderson  <rth@redhat.com>
13817
13818         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13819
13820 2002-02-08  Andreas Jaeger  <aj@suse.de>
13821
13822         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13823         * config/i386/t-linux64: New file.
13824
13825 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13826
13827         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13828         * c-parse.in (compstmt): Clear last_expr_type.
13829
13830 2002-02-07  Richard Henderson  <rth@redhat.com>
13831
13832         * loop.c (strength_reduce): Sink final_value when not
13833         eliminating a biv.
13834
13835 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13836
13837         * config/sparc/freebsd.h: Fix mismatched spec {.
13838
13839 2002-02-07  Richard Henderson  <rth@redhat.com>
13840
13841         * cfgrtl.c: Include recog.h and insn-config.h.
13842         (keep_with_call_p): Fix general_operand invocation.
13843         * Makefile.in (cfgrtl.o): Update dependencies.
13844
13845 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13846
13847         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13848         comment.  Accept HImode only if TARGET_H8300.
13849
13850 2002-02-07  Eric Christopher  <echristo@redhat.com>
13851
13852         * config/mips/crtn.asm: Cleanup #ifdefs.
13853
13854 2002-02-07  Eric Christopher  <echristo@redhat.com>
13855
13856         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13857         register 7 as RA instead of $31.
13858         * config/mips/crtn.asm: Ditto.
13859         * config/mips/mips.c (mips_move_2words): Add case for
13860         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13861         (compute_frame_size): Fix typo.
13862         (save_restore_insns): Ditto.  Make documentation about using
13863         register $7 as return register more precise.
13864         (mips_expand_epilogue): Fix comment. Add code to work around not
13865         being able to add to the stack pointer directly.
13866         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13867         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13868         epilogue.
13869
13870 2002-02-07  Tom Rix  <trix@redhat.com>
13871
13872         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13873         immediates in ldu and stdu DS opcode field.
13874         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13875         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13876         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13877
13878 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13879
13880         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13881         offset for stack bias.
13882
13883 2002-02-07  H.J. Lu <hjl@gnu.org>
13884
13885         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13886
13887 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13888
13889         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13890
13891 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13892
13893         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13894         * i386.c (x86_order_regs_for_local_alloc): New global function.
13895         * i386.h (REG_ALLOC_ORDER): CLeanup.
13896         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13897
13898 2002-02-07  Richard Henderson  <rth@redhat.com>
13899
13900         PR optimization/2463
13901         * alias.c (find_base_value): Recall base values for fixed hard regs.
13902         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13903
13904 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13905
13906         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13907         length.
13908
13909 2002-02-06  Richard Henderson  <rth@redhat.com>
13910
13911         PR c/5609
13912         * stmt.c (resolve_operand_name_1): Take more care with mixed
13913         named and unnamed operands.
13914
13915 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13916             Jan Hubicka  <jh@suse.cz>
13917
13918         * loop.c (remove_constant_addition): Avoid clobbering a shared
13919         CONST expression.
13920
13921 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13922
13923         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13924         * config/s390/t-linux64: New file.
13925         * config/s390/libgcc-glibc.ver: New file.
13926
13927 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13928
13929         * config/s390/linux64.h: Delete file.
13930         * config/s390/s390x.h: New file.
13931         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13932         as target header file.
13933         * config/s390/linux.h (TARGET_VERSION): Define depending on
13934         DEFAULT_TARGET_64BIT.
13935         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13936         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13937         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13938         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13939         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13940         (EXTRA_SPEC): New define.
13941         * config/s390/s390.h (TARGET_VERSION): Define depending on
13942         DEFAULT_TARGET_64BIT.
13943         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13944
13945 2002-02-06  Jason Merrill  <jason@redhat.com>
13946
13947         * c-decl.c (finish_function): Warn about a non-void function with
13948         no return statement and no abnormal exit.
13949         (current_function_returns_abnormally): New variable.
13950         (start_function): Clear it.
13951         (struct c_language_function): Add returns_abnormally.
13952         (push_c_function_context): Save it.
13953         (pop_c_function_context): Restore it.
13954         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13955         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13956         an explicit return type.
13957         * c-tree.h: Declare current_function_returns_abnormally.
13958         (C_FUNCTION_IMPLICIT_INT): New macro.
13959         * c-typeck.c (build_function_call): Set it.
13960         (c_expand_return): Set current_function_returns_value even if the
13961         value is erroneous.
13962
13963 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13964
13965         PR c/5420:
13966         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13967         unsafe for reevaluation.
13968
13969 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13970
13971         PR c/5482:
13972         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13973         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13974
13975 2002-02-06  Richard Henderson  <rth@redhat.com>
13976
13977         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13978         be a general_operand.  Dest for function value must be a pseudo.
13979
13980 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13981
13982         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13983         as SYMBOL_REFs from the constant pool.
13984
13985 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
13986
13987         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13988         passed by invisible reference.
13989
13990 2002-02-05  Richard Henderson  <rth@redhat.com>
13991
13992         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13993
13994 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
13995
13996         Implement using "base addresses" in insn operands as default.
13997         * config/mmix/mmix.c (mmix_conditional_register_usage): if
13998         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13999         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
14000         used to read the rtx value.
14001         (mmix_target_asm_function_epilogue): Fix spacing.
14002         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
14003         (mmix_legitimate_address): Ditto.
14004         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
14005         should be loaded with a GETA insn.  Don't allocate needless extra
14006         char for nul termination and fix misleading comment.
14007         (mmix_print_operand_address): Handle constants if
14008         TARGET_BASE_ADDRESSES.
14009         (mmix_output_register_setting): Use base addressing if
14010         TARGET_BASE_ADDRESSES and the number of insns is 3.
14011         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
14012         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
14013         to use R as constraint, add LDA to match s.
14014         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
14015         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
14016         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
14017         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
14018         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
14019         order with other fixed registers.
14020         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
14021         other parameter/call-clobbered registers.
14022         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
14023         -mbase-addresses, -mno-base-addresses.
14024         (MMIX Options): Ditto.
14025
14026 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14027
14028         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
14029
14030 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
14031
14032         * config/rs6000/altivec.h: Change elem to _S_elem.
14033
14034 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
14035
14036         * config/netbsd.h (WCHAR_TYPE): Define.
14037         (WCHAR_TYPE_SIZE): Ditto.
14038         (WINT_TYPE): Ditto.
14039         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
14040         (WCHAR_UNSIGNED): Ditto.
14041         (WCHAR_TYPE_SIZE): Ditto.
14042         (WINT_TYPE): Ditto.
14043         * config/arm/netbsd.h: Likewise.
14044         * config/i386/netbsd-elf.h: Likewise.
14045         * config/i386/netbsd.h: Likewise.
14046         * config/m68k/netbsd-elf.h: Likewise.
14047         * config/m68k/netbsd.h: Likewise.
14048         * config/ns32k/netbsd.h: Likewise.
14049         * config/sparc/netbsd.h: Likewise.
14050         * config/vax/netbsd.: Likewise.
14051
14052 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
14053
14054         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
14055         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
14056         (TARGET_INITIALIZER): this.
14057         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
14058         (BITFIELD_NBYTES_LIMITED): Markup fix.
14059         * tree.h (default_ms_bitfield_layout_p): Declare.
14060         (record_layout_info): Added prev_field.
14061         * tree.c (default_ms_bitfield_layout_p): New fn.
14062         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
14063         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
14064         * stor-layout.c: Include target.h.
14065         (start_record_layout): Initialize prev_field.
14066         (place_field): Handle MS bit-field layout, and disregard
14067         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
14068         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
14069         * Makefile.in (stor-layout.o): Adjust dependencies.
14070
14071 2002-02-05  Jason Merrill  <jason@redhat.com>
14072
14073         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
14074
14075 2002-02-05  Andreas Jaeger  <aj@suse.de>
14076
14077         * crtstuff.c: Fix comments.
14078
14079 2002-02-05  Richard Henderson  <rth@redhat.com>
14080
14081         PR fortran/3393
14082         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
14083         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
14084
14085         PR fortran/3392
14086         * config/mips/mips.c (function_arg): Handle TImode.
14087         (function_arg_advance): Likewise.
14088
14089 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14090
14091         * config/rs6000/altivec.h (vec_step_help): Rename to
14092         __vec_step_help.
14093
14094 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14095
14096         * config/rs6000/altivec.h: Fix typos.
14097
14098 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
14099
14100         * config/arm/netbsd.h: Correct a comment.
14101
14102 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14103
14104         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
14105         building void typed builtins.
14106
14107         * config/rs6000/altivec.h (vec_ld*): Fix typos.
14108         (vec_step): Implement for C++.
14109
14110 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14111
14112         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
14113
14114 2002-02-04  Richard Henderson  <rth@redhat.com>
14115
14116         * combine.c (nonzero_bits): Re-introduce special case for
14117         sp/fp/ap wrt REGNO_POINTER_ALIGN.
14118
14119 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14120
14121         * doc/extend.texi: Warn about unsupported usage of altivec
14122         builtins.
14123
14124         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
14125         (altivec_predicate_*): New.
14126
14127         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
14128         Add C++ version of vec_*() functions.
14129
14130         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
14131         (bdesc_2arg): Remove altivec predicates.
14132         (altivec_expand_builtin): Handle predicates.
14133         (altivec_init_builtins): Handle predicates.
14134         (altivec_expand_predicate_builtin): New.
14135
14136 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14137
14138         * pa.c (DO_FRAME_NOTES): Move forward.
14139         (store_reg): Revise handling of frame notes.
14140         (load_reg): Likewise.
14141         (set_reg_plus_d): Likewise.
14142         (hppa_expand_prologue): Likewise.
14143         (hppa_expand_epilogue): Likewise.
14144
14145 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14146
14147         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
14148
14149 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14150
14151         PR c/4475, c++/3780:
14152         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
14153         * c-common.h (SWITCH_TYPE): Define.
14154         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
14155         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
14156         Rename spareness variable to sparseness.
14157         (expand_end_case_type): Renamed from expand_end_case, use orig_type
14158         if non-NULL instead of TREE_TYPE (orig_index).
14159         * tree.h (expand_end_case_type): Renamed from expand_end_case.
14160         (expand_end_case): Define using expand_end_case_type.
14161         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
14162         to expand_end_case_type.
14163         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
14164
14165 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14166
14167         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
14168         (BIGGEST_ALIGNMENT): Change to 128.
14169
14170 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14171
14172         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
14173
14174 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14175
14176         * pa.md (call_internal_reg_64bit): Remove unused variable.
14177
14178 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
14179
14180         * config/arm/arm.h (machine_function): Add uses_anonymous_args
14181         field.
14182         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
14183         * config/arm/arm.c (current_function_anonymous_args): Delete,
14184         replace uses with cfun->machine->uses_anonymous_args.
14185         (arm_reorg): Do not reset uses_anonymous_args.
14186
14187         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
14188         any geenral register.
14189
14190 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
14191
14192         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
14193         the entry block.
14194
14195 2002-02-04  Richard Henderson  <rth@redhat.com>
14196
14197         * combine.c (force_to_mode): Remove STACK_BIAS code.
14198         (nonzero_bits): Likewise.  Replace sp/fp special case with
14199         REGNO_POINTER_ALIGN.
14200
14201         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14202         (HARD_FRAME_POINTER_REGNUM): New.
14203         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14204         (FIXED_REGS, CALL_USED_REGS): Update.
14205         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14206         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14207         (HARD_REGNO_NREGS): Update for SFP.
14208         (STACK_POINTER_OFFSET): Include bias here ...
14209         (FIRST_PARM_OFFSET): ... not here.
14210         (STACK_BIAS): Remove.
14211         (INIT_EXPANDERS): New.
14212         (STARTING_FRAME_OFFSET): Do not include bias.
14213         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14214         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14215         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14216         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14217         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14218         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14219         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14220         (MUST_SAVE_REGISTER): Likewise.
14221         (sparc_flat_function_prologue): Likewise.
14222         (sparc_flat_function_epilogue): Likewise.
14223         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14224         (sparc_init_modes): SFP is GENERAL_REGS.
14225         (sparc_builtin_saveregs): SFP does not have bias applied.
14226
14227 2002-02-04  Richard Henderson  <rth@redhat.com>
14228
14229         * config/alpha/alpha.c (current_function_is_thunk): Don't check
14230         current_function_is_thunk.
14231         (alpha_sa_mask): Distinguish between current_function_is_thunk
14232         called from ASM_OUTPUT_MI_THUNK and not.
14233         (alpha_does_function_need_gp): Thunks always need gp.
14234         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14235         (alpha_output_mi_thunk_osf): New.
14236         * config/alpha/alpha-protos.h: Update.
14237         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14238
14239 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
14240
14241         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14242         function types, not when they're taken away.
14243
14244 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
14245
14246         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14247         CODE_LABEL and jump table when replacing a table jump with a
14248         simple jump.
14249
14250 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14251
14252         * config/s390/s390-protos.h (legitimize_la_operand,
14253         s390_secondary_input_reload_class, s390_plus_operand,
14254         s390_expand_plus_operand): Add prototypes.
14255
14256         config/s390/s390.c (s390_secondary_input_reload_class,
14257         s390_plus_operand, s390_expand_plus_operand): New functions.
14258
14259         (struct s390_address): New member 'pointer'.
14260         (s390_decompose_address): Compute it.
14261         (legitimate_la_operand_p): Use it.
14262         (legitimize_la_operand): New function.
14263         (movti, movdi, movdf splitters): Call it.
14264
14265         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14266         (PREDICATE_CODES): Add s390_plus_operand.
14267
14268         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14269         (la_ccclobber): Allow GENERAL_REGS as output operand.
14270
14271         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14272         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14273         (*la_64, *la_31, reload_indi, reload_insi): ... these.
14274
14275 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14276
14277         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14278         register names for regular asm () construct.
14279
14280 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14281
14282         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14283         registers.
14284
14285 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14286
14287         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14288         pat for recog.
14289
14290 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
14291
14292         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14293         constant pool to be identical by string address and index.
14294
14295 2002-02-04  Anthony Green  <green@redhat.com>
14296
14297         * output.h (SECTION_OVERRIDE): Define.
14298         * varasm.c (named_section): Obey SECTION_OVERRIDE.
14299
14300 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14301
14302         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14303         by existing arm*-*-netbsd* (a.out) target.
14304         (ns32k-*-netbsdelf*): Likewise.
14305         (sparc-*-netbsdelf*): Likewise.
14306         (vax-*-netbsdelf*): Likewise.
14307
14308 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
14309
14310         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14311         headers and libobjc headers.
14312
14313 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
14314
14315         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14316         (_mingw.h): Remove duplicate include.
14317
14318 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14319
14320         * config.gcc: Set cpu_type to m68k for 68010, as well.
14321         (m68010-*-netbsdelf*): New...
14322         (m68k*-*-netbsdelf*): ...targets.
14323         * config/m68k/netbsd-elf.h: New file.
14324
14325 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14326
14327         * config/h8300/h8300.c (hand_list): Move inside function_arg.
14328
14329 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14330
14331         * config/h8300/h8300.c (h8_push_ops): Move inside
14332         h8300_init_once.
14333         (h8_pop_ops): Likewise.
14334         (h8_move_ops): Likewise.
14335
14336 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14337
14338         * config/h8300/h8300.c (os_task): Make it static.
14339         (monitor): Likewise.
14340         (pragma_saveall): Likewise.
14341
14342 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
14343
14344         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14345         constant is a valid sign-extension for Pmode.
14346
14347 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14348
14349         * config/h8300/h8300.c: Fix formatting.
14350
14351 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14352
14353         * config/h8300/h8300.md: Fix formatting.
14354
14355 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14356
14357         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14358         predicates of operands[1].  Split the patterns for each
14359         processor variant.
14360
14361 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14362
14363         * config/h8300/h8300.md (xor patterns): Tighten the predicates
14364         of operands[1] to register_operand.
14365
14366 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14367
14368         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14369         * cpphash.c (_cpp_init_hashtable): Similarly.
14370         * cppinit.c (cpp_create_reader): Default the signed_char flag.
14371         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14372         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14373         (cpp_handle_option): Handle the new options.
14374         * cpplex.c (cpp_interpret_charconst): Use new flag.
14375         * cpplib.h (struct cpp_options): New member signed_char.
14376         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14377         (cpp_options): Handle -fsigned-char and -funsigned-char.
14378         (static_specs): Remove signed_char_spec.
14379         (do_spec1): Don't handle %c.
14380         * system.h: Poison SIGNED_CHAR_SPEC.
14381         * tradcif.y (yylex): Use flag_signed_char.
14382         * tradcpp.h (flag_signed_char): New.
14383         * tradcpp.c (flag_signed_char): New.
14384         (main): Handle new command-line options.
14385         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14386 config:
14387         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14388         * avr/avr.h: Remove old comments.
14389         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14390         (CC1_SPEC): Pass -fsigned-char if -mic*.
14391         (SIGNED_CHAR_SPEC): Remove.
14392 doc:
14393         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14394
14395 2002-02-01  Eric Christopher  <echristo@redhat.com>
14396
14397         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14398         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14399         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14400         (ASM_OUTPUT_REG_POP): Ditto.
14401
14402 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14403
14404         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14405         patch.
14406
14407 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14408
14409         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14410
14411 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14412
14413         PR c/5304:
14414         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14415         unconditionally.
14416
14417 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14418
14419         * cfganal.c: Include tm_p.h.
14420         (keep_with_call_p): Fix the test that determines if a register holds
14421         the return value of a call.
14422
14423 2002-02-01  DJ Delorie  <dj@redhat.com>
14424
14425         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14426         we are given conflicting registers, switch to the other one we
14427         had allocated for us.
14428         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14429         as TImode so we know when the "other" register is available.
14430
14431 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
14432
14433         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14434         sparc/sparc_bi.h.
14435
14436 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14437
14438         * cfganal.c (keep_with_call_p): New function.
14439         (flow_call_edges_add): Prevent splitting a block between a call and
14440         a single-set instruction that should be kept in the same block.
14441
14442 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14443
14444         * doc/install.texi (avr): Update outdated URL.
14445
14446 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
14447
14448         * config/stormy16/stormy16.md (pushqi): New.
14449         (popqi): New.
14450         (pushhi): New.
14451         (pophi): New.
14452         (movhi): Remove stack operands.
14453         (movqi): Likewise.
14454         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14455         nonimmediate_nonstack_operand.
14456         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14457         New.
14458         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14459         New.
14460
14461 2002-01-31  Jason Merrill  <jason@redhat.com>
14462
14463         * Makefile.in (c-parse.c): Handle .output file.
14464         * objc/Make-lang.in (objc-parse.c): Likewise.
14465
14466 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
14467
14468         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14469         the -me[lb] option is given.  Don't output the default flag
14470         twice.
14471
14472 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
14473
14474         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14475         the primary source file; this has not been done yet.
14476         * c-decl.c (c_expand_body): Reset input_filename from
14477         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14478
14479 2002-01-31  Kazu Hirata  <kazu@hxi.com>
14480
14481         * rtlanal.c (subreg_regno_offset): Do not use
14482         SUBREG_REGNO_OFFSET.
14483         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14484         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14485
14486 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14487
14488         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
14489         version rather than GNATS version in --version output.
14490
14491 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
14492
14493         * ifcvt.c (noce_process_if_block): Make a copy of the destination
14494         when copying back from a temporary.
14495
14496 2002-01-30  Richard Henderson  <rth@redhat.com>
14497
14498         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14499         and new_dest are the same.
14500
14501 2002-01-30  Richard Henderson  <rth@redhat.com>
14502
14503         PR opt/5076
14504         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14505         * rtl.c (note_insn_name): Update.
14506         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14507         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14508         to perform loop rotation.
14509         (expand_exit_loop_top_cond): New.
14510         * tree.h (expand_exit_loop_top_cond): Declare it.
14511         * c-semantics.c (genrtl_while_stmt): Use it.
14512         (genrtl_for_stmt): Likewise.
14513
14514 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14515
14516         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14517         arguments to 64-bit boundaries on 64-bit ABIs.
14518
14519 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14520
14521         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14522
14523 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14524
14525         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14526         invalid type.
14527
14528 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14529
14530         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14531         * config/sparc/sparc_bi.h: Remove file.
14532         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14533
14534 2002-01-30  Richard Henderson  <rth@redhat.com>
14535
14536         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14537
14538 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14539
14540         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14541
14542 2002-01-30  Jason Merrill  <jason@redhat.com>
14543
14544         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14545         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14546         (reg_save): Use DW_CFA_offset_extended_sf instead.
14547
14548         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14549
14550 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14551
14552         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14553         in cselib_lookup.
14554
14555 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14556
14557         * rs6000.md ("*call_value_local32"): Remove constraints.
14558         ("*call_value_local64"): Same.
14559         ("*call_value_indirect_nonlocal_aix32"): Same.
14560         ("*call_value_nonlocal_aix32"): Same.
14561         ("*call_value_indirect_nonlocal_aix64"): Same.
14562         ("*call_value_nonlocal_aix64"): Same.
14563         ("*call_value_nonlocal_sysv"): Same.
14564
14565 2002-01-29  Richard Henderson  <rth@redhat.com>
14566
14567         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14568
14569 2002-01-29  Richard Henderson  <rth@redhat.com>
14570
14571         * expr.c (force_operand): Ignore flag_pic for detecting pic
14572         address loads.
14573         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14574         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14575         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14576         instead of open-coded loop.
14577         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14578         be fixed when in use.
14579
14580 2002-01-29  Richard Henderson  <rth@redhat.com>
14581
14582         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14583         * sched-rgn.c (propagate_deps): Update them.
14584         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14585         clobbers list when either gets too long.
14586
14587 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14588
14589         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14590         and INDEX_REGS the same as GENERAL_REGS.
14591         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14592
14593 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14594
14595         * tree.c (build_nonstandard_integer_type): Correct prototype.
14596
14597 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14598
14599         * config/s390/s390.md (movstrsico, movstrdix_64,
14600         movstrsix_31): Remove, replace by ...
14601         (movstrdi_short, movstrsi_short, movstrdi_long,
14602         movstrsi_long): ... these.  New.
14603         (movstrdi, movstrsi): Adapt.
14604
14605         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14606         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14607         Remove unnecessary CC clobber.
14608         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14609         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14610
14611         (divmoddi4): Don't partially initialize TImode register.
14612
14613 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14614
14615         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14616
14617 2002-01-29  Richard Henderson  <rth@redhat.com>
14618
14619         * flow.c (print_rtl_and_abort): Remove.
14620         (print_rtl_and_abort_fcn): Remove.
14621         (verify_local_live_at_start): Use dump_bb instead.
14622         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14623         (verify_wide_reg_1): Return 2 on mode test failure.
14624
14625 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14626
14627         PR c/3325, c/3326, c/2511, c/3347
14628         * c-decl.c (enum_decl_context): Remove BITFIELD.
14629         (grokdeclarator): Take bitfield width as an input.
14630         Ensure bitfields are given the correct type.  Perform
14631         bitfield width validation with build_bitfield_integer_type
14632         rather than waiting for finish_struct.
14633         (grok_typename, grok_typename_in_parm_context, start_decl,
14634         push_parmdecl, grokfield, start_function): Update calls to
14635         grokdeclarator.
14636         (build_bitfield_integer_type): New function.
14637         (finish_struct): Move bitfield validation to grokdeclarator
14638         and build_bitfield_integer_type.
14639         * tree.c (build_nonstandard_integer_type): New function.
14640         * tree.h (build_nonstandard_integer_type): New prototype.
14641 objc:
14642         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14643
14644 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14645
14646         PR other/1502:
14647         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14648         don't ignore unrecognized -W* options.
14649         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14650         * cpplib.h (cpp_handle_option): Adjust prototype.
14651         * c-decl.c (c_decode_options): Pass 0 as last argument to
14652         cpp_handle_option.
14653
14654         PR c/2896:
14655         * gcc.c (cpp_unique_options): Split from cpp_options.
14656         (cpp_options): Source cpp_unique_options.
14657         (default_compilers): Use cpp_unique_options instead of cpp_options
14658         when used together with cc1_options.
14659         (static_specs): Add cpp_unique_options.
14660         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14661         when used together with cc1_options.
14662
14663 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14664
14665         * config/h8300/h8300-protos.h: Update the prototype of
14666         output_a_shift.
14667         * config/h8300/h8300.c (output_a_shift): Remove an unused
14668         argument 'insn'.  Remove redundant code.
14669         * config/h8300/h8300.md: Adust to the new prototype of
14670         output_a_shift.
14671
14672 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14673
14674         * config/h8300/h8300-protos.h: Update the prototypes of
14675         emit_a_rotate and expand_a_rotate.
14676         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14677         first argument to 'enum rtx_code'.
14678         (expand_a_rotate): Likewise.
14679
14680 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14681
14682         * config/h8300/h8300-protos.h: Update the prototype of
14683         output_simode_bld.
14684         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14685         'log2'.
14686         * config/h8300/h8300.md: Adjust to the new prototype.
14687
14688 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14689
14690         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14691         redundant code.
14692
14693 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14694
14695         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14696         is a fixed register before returning pic_offset_table_rtx.
14697         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14698         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14699
14700 2002-01-28  Jason Merrill  <jason@redhat.com>
14701
14702         * dwarf2.h: Sync with src version.
14703
14704 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14705
14706         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14707         BT_FN_VOID_PTR_VAR.
14708         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14709         * doc/extend.texi (__builtin_prefetch): Update documentation:
14710         first argument is now const void ptr.
14711
14712 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14713
14714         * config/h8300/h8300-protos.h: Remove an unused prototype.
14715
14716 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14717
14718         * toplev.c (lang_independent_init): Round up identifier size.
14719
14720 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14721
14722         * config.gcc: Revert previous change.
14723
14724 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14725
14726         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14727
14728 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14729
14730         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14731         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14732         other non-elf netbsd config frags.
14733         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14734         collect2 will does that.
14735         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14736         shared-lib frobbing will work.
14737
14738 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14739
14740         * config/h8300/h8300.h: Fix formatting.
14741         * config/h8300/h8300.md: Likewise.
14742
14743 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14744
14745         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14746         the old, removed AAA_standards fix.
14747         * fixinc/fixincl.x: Rebuilt.
14748
14749 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14750
14751         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14752         atexit call in crtbegin, hooked in after call to frame_dummy;
14753         register EH before registering __fini__start.
14754
14755 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14756
14757         * config/rs6000/altivec.h: Remove spurious semicolons.
14758
14759 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14760
14761         * config/h8300/h8300.md: Replace dead bit extraction patterns
14762         with ones that work.
14763
14764 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14765
14766         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14767         if not STRICT_ALIGNMENT.
14768         * rtl.h (MEM_ALIGN): Likewise.
14769
14770 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14771
14772         * doc/invoke.texi (-fdump-translation-unit): Revert this
14773         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14774
14775 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14776
14777         * config/h8300/h8300.md (define_constants): New.
14778         (anonymous patterns) Use defined constants appropriately.
14779
14780 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14781
14782         * config/h8300/h8300.c (function_arg): Remove redundant code.
14783
14784 2002-01-26  Richard Henderson  <rth@redhat.com>
14785
14786         * sched-deps.c (reg_pending_uses_head): New.
14787         (reg_pending_barrier): Rename from reg_pending_sets_all.
14788         (find_insn_list): Don't mark inline.
14789         (find_insn_mem_list): Remove.
14790         (add_dependence_list, add_dependence_list_and_free): New.
14791         (flush_pending_lists): Replace only_write param with separate
14792         for_read and for_write parameters.  Update all callers.  Use
14793         add_dependence_list_and_free.
14794         (sched_analyze_1): Do not add reg dependencies here; just set
14795         the pending bits.  Use add_dependence_list.
14796         (sched_analyze_2): Likewise.
14797         (sched_analyze_insn): Replace schedule_barrier_found with
14798         reg_pending_barrier.  Add all dependencies for pending reg
14799         uses, sets, and clobbers.
14800         (sched_analyze): Don't add reg dependencies for calls, just
14801         set pending bits.  Use regs_invalidated_by_call.  Treat
14802         sched_before_next_call as a normal list, not a fake insn.
14803         (init_deps): No funny init for sched_before_next_call.
14804         (free_deps): Free pending mems lists.  Don't zero reg_last.
14805         (init_deps_global): Init reg_pending_uses.
14806         (finish_deps_global): Free it.
14807         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14808         (find_insn_mem_list): Remove.
14809         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14810         (propagate_deps): Use them.  Zero temp mem lists.
14811
14812 2002-01-26  Richard Henderson  <rth@redhat.com>
14813
14814         * Makefile.in (CRTSTUFF_CFLAGS): New.
14815         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14816         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14817         crtstuff.c instead of alpha assembly version.
14818         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14819         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14820         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14821         (__do_global_dtors_aux): Mark used.
14822         (frame_dummy, __do_global_ctors_aux): Mark used.
14823         (fini_dummy, init_dummy): Remove.
14824
14825         * config/alpha/crtbegin.asm: Remove file.
14826         * config/alpha/crtend.asm: Remove file.
14827         * config/alpha/t-crtbe: Remove file.
14828         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14829         (LINK_EH_SPEC): New.
14830
14831         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14832         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14833         calling constructors.
14834         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14835
14836         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14837         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14838         CRT_END_INIT_DUMMY hack.
14839         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14840         FORCE_{INIT,FINI}_SECTION_ALIGN.
14841
14842         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14843         FORCE_{INIT,FINI}_SECTION_ALIGN.
14844
14845         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14846         invocation sequence.
14847         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14848
14849         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14850         (FORCE_CODE_SECTION_ALIGN): New.
14851
14852 2002-01-26  Richard Henderson  <rth@redhat.com>
14853
14854         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14855
14856 2002-01-26  Richard Henderson  <rth@redhat.com>
14857
14858         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14859         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14860
14861 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14862
14863         * config/h8300/h8300.md: Remove bit extraction patterns that
14864         cannot be triggered.
14865         Restrict each bit extraction pattern to a variant on which the
14866         pattern is tested.
14867
14868 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14869
14870         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14871
14872 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14873
14874         * config/h8300/h8300.md: Remove bit test patterns that cannot
14875         be triggered.
14876         Restrict each bit test pattern to a variant on which the
14877         pattern is tested.
14878
14879 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14880
14881         * builtins.c (expand_builtin_strncat): Remove redundant check for
14882         INTEGER_CST.
14883
14884 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14885
14886         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14887         default setting.
14888         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14889         existing setting.
14890
14891 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14892
14893         * dbxout.c (dbxout_init): Use assemble_name rather than just
14894         stripping off the first character.
14895         (dbxout_source_file): Likewise.
14896
14897 2002-01-25  DJ Delorie  <dj@redhat.com>
14898
14899         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14900         using rtx_equal_p, not by comparing pointers.
14901
14902 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14903
14904         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14905         for PIC_OFFSET_TABLE_REGNUM.
14906         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14907
14908 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14909
14910         * config.gcc (x86_64-*-freebsd*): New target.
14911         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14912         value.
14913         (i[34567]86-*-freebsd*): Don't include svr4.h.
14914         * config/i386/freebsd64.h: New file.
14915
14916 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14917
14918         * config/alpha/x-vms (version): Make static.
14919
14920         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14921         in previous checkin.
14922
14923         * Makefile.in (install-headers-cp): New target.
14924         * config.gcc (alpha-dec-*vms*): Install headers with
14925         install-headers-cp
14926
14927 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14928
14929         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14930         avoid it's copies.
14931
14932 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14933
14934         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14935         of compare_tree_int.
14936         (expand_builtin_strncat): Likewise.
14937         * c-decl.c (finish_struct): Use tree_low_cst.
14938         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14939         * tree.c (compare_tree_int): Likewise.
14940
14941 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14942
14943         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14944         adjustments even if they are implemented by more than two insns.
14945
14946 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14947
14948         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14949         * df.h (struct ref): Kill B.
14950         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14951
14952         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14953         * flow.c (propagate_one_insn): Use it.
14954         (mark_used_regs): Handle NIL.
14955
14956 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14957
14958         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14959         to help folding.
14960
14961 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14962
14963         * rs6000.md (prefetch): Make address V4SI mode so that the address
14964         is restricted to legitimate form for instruction.
14965
14966 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14967
14968         * doc/install.texi (xtensa-*-elf): New target.
14969         (xtensa-*-linux*): New target.
14970         * doc/contrib.texi: Add myself.
14971
14972 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14973
14974         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14975         purpose register to hold an SImode (or smaller) value.
14976
14977 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14978
14979         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14980         registry only.
14981         * crtstuff.c: Likewise.
14982
14983 2002-01-25  Kazu Hirata  <kazu@hxi.com>
14984
14985         * config/h8300/h8300.md (negation patterns): Tighten
14986         predicates to register_operand.
14987
14988 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
14989
14990         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14991         mode, not Pmode.
14992
14993         * builtins.c (expand_builtin_prefetch): Same.
14994
14995 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14996
14997         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14998         modes.
14999
15000 2002-01-24  Kazu Hirata  <kazu@hxi.com>
15001
15002         * config/h8300/h8300.c (print_operand): Remove support for
15003         operand character 'A'.
15004         * config/h8300/h8300.md (three anonymous patterns): Replace
15005         operand character 'A' with either 'T' or 'S'.
15006
15007 2002-01-24  Kazu Hirata  <kazu@hxi.com>
15008
15009         * config/h8300/h8300.c (print_operand): Remove support for
15010         operand character 'U'.
15011
15012 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
15013
15014         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
15015
15016 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
15017
15018         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
15019         values to be assigned to the stack pointer.
15020
15021 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15022
15023         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
15024         to const_double needs to be done right for big-endian systems.
15025
15026 2002-01-24  Jason Merrill  <jason@redhat.com>
15027
15028         PR c++/2432
15029         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
15030         to can_throw_internal.
15031
15032 2002-01-23  Richard Henderson  <rth@redhat.com>
15033
15034         * fold-const.c (fold): Change UINT_MAX test to check vs precision
15035         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
15036
15037 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15038
15039         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
15040         (symGOT2reg): Use them, then set as GOT value as unchanging.
15041         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
15042         as a temporary, if possible.
15043         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
15044         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
15045
15046 2002-01-23  Kazu Hirata  <kazu@hxi.com>
15047
15048         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
15049         accept to accept 0x80 as operands[2].
15050
15051 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15052
15053         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
15054
15055 2002-01-23  Richard Henderson  <rth@redhat.com>
15056
15057         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
15058
15059 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
15060
15061         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
15062         (parmlist_or_identifiers_1): Verify that only a parmlist follows
15063         an attribute.
15064
15065 2002-01-23  Richard Henderson  <rth@redhat.com>
15066
15067         * expr.c (move_by_pieces_1): Extend size before negation.
15068
15069         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
15070         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
15071         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
15072         * config/m68k/t-m68kelf: Likewise.
15073
15074 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
15075
15076         * config/xtensa/elf.h: New file.
15077         * config/xtensa/lib1funcs.asm: New file.
15078         * config/xtensa/lib2funcs.S: New file.
15079         * config/xtensa/linux.h: New file.
15080         * config/xtensa/t-xtensa: New file.
15081         * config/xtensa/xtensa-config.h: New file.
15082         * config/xtensa/xtensa-protos.h: New file.
15083         * config/xtensa/xtensa.c: New file.
15084         * config/xtensa/xtensa.h: New file.
15085         * config/xtensa/xtensa.md: New file.
15086         * config.gcc (xtensa-*-elf*): New target.
15087         (xtensa-*-linux*): New target.
15088         * cse.c (canon_hash): Compare rtx pointers instead of register
15089         numbers.  This is required for the Xtensa port.
15090         * integrate.c (copy_insn_list): Handle case where the static
15091         chain is in memory and the memory address has to be copied to
15092         a register.
15093         * doc/invoke.texi (Option Summary): Add Xtensa options.
15094         (Xtensa Options): New node.
15095         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
15096
15097 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
15098
15099         * diagnostic.c (internal_error): Do ICE suppression only
15100         when ENABLE_CHECKING is not defined.
15101
15102         * c-typeck.c (require_complete_type): Return error_mark_node
15103         if type is error_mark_node.
15104
15105 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
15106
15107         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
15108         -Os and issue a warning.
15109
15110 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
15111
15112         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
15113         current (lack of) need for host configuration by hand.
15114
15115         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
15116         references.  Documentation of some target macros moved from
15117         hostconfig.texi to tm.texi.
15118
15119 2002-01-23  Will Cohen  <wcohen@redhat.com>
15120
15121         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
15122         defined.
15123
15124 2002-01-23  Kazu Hirata  <kazu@hxi.com>
15125
15126         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
15127         operand[3].
15128
15129 2002-01-23  Jason Merrill  <jason@redhat.com>
15130
15131         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
15132
15133         * function.c (assign_parms): Don't put args of inline functions
15134         into registers when not optimizing.
15135
15136 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
15137
15138         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
15139         (prologue_use): New pattern.
15140         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
15141         preference to gen_rtx_USE.
15142         (thumb_expand_prologue): Use gen_prologue_use in preference to
15143         gen_rtx_USE.
15144         (thumb_expand_epilogue): Use gen_prologue_use in preference to
15145         gen_rtx_USE.
15146
15147 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
15148
15149         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
15150
15151 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15152
15153         PR c/3504
15154         * doc/extend.texi: Correct documentation of __alignof__.
15155
15156 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
15157
15158         * params.h: Rename arguments of DEFPARAM so that it will be
15159         recognized as a translation keyword.
15160
15161 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15162
15163         * extend.texi: Document altivec functions.
15164         Fix N-bit adjectives in X86 builtin documentation.
15165
15166 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15167
15168         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
15169         auto_inc_dec values.
15170
15171 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
15172
15173         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
15174         after backslash.
15175         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
15176
15177 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15178
15179         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
15180
15181 2002-01-22  Richard Henderson  <rth@redhat.com>
15182
15183         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
15184         copy_insn not copy_rtx.
15185
15186 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
15187
15188         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
15189         "nonzero" as that might add "1" bits.  Ensure "constop" is
15190         properly sign extened.
15191         (force_to_mode): Tweak for sign extended constop.
15192
15193 2002-01-22  Richard Henderson  <rth@redhat.com>
15194
15195         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15196         for_each_rtx instead of assuming we're already looking at the MEM.
15197         (split_small_symbolic_mem_operand): Likewise.
15198         * config/alpha/alpha.h (PREDICATE_CODES): Update.
15199         * config/alpha/alpha.md (small symbolic memory splitters): Update.
15200
15201 2002-01-22  Richard Henderson  <rth@redhat.com>
15202
15203         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15204         sequence number for the literal.
15205         (divmoddi_internal_er): Likewise.
15206
15207 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15208
15209         PR java/4972
15210         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15211         in LIBICONV variable.
15212         * configure: Regenerated.
15213
15214 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
15215
15216         * dependence.c (build_def_use): Remove array_idx.
15217
15218         * dwarfout.c (last_filename): Remove.
15219         (output_compile_unit_die): Remove last_filename.
15220
15221 2002-01-22  Roger Sayle  <roger@eyesopen.com>
15222             Richard Henderson  <rth@redhat.com>
15223
15224         PR opt/3640
15225         * fold-const.c (fold): Optimize unsigned comparisons against
15226         UINT_MAX (and similar unsigned constants).
15227
15228 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
15229
15230         * Makefile.in (loop.o): Depend on OPTABS_H.
15231         * loop.c (emit_prefetch_instructions): Check the prefetch operand
15232         against the predicate.
15233
15234         PR target/5379
15235         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15236         for the address operand.
15237
15238 2002-01-22  Richard Henderson  <rth@redhat.com>
15239
15240         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15241
15242 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15243
15244         PR other/5450
15245         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15246         preprocessor flags.
15247
15248 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
15249
15250         * config.gcc (x86_64-*-netbsd*): New target.
15251         * config/i386/netbsd64.h: New file.
15252
15253 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15254
15255         * regrename.c (kill_value): Fix typo.
15256
15257 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15258
15259         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15260
15261         * config/rs6000/rs6000.h: Same.
15262
15263         * function.c (instantiate_virtual_regs): Remove
15264         STARTING_FRAME_PHASE.
15265         (assign_stack_local_1): Same.
15266         Calculate frame phase.
15267
15268 2002-01-22  Nick Clifton  <nickc@redhat.com>
15269
15270         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15271         variable declaration to outer scope in order to simplify
15272         future extensions.
15273         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15274         arm_hard_regno_mode_ok.
15275         * config/arm/arm-protos.h: Add a prototype for
15276         arm_hard_regno_mode_ok.
15277         * config/arm/arm.c (soft_df_operand): Remove now redundant
15278         check for DImode values using IP_REGNUM.
15279         (nonimmediate_soft_df_operand): Remove now redundant check for
15280         DImode values using IP_REGNUM.
15281         (arm_hard_regno_mode_ok): New function. New check: make sure
15282         that DImode values are not stored in IP_REGNUM.
15283
15284         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15285         note with a USE.
15286         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15287
15288 2002-01-22  Jason Merrill  <jason@redhat.com>
15289
15290         * c-semantics.c (genrtl_compound_stmt): Only check nesting
15291         consistency if this COMPOUND_STMT is scoped.
15292
15293 2002-01-22  Kazu Hirata  <kazu@hxi.com>
15294
15295         * predict.c: Fix formatting.
15296         * print-tree.c: Likewise.
15297         * protoize.c: Likewise.
15298         * real.h: Likewise.
15299         * rtl.h: Likewise.
15300         * sbitmap.h: Likewise.
15301         * scan.c: Likewise.
15302         * sched-deps.c: Likewise.
15303         * sched-vis.c: Likewise.
15304         * sdbout.c: Likewise.
15305         * sibcall.c: Likewise.
15306         * ssa.c: Likewise.
15307         * ssa-ccp.c: Likewise.
15308         * ssa-dce.c: Likewise.
15309         * stmt.c: Likewise.
15310         * stor-layout.c: Likewise.
15311         * system.h: Likewise.
15312
15313 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15314
15315         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15316         if fits in bounds of base type.
15317
15318         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15319         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15320         (add_bound_info, default): If can't find a context, make a
15321         SAVE_EXPR.
15322         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15323
15324 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
15325
15326         * c-typeck.c (parser_build_binary_op): If result from
15327         build_binary_op is ERROR_MARK just return error_mark_node without
15328         further processing.
15329
15330 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
15331
15332         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15333         Split a.out-specific bits into...
15334         * config/netbsd-aout.h: ...this.
15335         * config/netbsd-elf.h: New file.
15336         * config/alpha/netbsd-elf.h: Remove.
15337         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15338         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15339         (STARTFILE_SPEC): Remove redundant definition.
15340         (ENDFILE_SPEC): Likewise.
15341         (LINK_SPEC): Likewise.
15342         (CPP_SPEC): Likewise.
15343         (ASM_SPEC): Likewise.
15344         (LIB_SPEC): Likewise.
15345         (SWITCH_TAKES_ARG): Likewise.
15346         (TARGET_MEM_FUNCTIONS): Likewise.
15347         (CPP_PREDEFINES): Redefine.
15348         (ASM_FINAL_SPEC): Remove redefinition.
15349         (ASM_COMMENT_START): Redefine.
15350         (FUNCTION_PROFILER): Define.
15351         (TARGET_VERSION): Redefine.
15352         Comment and formatting cleanup.
15353         * config/i386/netbsd.h: Include <netbsd-aout.h>.
15354         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15355         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15356         big- or little-endian.
15357         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15358         * config.gcc (*-*-netbsd*): Add definitions common to all
15359         NetBSD configs.
15360         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15361         gnu_ld definitions.  Add netbsd-elf.h to and remove
15362         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
15363         tmake_file, and don't lose previous tmake_file contents.
15364         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15365         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15366         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
15367         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15368         (mipsel-*-netbsd*): Rename this to...
15369         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
15370         mips/little.h to tm_file for mips*el-*.
15371         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15372         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15373         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15374
15375 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15376
15377         * pa-protos.h (reg_before_reload_operand): New function prototype.
15378         * pa.c (reg_before_reload_operand): New function implementation.
15379         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
15380         contraints to "*m".
15381
15382 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15383
15384         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15385
15386 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15387
15388         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15389         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15390         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15391         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15392         (ENDFILE_SPEC): Undefine.
15393         (STARTFILE_SPEC): Redefine for PA.
15394
15395 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15396
15397         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15398
15399 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
15400
15401         * config.gcc: Add entries to supported PowerPC --with-cpu
15402         types.
15403
15404 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
15405
15406         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15407         true for 64-bit mode only SSE registers in 32-bit mode.
15408
15409 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15410
15411         * unwind-dw2.c: Fix formatting.
15412         * unwind-dw2-fde.c: Likewise.
15413         * unwind-dw2-fde.h: Likewise.
15414         * unwind-pe.h: Likewise.
15415         * varasm.c: Likewise.
15416         * varray.h: Likewise.
15417
15418 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
15419
15420         Remove workaround for register stack overwrite bug in mmix.
15421         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15422         support for TARGET_REG_STACK_FILL_BUG.
15423         * config/mmix/mmix.h: Remove member has_call_without_parameters.
15424         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15425         Delete.
15426         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15427         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15428         -mno-reg-stack-fill-bug-workaround.
15429         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15430         machine member has_call_without_parameters.
15431         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15432         -mreg-stack-fill-bug-workaround and
15433         -mno-reg-stack-fill-bug-workaround.
15434         (MMIX Options): Ditto.
15435
15436 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15437
15438         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15439         as appropriate.
15440         Remove redundant code.
15441
15442 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15443
15444         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15445         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15446         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15447         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15448         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15449         out target macro definitions and non-target-specific comments
15450         mostly taken from old versions of the manual.
15451
15452 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15453
15454         * config/h8300/h8300.h: Fix comment formatting.
15455         * config/ia64/aix.h: Likewise.
15456         * config/ia64/ia64-protos.h: Likewise.
15457         * config/ia64/ia64.c: Likewise.
15458         * config/ia64/ia64.h: Likewise.
15459         * config/ia64/ia64intrin.h: Likewise.
15460         * config/ia64/linux.h: Likewise.
15461         * config/ia64/unwind-aix.c: Likewise.
15462         * config/ia64/unwind-ia64.c: Likewise.
15463
15464 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15465
15466         * config/h8300/h8300.c: Revise comments about shift code.
15467
15468 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15469
15470         * config/h8300/h8300.c (function_arg): Update a comment.
15471
15472 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15473
15474         * config/h8300/h8300.md: Update the comments at the beginning
15475         of the file.
15476
15477 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15478
15479         * config/i370/i370.c: Fix comment formatting.
15480         * config/i370/i370.h: Likewise.
15481         * config/i370/i370.md: Likewise.
15482         * config/i370/linux.h: Likewise.
15483
15484 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15485
15486         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15487
15488         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15489         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15490         in incomplete case.
15491
15492 2002-01-20  Graham Stott  <grahams@redhat.com>
15493
15494         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15495
15496 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15497
15498         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15499
15500 2002-01-19  Tom Rix  <trix@redhat.com>
15501
15502         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15503
15504 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15505
15506         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15507
15508         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15509         STARTING_FRAME_PHASE.
15510         (STARTING_FRAME_PHASE): New.
15511         (instantiate_virtual_regs): Check saneness of
15512         STARTING_FRAME_PHASE.
15513
15514         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15515
15516 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15517
15518         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15519
15520 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15521
15522         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15523         be used for bootstrapping GCC 3.0.
15524
15525 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15526
15527         * config/h8300/h8300.md: Fix an insn length.
15528
15529 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15530
15531         * bitmap.h: Fix comment formatting.
15532         * combine.c: Likewise.
15533         * cppfiles.c: Likewise.
15534         * c-pragma.h: Likewise.
15535         * c-typeck.c: Likewise.
15536         * df.c: Likewise.
15537         * dwarf2out.c: Likewise.
15538         * function.c: Likewise.
15539         * gcc.c: Likewise.
15540         * genattrtab.c: Likewise.
15541         * gthr-win32.h: Likewise.
15542         * haifa-sched.c: Likewise.
15543         * predict.c: Likewise.
15544         * rtlanal.c: Likewise.
15545         * rtl.h: Likewise.
15546         * unwind-dw2-fde.h: Likewise.
15547         * unwind-pe.h: Likewise.
15548         * vmsdbgout.c: Likewise.
15549
15550 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15551
15552         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15553         if type_required and passed decl.
15554
15555 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15556
15557         * config.gcc (cpu_type): Include altivec.h in powerpc
15558         extra_headers.
15559         Same for darwin.
15560
15561         * config/rs6000/altivec.h: New.
15562
15563 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15564
15565         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15566         handling information.
15567         * doc/trouble.texi (Interoperation): Add libstdc++ information
15568         for AIX.
15569         (Misunderstandings): Add template instantiation and static template
15570         member information for AIX.
15571
15572 2002-01-17  Jason Merrill  <jason@redhat.com>
15573
15574         * dbxout.c (dbxout_type): Support const and volatile.
15575
15576         * except.c (add_partial_entry): Remove backwards compatibility code.
15577         (end_protect_partials): Likewise.
15578
15579 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15580
15581         * config/ia64/ia64.md (prologue_use): New.
15582         * config/ia64/ia64.c (ia64_expand_prologue): Use
15583         gen_prologue_use instead of gen_rtx_USE.
15584         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15585         as CODE_FOR_pred_rel_mutex.
15586         (ia64_sched_reorder2): Likewise.
15587
15588 2002-01-16  Eric Christopher  <echristo@redhat.com>
15589
15590         * config/mips/r3900.h: Reformat.
15591         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15592         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15593         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15594         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15595         * config/mips/t-elf: Remove mips3 multilib.
15596
15597 2002-01-16  H.J. Lu <hjl@gnu.org>
15598
15599         * config/mips/linux.h: Include "mips/abi64.h".
15600
15601 2002-01-16  H.J. Lu <hjl@gnu.org>
15602
15603         * config/mips/t-linux: New.
15604
15605         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15606
15607         * config/mips/linux.h: Don't include "gofast.h".
15608         (INIT_SUBTARGET_OPTABS): Removed.
15609
15610 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15611
15612         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15613         output_a_shift.
15614         * config/h8300/h8300.c: Likewise.
15615         * config/h8300/h8300.md: Likewise.
15616
15617 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15618
15619         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15620         spaces after an opcode name.
15621         (pushqi1_h8300hs): Likewise.
15622         (pushhi1_h8300hs): Likewise.
15623
15624 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15625
15626         * doc/extend.texi: Replace "option" with "attribute"
15627         appropriately.
15628
15629 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15630
15631         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15632         (and:DI () (const_int -8)).
15633         (split_small_symbolic_mem_operand): Split
15634         (mem (and:DI () (const_int -8)).
15635
15636 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15637
15638         PR target/5309:
15639         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15640         same way as TYPE_IMUL.
15641         (ultrasparc_sched_reorder): Likewise.
15642         * config/sparc/sparc.md (type): Add comment to update
15643         ultrasparc_sched_reorder when making changes.
15644
15645 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15646
15647         * doc/invoke.texi: Change the dump file name of block
15648         reordering pass from 28.bbro to 29.bbro.
15649         Mention -dk option.
15650
15651 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15652
15653         * i386.md (minsf splitter): Fix pasto.
15654
15655 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15656
15657         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15658         to frame pointer initialisation instruction.
15659         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15660         initialisation instruction.
15661         (soft_df_operand): Do not accept the IP register.
15662         (nonimmediate_soft_df_operand): Do not accept the IP register.
15663
15664 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15665
15666         PR target/5357:
15667         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15668         MASK_V8 being both set.
15669
15670 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15671
15672         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15673         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15674         config/s390/s390.md (call, call_value): Add GOT register to
15675         CALL_INSN_FUNCTION_USAGE where needed.
15676         (call_exp, call_value_exp): New.
15677
15678 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15679
15680         * config/arm/arm.c: General formatting tidy up.
15681
15682 2002-01-16  Graham Stott  <grahams@redhat.com>
15683
15684         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15685         cast and when casting an integer literal to "rtx" pointer.
15686         (expand_call): Likewise.
15687         * flow.c (try_pre_increment): Likewise.
15688         (find_use_as_address): Likewise.
15689         * integrate.c (expand_iline_function): Likewise.
15690         * regmove.c (try_auto_increment): Likewise.
15691
15692 2002-01-16  Graham Stott  <grahams@redhat.com>
15693
15694         * sched-rgn.c (passed): Use sbitmap_free.
15695         (header): Likewise.
15696         (inner): Likewise.
15697         (in_queue): Likewise.
15698         (in_stack): Likewise.
15699
15700 2002-01-15  Eric Christopher  <echristo@redhat.com>
15701
15702         * flow.c (propagate_one_insn): Change to use fatal_insn.
15703
15704 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15705
15706         * expmed.c (extract_fixed_bit_field): Remove unused code.
15707         * system.h: Poison SLOW_ZERO_EXTEND.
15708         * doc/tm.texi: Remove.
15709         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15710         * config/arm/arm.h: Likewise.
15711         * config/avr/avr.h: Likewise.
15712         * config/clipper/clipper.h: Likewise.
15713         * config/convex/convex.h: Likewise.
15714         * config/d30v/d30v.h: Likewise.
15715         * config/dsp16xx/dsp16xx.h: Likewise.
15716         * config/elxsi/elxsi.h: Likewise.
15717         * config/fr30/fr30.h: Likewise.
15718         * config/h8300/h8300.h: Likewise.
15719         * config/i370/i370.h: Likewise.
15720         * config/i386/i386.h: Likewise.
15721         * config/m68k/m68k.h: Likewise.
15722         * config/mips/mips.h: Likewise.
15723         * config/ns32k/ns32k.h: Likewise.
15724         * config/pdp11/pdp11.h: Likewise.
15725         * config/pj/pj.h: Likewise.
15726         * config/s390/s390.h: Likewise.
15727         * config/sh/sh.h: Likewise.
15728         * config/stormy16/stormy16.h: Likewise.
15729         * config/v850/v850.h: Likewise.
15730         * config/vax/vax.h: Likewise.
15731         * config/we32k/we32k.h: Likewise.
15732
15733 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15734
15735         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15736         (altivec_lvsl): Change constraint to b.
15737         (altivec_lvsr): Same.
15738         (altivec_lvebx): Same.
15739         (altivec_lvehx): Same.
15740         (altivec_lvewx): Same.
15741         (altivec_lvxl): Same.
15742         (altivec_lvx): Same.
15743         (altivec_stvx): Add parallel.
15744         (altivec_stvxl): Same.
15745         (altivec_stvehx): Same.
15746         (altivec_stvebx): Same.
15747         (altivec_stvebx): Same.
15748
15749 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15750
15751         * config.gcc: Change altivec.h to altivec-defs.h.
15752
15753         * config/rs6000/altivec.h: Delete.
15754
15755         * config/rs6000/altivec-defs.h: Add.
15756
15757 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15758
15759         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15760         and UMOD modes.
15761
15762         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15763         less than or equal to eight bytes.
15764
15765         * vax.md (andsi3): Remove constraints and change SET destination
15766         operand type to nonimmediate_operand.
15767         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15768         when it is a CONST_INT.
15769
15770 2002-01-15  Jason Merrill  <jason@redhat.com>
15771
15772         * c-common.def (FILE_STMT): New code.
15773         * c-common.c (statement_code_p): It's a statement.
15774         * c-common.h (stmt_tree_s): Add x_last_filename.
15775         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15776         (last_expr_filename): New macro.
15777         * c-semantics.c (begin_stmt_tree): Initialize it.
15778         (add_stmt): If the filename changed, also insert a
15779         FILE_STMT.
15780         (expand_stmt): Handle seeing one.
15781
15782 2002-01-15  Eric Christopher  <echristo@redhat.com>
15783
15784         * flow.c (propagate_one_insn): Add error message and print out
15785         insn for debugging.
15786
15787 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15788
15789         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15790         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15791         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15792         TRAMPOLINE_ALIGNMENT.
15793         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15794         to be in bits.
15795         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15796         PCC_BITFIELD_TYPE_MATTERS.
15797         * config/interix.h (STDC_VALUE): Remove.  Use
15798         STDC_0_IN_SYSTEM_HEADERS.
15799         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15800         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15801         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15802
15803 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15804
15805         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15806         not work on this platform currently.
15807
15808 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15809
15810         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15811         readonly_warning in _().
15812
15813 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15814
15815         * gcc.c (delete_if_ordinary): Backout previous change.
15816
15817 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15818
15819         * config/h8300/h8300.c (print_operand): Remove support for
15820         unused operand characters.
15821
15822         * read-rtl.c: Fix formatting.
15823         * real.c: Likewise.
15824         * recog.c: Likewise.
15825         * regclass.c: Likewise.
15826         * regmove.c: Likewise.
15827         * reg-stack.c: Likewise.
15828         * reload1.c: Likewise.
15829         * rtlanal.c: Likewise.
15830
15831 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15832
15833         * config/i386/i386.c: Fix formatting.
15834
15835 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15836
15837         * c-typeck.c (process_init_element): Don't save_expr
15838         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15839
15840 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15841
15842         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15843         emit optional traceback table if optimize_size or TARGET_ELF.
15844         * config/rs6000/rs6000.md (prefetch): New.
15845
15846 2002-01-15  Andreas Jaeger  <aj@suse.de>
15847
15848         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15849
15850 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15851
15852         * mips-tfile.c: Fix formatting.
15853
15854 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15855
15856         * unroll.c (final_reg_note_copy): Fix previous commit.
15857
15858 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15859
15860         * config/h8300/h8300-protos.h: Remove the prototype for
15861         eq_operator.
15862         * config/h8300/h8300.c (eq_operator): Remove.
15863
15864 2002-01-14  Richard Henderson  <rth@redhat.com>
15865
15866         * config/i386/i386.md (prefetch): Tidy.
15867         (prefetch_3dnow): Fix locality operand.
15868
15869 2002-01-14  Richard Henderson  <rth@redhat.com>
15870
15871         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15872         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15873
15874 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15875
15876         * reload1.c (reload_combine): Pass reg_sum replacement through
15877         copy_rtx in loop performing multiple changes.
15878
15879 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15880
15881         * except.c (remove_unreachable_regions): New.
15882         (free_eh_status): Clear exception_handler_labels.
15883         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15884         (find_exception_handler_labels): Don't add the same label more than
15885         once.
15886         (remove_exception_handler_label): Don't die if
15887         find_exception_handler_labels hasn't been called for the current
15888         function yet.
15889
15890 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15891
15892         * toplev.c (rest_of_compilation): Rebuild jump labels after
15893         gcse.
15894
15895 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15896
15897         * doc/extend.texi: Move documentation of X86 built-in functions
15898         here.
15899         * doc/invoke.texi: From here.
15900         * doc/sourcebuild.texi: Document location of documentation for
15901         machine built-in functions.
15902
15903 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15904
15905         * cppfiles.c (TEST_THRESHOLD): New macro.
15906         (SHOULD_MMAP): Ditto.
15907         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15908         be used.
15909
15910 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15911
15912         * unroll.c (final_reg_note_copy): Properly handle
15913         REG_LABEL
15914         (unroll_loops): Fix LOOP_CONDITION heuristics.
15915
15916 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15917
15918         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15919         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15920
15921 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15922
15923         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15924         threaded loop.
15925
15926 2002-01-14  Tom Rix  <trix@redhat.com>
15927
15928         * config/rs6000/rs6000.md: Fix typo with sradi.
15929
15930 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15931
15932         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15933         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15934         (clrstrdi, clrstrsi): Adapt callers.
15935
15936         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15937
15938         (movti splitter): Never use register 0 as base register.
15939
15940 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15941
15942         * combine.c (simplify_shift_const): Always generate new rtx
15943         for shift expression instead of reusing given expression.
15944
15945 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15946
15947         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15948         alpha_legitimize_address unless mode is Pmode.
15949
15950 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15951
15952         * doc/md.texi (Modifiers): Document the '*' constraint for the
15953         user.
15954
15955         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15956         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15957         for xstormy16 too.
15958
15959 2002-01-13  Richard Henderson  <rth@redhat.com>
15960
15961         * reload.c (find_reloads): Use a hard reg destination as reload reg
15962         for an input reload of the source.
15963
15964 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15965
15966         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15967         more generic.
15968
15969 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15970
15971         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15972         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15973
15974         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15975
15976 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15977
15978         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15979
15980 2002-01-12  Tom Rix  <trix@redhat.com>
15981
15982         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15983         TARGET_POWERPC64.
15984
15985 2002-01-12  Richard Henderson  <rth@redhat.com>
15986
15987         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15988
15989         * doc/invoke.texi: Update Alpha options.
15990
15991         * doc/invoke.texi: Update i386 built-in function lists.
15992
15993 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15994
15995         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15996         referencing outside.
15997
15998 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15999
16000         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
16001         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
16002         offsets, and change line folding.
16003         * optabs.c (expand_binop): Remove warnings.
16004         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
16005
16006 2002-01-12  Graham Stott <grahams@redhat.com>
16007
16008         * attribs.c (handle_deprecated_attribute): constify WHAT.
16009         * diagnostic.c (warn_deprecated_use): Add braces, fixes
16010         dangling else warning and constify WHAT.
16011         * except.h (struct function, struct inline_remap): Move
16012         struct tag forward defs before all prototypes.
16013         (duplicate_eh_regions): Whitespace.
16014
16015 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
16016
16017         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16018         MODE_BASE_REG_CLASS.
16019         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
16020
16021 2002-01-12  Richard Henderson  <rth@redhat.com>
16022
16023         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
16024         (ix86_expand_vector_move): New.
16025         (bdesc_2arg): Remove andps, andnps, orps, xorps.
16026         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
16027         Remove old prefetch builtins.  Special case the logicals removed above.
16028         (ix86_expand_builtin): Likewise.
16029         (safe_vector_operand): Use V4SFmode, not TImode.
16030         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
16031         (ix86_expand_timode_binop_builtin): New.
16032         * config/i386/i386-protos.h: Update.
16033         * config/i386/i386.h (enum ix86_builtins): Update.
16034         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
16035         Use ix86_expand_vector_move in vector move expanders.
16036         (movti_internal, movti_rex64): Add xorps alternative.
16037         (sse_clrv4sf): Rename and adjust from sse_clrti.
16038         (prefetch): Don't work so hard.
16039         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
16040         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
16041         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
16042
16043 2002-01-11  Richard Henderson  <rth@redhat.com>
16044
16045         * config/i386/mmintrin.h: New file.
16046         * config/i386/xmmintrin.h: New file.
16047         * config.gcc (i?86-*-*): Add extra_headers.
16048         * simplify-rtx.c (simplify_unary_operation): Handle saturating
16049         truncation codes.
16050         (simplify_binary_operation): Handle saturating arithmetic codes.
16051         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
16052         not the lowpart subreg.
16053         (ix86_expand_builtin): Return a TImode dummy register instead of 0
16054         on error.
16055         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
16056
16057 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16058
16059         * conflict.c (conflict_graph_compute): Free regsets when finished.
16060         * ssa.c (compute_coalesced_reg_partition): Likewise.
16061
16062 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16063
16064         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
16065         every where we allocate a register.
16066
16067 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16068
16069         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
16070         * lcm.c (compute_earliest, compute_farthest): Likewise.
16071
16072 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
16073
16074         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
16075
16076 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
16077
16078         * doc/rtl.texi (Insns): Fix 2 typos.
16079
16080 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
16081
16082         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
16083         options.  Use @table @gcctabopt for MMIX options.  Add index
16084         entries for MMIX options.  Start new paragraph with first
16085         heading of the machine-dependent options.
16086
16087 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16088
16089         PR other/5299
16090         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
16091         * combine.c (force_to_mode): Same.
16092         * reload1.c (clear_reload_reg_in_use): Same.
16093
16094 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
16095
16096         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
16097         and 'subtargets'.
16098
16099 2002-01-11  Andreas Jaeger  <aj@suse.de>,
16100             Brad Lucier <lucier@math.purdue.edu>
16101
16102         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
16103         mcpu.
16104
16105 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
16106
16107         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
16108         Protect with IN_LIBGCC.
16109         (LINK_EH_SPEC): Add required trailing space.
16110
16111 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16112
16113         * c-tree.h: Move function declarations so that they are listed
16114         under the filename which contains them.
16115         (check_identifier, finish_decl_top_level,
16116         lookup_name_current_level_global, shadow_record_fields): Remove.
16117
16118 2002-01-11  Andreas Jaeger  <aj@suse.de>
16119
16120         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
16121         march.
16122
16123 2002-01-10  Richard Henderson  <rth@redhat.com>
16124
16125         * config/alpha/alpha.c (print_operand): Add 'J'.
16126         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
16127         new operand with the sequence number for the lituse.  When splitting
16128         the insns, use gen_movdi_er_high_g and generate a sequence number.
16129         (gen_movdi_er_high_g): Print the sequence number if non-zero.
16130
16131 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
16132
16133         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
16134         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
16135         stvxl.
16136         (altivec_expand_builtin): Same.
16137         (altivec_expand_stv_builtin): New.
16138
16139         * config/rs6000/rs6000.h (rs6000_builtins): Same.
16140
16141         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
16142         ("altivec_lvehx"): New.
16143         ("altivec_lvewx"): New.
16144         ("altivec_lvxl"): New.
16145         ("altivec_lvx"): New.
16146         ("altivec_stvx"): New.
16147         ("altivec_stvebx"): New.
16148         ("altivec_stvehx"): New.
16149         ("altivec_stvewx"): New.
16150         ("altivec_stvxl"): New.
16151
16152 2002-01-10  Richard Henderson  <rth@redhat.com>
16153
16154         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
16155         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
16156         care not to delete instructions twice.
16157
16158 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16159
16160         * toplev.c: Don't declare environ (it's not used anywhere).
16161         * configure.in: Don't check for declaration of environ.
16162         * config/i386/xm-mingw32.h: Don't #define environ.
16163         * config.in, configure: Regenerate.
16164
16165 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16166
16167         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
16168         * configure: Regenerate.
16169
16170         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
16171         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
16172         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
16173         alpha/xm-vms.h.
16174         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
16175         LIMITS_H_TEST here, not in m68k/x-next.
16176         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
16177         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
16178
16179         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
16180         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
16181         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
16182
16183         * config/i386/x-djgpp: Renamed i386/t-djgpp.
16184         * config/m88k/x-dolph: Renamed m88k/t-dolph.
16185         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
16186         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
16187         replacement of quadlib.asm with quadlib.c.
16188
16189         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
16190         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
16191         config/rs6000/xm-beos.h: Delete file.
16192
16193         * config.gcc: Update to match above changes.
16194
16195 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16196
16197         * config/h8300/h8300.h: Fix comment typos.
16198         * config/h8300/h8300.md: Likewise.
16199         * config/h8300/lib1funcs.asm: Likewise.
16200
16201 2002-01-10  Dale Johannesen  <dalej@apple.com>
16202
16203         PR optimization/5269
16204         * unroll.c (precondition_loop_p): Make *increment be the correct
16205         sign when n_iterations known, to avoid confusing caller.
16206
16207 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16208
16209         * doc/extend.texi (deprecated): Fix a typo.
16210
16211 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16212
16213         * basic-block.h (update_br_prob_note): Declare.
16214         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16215         (try_forward_edges): Care negative frequencies and update note.
16216         (outgoing_edges_match): Tweek conditional merging heuristics.
16217         (try_crossjump_to_edge): use update_br_prob_note.
16218         * cfglayout.c (fixup_reorder_chain): Likewise.
16219         * cfrtl.c (update_br_prob_note): New.
16220         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16221
16222         * i386.c (ix86_decompose_address): Return -1 if address contains
16223         shift.
16224         (legitimate_address_p): Require ix86_decompose_address to return 1.
16225
16226         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16227         (cprop_insn): Likewise.
16228
16229 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16230
16231         * toplev.c: Fix formatting.
16232         * tree.c: Likewise.
16233         * tree-dump.c: Likewise.
16234         * unroll.c: Likewise.
16235         * unwind-dw2.c: Likewise.
16236         * unwind-dw2-fde.c: Likewise.
16237         * unwind-dw2-fde-glibc.c: Likewise.
16238         * unwind-sjlj.c: Likewise.
16239
16240 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16241
16242         * doc/invoke.texi: Document PDP-11 options.
16243
16244 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16245
16246         * config/h8300/h8300.h: Fix formatting.
16247
16248 2002-01-10  Ira Ruben   <ira@apple.com>
16249
16250         Add __attribute__ ((deprecated)).
16251         * extend.texi: Document __attribute__ ((deprecated)).
16252         * invoke.texi: Document -Wno-deprecated-declarations.
16253         * testsuite/g++.dg/other/deprecated.C: New C++ test.
16254         * testsuite/gcc.dg/deprecated.c: New C test.
16255         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16256         (c_common_attribute_table): Add "deprecated" entry.
16257         (handle_deprecated_attribute): New function.
16258         * c-decl.c (deprecated_states): New enum.
16259         deprecated_state: State of "deprecated" handling.
16260         (start_decl): Set deprecated_state based on attributes.
16261         (grokdeclarator): Test for deprecated uses, propagate attribute.
16262         * c-typeck.c (build_component_ref): Test for deprecated fields.
16263         (build_external_ref): Test for deprecated primaries.
16264         * diagnostic.c (warn_deprecated_use) New function to issue
16265         warnings about __attribute__ ((depricated)) references.
16266         * flags.h (warn_deprecated_decl): Extern declared for
16267         -W[no-]deprecated-declarations option.
16268         * print-tree.c (print_node): Show deprecated flag status.
16269         * toplev.c (warn_deprecated_decl): Defined.
16270         (W_options): Added "deprecated-declaration".
16271         * toplev.h (warn_deprecated_use): Extern declared.
16272         * tree.h (struct tree_common): Define deprecated_flag.
16273         (TREE_DEPRECATED): New macro to access flag.
16274         * cp/call.c (build_call): Test for deprecated calls.
16275         * cp/class.c (add_implicitly_declared_members): Set global
16276         flag to tell grokdeclarator to not issue deprecated warnings.
16277         * cp/cp-tree.h: Add extern for adding_implicit_members.
16278         * cp/decl.c (deprecated_states): New enum.
16279         (start_decl): Set deprecated_state based on attributes.
16280         (grokdeclarator): Test for deprecated uses, propagate attribute.
16281         * cp/lex.c (do_identifier): Test for deprecated primaries.
16282         * cp/typeck.c (build_component_ref): Test for deprecated fields.
16283
16284 2002-01-10  Ira Ruben   <ira@apple.com>
16285
16286         Fix to assign attributes to inline member functions.
16287         * cp/decl.c (start_method): Handle attrlist.
16288
16289 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16290
16291         * combine.c (expand_field_assignment): Use subreg_lsb().
16292
16293 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
16294
16295         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16296         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16297         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16298         Recurse for any operand of AND as long as constant is non-zero.
16299
16300 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16301
16302         * config/h8300/h8300.md: Remove constraints from expanders.
16303
16304 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16305
16306         * varasm.c: Fix formatting.
16307         * varray.c: Likewise.
16308         * vmsdbgout.c: Likewise.
16309         * xcoffout.c: Likewise.
16310
16311 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
16312
16313         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16314         update edge probabilities to match.
16315
16316 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16317
16318         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16319         dependencies.
16320         * doc/languages.texi, doc/sourcebuild.texi: New files.
16321         * doc/configfiles.texi: Make a subsubsection.  Update.
16322         * doc/configterms.texi: Add @node.  Remove warning that this isn't
16323         instructions for building GCC.
16324         * doc/makefile.texi: Make a subsection.
16325         * doc/gccint.texi: Update.
16326
16327 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
16328
16329         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16330
16331 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16332
16333         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16334
16335 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
16336
16337         * optabs.c (expand_fix): Look for wider integer modes first.
16338
16339         * i386.md (mov?f): Avoid the fake const double trick for medium
16340         memory model.
16341         (min?f*/max?f*): Prohibit memory operands for i387 variant.
16342         (fop_df_4): Disable for SSE compilation.
16343
16344 2002-01-10  Graham Stott  <grahams@redhat.com>
16345
16346         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16347         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16348
16349 2002-01-10  Richard Henderson  <rth@redhat.com>
16350
16351         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16352
16353 2002-01-10  Richard Henderson  <rth@redhat.com>
16354
16355         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16356         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
16357
16358 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16359
16360         * combine.c (can_combine_p): Fix a comment typo.
16361
16362 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
16363
16364         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16365         empty list correctly.  Change loop index $t to $f for
16366         consistency with rest of Makefile.
16367
16368 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
16369
16370         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16371         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16372
16373         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16374         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16375         (altivec_init_builtins): Same.
16376         (altivec_expand_unop_builtin): Return NULL_RTX on error.
16377         (altivec_expand_binop_builtin): Same.
16378         (altivec_expand_ternop_builtin): Same.
16379         (bdesc_dst): New.
16380
16381         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16382         ("altivec_vctuxs"): Fix typo.
16383         ("altivec_vnmsubfp"): Same.
16384         ("altivec_dssall"): New.
16385         ("altivec_mfvscr"): New.
16386         ("altivec_dss"): New.
16387         ("altivec_lvsl"): New.
16388         ("altivec_lvsr"): New.
16389         ("altivec_dstt"): New.
16390         ("altivec_dstst"): New.
16391         ("altivec_dststt"): New.
16392         ("altivec_dst"): New.
16393
16394         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16395         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16396
16397 2002-01-09  Richard Henderson  <rth@redhat.com>
16398
16399         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16400
16401 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
16402
16403         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16404         function.
16405         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16406         prototype.
16407         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16408
16409 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16410
16411         * read-rtl.c: Fix formatting.
16412         * real.c: Likewise.
16413         * regclass.c: Likewise.
16414         * regrename.c: Likewise.
16415         * reg-stack.c: Likewise.
16416         * reload1.c: Likewise.
16417         * reload.c: Likewise.
16418         * rtl.c: Likewise.
16419
16420 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16421
16422         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16423         to extract items in the expr_list chain.
16424
16425 2002-01-09  Richard Henderson  <rth@redhat.com>
16426
16427         * config/vax/vax.c (vax_rtx_cost): Never abort.
16428
16429         * config/vax/vax.h (REAL_ARITHMETIC): Define.
16430
16431 2002-01-09  Jan Hubicka  <jh@suse.cz>
16432
16433         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16434
16435 2002-01-09  Richard Henderson  <rth@redhat.com>
16436
16437         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16438         Unify code from various alternatives.
16439
16440 2002-01-09  Richard Henderson  <rth@redhat.com>
16441
16442         * regrename.c (copy_value): Ignore the copy if the source register
16443         is present in the value chain with a narrower mode.
16444
16445 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
16446
16447         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16448         for the c4x target. Also improve layout.
16449
16450 2002-01-09  Richard Henderson  <rth@redhat.com>
16451
16452         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16453         * config/m32r/m32r.md (and ior xor splitters): Swap operands
16454         to match insn patterns.
16455
16456 2002-01-09  Richard Henderson  <rth@redhat.com>
16457
16458         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16459         (copyprop_hardreg_forward_1): Likewise.
16460
16461 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16462
16463         * pa.md (decrement_and_branch_until_zero): Change predicate for
16464         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16465
16466 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16467
16468         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16469         gets undefined. For Darwin.
16470
16471 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16472
16473         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16474
16475 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16476
16477         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16478
16479 2002-01-08  Richard Henderson  <rth@redhat.com>
16480
16481         * regrename.c (copy_value): Ignore overlapping copies.
16482
16483 2002-01-08  Richard Henderson  <rth@redhat.com>
16484
16485         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16486         as needed to avoid shared structure.
16487
16488 2002-01-08  Kazu Hirata  <kazu@hxi.com>
16489
16490         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16491         H8/300H and H8/S.
16492
16493 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16494
16495         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16496         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16497         documentation of obsolete macros.
16498         * system.h: Poison these macros.
16499         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16500         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16501         config/c4x/c4x.h, config/clipper/clipper.h,
16502         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16503         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16504         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16505         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16506         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16507         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16508         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16509         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16510         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16511         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16512         config/sparc/sparc.h, config/stormy16/stormy16.h,
16513         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16514         definitions and commented out definitions of obsolete macros.
16515         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16516         of MAX_INT_TYPE_SIZE.
16517
16518 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16519
16520         * config/s390/s390.c (s390_preferred_reload_class): Never
16521         return ADDR_REGS if it isn't a subset of the given class.
16522         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16523         FP_REGS, but all superclasses as well.
16524
16525         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16526
16527         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16528         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16529         must not be a const_int.
16530
16531 2002-01-08  Richard Henderson  <rth@redhat.com>
16532
16533         * Makefile.in (toplev.o): Depend on options.h.
16534         (gcc.o): Depend on specs.h.
16535
16536 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16537
16538         * expr.c (store_expr): Convert VOIDmode constants back to target's
16539         mode.
16540
16541 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16542
16543         * doc/invoke.texi: Markup gcc as @command.  Refer to
16544         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16545         of http://gcc.gnu.org/thanks.html.
16546
16547 2002-01-08  Dale Johannesen  <dalej@apple.com>
16548
16549         * config/rs6000/rs6000.md: Add missing int register
16550         target case to movdf_low.
16551
16552 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16553
16554         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16555         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16556         (cppinit.o): Depend on except.h.
16557         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16558         s-specs): New rules.
16559
16560         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16561         Don't create specs.h/options.h/gencheck.h here.  Remove
16562         unnecessary variable settings from last argument of AC_OUTPUT.
16563         * config.in, configure: Regenerate.
16564         * intl.c: Hardcode package name as "gcc".
16565
16566         * cppinit.c: Include except.h.
16567         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16568         appropriate.
16569         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16570         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16571         (!)USING_SJLJ_EXCEPTIONS.
16572         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16573
16574 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16575
16576         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16577         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16578         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16579         documentation of obsolete macros.
16580         * system.h: Poison these macros.
16581         * config/d30v/d30v.h, config/ns32k/encore.h,
16582         config/stormy16/stormy16.h: Remove definitions and commented out
16583         definitions of obsolete macros.
16584
16585 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16586
16587         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16588         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16589         warnings.
16590
16591 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16592
16593         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16594         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16595         to insn adjusting stack/frame pointer.
16596         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16597         accept operands that cause the insn to be non-splittable.
16598
16599 2002-01-08  Graham Stott  <grahams@redhat.com>
16600
16601         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16602         (C_TYPE_FIELDS_VOLATILE): Likewise.
16603         (C_TYPE_BEING_DEFINED): Likewise.
16604         (C_IS_RESERVED_WORD): Likewise.
16605         (C_TYPE_VARIABLE_SIZE): Likewise.
16606         (C_DECL_VARIABLE_SIZE): Likewise.
16607         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16608         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16609         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16610         parenthesis.
16611         (C_DECL_ANTICIPATED): Likewise.
16612         (c_build_type_variant): Add parenthesis.
16613
16614 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16615
16616         * gcc.c (option_map): Remove --version.
16617         (process_command): Handle -fversion following the GNU Coding
16618         Standards.  Partially addresses PR other/704.
16619
16620 2002-01-08  Graham Stott  <grahams@redhat.com>
16621
16622         * combine.c (combine_instructions): Fix typo.
16623
16624 2002-01-08  Graham Stott  <grahams@redhat.com>
16625
16626         * debug.h: Use "tree" and "rtx" throughout.
16627
16628         * debug.c: Likewise.
16629
16630 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16631
16632         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16633         constant pool, use the pool's version of the symbol instead.
16634
16635 2002-01-07  Richard Henderson  <rth@redhat.com>
16636
16637         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16638         the original register was copied in a mode with a fewer number of
16639         hard registers than the desired mode.
16640         (copyprop_hardreg_forward_1): Likewise.
16641         (debug_value_data): Fix loop test.
16642         * toplev.c (parse_options_and_default_flags): Reenable
16643         -fcprop-registers at -O1.
16644
16645 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16646
16647         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16648         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16649
16650         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16651         predicates.
16652
16653         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16654
16655 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16656
16657         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16658         (pa_output_function_prologue): Output local label at the beginning of
16659         the prologue when profiling.
16660         (hppa_profile_hook): Use the local label rather than the function label.
16661         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16662
16663 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16664
16665         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16666         (altivec_expand_unop_builtin): Fix thinko.
16667         (altivec_expand_binop_builtin): Same.
16668         (altivec_expand_ternop_builtin): Same.
16669         (altivec_expand_builtin): Same.
16670
16671 2002-01-07  Richard Henderson  <rth@redhat.com>
16672
16673         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16674
16675 2002-01-07  Jason Merrill  <jason@redhat.com>
16676
16677         * unwind-dw2.c (execute_cfa_program): Use < again.
16678
16679 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16680
16681         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16682
16683 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16684
16685         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16686         Don't allow -1 - x -> ~x simplifications in the first pass.
16687
16688 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16689
16690         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16691         arguments.
16692         (altivec_expand_binop_builtin): Same.
16693         (altivec_expand_unop_builtin): Same.
16694         (print_operand): Fix typo.
16695         (bdesc_1arg): Add vupk* variants.
16696
16697         * rs6000.h (rs6000_builtins): Add vupk* enums.
16698
16699         * rs6000.md: Add altivec_vupk* variants.
16700
16701 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16702
16703         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16704         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16705         and last update dates.
16706
16707 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16708
16709         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16710
16711 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16712
16713         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16714         * config/avr/avr.h (CPP_SPEC): Likewise.
16715         (LINK_SPEC): Likewise.
16716         (CRT_BINUTILS_SPECS): Likewise.
16717         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16718         * doc/invoke.texi (AVR Options): Document them.
16719
16720 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16721
16722         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16723         LABEL_NUSES.
16724
16725 2002-01-07  Graham Stott  <grahams@redhat.com>
16726
16727         * config/i386/i386.h: Update copyright date.
16728         (HALF_PIC_PTR): Add parenthesis.
16729         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16730         (CONSTANT_ALIGNMENT): Add parenthesis.
16731         (DATA_ALIGNMENT): Likewise.
16732         (LOCAL_ALIGNMENT): Likewise.
16733         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16734         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16735         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16736         (HARD_REGNO_NREGS): Add paranethesis.
16737         (VALID_SSE_REG_MODE): Whitespace.
16738         (VALID_MMX_REG_MODE): Whitespace.
16739         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16740         (ix86_hard_regno_mode_ok): Add parenthesis.
16741         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16742         (RETURN_IN_MEMORY): Whitespace.
16743         (N_REG_CLASSES): Add parenthesis.
16744         (INTEGER_CLASS_P): Add parenthesis and wrap.
16745         (FLOAT_CLASS_P): Likewise.
16746         (SSE_CLASS_P): Likewise.
16747         (MMX_CLASS_P): Likewise.
16748         (MAYBE_INTEGER_CLASS_P): Likewise.
16749         (MAYBE_FLOAT_CLASS_P): Likewise.
16750         (MAYBE_SSE_CLASS_P): Likewise.
16751         (MAYBE_MMX_CLASS_P): Likewise.
16752         (Q_CLASS_P): Likewise.
16753         (GENERAL_REGNO_P): Uppercase macro parameter.
16754         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16755         (FP_REGNO_P): Likewise.
16756         (ANY_FP_REGNO_P): Uppercase macro parameter.
16757         (SSE_REGNO_P): Likewise.
16758         (SSE_REGNO): Likewise.
16759         (SSE_REG_P): Likewise.
16760         (SSE_FLOAT_MODE_P): Likewise.
16761         (MMX_REGNO_P): Likewise.
16762         (MMX_REG_P):Likewise.
16763         (STACK_REG_P): Likewise.
16764         (NON_STACK_REG_P): Likewise.
16765         (STACK_TOP_P): Likewise.
16766         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16767         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16768         (SECONDARY_MEMORY_NEEDED): Likewise.
16769         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16770         (MD_ASM_CLOBBERS): Whitespace and wrap.
16771         (MUST_PASS_IN_STACK): Whitespace and wrap.
16772         (RETURN_POPS_ARGS): Add parenthesis.
16773         (INIT_CUMULATIVE_ARGS): Likewise.
16774         (FUNCTION_ARG): Likewise.
16775         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16776         (SETUP_INCOMING_VARARGS): Likewise.
16777         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16778         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16779         parenthsis.
16780         (EXPAND_BUILTIN_VA_ARG): Likewise.
16781         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16782         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16783         (INITIAL_ELIMINATION_OFFSET): Likewise.
16784         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16785         (REGNO_OK_FOR_BASE_P): Likewise.
16786         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16787         (REGNO_OK_FOR_DIREG_P): Likewise.
16788         (REG_OK_FOR_INDEX_P): Whitespace.
16789         (REG_OK_FOR_BASE_P): Whitespace.
16790         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16791         parenthesis.
16792         (FIND_BASE_TERM): Fix typo.
16793         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16794         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16795         (SYMBOLIC_CONST; Whitespace.
16796         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16797         (ENCODE_SECTION_INFO): Whitespace.
16798         (FINALIZE_PIC): Remove do { ... } while (0).
16799         (PROMOTE_MODE): Wrap in do { ... } while (0).
16800         (CONST_COSTS): Whitespace.
16801         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16802         (REGISTER_MOVE_COST): Add parenthesis.
16803         (MEMORY_MOVE_COST): Likewise.
16804         (EXTRA_CC_MODES): Whitespace.
16805         (SELECT_CC_MODE): Add parenthesis and whitespace.
16806         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16807         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16808         (ASM_OUTPUT_LABEL): Add paramethesis.
16809         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16810         (ASM_OUTPUT_REG_POP): Likewise.
16811         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16812         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16813
16814         * config/i386/i386.c: Update copyright.
16815         (CHECK_STACK_LIMIT): Add parenthesis.
16816         (AT_BP): Uppercase macro parameter.
16817         (x86_64_int_parameter_registers): Constify.
16818         (x86_64_int_return_registers): Likewise.
16819         (ix86_compare_op0): Use rtx.
16820         (construct_container): Constify INTREG parameter.
16821         (function_arg): Use rtx.
16822
16823         * diagnostic.h: Update copyright date.
16824         (output_buffer_state): Add parenthesis.
16825         (output_buffer_format_args): Likewise.
16826
16827         * combine.c (combine_instructions): Replace XEXP (links, 0)
16828         with link.
16829
16830 2002-01-06  H.J. Lu <hjl@gnu.org>
16831
16832         * cfgcleanup.c (thread_jump): Fix 2 typos.
16833
16834 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16835
16836         * config.gcc: Add support for --enable-altivec.
16837
16838 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16839
16840         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16841
16842 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16843
16844         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16845         __objc_class_name_*.
16846
16847 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16848
16849         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16850
16851 2002-01-06  Richard Henderson  <rth@redhat.com>
16852
16853         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16854         nop them out.  Increment label reference count for REG_LABEL.
16855         (fill_slots_from_thread): Frob label reference count around
16856         delete_related_insns.
16857
16858 2002-01-05  Richard Henderson  <rth@redhat.com>
16859
16860         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16861         jump threading.
16862
16863 2002-01-05  Richard Henderson  <rth@redhat.com>
16864
16865         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16866         * integrate.c (output_inline_function): Likewise.
16867         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16868         to remove_unnecessary_notes after emitting abstract instance.
16869         Force an emitted nested function to have its parent emited as well.
16870         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16871         for null.
16872         (rtl_for_decl_location): Do not look at reload data structures
16873         before reload has run.
16874
16875 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16876
16877         * cse.c: Fix formatting.
16878         * dwarf2asm.c: Likewise.
16879         * dwarf2out.c: Likewise.
16880         * explow.c: Likewise.
16881         * expmed.c: Likewise.
16882         * function.c: Likewise.
16883         * gcov.c: Likewise.
16884         * gencheck.c: Likewise.
16885         * genrecog.c: Likewise.
16886         * ggc-common.c: Likewise.
16887         * ggc-page.c: Likewise.
16888         * global.c: Likewise.
16889
16890 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16891
16892         * combine.c: Fix formatting.
16893
16894 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16895
16896         PR middle-end/1557
16897         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16898
16899 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16900
16901         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16902         as 1 for __powerpc64__ as well.
16903
16904         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16905
16906         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16907         return it.
16908
16909 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16910
16911         * lcm.c: Revert change, due to performance regression it causes on
16912         SPEC because it's slightly more conservative (sigh, I hate
16913         edge-based LCM).
16914
16915 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16916
16917         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16918
16919 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16920
16921         * doc/cppinternals.texi: Update.
16922
16923 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16924
16925         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16926         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16927         negatives.
16928         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16929         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16930         kludge for pre-october-14th mmix versions to handle new-found bug
16931         with PUSHJ/PUSHGO and the register stack.
16932         * config/mmix/mmix.h (struct machine_function): Rename member
16933         has_call_value_without_parameters to has_call_without_parameters.
16934         All referers changed.
16935         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16936         TARGET_MASK_BRANCH_PREDICT): New macros.
16937         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16938         -mno-reg-stack-fill-bug-workaround.
16939         * config/mmix/mmix.md ("call"): Set struct machine member
16940         has_call_without_parameters.
16941
16942 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16943
16944         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16945
16946 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16947
16948         * cfgcleanup.c: Include tm_p.h
16949         (mark_effect): Fix handling of hard register; fix handling of SET
16950
16951 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16952
16953         * config/h8300/h8300.md (anonymous patterns): Check that
16954         operands are registers before using REGNO on them.
16955
16956 2002-01-03  Roland McGrath  <roland@frob.com>
16957
16958         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16959
16960 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16961
16962         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16963         * c-common.h (genrtl_expr_stmt_value): Likewise.
16964         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16965         (expand_expr_stmt_value): Add maybe_last argument.
16966         Don't warn about statement with no effect if it is the last statement
16967         in expression statement.
16968         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16969         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16970         expand_expr_stmt_value.
16971         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16972         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16973         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16974         as maybe_last to expand_expr_stmt_value.
16975
16976 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16977
16978         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16979         be passed in, do not build it.
16980         (c_begin_if_stmt): New function.
16981         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16982         * c-common.h (c_expand_start_cond): Update prototype.
16983         (c_begin_if_stmt): Prototype new function.
16984         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16985         * c-parse.in (if_prefix): Use c_begin_if_stmt,
16986         c_begin_while_stmt and c_finish_while_stmt_cond.
16987
16988 2002-01-04  William Cohen  <wcohen@redhat.com>
16989
16990         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16991         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16992         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16993         * config/pa/som.h (ASM_FILE_START): Likewise.
16994
16995 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
16996
16997         * lcm.c: Include df.h.
16998         Add available_transfer_function prototype.
16999         (compute_available): Rework to use iterative dataflow framework.
17000         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
17001         with bb_info in df.h
17002         (available_transfer_function): New function.
17003
17004         * Makefile.in (lcm.o): add df.h to dependencies.
17005
17006 2002-01-04  Richard Henderson  <rth@redhat.com>
17007
17008         * config/alpha/alpha.c (some_operand): Accept HIGH.
17009         (input_operand): Likewise; accept simple references to globals.
17010         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
17011         (alpha_const_double_ok_for_letter_p): Likewise.
17012         (alpha_extra_constraint): Likewise.
17013         (alpha_preferred_reload_class): Likewise.  Do not force
17014         symbolic constants to memory.
17015         (alpha_legitimate_address_p): Accept simple references
17016         to small_symbolic_operand.
17017         (alpha_legitimize_address): New arg scratch.  Be prepared to be
17018         called when no_new_pseudos.  Emit simple symbolic references.
17019         Split integers into low, high, and rest.
17020         (alpha_expand_mov): Use alpha_legitimize_address.
17021         (some_small_symbolic_mem_operand): New.
17022         (split_small_symbolic_mem_operand): New.
17023         * config/alpha/alpha-protos.h: Update.
17024         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
17025         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
17026         (EXTRA_CONSTRAINT): Likewise.
17027         (PREFERRED_RELOAD_CLASS): Likewise.
17028         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
17029         (PREDICATE_CODES): Update.
17030         * config/alpha/alpha.md: New post-reload splitters to convert
17031         simplfied symbolic operands to the form that references $29.
17032         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
17033         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
17034
17035 2002-01-03  Richard Henderson  <rth@redhat.com>
17036
17037         * local-alloc.c (function_invariant_p): Update commentary.
17038
17039 2002-01-04  H.J. Lu <hjl@gnu.org>
17040
17041         * toplev.c (rest_of_compilation): Fix a typo when calling
17042         cleanup_cfg.
17043
17044 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17045
17046         * c-common.c: Fix formatting.
17047         * diagnostic.c: Likewise.
17048         * doloop.c: Likewise.
17049         * dwarf2out.c: Likewise.
17050
17051 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17052
17053         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
17054         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
17055
17056 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
17057
17058         * cpperror.c: Update comments and copyright.
17059         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
17060         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
17061
17062 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17063
17064         * collect2.c (main): Use strcmp when testing for "-shared".
17065
17066 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
17067
17068         * cppmacro.c: Don't include intl.h.  Update comments.
17069         (new_number_token): Allocate enough buffer for 64-bit unsigned
17070         integers; update prototype.
17071         * cppmain.c: Update comments.
17072
17073 2002-01-03  William Cohen  <wcohen@redhat.com>
17074
17075         * function.h (struct function): Add profile.
17076         (current_function_profile): New.
17077         doc/extend.texi: Update documentation.
17078         * final.c (final_start_function): Use current_function_profile
17079         instead of profile_flag.
17080         (profile_after_prologue): Likewise.
17081         * function.c (expand_function_start): Likewise.
17082         (expand_function_start): Likewise.
17083         * config/alpha/alpha.c (direct_call_operand):
17084         (alpha_does_function_need_gp): Likewise.
17085         (alpha_expand_prologue): Likewise.
17086         * config/arm/arm.c (arm_expand_prologue): Likewise.
17087         thumb_expand_prologue: Likewise.
17088         * config/d30v/d30v.c (d30v_stack_info): Likewise.
17089         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
17090         (fr30_expand_prologue): Likewise.
17091         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
17092         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
17093         * config/i386/i386.h (FINALIZE_PIC): Likewise.
17094         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
17095         * config/i960/i960.c (i960_output_function_prologue): Likewise.
17096         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
17097         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
17098         (m32r_expand_prologue): Likewise.
17099         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
17100         (m88k_expand_prologue): Likewise.
17101         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
17102         * config/mips/mips.c (compute_frame_size): Likewise.
17103         (mips_expand_prologue): Likewise.
17104         (mips_can_use_return_insn): Likewise.
17105         * config/pa/elf.h (ASM_FILE_START): Likewise.
17106         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17107         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17108         * config/pa/som.h (ASM_FILE_START): Likewise.
17109         * config/romp/romp.c (romp_using_r14): Likewise.
17110         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
17111         (rs6000_stack_info): Likewise.
17112         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17113         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
17114         * config/v850/v850.c (compute_register_save_size): Likewise.
17115
17116 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
17117
17118         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
17119         gen_lowpart_common fails, use gen_lowpart_SUBREG.
17120
17121 2002-01-03  Turly O'Connor  <turly@apple.com>
17122
17123         * darwin.c (machopic_output_possible_stub_label): Don't generate
17124         stub routines for pseudo-stubs which we've just defined.
17125
17126 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17127
17128         * builtins.c: Fix formatting.
17129         * c-typeck.c: Likewise.
17130         * combine.c: Likewise.
17131         * expr.c: Likewise.
17132         * loop.c: Likewise.
17133
17134 2002-01-03  Andreas Schwab  <schwab@suse.de>
17135
17136         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
17137         and return true if _cpp_push_next_buffer pushed a new include
17138         file.
17139         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
17140         _cpp_pop_file_buffer did not push a new file.
17141         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
17142
17143 2002-01-02  Eric Christopher  <echristo@redhat.com>
17144
17145         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
17146         FIND_REG_INC_NOTE call. Update copyright.
17147         * loop.c (canonicalize_condition): Ditto.
17148         * reorg.c (delete_scheduled_jump): Ditto.
17149
17150 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17151
17152         * gcse.c: Fix formatting.
17153
17154 2002-01-03  Graham Stott  <grahams@redhat.com>
17155
17156         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
17157         forward defs for struct tags rtx_def, union_tree, rtvec_def
17158         also output corresponding typedefs for rtx, tree, and rtvec.
17159
17160         * system.h: Move forward defs for struct tags rtx_def, union_tree,
17161         rtvec_def along with corresponding typedefs for rtx, tree, and
17162         rtvec to config.h, hconfig.h, tconfig.h.
17163
17164 2002-01-03  Graham Stott  <grahams@redhat.com>
17165
17166         * tree.h: Update copyright date.
17167         (IS_EXPR_CODE_CLASS): Add parenthesis.
17168         (TREE_SET_CODE): Add whitespace.
17169         (TREE_CHECK): Add parenthesis.
17170         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
17171         (CST_OR_CONSTRUCTOR_CHECK):
17172         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
17173         (TREE_SYMBOL_REFERENCED): Whitespace.
17174         (INT_CST_LT): Likewise.
17175         (INT_CST_LT_UNSIGNED): Likewise.
17176         (tree_real_cst): Unwrap comment.
17177         (tree_string): Likewise.
17178         (tree_complex): Likewise.
17179         (IDENTIFIER_POINTER): correct cast.
17180         (SAVE_EXPR_CONTEXT): Whitespace.
17181         (EXPR_WFL_FILENAME_NODE): Likewise.
17182         (EXPR_WFL_FILENAME): Remove parenthesis.
17183         (DECL_ORIGIN): Add parenthesis.
17184         (DECL_FROM_INLINE): Use NULL_TREE.
17185         (build_int_2): Whitespace.
17186         (build_type_variant): Add parenthesis.
17187
17188         * gcc/jcf-parse.c: Update copyright date.
17189         (yyparse): Constify resource_filename.
17190
17191 2002-01-03  Graham Stott  <grahams@redhat.com>
17192
17193         * rtl.h: Update copyright date.
17194         (RTL_CHECK1): Wrap long line.
17195         (RTL_CHECK2): Likewise.
17196         (RTL_CHECKC1): Wrap long line and whitespace.
17197         (RTL_CHECKC2): Likewise.
17198         (XWINT): Whitespace.
17199         (XINT): Likewise.
17200         (XSTR): Likewise.
17201         (XEXP): Likewise.
17202         (XVEC): Likewise.
17203         (XMODE): Likewise.
17204         (XBITMAP): Likewise.
17205         (XTREE): Likewise.
17206         (XBBDEF): Likewise.
17207         (XTMPL): Likewise.
17208         (X0WINT): Likewise.
17209         (X0INT):Likewise.
17210         (X0UINT): Likewise.
17211         (X0STR): Likewise.
17212         (X0EXP): Likewise.
17213         (X0VEC): Likewise.
17214         (X0MODE): Likewise.
17215         (X0BITMAP): Likewise.
17216         (X0TREE): Likewise.
17217         (X0BBDEF): Likewise.
17218         (X0ADVFLAGS): Likewise.
17219         (X0CSELIB): Likewise.
17220         (X0MEMATTR): Likewise.
17221         (XCWINT): Likewise.
17222         (XCINT): Likewise.
17223         (XCUINT): Likewise.
17224         (XCSTR): Likewise.
17225         (XCEXP): Likewise.
17226         (XCVEC): Likewise.
17227         (XCMODE): Likewise.
17228         (XCBITMAP): Likewise.
17229         (XCTREE): Likewise.
17230         (XCBBDEF): Likewise.
17231         (XCADVFLAGS): Likewise.
17232         (XCCSELIB): Likewise.
17233         (XC2EXP): Likewise.
17234         (INSN_UID): Likewise.
17235         (PREV_INSN): Likewise.
17236         (PATTERN): Likewise.
17237         (INSN_CODE): Likewise.
17238         (PUT_REG_NOTE_KIND): Likewise.
17239         (CODE_LABEL_NUMBER): Likewise.
17240         (NOTE_SOURCE_FILE): Likewise.
17241         (NOTE_BLOCK): Likewise.
17242         (NOTE_EH_HANDLER): Likewise.
17243         (NOTE_RANGE_INFO): Likewise.
17244         (NOTE_LIVE_INFO): Likewise.
17245         (NOTE_BASIC_BLOCK): Likewise.
17246         (NOTE_EXPECTED_VALUE): Likewise.
17247         (NOTE_LINE_NUMBER): Likewise.
17248         (LABEL_NAME): Likewise.
17249         (LABEL_NUSES): Likewise.
17250         (LABEL_ALTERNATE_NAME): Likewise.
17251         (ADDRESSOF_DECL): Likewise.
17252         (JUMP_LABEL): Likewise.
17253         (LABEL_NEXTREF): Likewise.
17254         (REGNO): Likewise.
17255         (ORIGINAL_REGNO: Likewise.
17256         (HARD_REGISTER_NUM_P): Add parenthesis.
17257         (SUBREG_REG): Whitespace.
17258         (SUBREG_BYTE): Likewise.
17259         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17260         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17261         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17262         (ASM_OPERANDS_INPUT_VEC): Likewise.
17263         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17264         (ASM_OPERANDS_INPUT): Likewise.
17265         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17266         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17267         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17268         (ASM_OPERANDS_INPUT_MODE): Likewise.
17269         (ASM_OPERANDS_SOURCE_FILE): Likewise.
17270         (ASM_OPERANDS_SOURCE_LINE): Likewise.
17271         (MEM_SET_IN_STRUCT_P): Minor reformat.
17272         (TRAP_CONDITION): Whitespace.
17273         (TRAP_CODE): Likewise.
17274         (COND_EXEC_TEST): Likewise.
17275         (COND_EXEC_CODE): Likewise.
17276         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17277         (PHI_NODE_P): Add parenthesis.
17278         (plus_constant): Whitespace and add parenthesis.
17279
17280 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17281
17282         * config/avr/avr.c: Fix comment typos.
17283         * config/c4x/c4x.md: Likewise.
17284         * config/dsp16xx/dsp16xx.h: Likewise.
17285         * config/dsp16xx/dsp16xx.md: Likewise.
17286         * config/i386/i386.md: Likewise.
17287         * config/ia64/ia64.c: Likewise.
17288         * config/m32r/m32r.h: Likewise.
17289         * config/m68hc11/m68hc11.md: Likewise.
17290         * config/mmix/mmix.c: Likewise.
17291         * config/mn10200/mn10200.c: Likewise.
17292         * config/romp/romp.c: Likewise.
17293         * config/sh/sh.c: Likewise.
17294         * config/stormy16/stormy16.c: Likewise.
17295         * config/stormy16/stormy16.h: Likewise.
17296         * config/stormy16/stormy16.md: Likewise.
17297
17298 2002-01-03  Graham Stott  <grahams@redhat.com>
17299
17300         * loop.h: Update copyright date.
17301         (LOOP_MOVABLES): Fix typo.
17302         (LOOP_REGS): Likewise.
17303         (LOOP_IVS): Likewise.
17304
17305 2002-01-03  Graham Stott  <grahams@redhat.com>
17306
17307         * cppinit.c: Update copyright date.
17308         Don't include output.h
17309         * Makefile.in: Update copyright date.
17310         Update dependency.
17311
17312 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17313
17314         PR c/5226
17315         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17316         (-pthread) Add to RS/6000 options.
17317
17318 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17319
17320         * except.c: Fix comment typos.
17321         * loop.c: Likewise.
17322         * varasm.c: Likewise.
17323         * doc/tm.texi: Fix a typo.
17324
17325 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
17326
17327         * c-typeck.c (output_init_element): Allow initializing static storage
17328         duration objects with compound literals.
17329
17330 2002-01-02  Richard Henderson  <rth@redhat.com>
17331
17332         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17333         after abusing it.
17334
17335 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17336
17337         * gcc.c (default_compilers): Const-ify.
17338         * mips-tdump.c (stab_names): Likewise.
17339         * mips-tfile.c (map_coff_types, map_coff_storage,
17340         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17341         pseudo_ops_t, pseudo_ops): Likewise.
17342         * protoize.c (default_include): Likewise
17343
17344         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17345         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17346         Add array size in declaration.
17347         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17348         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17349         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17350         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17351         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17352         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17353         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17354         emtens, make_nan): Const-ify.
17355         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17356         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17357
17358 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
17359
17360         * config.gcc (ia64-*-*): Set extra_headers.
17361         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
17362         * config/alpha/t-osf: Remove.
17363         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17364
17365 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
17366
17367         * config/rs6000/t-aix43: Revert previous change.
17368
17369 2002-01-02  Jason Merrill  <jason@redhat.com>
17370
17371         * c-decl.c (c_expand_body): Call outlining_inline_function when
17372         emitting an inline function out of line.
17373
17374 2002-01-02  Richard Henderson  <rth@redhat.com>
17375
17376         * dwarf2out.c (limbo_die_node): Add created_for member.
17377         (new_die): New argument created_for.  Update all callers.
17378         (mark_limbo_die_list): New.
17379         (dwarf2out_init): Register limbo_die_list as a root.
17380         (dwarf2out_finish): Force insert limbo dies into their function
17381         context.
17382
17383 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
17384
17385         PR c++/5089
17386         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17387
17388 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17389
17390         * config/h8300/fixunssfsi.c: Update copyright.
17391         Fix comment typos.
17392         Fix formatting.
17393         * config/h8300/h8300.c: Update copyright.
17394         Eliminate warnings.
17395
17396 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17397
17398         * config/romp/romp.c: Fix comment formatting.
17399         * config/romp/romp.h: Likewise.
17400         * config/romp/romp.md: Likewise.
17401         * config/s390/s390.c: Likewise.
17402         * config/stormy16/stormy16.c: Likewise.
17403         * config/stormy16/stormy16.h: Likewise.
17404
17405 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
17406
17407         * c-common.h (genrtl_expr_stmt_value): Declare.
17408         * c-semantics.c (genrtl_goto_stmt): Redirect to...
17409         (genrtl_goto_stmt_value): ... this new function.  Pass new
17410         argument down to expand_expr_stmt_value, taking
17411         TREE_ADDRESSABLE into account.
17412         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17413         STMT_EXPR as addressable, i.e., one whose result we want.
17414         * expr.c (expand_expr): Don't save expression statement value
17415         of labeled_blocks or loop_exprs.
17416         * stmt.c (expand_expr_stmt): Redirect to...
17417         (expand_expr_stmt_value): ... this new function.  Use new
17418         argument to tell whether to save expression value.
17419         (expand_end_stmt_expr): Reset last_expr_type and
17420         last_expr_value if we don't have either.
17421         * tree-inline.c (declare_return_variable): Mark its use
17422         statement as addressable.
17423         * tree.h: Document new use of TREE_ADDRESSABLE.
17424         (expand_expr_stmt_value): Declare.
17425
17426 2002-01-01  Tom Rix  <trix@redhat.com>
17427
17428         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17429         rs6000_emit_allocate_stack.
17430
17431 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
17432
17433         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17434         ${srcdir}/ginclude/ to every entry in extra_headers.
17435         * configure: Regenerate.
17436         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17437         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17438         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17439         * ginclude/proto.h: Rename to config/convex/proto.h.
17440
17441 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17442
17443         * attribs.c (handle_vector_size_attribute): Use host_integerp
17444         and tree_int_cst; remove warnings.
17445         * caller-save.c (insert_restore): Add cast to get rid of warning.
17446         (insert_save): Likewise.
17447         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17448         * regmove.c (find_matches): Add temporary var to kill a warning.
17449
17450 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
17451
17452         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17453         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17454         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17455         (vms-dwarf2eh.o): Add Makefile rule.
17456         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17457         * config/alpha/vms-dwarf2eh.asm: New file.
17458
17459         * gcc.c (delete_if_ordinary): Delete all versions.
17460
17461 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
17462
17463         * config/mmix/mmix.md: Update FIXME to not mention
17464         define_constants.
17465         (MMIX_rJ_REGNUM): New define_constants constant.
17466         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17467         "*movdicc_real"): Adjust contraints formatting.
17468         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17469         for branch prediction.
17470         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17471         output template.
17472         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17473         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17474         number.  Delete related FIXMEs.
17475         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17476         from number to MMIX_rJ_REGNUM.
17477         (TARGET_MASK_BRANCH_PREDICT): New.
17478         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17479         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
17480         value.  Add -mbranch-predict and -mno-branch-predict.
17481         (TARGET_VERSION): Drop date.
17482         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17483         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17484         for finding out global symbols.
17485         (mmix_asm_output_labelref): Revert condition for global symbol.
17486         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17487         (mmix_print_operand_punct_valid_p): A '+' is valid.
17488
17489 See ChangeLog.6 for earlier changes.