OSDN Git Service

* alias.c (nonoverlapping_memrefs_p): Fix off by one error.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
2
3         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
4
5 2002-06-03  Roger Sayle  <roger@eyesopen.com>
6
7         * gcse.c (cprop_jump): Use single_set to get the pattern
8         from the setcc argument.
9
10 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
11
12         * diagnostic.h (diagnostic_count): Move from output_buffer to 
13         diagnostic_context.
14         (diagnostic_kind_count): Adjust definition.
15
16 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
17
18         * except.c (except.c): Do not rebuild CFG.
19         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
20         optimization.
21
22 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
23
24         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
25         * toplev.c: Include cfglahout.h
26         * Makefile.in (toplev.c): Add dependnecy.
27
28 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
29
30         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
31         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
32         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
33
34 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
35
36         * config/ns32k/netbsd.h: Update copyright years.
37         (TARGET_OS_CPP_BUILTINS): Define.
38         (CPP_PREDEFINES): Remove.
39         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
40         (TARGET_CPU_CPP_BUILTINS): Define.
41
42 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
43
44         * emit-rtl.c: Likewise.
45         * errors.h: Likewise.
46         * except.c: Likewise.
47         * explow.c: Likewise.
48         * expmed.c: Likewise.
49         * expr.c: Likewise.
50         * expr.h: Likewise.
51
52 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
53
54         * config/h8300/elf.h: Fix formatting.
55         * config/h8300/rtems.h: Likewise.
56
57 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
58
59         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
60
61 2002-06-02  Tom Tromey  <tromey@redhat.com>
62
63         * fixinc/fixincl.x: Rebuilt.
64         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
65
66 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
67
68 config/i370:
69         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
70         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
71         * mvs.h: Similarly.
72         * oe.h: Similarly.
73
74 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
75
76         * final.c (final):  Allow notes to not have computed addresses;
77         kill no longer needed STACK_REGS ifdef.
78
79 2002-06-02  Richard Henderson  <rth@redhat.com>
80
81         * gcse.c (bypass_conditional_jumps): Fix typo last change.
82
83 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
84
85         * loop.c (emit_prefetch_instructions): Properly place the address
86         computation.
87
88 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
89
90         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
91         (set_block_for_insn): Turn into macro.
92         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
93         * cfglayout.c (insn_scopes): Kill.
94         (scope_to_insns_initialize): Do not use insn_scopes.
95         (scope_to_insns_finalize): Likewise.
96         (duplicate_insn_chain): Likewise.
97         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
98         * cfgrtl.c (basic_block_for_insn): Kill.
99         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
100         (create_basic_block_structure): Use reorder_insns.
101         (compute_bb_for_insn): Do not use basic_block_for_insn.
102         (merge_blocks_nomove): Likewise.
103         (update_bb_for_insn): Likewise.
104         (verify_flow_info): Likewise.
105         (set_block_for_insn): Kill.
106         * combine.c (try_combine): Update gen_rtx_INSN call.
107         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
108         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
109         scopes and BBs.
110         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
111         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
112         Clear BB.
113         (emit_insns_after): Simplify.
114         (emit_copy_of_insn_after): Copy scope.
115         * final.c (final_start_function): Lower scopes.
116         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
117         * integrate.c (copy_insn_list): Cope scopes.
118         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
119         * loop.c (loop_optimize): Do not care block notes.
120         * print-rtl.c (print_rtx): Print BB.
121         * recog.c (apply_change_group): Simplify.
122         * rtl.c (copy_rtx): Handle 'B'.
123         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
124         * rtl.h (Field accessors): Update indexes.
125         * sched-ebb.c (schedule_ebbs): Do not lower notes.
126         * sched-rgn.c (schedule_insns): Likewise.
127         * toplev.c (rest_of_compilation): Lower notes.
128         * unroll.c (unroll_loop): Do not care scoping notes.
129         (copy_loop_body): Copy scopes.
130
131 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
132
133 config/h8300:
134         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
135         SUBTARGET_SPEC.
136         * rtems.h: Similarly.
137         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
138         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
139         (TARGET_CPU_CPP_BUILTINS): Use.
140
141 2002-06-02  Richard Henderson  <rth@redhat.com>
142
143         * alias.c: Include target.h.
144         (mark_constant_function): Use targetm.binds_local_p instead
145         of checking TREE_PUBLIC ourselves.
146         * Makefile.in (alias.o): Add TARGET_H.
147
148 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
149
150         * c-lex.c: Update copyright and file description.
151
152 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
153
154         * config/fr30/fr30.h: Update to new CPP macros.
155
156 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
157
158         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
159
160 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
161             Zack Weinberg <zack@codesourcery.com>
162
163         * c-common.c (c_common_init): Override cpplib's default
164         warn_long_long setting.
165         * c-lex.c (lex_number): Replace with interpret_integer,
166         interpret_float, narrowest_unsigned_type and
167         narrowest_signed_type, taking advantage of the new
168         cpplib functionality.
169         * cpperror.c (_cpp_begin_message): If a warning is turned
170         into an error, avoid printing "warning:".
171         * cppexp.c (cpp_num_sign_extend): New.
172         * cppinit.c: Update comment.
173         * cpplib.h (cpp_num_sign_extend): New.
174         * tree.h: Update comment.
175
176 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
177
178         * diagnostic.h (struct diagnostic_context):  Add new member
179         internal_error. 
180         (internal_error_function): Remove declaration.
181         * diagnostic.c (internal_error_function): Remove definition..
182         (internal_error): Adjust use.
183
184 2002-06-02  Richard Henderson  <rth@redhat.com>
185
186         * rtl.h (CC0_P): New.
187         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
188         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
189         (bypass_block): Save old dest block for dump text.
190         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
191         Allow only true SET insns, not single_set.
192
193 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
194
195         * diagnostic.c (diagnostic_finish): Rename to output_flush.
196         (clear_disgnostic_info): Rename to output_clear_data.  Use false
197         instead of 0 for boolean value.
198         Adjust function call throughout.
199
200 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
201
202         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
203         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
204
205 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
206
207         * d30v.h (CPP_PREDEFINES): Replace with
208         (TARGET_CPU_CPP_BUILTINS): New.
209
210 2002-06-02  Roger Sayle  <roger@eyesopen.com>
211
212         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
213
214 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
215
216         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
217
218 2002-06-02  Richard Henderson  <rth@redhat.com>
219
220         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
221
222 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
223
224         Support for C++ constructors/destructors.
225         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
226         instead of looping if main() returns.
227         (asm_file_start): Output global symbols that cause .data and .bss
228         initialization code to be linked in, unconditionally for now.
229         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
230         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
231         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
232         (LIBSTDCXX): New.
233         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
234         (__tablejump__): New.
235         (__do_copy_data, __do_clear_bss): New.
236         (__do_global_ctors, __do_global_dtors): New.
237         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
238         _ctors, _dtors.
239
240 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
241
242         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
243         (CPP_SPEC, CPP_PREDEFINES): Kill.
244         * c4x/rtems.h (CPP_PREDEFINES): Kill.
245         (TARGET_OS_CPP_BUILTINS): New.
246
247 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
248
249         * Makefile.in (tracer.o): New.
250         * params.def (TRACER_*): New options.
251         * rtl.h (tracer): Declare.
252         * timevar.def (TV_TRACER): New.
253         * toplev.c (dump_file_index): Add DFI_tracer.
254         (dump_file_info): Add tracer.
255         (flag_tracer): New.
256         (lang_indepdenent_options): Add tracer.
257         (rest_of_compilation): Call tracer.
258         * tracer.c: New file.
259         * invoke.texi (-ftracer): Document.
260         (--param tracer-*): Document.
261
262 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
263
264         * tree-inline.c (expand_call_inline): Make the statement
265         expression we generate have a COMPOUND_STMT.    
266
267 2002-06-01  Roger Sayle  <roger@eyesopen.com>
268
269         * gcse.c (cprop_cc0_jump): Function deleted.
270         (cprop_jump): Take an additional argument which is the possibly
271         NULL cc setting insn immediately before the conditional jump.
272         When a MODE_CC set is present, substitute it into the JUMP_INSN
273         before attempting the constant propagation.
274         (cprop_insn):  Recognize cc setters followed by conditional jumps
275         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
276         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
277         (find_bypass_set): New function based upon find_avail_set used by
278         cprop, but finds constant expressions available at the end of
279         basic blocks.
280         (bypass_block): New function.  Given a basic block that begins
281         with a conditional jump and multiple incoming edges, perform
282         the jump bypass optimization.
283         (bypass_conditional_jumps): New function.  Call bypass_block with
284         each suitable basic block in the CFG using a simple single pass.
285
286 2002-06-01  Roger Sayle  <roger@eyesopen.com>
287
288         * tree.c (real_minus_onep): New function to test for -1.0.
289         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
290
291 2002-06-01  Roger Sayle  <roger@eyesopen.com>
292
293         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
294         and "!p && !q" into "(p|q) == 0" under suitable conditions.
295
296 2002-06-01  Andreas Jaeger  <aj@suse.de>
297
298         * cppexp.c (cpp_classify_number): Cast precission to int for
299         correct printf format.
300
301 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
302
303         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
304         expected, but don't really exist: atmega83, atmega85, attiny10.
305         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
306         emulations for all devices.
307         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
308         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
309
310 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
311
312         * config/h8300/h8300-protos.h: Add a prototype for
313         h8300_shift_needs_scratch_p.
314         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
315         * config/h8300/h8300.h (OK_FOR_R): New.
316         (OK_FOR_S): Likewise.
317         (OK_FOR_T): Likewise.
318         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
319         * config/h8300/h8300.md (anonymous shift patterns): Use
320         constraints R, S, and T.
321
322 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
323
324         * basic-block.h (struct basic_block_def): New field loop_father.
325         (BB_VISITED): New flag.
326         (struct loop): New field pred, removed field shared.
327         (struct loops): New field parray.
328         (LOOP_EXITS_DOMS): Removed.
329         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
330         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
331         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
332         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
333         verify_loop_structure): Declare.
334         * cfg.c (entry_exit_blocks): Initialize loop_father field.
335         * cfganal.c (dfs_enumerate_from): New function.
336         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
337         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
338         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
339         flow_loop_dump, flow_loops_dump, flow_loops_free,
340         flow_loop_tree_node_add, flow_loop_level_compute,
341         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
342         flow_loop_outside_edge_p): Modified for new infrastructure.
343         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
344         redirect_edge_with_latch_update, flow_loop_free): New static functions.
345         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
346         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
347         find_common_loop, verify_loop_structure, loop_latch_edge,
348         loop_preheader_edge): New functions.
349         (flow_loops_cfg_dump): Do not show dominators, as this information
350         does not remain up to date long.
351         (flow_loops_find): Store results in new format.
352         * predict.c (propagate_freq, estimate_probability,
353         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
354         infrastructure.
355
356 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
357
358         * except.c (nothrow_function_p): Walk epilogue delay list
359         checking the insn, not the chain for potential throws.
360
361 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
362
363         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
364         (install): Refer to install-cpp directly.
365         (uninstall-cpp): Folded into uninstall rule.
366         * configure.in: Delete all code relating to --disable-cpp.
367         * configure: Regenerate.
368         * config/t-install-cpp: Delete.
369
370 2002-05-31  Richard Henderson  <rth@redhat.com>
371
372         * configure.in (HAVE_AS_TLS): Add alpha tests.
373         * configure: Rebuild.
374         * config/alpha/alpha.c (TARGET_AS_TLS): New.
375         (alpha_tls_size, alpha_tls_size_string): New.
376         (overide_options): Set it.  Always install machine_status hooks.
377         (input_operand): Accept got tls predicates.
378         (local_symbol_p): Merge into ...
379         (local_symbolic_operand): ... here.  Reject tls symbols.
380         (global_symbolic_operand): Likewise.
381         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
382         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
383         (tp16_symbolic_operand, tp32_symbolic_operand): New.
384         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
385         (alpha_encode_section_info): Handle TLS symbols.
386         (alpha_strip_name_encoding): Likewise.
387         (alpha_legitimate_address_p): Likewise.
388         (alpha_legitimize_address): Likewise.
389         (alpha_expand_mov): Early exit to avoid nop moves.
390         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
391         (alpha_init_machine_status, alpha_mark_machine_status,
392         alpha_free_machine_status): Always define.
393         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
394         (print_operand, print_operand_address): Add TLS relocs.
395         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
396         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
397         (TARGET_SWITCHES): Add -mtls-kernel.
398         (alpha_tls_size, alpha_tls_size_string): New.
399         (TARGET_OPTIONS): Add -mtls-size=.
400         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
401         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
402         (ASM_OUTPUT_LABELREF): Skip %.
403         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
404         (PREDICATE_CODES): Update.
405         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
406         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
407         UNSPEC_TP, UNSPECV_SET_TP): New.
408         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
409         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
410         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
411         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
412         (call_value_osf_2_er): Accept anything as op4.
413         * config/alpha/alpha-protos.h: Update.
414         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
415
416 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
417
418         * cppinit.c (append_include_chain): Always pay attention to
419         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
420         marker on argument.
421
422 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
423
424         * target.h: Fix formatting.
425         * timevar.h: Likewise.
426         * tlink.c: Likewise.
427         * toplev.c: Likewise.
428         * toplev.h: Likewise.
429         * tree.c: Likewise.
430         * tree-dump.h: Likewise.
431         * tree.h: Likewise.
432         * tree-inline.h: Likewise.
433         * unroll.c: Likewise.
434         * unwind-dw2.c: Likewise.
435         * unwind-dw2-fde.c: Likewise.
436         * unwind-dw2-fde-glibc.c: Likewise.
437         * unwind-dw2-fde.h: Likewise.
438         * unwind.h: Likewise.
439         * unwind-sjlj.c: Likewise.
440         * varasm.c: Likewise.
441         * varray.h: Likewise.
442         * vmsdbg.h: Likewise.
443         * vmsdbgout.c: Likewise.
444         * xcoffout.h: Likewise.
445
446 2002-05-31  Igor Shevlyakov <igor@microunity.com>
447
448         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
449         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
450
451 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
452
453         * gcc.c (cpp_unique_options): Remove "-d" options.
454         (cpp_debug_options): New spec string.
455         (default_compilers): Use it.
456         * objc/lang-specs.h: Likewise.
457
458 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
459
460         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
461         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
462         * gcc/mklibgcc.in: Likewise.
463         * gcc/config/arc/t-arc: Likewise.
464         * gcc/configure.in: Likewise.
465         * gcc/configure: Regenerate.
466
467 2002-05-31  Stan Shebs  <shebs@apple.com>
468             Turly O'Connor  <turly@apple.com>
469
470         * c-decl.c (struct binding_level): Change int field n_incomplete
471         to tree list incomplete_list.
472         (clear_binding_level): Init field with NULL.
473         (pushdecl): Add incomplete type to list.
474         (mark_binding_level): Mark the incomplete list.
475         (finish_struct): Scan the incomplete list for types instead
476         of all decls in the current binding level.
477
478 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
479
480         * pa.c (output_millicode_call): Add missing '%' characters.
481         (output_call): Likewise.
482
483 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
484
485         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
486         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
487
488 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
489
490         * varasm.c (mark_constant_pool): Walk epilogue delay list
491         checking the insn, not the chain for potential constants.
492
493 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
494
495         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
496
497 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
498
499         * i386.c (classify_argument): Properly handle base types.
500
501         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
502         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
503         registers.
504
505 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
506
507         * gcse.c (gcse_emit_move_after): New.
508         (pre_delete, hoist_store): Use it.
509
510         * reload1.c (emit_input_reload_insns): Use constrain_operands
511         instead of constraint_accepts_reg_p to verify optimization.
512         (constraint_accepts_reg_p): Kill
513
514         * reload1.c (reload_cse_delete_noop_set): Kill.
515         (reload_cse_simplify): use delte_insn_and_edges.
516
517 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
518
519         * cfgloop.c (flow_loops_find): Initialize first and last fields
520         correctly.
521
522 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
523
524         * c-common.c (builtin_define_std): Correct logic.
525
526 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
527
528         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
529         (output_call): Likewise.
530
531 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
532
533         * pa.c: Move output.h include after tree.h include.
534         (pa_asm_output_mi_thunk): Constify identifier lab.
535
536 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
537
538         * config/ns32k/ns32k.h: Define named constants for the
539         bits in target_flags and use them.
540         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
541
542 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
543
544         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
545         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
546         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
547         default scheduling model.
548         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
549         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
550         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
551         * doc/install.texi (hppa*-*-*): Document default scheduling.
552
553 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
554
555         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
556
557 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
558
559         * config.gcc (ns32k-*-netbsd*): Set tm_file to
560         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
561         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
562         netbsd.h, or netbsd-aout.h.
563
564 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
565
566         * longlong.h (count_trailing_zeros): Add missing \, and clean up
567         whitespace in __ns32000__ case.
568
569 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
570
571         * expr.c (expand_expr): Output partially zeroed out vectors with
572         output_constant_def.
573
574 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
575
576         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
577         (sh-*-netbsdelf*)
578         (shl*-*-netbsdelf*): New targets.
579         * config/sh/netbsd-elf.h: New file.
580         * config/sh/t-netbsd: New file.
581
582 2002-05-30  Richard Henderson  <rth@redhat.com>
583             Eric Botcazou  <ebotcazou@multimania.com>
584
585         PR optimization/6822
586         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
587         to unsigned int for op1 comparisons.  Use gen_int_mode.
588
589 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
590
591         * expmed.c (const_mult_add_overflow_p): New.
592         * expr.h: Declare it.
593         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
594         Don't eliminate the biv if the giv has a constant multiplier and
595         the rhs argument of the comparison does satisfy the predicate.
596         Use expand_mult_add to compute the replacement constant.
597
598 2002-05-30  Osku Salerma  <osku@iki.fi>
599
600         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
601         (c_common_get_alias_set): Handle it.
602         * doc/extend.texi: Document it.
603
604 2002-05-30  Richard Henderson  <rth@redhat.com>
605
606         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
607         * toplev.c (process_options): Don't check it.
608         * doc/tm.texi: Don't document it.
609         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
610         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
611         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
612         frame pointer optimization if current_function_profile.
613
614 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
615
616         * langhooks.c: Fix formatting.
617         * langhooks.h: Likewise.
618         * lcm.c: Likewise.
619         * libgcc2.c: Likewise.
620         * lists.c: Likewise.
621         * local-alloc.c: Likewise.
622         * loop.c: Likewise.
623         * loop.h: Likewise.
624
625 2002-05-30  Marc Espie <espie@openbsd.org>
626
627         * config.gcc (sparc64-*-openbsd*): New.
628         * config/sparc/openbsd1-64.h: New.
629         * config/sparc/openbsd64.h: New.
630
631 2002-05-30  Jeff Law <law@redhat.com>
632
633         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
634         a dead insn with a REG_RETVAL note when the entire libcall is not
635         dead and remove the associated REG_LIBCALL note at the same time.
636
637 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
638
639         * lcm.c (output.h): #include.
640         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
641         as an ordinary block.
642         (optimize_mode_switching): Don't pretend that the exit block is
643         an ordinary block, or handle sucessors of entry block specially.
644         Instead, split edges from entry block and to exit block, and
645         put a computing definition on the thus gained post-entry-block,
646         and a need on the pre-exit-block.
647
648 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
649
650         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
651         * rtl.texi: Document 'B'
652
653 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
654
655         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
656         at run-time.
657         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
658
659 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
660
661         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
662         const0_rtx instead of NULL_RTX when in error.
663         (altivec_expand_abs_builtin): Same.
664         (rs6000_expand_binop_builtin): Same.
665         (altivec_expand_predicate_builtin): Same.
666         (altivec_expand_stv_builtin): Same.
667         (rs6000_expand_ternop_builtin): Same.
668         (altivec_expand_builtin): Same.
669
670 2002-05-29  David S. Miller  <davem@redhat.com>
671
672         * rtl.h (clear_emit_caches): Delete.
673         * integrate.c (output_inline_function): Don't call it.
674         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
675         (clear_emit_caches): Delete definition.
676         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
677
678 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
679
680         * config/mmix/mmix.c: Include real.h.
681         (mmix_constant_address_p): Remove redundant test before switch.
682
683 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
684
685         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
686         only if not already defined.
687
688 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
689
690         * config/h8300/h8300-protos.h: Remove prototypes for
691         ok_for_bclr and small_power_of_two.
692         * config/h8300/h8300.c (small_power_of_two): Remove.
693         (ok_for_blcr): Likewise.
694         (fix_bit_operand): Make WHAT deal with an integer instead of a
695         constraint character.
696         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
697         (CONST_OK_FOR_P): Likewise.
698         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
699         CONST_OK_FOR_P any more.
700         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
701         of fix_bit_operand.
702         (iorqi3): Likewise.
703         (xorqi3): Likewise.
704
705 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
706
707         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
708         (CPP_PREDEFINES): Make sure this is undefined.
709         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
710         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
711         or -U__MIPSEB__ before defining one or the other.  Instead,
712         use %(subtarget_endian_default) if neither -EB nor -EL are
713         specified.
714         (SUBTARGET_EXTRA_SPECS): Define.
715         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
716         %(netbsd_cpp_spec).
717
718 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
719
720         * doc/md.texi (Patterns): Note pattern condition pitfall
721         for unnamed insn.
722
723 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
724
725         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
726         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
727         ternary operations from here...
728         (rs6000_expand_builtin): ...to here.
729         New argument expandedp.
730         Change all instances of altivec_expand_binop_builtin to
731         rs6000_expand_binop_builtin.
732         (altivec_expand_unop_builtin): Rename to
733         rs6000_expand_unop_builtin.
734         (altivec_expand_binop_builtin): Rename to
735         rs6000_expand_binop_builtin.
736         (altivec_expand_ternop_builtin): Rename to
737         rs6000_expand_ternop_builtin.
738
739 2002-05-29  Richard Henderson  <rth@redhat.com>
740
741         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
742         (TARGET_BI_ARCH): Likewise.
743         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
744         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
745         (TARGET_64BIT_DEFAULT): Default to 0.
746         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
747
748 2002-05-29  Richard Henderson  <rth@redhat.com>
749
750         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
751         (get_pc_thunk_name): New.
752         (output_set_got): Use it.
753         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
754         into linkonce sections.
755
756 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
757
758         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
759         (CPP_PREDEFINES): Make sure this is undefined.
760         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
761         (CPP_SUBTARGET_SPEC): Don't provide different versions for
762         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
763         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
764         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
765         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
766         (CPP_PREDEFINES): Make sure this is undefined.
767         (SUBTARGET_EXTRA_SPECS): Define.
768         (CPP_SPEC): Use %(netbsd_cpp_spec).
769
770 2002-05-29  Jeff Law <law@redhat.com>
771
772         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
773
774         * flow.c (propagate_one_insn): Do not remove a dead insn if it
775         contains a REG_RETVAL note.
776
777         * haifa-sched (sched_analyze): Remove another useless clearing
778         of SCHED_GROUP_P I missed yesterday.
779
780         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
781         * pa.c (pa_asm_output_mi_thunk): New function.
782         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
783
784 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
785             Marek Michalkiewicz  <marekm@amelek.gda.pl>
786
787         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
788         (avr_asm_only_p): Make non-static.
789         (enum avr_arch): Remove.
790         (avr_arch_types): New.
791         (avr_mcu_types): Update.
792         (avr_override_options): Use avr_arch_types table instead of switch.
793         * avr.h (CPP_PREDEFINES): Die.
794         (avr_base_arch_macro, avr_extra_arch_macro): New.
795         (TARGET_CPU_CPP_BUILTINS): New.
796         (CPP_SPEC, EXTRA_SPECS): Simplify.
797         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
798         CPP_AVR5_SPEC): Die.
799
800 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
801
802         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
803         NETBSD_OS_CPP_BUILTINS_AOUT.
804         (SUBTARGET_EXTRA_SPECS): Define.
805         (CPP_SPEC): Use %(netbsd_cpp_spec).
806
807 2002-05-29  Richard Henderson  <rth@redhat.com>
808
809         * config/i386/i386.c (ix86_output_function_epilogue): New.
810         (TARGET_ASM_FUNCTION_EPILOGUE): New.
811         (pic_label_name): Remove.
812         (pic_labels_used): New.
813         (ix86_asm_file_end): Emit one pc load stub for each register used.
814         (output_set_got): Generate deep pc load to any register.
815         (ix86_select_alt_pic_regnum): New.
816         (ix86_save_reg): Don't save pic register if we can find a valid
817         call-clobbered replacement.
818         (ix86_expand_prologue): If we found a valid replacement, renumber
819         pic_offset_table_rtx.
820         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
821         pic_offset_table_rtx after reload.
822         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
823         * config/i386/i386.md (set_got): Make insn, not expander.
824         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
825
826 2002-05-29  Richard Henderson  <rth@redhat.com>
827
828         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
829         alignment for alloca.
830
831 2002-05-29  Richard Henderson  <rth@redhat.com>
832
833         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
834         (print_operand_address): Only add rip for symbolic addresses
835         for which we do not have another relocation type.
836
837 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
838
839         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
840         (EXTRA_SPECS): Add netbsd_cpp_spec.
841         (CPP_SPEC): Use %(netbsd_cpp_spec).
842         (CPP_PREDEFINES): Remove.
843         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
844         (EXTRA_SPECS): Define.
845         (CPP_SPEC): Use %(netbsd_cpp_spec).
846         (CPP_PREDEFINES): Remove.
847
848 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
849
850         PR preprocessor/6844
851         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
852         NUL.
853
854 2002-05-29  Eric Christopher  <echristo@redhat.com>
855
856         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
857         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
858
859 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
860
861         * config/fr30/fr30.md: Remove previous restriction on splits.
862         Enforce conformance through gen_lowpart and cont_int_operand.
863         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
864         as the assembler does not support ".bss".
865
866 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
867
868         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
869         (CPP_PREDEFINES): Remove.
870         (SUBTARGET_EXTRA_SPECS): Define.
871         (CPP_SPEC): Use %(netbsd_cpp_spec).
872         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
873         (CPP_PREDEFINES): Remove.
874         (SUBTARGET_EXTRA_SPECS): Define.
875         (CPP_SPEC): Use %(netbsd_cpp_spec).
876         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
877         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
878         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
879         Add netbsd_cpp_spec.
880         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
881
882 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
883             Zack Weinberg <zack@codesourcery.com>
884
885         * cppexp.c (cpp_num): Move to cpplib.h.
886         (CPP_ERROR): Remove.
887         (interpret_float_suffix, interpret_int_suffix): New.
888         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
889         (cpp_classify_number, cpp_interpret_integer): New.
890         (interpret_number): Remove.
891         (eval_token): Update to use new routines.
892         * cpphash.h (cpp_num_part): Move to cpplib.h.
893         * cppinit.c (cpp_post_options): Set warn_long_long.
894         * cpplib.h (struct cpp_options): Add warn_long_long.
895         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
896         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
897         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
898         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
899         cpp_interpret_integer): New.
900
901 2002-05-29  Joel Sherrill <joel@OARcorp.com>
902
903         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
904
905 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
906
907         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
908         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
909         (CPP_SUBTARGET_SPEC): Define.
910         (SUBTARGET_EXTRA_SPECS): Define.
911         (CPP_SPEC): Remove.
912
913 2002-05-29  Chris Lattner  <sabre@nondot.org>
914
915         * ssa.c (rename_insn_1): Rename uses of undefined registers to
916         prevent confusion if/when the register is defined.
917
918 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
919
920         PR target/6838
921         * config/cris/cris.md: Fix typos and thinkos in comments.
922         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
923         second alternative.
924         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
925         ("*mov_sideqi_mem"): Similar, but for operand 3.
926         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
927         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
928         Remove spurious mode specifier on operand 2.
929
930 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
931
932         * config/h8300/h8300-protos.h: Remove the prototype for
933         o_operand.
934         Add prototypes for single_one_operand and single_zero_operand.
935         * config/h8300/h8300.c (o_operand): Remove.
936         (single_one_operand): New.
937         (single_zero_operand): Likewise.
938         (print_operand): For 'V' operand, and the operand with 0xff.
939         For 'V' and 'W' operands, do not and the bit position with 7.
940         * config/h8300/h8300.md (various anonymous patterns): Replace
941         use of exact_log2 with single_one_operand/single_zero_operand.
942
943 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
944
945         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
946
947 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
948
949         * config/s390/s390.c (legitimate_pic_operand_p): Do not
950         accept symbolic LARL operands.
951         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
952         epilogue insns.
953
954 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
955
956         * config/s390/s390.md (cmpstr_64/31): Mark whole
957         input registers as used.
958
959 2002-05-28  Richard Henderson  <rth@redhat.com>
960
961         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
962         not current_function_uses_pic_offset_table and
963         current_function_uses_const_pool; examine current_function_profile.
964         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
965         input to blockage if needed.
966         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
967         (legitimize_pic_address): Likewise.  Set regs_ever_live for
968         pic_offset_table_rtx when invoked during reload.
969         * config/i386/i386.h (FINALIZE_PIC): Remove.
970         * config/i386/i386.md (tablejump): Reformat.  Do not set
971         current_function_uses_pic_offset_table.
972         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
973         (blockage): Accept anything as operand 0.
974
975 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
976
977         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
978         common CPP built-ins for all NetBSD a.out targets.
979         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
980         common CPP built-ins for all NetBSD ELF targets.
981         * config/netbsd.h: Add missing notice.
982         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
983         for all NetBSD targets.
984         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
985         for all NetBSD targets using an LP64 code model.
986         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
987         NetBSD targets.
988
989 2002-05-28  Richard Henderson  <rth@redhat.com>
990
991         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
992         update if UPDATE_LIFE_LOCAL.
993
994 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
995
996         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
997
998 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
999                           Jason R. Thorpe <thorpej@wasabisystems.com>
1000
1001         config/sh reorganization to factor out endianness and coff:
1002
1003         * config/sh/little.h: New file.
1004         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
1005         defined, define to 0 to select big-endian.
1006         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
1007         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
1008         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
1009         * config/sh/t-be: New file.
1010         * config/sh/t-le: New file.
1011
1012         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
1013         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
1014         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
1015         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
1016         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
1017         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
1018         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
1019         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
1020         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
1021         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
1022         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
1023         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
1024         (LINK_SPEC): Define to SH_LINK_SPEC.
1025         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
1026         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
1027         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
1028         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
1029         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
1030         * config/sh/coff.h: New file.
1031         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
1032         (TARGET_OBJFMT_CPP_BUILTINS): Define.
1033         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
1034         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
1035         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
1036         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
1037         (PTRDIFF_TYPE): Likewise.
1038         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
1039         (CPP_PREDEFINES): Don't define.
1040         (TARGET_OBJFMT_CPP_BUILTINS): Define.
1041         (LINK_SPEC): Define to SH_LINK_SPEC.
1042         (LINK_EMUL_PREFIX): Redefine.
1043         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
1044         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
1045         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
1046         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
1047         (TARGET_OS_CPP_BUILTINS): Define.
1048         (TARGET_DEFAULT): Redefine.
1049         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
1050         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
1051         (LINK_SPEC): Don't redefine.
1052         (LINK_DEFAULT_CPU_EMUL): Redefine.
1053         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
1054         * sh.c (sh_asm_named_section): Don't declare / define.
1055         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
1056         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
1057         (sh64-*-elf* tm_file): Likewise.
1058         (sh-*-rtemself* tm_file): Likewise.
1059         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
1060         (sh-*-linux* tmake_file): Add sh/t-le.
1061         (sh-*-rtems* tm_file): Add sh/coff.h
1062         (sh-*-* tm_file): Likewise.
1063
1064 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
1065
1066         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
1067         CONSTANT_POOL_ADDRESS_P.
1068
1069         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
1070
1071 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
1072             Jeff Law <law@redhat.com>
1073
1074         * optabs.c (expand_binop): Fix nwords sign warnings.
1075         generate pseudo for add_optab.
1076
1077         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
1078         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
1079
1080 2002-05-28      Marc Espie <espie@openbsd.org>
1081
1082         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
1083         inherited from gas.h.
1084         (ASM_QUAD):  Undef.  OpenBSD does not support it.
1085
1086 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
1087
1088         * doc/install.texi (binaries): Change mingw binaries
1089         link to www.mingw.org.
1090
1091 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1092
1093         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
1094
1095 2002-05-28  Richard Henderson  <rth@redhat.com>
1096
1097         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
1098         bottom alignment for leaf functions.
1099
1100 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
1101
1102         * config/pa/milli32.S, config/pa/lib1funcs.asm,
1103         config/sparc/sol2-g1.asm: Delete unused files.
1104
1105 2002-05-28  Richard Henderson  <rth@redhat.com>
1106
1107         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
1108
1109         * flow.c (calculate_global_regs_live): Rename call_used to
1110         invalidated_by_call.  Initialize from regs_invalidated_by_call
1111         instead of call_used_regs.
1112
1113         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
1114         DECL_EXTERNAL.
1115
1116 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
1117
1118         * tree.h: Don't include real.h.
1119         Forward-declare struct realvaluetype.
1120         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
1121         contain it.
1122         (TREE_REAL_CST_PTR): New accessor.
1123         (TREE_REAL_CST): Update.
1124         * real.h: Include machmode.h.
1125         (realvaluetype): Make it struct realvaluetype, not a typedef.
1126         (build_real): Prototype here.
1127
1128         * tree.c: Include real.h.
1129         (build_real): Allocate the REAL_VALUE_TYPE as a separate
1130         object in GC memory, set TREE_REAL_CST_PTR to point to it.
1131         (build_real_from_int_cst): Use build_real.
1132         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
1133         REAL_CST.
1134
1135         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
1136         fold-const.c, print-tree.c, real.c: Include real.h.
1137         * Makefile.in: Update dependency lists.
1138
1139 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1140
1141         * basic-block.h (last_basic_block): Declare.
1142         (expunge_block_nocompact): Declaration removed.
1143         (compact_blocks): Declare.
1144         * cfg.c (last_basic_block): New variable.
1145         (expunge_block_nocompact): Removed.
1146         (expunge_block): Do not compact basic blocks.
1147         (compact_blocks): New.
1148         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
1149         longer change.
1150         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
1151         last_basic_block.
1152         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
1153         real positions of blocks.
1154         (delete_unreachable_blocks): Simplified -- quadratic behavior now
1155         cannot occur.
1156         (cleanup_cfg): Compact blocks.
1157         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
1158         basic_block_info varray.
1159         (flow_delete_block): Comment update.
1160         (back_edge_of_syntactic_loop_p): Modify position check code.
1161         (verify_flow_info): Update checking.
1162         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
1163         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1164         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
1165         indices no longer change.
1166         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
1167         last_basic_block.
1168         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
1169         * profile.c (branch_prob): Compact blocks.
1170         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
1171         last_basic_block.
1172
1173 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
1174
1175         * config/h8300/h8300.md (two anonymous patterns): New.
1176
1177 2002-05-28  David S. Miller  <davem@redhat.com>
1178
1179         * config/sparc/sparc.md (cpu): Tidy.
1180         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
1181         'trap'.
1182         (in_call_delay): Delete reference to 'return' type.
1183         (eligible_for_return_delay, in_return_delay, define_delay
1184         referencing those): Delete.
1185         (rest of file): Use new type attributes as appropriate.
1186         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
1187         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
1188         * config/sparc/ultra1_2.md (us1_single): New reservation.
1189         (us1_ialuX): Likewise.
1190         * config/sparc/ultra3.md (us3_single): Likewise.
1191         (us3_ialuX): Likewise.
1192         (us3_imul, us3_idiv): Tweak.
1193
1194 2002-05-28  Richard Henderson  <rth@redhat.com>
1195
1196         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
1197         STRING_CST.
1198
1199 2002-05-28  Richard Henderson  <rth@redhat.com>
1200
1201         * config.gcc: Obsolete mn10200.
1202
1203 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1204
1205         * cppexp.c (interpret_number): Optimize for single-digit
1206         and less-than-half-precision cases.
1207         (num_trim, num_positive, num_div_op): Cast constants.
1208
1209 2002-05-27  Bo Thorsen  <bo@suse.de>
1210
1211         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
1212         3.1 branch. The file was made by Jakub Jelinek.
1213         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1214         support so multilib doesn't break. And don't define this at all
1215         when -Dinhibit_libc is used.
1216         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
1217         * config/i386/t-linux64: Implement full multilib support. Patch
1218         originally done by Andreas Jaeger and Jakub Jelinek.
1219
1220 2002-05-27  Roger Sayle  <roger@eyesopen.com>
1221
1222         * c-common.c: Add support for __attribute__((nothrow)) to specify
1223         that a function cannot throw an exception (using TREE_NOTHROW).
1224         (handle_nothrow_attribute): New function to process this attribute.
1225
1226         * doc/extend.texi: Document the new nothrow function attribute.
1227
1228 2002-05-27  H.J. Lu  (hjl@gnu.org)
1229
1230         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
1231         (num_positive): Likewise.
1232         (num_div_op): Likewise.
1233
1234 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1235
1236         * c-common.c (c_common_init): Always use intmax_t.
1237
1238 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1239
1240         * c-common.c (c_common_init): Use intmax_t for now.
1241
1242 2002-05-24  Andrew Haley  <aph@redhat.com>
1243
1244         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
1245         if T is a boolean type.
1246
1247 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1248
1249         * basic-block.h (last_basic_block): Defined as synonym for
1250         n_basic_blocks.
1251         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1252         flow_depth_first_order_compute, flow_preorder_transversal_compute,
1253         flow_dfs_compute_reverse_init): Replaced relevant occurences of
1254         n_basic_blocks with last_basic_block.
1255         * cfgbuild.c (make_edges): Likewise.
1256         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1257         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1258         * combine.c (combine_instructions): Likewise.
1259         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1260         iterative_dataflow_bitmap): Likewise.
1261         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1262         calc_idoms, idoms_to_doms): Likewise.
1263         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1264         Likewise.
1265         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1266         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1267         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1268         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1269         delete_null_pointer_checks, compute_code_hoist_vbeinout,
1270         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1271         compute_store_table, build_store_vectors): Likewise.
1272         * haifa-sched.c (sched_init): Likewise.
1273         * ifcvt.c (if_convert): Likewise.
1274         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1275         pre_edge_lcm, compute_available, compute_nearerout,
1276         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1277         Likewise.
1278         * predict.c (estimate_probability, process_note_prediction,
1279         note_prediction_to_br_prob): Likewise.
1280         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1281         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1282         * regrename.c (copyprop_hardreg_forward): Likewise.
1283         * resource.c (init_resource_info): Likewise.
1284         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1285         init_regions, schedule_insns): Likewise.
1286         * ssa-ccp.c (ssa_const_prop): Likewise.
1287         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1288         * ssa.c (compute_dominance_frontiers,
1289         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1290
1291         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1292         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1293         sizes consistently.
1294
1295 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1296
1297         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1298         new.
1299         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1300         hoist_insn_after, hoist_insn_to_edge): New.
1301
1302 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
1303
1304         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1305         (PROP_FINAL): Include.
1306         * flow.c (life_analysis, update_life_info,
1307         init_propagate_block_info, mark_set_1, mark_used_rgs):
1308         Support SCAN_DEAD_STORE.
1309
1310 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1311
1312         * c-common.c (c_common_init): Set CPP arithmetic precision.
1313         * cppexp.c (cpp_num_part): Move typedef ...
1314         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1315         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1316         (sanity_checks): Update.
1317
1318 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
1319
1320         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1321         (mkheaders): New rule.
1322         (install-mkheaders): New rule.
1323         * configure.in (all_outputs): Add mkheaders.
1324         * configure: Regenerate.
1325         * mkheaders.in: New file.
1326
1327 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
1328
1329         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1330
1331 2002-05-26  Andreas Jaeger  <aj@suse.de>
1332
1333         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1334
1335 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1336
1337         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1338         right_shift): Remove.
1339         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1340         HIGH_PART): New.
1341         (struct op): Use cpp_num.
1342         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1343         num_part_mul, num_unary_op, num_binary_op, num_negate,
1344         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1345         num_div_op, num_lshift, num_rshift, append_digit): New.
1346         (interpret_number, parse_defined, eval_token, reduce): Update
1347         for two-integer arithmetic.
1348         (binary_handler): New typedef.
1349         (optab): Update.
1350         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1351         (_cpp_parse_expr, reduce): Update to handle two-integers.
1352         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1353
1354 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1355
1356         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1357         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1358         branch insn into account, do not assume 1.
1359         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
1360         over single word insn.  Handle upper half of I/O space too.
1361         * config/avr/avr.md (*sbrx_branch): Use it.
1362         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1363         (*sbix_branch, *sbix_branch_bit7): Likewise.
1364         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1365         Use RTL peepholes to optimize register operand sign tests.
1366
1367 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1368
1369         * config/avr/avr.c (avr_asm_only_p): New variable.
1370         (avr_override_options): Set it here if AVR1.
1371         (asm_file_start): Test it here, report an error if set.
1372
1373 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
1374
1375         * alias.c: Fix formatting.
1376         * attribs.c: Likewise.
1377         * bb-reorder.c: Likewise.
1378         * bitmap.c: Likewise.
1379         * bitmap.h: Likewise.
1380         * builtins.c: Likewise.
1381
1382 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
1383
1384         * reload.c (find_valid_class): Accept new argument DEST,
1385         choose class accordingly.
1386         (push_reload): Update callers.
1387
1388 2002-05-26  Andreas Jaeger  <aj@suse.de>
1389
1390         * combine.c (combine_instructions): Do not indent #if for
1391         traditional C.
1392
1393 2002-05-25  Richard Henderson  <rth@redhat.com>
1394
1395         * c-pragma.c (apply_pragma_weak): Convert value identifier to
1396         string for decl_attributes.
1397         (handle_pragma_weak): Call assemble_alias if we're modifying
1398         an existing decl.
1399
1400 2002-05-25  Richard Henderson  <rth@redhat.com>
1401
1402         PR target/6788
1403         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1404         using rtl instead of fprintf.
1405         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1406         * config/sparc/sparc-protos.h: Update.
1407
1408 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1409
1410         * Makefile.in (C_COMMON_H): Fix.
1411         Update other targets.
1412         * c-common.c: Don't include c-lex.h.
1413         (builtin_define_with_value): Make static and prototype.
1414         (builtin_define_std): Move from c-lex.h.
1415         * c-common.h (init_c_lex): Move from c-lex.h.
1416         * c-decl.c: Don't include c-lex.h.
1417         (make_pointer_declarator): Move from c-parse.in.
1418         * c-lex.c: Don't include c-lex.h.
1419         * c-lex.h: Remove.
1420         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1421         (make_pointer_declarator): Move to c-decl.c.
1422         * c-pragma.c: Don't include c-lex.h.
1423         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1424         * c-tree.h (make_pointer_declarator): New.
1425 doc:
1426         * passes.texi, tm.texi: Update.
1427 objc:
1428         * Make-lang.in: Update and correct.
1429         * objc-act.c: Don't include c-lex.h or cpplib.h.
1430 treelang:
1431         * treetree.c: Don't include c-lex.h.
1432 config:
1433         * darwin-c.c: Don't include c-lex.h.
1434         * c4x/c4x-c.c: Don't include c-lex.h.
1435         * c4x/t-c4x: Update.
1436         * i370/i370-c.c: Don't include c-lex.h.
1437         * i370/t-i370: Update.
1438         * i960/i960-c.c: Don't include c-lex.h.
1439         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1440         * i960/t-960bare: Update.
1441         * i960/t-vxworks: Update.
1442         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1443         * rs6000/t-darwin: Update.
1444         * rs6000/t-rs6000-c-rule: Update.
1445         * v850/v850-c.c: Don't include c-lex.h.
1446         * v850/v850.c: Don't include c-lex.h or cpplib.h.
1447
1448
1449 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1450
1451         * tree.def: Fix typos.
1452         * doc/install.texi: Likewise.
1453
1454 2002-05-25  Richard Henderson  <rth@redhat.com>
1455
1456         * configure.in (HAVE_AS_TLS): Add ia64 test.
1457         * configure: Rebuild.
1458         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1459         (override_options): Set it.
1460         (TARGET_HAVE_TLS): New.
1461         (sdata_symbolic_operand): Look for 's'.
1462         (tls_symbolic_operand): New.
1463         (ia64_expand_load_address): Abort for tls symbols.
1464         (gen_tls_get_addr): New.
1465         (gen_thread_pointer): New.
1466         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
1467         (rtx_needs_barrier): Add new unspecs.
1468         (ia64_encode_section_info): Handle tls symbols.
1469         (ia64_strip_name_encoding): Strip two encoding chars.
1470         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1471         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1472         (TARGET_OPTIONS): Add tls-size.
1473         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1474         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1475         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1476         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1477         (movsf, movdf): Likewise.
1478         (movdi_symbolic): Use match_scratch.  Don't split if we won't
1479         have a scratch availiable.
1480         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1481         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1482         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1483         * config/ia64/ia64-protos.h: Update.
1484         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1485         sdata_symbolic_operand.
1486         (ASM_OUTPUT_LABELREF): Strip two characters.
1487
1488 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1489
1490         * combine.c (simplify_set): Remove an unnecessary subreg.
1491
1492 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1493
1494         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1495
1496         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1497
1498 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1499
1500         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
1501
1502 2002-05-25  Roger Sayle  <roger@eyesopen.com>
1503
1504         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1505         (cond (compare x y) 0) into the equivalent (cond x y).
1506
1507 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1508
1509         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
1510
1511 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
1512
1513         * config.gcc: Remove all stanzas for previously obsoleted
1514         systems.  Where necessary, add explicit error stanzas to
1515         prevent removed systems from being misidentified as something
1516         else.  Begin a fresh obsoletions list, with the systems that
1517         were reprieved last round.
1518         * doc/install.texi: Remove all mention of dead targets.
1519         * fixinc/mkfixinc.sh: Likewise.
1520
1521         * config/arm/arm.h: Bit 31 of target_flags is no longer
1522         reserved.
1523
1524         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1525         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1526         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1527         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1528         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1529         config/alpha/osf12.h, config/alpha/osf2or3.h,
1530         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1531         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1532         config/clipper/clipper-protos.h, config/clipper/clipper.c,
1533         config/clipper/clipper.h, config/clipper/clipper.md,
1534         config/clipper/clix.h, config/convex/convex-protos.h,
1535         config/convex/convex.c, config/convex/convex.h,
1536         config/convex/convex.md, config/convex/fixinc.convex,
1537         config/convex/proto.h, config/elxsi/elxsi-protos.h,
1538         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1539         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1540         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1541         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1542         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1543         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1544         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1545         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1546         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1547         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1548         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1549         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1550         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1551         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1552         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1553         config/m68k/altos3068.h, config/m68k/apollo68.h,
1554         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1555         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1556         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1557         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1558         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1559         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1560         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1561         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1562         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1563         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1564         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1565         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1566         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1567         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1568         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1569         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1570         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1571         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1572         config/mips/dec-osf1.h, config/mips/elflorion.h,
1573         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1574         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1575         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1576         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1577         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1578         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1579         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1580         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1581         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1582         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1583         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1584         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1585         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1586         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1587         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1588         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1589         Delete file.
1590
1591 2002-05-24  Richard Henderson  <rth@redhat.com>
1592
1593         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1594         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1595         * config/i386/i386.c (tls_model_chars): Add leading space.
1596         (tls_symbolic_operand): Don't bias by 1.
1597         (legitimize_address): Don't unbias by 1.
1598
1599 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1600
1601         * lcm.c (optimize_mode_switching): Change bb used as indices
1602         to bb->index.
1603
1604 2002-05-24  Richard Henderson  <rth@redhat.com>
1605
1606         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1607         of update_life_info_in_dirty_blocks.
1608
1609 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1610
1611         PR other/6782
1612         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1613
1614 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1615
1616         PR preprocessor/6780
1617         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1618
1619 2002-05-24  Jim Blandy  <jimb@redhat.com>
1620
1621         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1622         entry with a type code of zero, marking the end of the compilation
1623         unit's macro info.
1624
1625 2002-05-24  Richard Henderson  <rth@redhat.com>
1626
1627         * varasm.c (asm_output_bss): Always output one byte.
1628         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1629
1630 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1631
1632         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1633         namespace.
1634
1635 2002-05-24  Andreas Jaeger  <aj@suse.de>
1636
1637         * ggc-page.c (alloc_page): Cast variables of type size_t to
1638         unsigned long, adjust printf format string.
1639         (ggc_alloc): Likewise.
1640         (ggc_print_statistics): Likewise.
1641         (ggc_print_statistics): Correct printf format string for SCALE to
1642         use unsigned long.
1643
1644 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1645
1646         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1647
1648 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1649             Zack Weinberg     <zack@codesourcery.com>
1650
1651         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1652         quoted strings.
1653         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1654         directive in assembly file.
1655         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1656         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1657         * config/pj/pj.h (ASM_FILE_START): Likewise.
1658         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1659         * config/avr/avr.c (asm_file_end): Likewise.
1660         * toplev.c (output_quoted_string): Handle possibly signed plain
1661         char.
1662         * toplev.h (output_clean_symbol_name): Declare
1663         * toplev.c (output_clean_symbol_name): Define.
1664         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1665         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1666
1667 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1668
1669         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1670
1671 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1672
1673         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1674         of size of unsigned.
1675
1676 2002-05-23  Richard Henderson  <rth@redhat.com>
1677
1678         * configure.in (HAVE_AS_TLS): New test.
1679         * config.in, configure: Rebuild.
1680         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1681         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1682         (override_options): Set it.
1683         (tls_model_chars, tls_symbolic_operand): New.
1684         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1685         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1686         (local_exec_symbolic_operand): New.
1687         (get_pic_label_name): Merge into output_set_got.
1688         (ix86_asm_file_end): Emit pic_label_name if defined.
1689         (legitimate_constant_p, constant_address_p): New.
1690         (legitimate_pic_operand_p): New.
1691         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1692         (legitimate_address_p): Likewise.
1693         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1694         (ix86_strip_name_encoding): New.
1695         (get_thread_pointer): New.
1696         (legitimize_address): Handle tls symbols.
1697         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1698         Remove UNSPEC_PLT.
1699         (struct machine_function): Add some_ld_name.
1700         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1701         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1702         (output_addr_const_extra): New.
1703         (maybe_get_pool_constant): New.
1704         (ix86_split_to_parts): Use it.
1705         (ix86_expand_move): Handle tls symbols.
1706         (ix86_tls_get_addr): New.
1707         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1708         (TARGET_OPTIONS): Add tls-dialect.
1709         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1710         (LEGITIMATE_CONSTANT_P): Likewise.
1711         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1712         (TARGET_STRIP_NAME_ENCODING): New.
1713         (ASM_OUTPUT_LABELREF): New.
1714         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1715         (OUTPUT_ADDR_CONST_EXTRA): New.
1716         (PREDICATE_CODES): Update.
1717         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1718         * config/i386/i386.md: Regroup and renumber unspec constants.
1719         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1720         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1721         (tls_global_dynamic, tls_local_dynamic_base): New.
1722         (tls_local_dynamic_once): New.
1723         * config/i386/i386-protos.h: Update.
1724
1725 2002-05-23  Richard Henderson  <rth@redhat.com>
1726
1727         * genemit.c (gen_insn): Print file:lineno comment before function.
1728         (main): likewise.
1729         * gensupport.c (struct queue_elem): Add filename member.
1730         (queue_pattern): Initialize it; update all callers.
1731         (process_include): Don't free filename.
1732         (read_md_rtx): Set read_rtx_filename.
1733
1734 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1735
1736         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1737
1738 2002-05-23  Richard Henderson  <rth@redhat.com>
1739
1740         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1741
1742 2002-05-23  Richard Henderson  <rth@redhat.com>
1743
1744         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1745         commentary from Mark.
1746
1747 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1748
1749         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1750         Use FOR_EACH_BB macros to iterate over basic block chain.
1751         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1752         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1753         Likewise.
1754         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1755         find_unreachable_blocks, create_edge_list, verify_edge_list,
1756         remove_fake_edges, add_noreturn_fake_exit_edges,
1757         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1758         Likewise.
1759         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1760         find_sub_basic_blocks): Likewise.
1761         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1762         Likewise.
1763         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1764         Likewise.
1765         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1766         Likewise.
1767         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1768         commit_edge_insertions, commit_edge_insertions_watch_calls,
1769         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1770         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1771         * conflict.c (conflict_graph_compute): Likewise.
1772         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1773         df_modified_p, df_refs_unlink, df_dump): Likewise.
1774         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1775         * final.c (compute_alignments): Likewise.
1776         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1777         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1778         count_or_remove_death_notes): Likewise.
1779         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1780         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1781         classic_gcse, compute_transp, cprop, compute_pre_data,
1782         compute_transpout, invalidate_nonnull_info,
1783         delete_null_pointer_checks_1, delete_null_pointer_checks,
1784         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1785         compute_store_table, build_store_vectors, store_motion): Likewise.
1786         * global.c (global_conflicts, mark_elimination): Likewise.
1787         * graph.c (print_rtl_graph_with_bb): Likewise.
1788         * haifa-sched.c (sched_init): Likewise.
1789         * ifcvt.c (if_convert): Likewise.
1790         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1791         compute_available, compute_nearerout, compute_rev_insert_delete,
1792         optimize_mode_switching): Likewise.
1793         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1794         * predict.c (estimate_probability, note_prediction_to_br_prob,
1795         propagate_freq, counts_to_freqs, expensive_function_p,
1796         estimate_bb_frequencies): Likewise.
1797         * profile.c (instrument_edges, get_exec_counts,
1798         compute_branch_probabilities, compute_checksum, branch_prob,
1799         find_spanning_tree): Likewise.
1800         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1801         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1802         Likewise.
1803         * regclass.c (scan_one_insn, regclass): Likewise.
1804         * regmove.c (mark_flags_life_zones, regmove_optimize,
1805         record_stack_memrefs): Likewise.
1806         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1807         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1808         * resource.c (find_basic_block): Likewise.
1809         * sched-ebb.c (schedule_ebbs): Likewise.
1810         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1811         find_single_block_region, find_rgns, schedule_insns)
1812         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1813         * ssa-ccp.c (optimize_unexecutable_edges,
1814         ssa_ccp_df_delete_unreachable_insns): Likewise.
1815         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1816         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1817         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1818         compute_coalesced_reg_partition, rename_equivalent_regs,
1819         convert_from_ssa): Likewise.
1820         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1821         process_for_unwind_directive): Likewise.
1822
1823         * df.c (FOR_ALL_BBS): Removed.
1824         * gcse.c (struct null_pointer_info): Type of current_block field
1825         changed.
1826         (struct reg_avail_info): Type of last_bb field changed.
1827         * config/ia64/ia64.c (block_num): Removed.
1828         (need_copy_state): Type changed.
1829         (last_block): New.
1830
1831 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1832
1833         * cppinit.c (mark_named_operators): Split out from init_builtins.
1834         (cpp_finish_options): Call it from here instead.
1835
1836 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1837
1838         * builtin-attrs.def: Update copyright years.
1839         (ATTR_NONNULL): New attribute identifier.
1840         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1841         attribute tree lists.
1842         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1843         format operand.
1844         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1845         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1846         attribute lists.  Chain the appropriate nonnull attribute.
1847         * c-format.c (check_format_arg): Remove null format string
1848         warning.
1849         * testsuite/gcc.dg/format/null-1.c: New test.
1850
1851 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1852
1853         * Makefile.in (ADAC): Define.
1854         (SYSLIBS): Define.
1855         (.SUFFIXES): Move before language makefile fragments.
1856         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1857
1858 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1859
1860         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1861         placed in common.
1862
1863 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1864
1865         * cfg.c (dump_flow_info): Print results of
1866         maybe_hot/probably_never_executed predicates.
1867         * toplev.c (open_dump_file): Print function frequency.
1868
1869 2002-05-23  David S. Miller  <davem@redhat.com>
1870
1871         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1872         regsets.
1873
1874 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1875
1876         * c-common.c (warn_nonnull): Declare.
1877         (c_common_attribute_table): Add "nonnull" attribute.
1878         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1879         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1880         check_function_arguments_recurse): New functions.
1881         * c-common.h (warn_nonnull): Declare extern.
1882         (check_function_arguments, check_function_arguments_recurse): New
1883         prototypes.
1884         * c-decl.c (c_decode_option): Add -Wnonnull option.
1885         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1886         format checking.
1887         (format_check_context): New structure.
1888         (check_format_info_recurse): Remove recursion and rename to...
1889         (check_format_arg): ...this.  Update comment.
1890         (check_format_info): Use check_function_arguments_recurse.
1891         * c-typeck.c (build_function_call): Call check_function_arguments
1892         instead of check_function_format.
1893         * doc/extend.texi: Document "nonnull" attribute.
1894         * doc/invoke.texi: Docuemnt -Wnonnull option.
1895         * testsuite/gcc.dg/nonnull-1.c: New test.
1896         * testsuite/gcc.dg/nonnull-2.c: New test.
1897
1898 2002-05-23  David S. Miller  <davem@redhat.com>
1899
1900         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1901         * cfgcleanup.c (cleanup_cfg): If it is set do not
1902         attempt to delete trivially dead insns.
1903         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1904         * toplev.c (rest_of_compilation): Document non-trivial aspect
1905         the RTL before optimize_save_area_alloca is run.
1906
1907 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1908
1909         * c-lex.c (indent_level): Remove.
1910         (cb_file_change, c_lex): Remove indent level handling.
1911         * c-lex.h (indent_level): Remove.
1912         * input.h (struct file_stack): Remove indent_level.
1913         * toplev.c (push_srcloc): Remove indent_level handling.
1914
1915 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1916
1917         PR target/6753
1918         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1919         of x in constraints for clarity.
1920         (sse_mov?fcc split): abort if op2 == op3.
1921         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1922         sse_movsfcc_const0_4): Add earlyclobber.
1923         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1924         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1925         Use Y instead of x in constraints.
1926
1927 2002-05-23  Richard Henderson  <rth@redhat.com>
1928
1929         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1930         (C++98 Thread-Local Edits): New subsection.
1931
1932         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1933         (ix86_arch): Set type to enum processor_type.
1934
1935         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1936         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1937
1938 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1939
1940         * configure.in: Fix as version test for binutils 2.12.1 releases
1941         (without dates).
1942         * configure: Rebuilt.
1943
1944 2002-05-23  Richard Henderson  <rth@redhat.com>
1945
1946         * config/i386/i386.c (get_pic_label_name): New.
1947         (load_pic_register): Remove.
1948         (output_set_got): New.
1949         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1950         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1951         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1952         (prologue_set_got, prologue_get_pc): Remove.
1953         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1954         (builtin_setjmp_receiver): Use gen_set_got.
1955         * config/i386/i386-protos.h: Update.
1956
1957 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1958
1959         * gcse.c (hash_expr): Do not use alias set for hashing.
1960
1961 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1962
1963         * dbxout.c (dbxout_class_name_qualifiers): New function.
1964         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1965
1966 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1967
1968         * cpperror.c (_cpp_begin_message): No special casing
1969         of CPP_FATAL_LIMIT.
1970         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1971         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1972         * cpplib.c (do_include_common): Use DL_ERROR.
1973         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1974         (DL_ICE): Renumber.
1975         * fix-header.c (read_scan_file): Update.
1976
1977 2002-05-22  Richard Henderson  <rth@redhat.com>
1978
1979         * config/i386/i386.c (ix86_expand_call): New function, extracted
1980         from md call patterns.  Add pic_offset_table_rtx to
1981         CALL_INSN_FUNCTION_USAGE when needed.
1982         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1983         (call_value_pop, call_value, untyped_call): Likewise.
1984         (call_exp, call_value_exp): Remove.
1985         * config/i386/i386-protos.h: Update.
1986
1987 2002-05-22  Richard Henderson  <rth@redhat.com>
1988
1989         * varasm.c (default_section_type_flags): Check for VAR_DECL
1990         before using DECL_THREAD_LOCAL.
1991
1992 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1993
1994         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1995         (STARTFILE_SPEC): Delete PE crt0.o.
1996         * config/rs6000/aix51.h: Same.
1997         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1998         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1999         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
2000         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
2001         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
2002
2003 2002-05-22  Richard Henderson  <rth@redhat.com>
2004
2005         * varasm.c (default_section_type_flags): Handle tls data and
2006         default sections.
2007         (default_unique_section): Handle tls sections.
2008
2009 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
2010
2011         * configure.in (CROSS): Define NATIVE_CROSS.
2012         * configure: Regenerate.
2013         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
2014         (startfile_prefix_spec): New var.
2015         (static_specs): Add startfile_prefix_spec.
2016         (do_spec_2): Split out from..
2017         (do_spec): ..here.
2018         (main): Process startfile_prefix_spec.
2019         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
2020         dynamic linker.
2021         (STARTFILE_PREFIX_SPEC): Define.
2022         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
2023         absolute paths.
2024
2025 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
2026
2027         * cpperror.c: Fix formatting.
2028         * cppexp.c: Likewise.
2029         * cppfiles.c: Likewise.
2030         * cpphash.c: Likewise.
2031         * cpphash.h: Likewise.
2032         * cppinit.c: Likewise.
2033         * cpplex.c: Likewise.
2034         * cpplib.c: Likewise.
2035         * cppmacro.c: Likewise.
2036         * cppmain.c: Likewise.
2037         * cppspec.c: Likewise.
2038
2039 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
2040
2041         * combine.c (force_to_mode): Use gen_int_mode.
2042         Don't clear CONST_INT bits outside of mode.
2043
2044 2002-05-22  Richard Henderson  <rth@redhat.com>
2045
2046         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
2047         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2048
2049 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
2050
2051         PR c/6643
2052         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
2053         if DECL_SIZE_UNIT is INTEGER_CST.
2054
2055 2002-05-22  Richard Henderson  <rth@redhat.com>
2056
2057         * flow.c (life_analysis): Delete broken reg_label check.
2058
2059 2002-05-22  Richard Henderson  <rth@redhat.com>
2060
2061         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
2062         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2063
2064 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2065
2066         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
2067         (embed-bb.c): New rule.
2068         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
2069         * config/sh/embed_bb.c: Delete.
2070
2071 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
2072
2073         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
2074
2075 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
2076
2077         * config/h8300/h8300.md (*andorqi3): New.
2078
2079 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2080
2081         PR preprocessor/6517
2082         * Makefile.in: Update.
2083         * c-common.c (c_common_post_options): Add preprocessor
2084         errors to the error count.
2085         * c-lang.c (c_post_options): Kill.
2086         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2087         * hooks.h: Add header guards.
2088         * langhooks-def.h: Include hooks.h.
2089         (LANG_HOOKS_POST_OPTIONS): Update.
2090         * langhooks.h (struct lang_hooks): Update post_options.
2091         * toplev.c (parse_options_and_default_flags): Update.
2092 objc:
2093         * objc-lang.c (objc_post_options): Kill.
2094         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2095
2096 2002-05-21  Bruce Korb  <bkorb@gnu.org>
2097
2098         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
2099         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
2100         * fixinc/fixincl.x: regen.
2101
2102 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
2103
2104         * cfgbuild.c: Fix formatting.
2105         * cfg.c: Likewise.
2106         * cfgcleanup.c: Likewise.
2107         * cfglayout.c: Likewise.
2108         * cfgloop.c: Likewise.
2109         * cfgrtl.c: Likewise.
2110
2111 2002-05-21  Richard Henderson  <rth@redhat.com>
2112
2113         * c-common.h (enum rid): Add RID_THREAD.
2114         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
2115         (grokdeclarator): Grok __thread.
2116         * c-parse.in (reswords): Add __thread.
2117         (rid_to_yy): Add RID_THREAD.
2118
2119         * tree.h (DECL_THREAD_LOCAL): New.
2120         (struct tree_decl): Add thread_local_flag.
2121         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
2122         * tree.c (staticp): TLS variables are not static.
2123
2124         * target-def.h (TARGET_HAVE_TLS): New.
2125         * target.h (have_tls): New.
2126         * output.h (SECTION_TLS): New.
2127         * varasm.c (assemble_variable): TLS variables can't be common for now.
2128         (default_section_type_flags): Handle .tdata and .tbss.
2129         (default_elf_asm_named_section): Handle SECTION_TLS.
2130         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
2131
2132         * flags.h (flag_tls_default): Declare.
2133         * toplev.c (flag_tls_default): Define.
2134         (display_help): Display help for it.
2135         (decode_f_option): Set it.
2136
2137         * doc/extend.texi (Thread-Local): New node describing language-level
2138         thread-local storage.
2139         * doc/invoke.texi (-ftls-model): Document.
2140
2141         * fixinc/inclhack.def (thread_keyword): New.
2142         * fixinc/fixincl.x: Rebuild.
2143
2144 2002-05-21  Jeffrey A Law  <law@redhat.com>
2145
2146         * optabs.c (expand_binop): For double-word integer multiplies,
2147         do not compute intermediate results into something that is
2148         not a register (such as a SUBREG or MEM).
2149
2150         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
2151         (ix86_sched_reorder): Make sure to initialize scheduling
2152         data even when there's only one insn in the ready queue.
2153
2154 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
2155
2156         * genautomata.c (reserv_sets_hash_value): Fix a typo.
2157
2158 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
2159
2160         * genautomata.c (reserv_sets_hash_value): Define hash_value as
2161         set_el_t.  Transform the hash value into unsigned.
2162         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
2163         (transform_3): Add code to process `(A,B)+(D,E)'.
2164
2165 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
2166
2167         * reload1.c (do_output_reload): Run delete_output_reload
2168         only if optimizing.
2169
2170 2002-05-21  Roger Sayle  <roger@eyesopen.com>
2171
2172         PR middle-end/6600
2173         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
2174         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
2175         (can_store_by_pieces): ... and here to limit the largest mode used.
2176         Add a comment to document this function.
2177
2178 2002-05-21  Richard Henderson  <rth@redhat.com>
2179
2180         * flow.c (life_analysis): Fix test for deleted label.
2181
2182 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2183
2184         * doc/tm.texi: Fix typo.
2185
2186 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
2187
2188         * c-common.c (c_common_init): Set options->unsigned_char from
2189         flag_signed_char.
2190         (cb_register_builtins): Define __STRICT_ANSI__ and
2191         __CHAR_UNSIGNED__ here...
2192         * cppinit.c (init_builtins): Not here.
2193         (cpp_create_reader): unsigned_char option defaults to 0, not
2194         !DEFAULT_SIGNED_CHAR.
2195         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
2196         and -funsigned-char.
2197
2198         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
2199         * cpphash.c (_cpp_init_hashtable): Don't set it.
2200         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
2201         directly.  Clarify comment.
2202
2203 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2204
2205         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
2206         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
2207         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
2208         BASIC_BLOCK (n_basic_blocks - 1).
2209         * cfganal.c (can_fallthru, flow_call_edges_add,
2210         flow_preorder_transversal_compute): Too.
2211         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
2212         find_sub_basic_blocks): Too.
2213         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
2214         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
2215         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
2216         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
2217         * combine.c (this_basic_block): Type changed to basic_block.
2218         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
2219         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2220         get_last_value, distribute_notes, distribute_links): Too.
2221         * final.c (compute_alignments): Too.
2222         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
2223         * function.c (thread_prologue_and_epilogue_insns): Too.
2224         * gcse.c (compute_code_hoist_vbeinout): Too.
2225         * global.c (build_insn_chain): Too.
2226         * ifcvt.c (find_if_block, find_cond_trap): Too.
2227         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
2228         * regmove.c (regmove_optimize): Too.
2229         * resource.c (find_basic_block): Too.
2230         * sched-ebb.c (schedule_ebbs): Too.
2231         * ssa-dce.c (find_control_dependence, find_pdom): Too.
2232
2233 2002-05-21  Andreas Jaeger  <aj@suse.de>
2234
2235         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
2236
2237 2002-05-21  Richard Henderson  <rth@redhat.com>
2238
2239         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
2240         unspec names, not numbers.
2241
2242 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2243
2244         * doc/sourcebuild.texi: Mention snapshot-README and
2245         snapshot-index.html as needing updating for new front ends.
2246
2247 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2248
2249         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2250         disabling checking, and avoid multiple evaluation of RTX.
2251
2252 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
2253
2254         * bitmap.c (bitmap_find_bit): Return early if we have the correct
2255         element cached.
2256
2257 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2258
2259         * profile.c (gen_edge_profiler):  Set alias set before the memory is
2260         used.
2261
2262 2002-05-20  David S. Miller  <davem@redhat.com>
2263
2264         * cselib.c (max_value_regs): New.
2265         (cselib_lookup, cselib_invalidate_regno): Initialize it when
2266         adding new entries to the REG_VALUES table and we are dealing with
2267         a hard register.
2268         (clear_table): Initialize it.
2269         (cselib_invalidate_regno): Use it to determine which hard
2270         registers to scan when mode is not VOIDmode.
2271
2272 2002-05-20  Duraid Madina   <duraid@fl.net.au>
2273
2274         * tradcpp.c (fixup_newlines): Use old-style function header.
2275
2276 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
2277
2278         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2279
2280 2002-05-20  H.J. Lu  (hjl@gnu.org)
2281
2282         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2283
2284         * config/mips/mips.h (DFMODE_NAN): Defined.
2285         (SFMODE_NAN): Likewise.
2286
2287 2002-05-20  Dale Johannesen  <dalej@apple.com>
2288
2289         * combine.c (cant_combine_insn_p):  Back out my
2290         previous patch.
2291
2292 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
2293
2294         * params.c: Fix formatting.
2295         * params.h: Likewise.
2296         * predict.c: Likewise.
2297         * prefix.c: Likewise.
2298         * print-rtl.c: Likewise.
2299         * print-tree.c: Likewise.
2300         * profile.c: Likewise.
2301
2302 2002-05-20  H.J. Lu  (hjl@gnu.org)
2303
2304         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2305
2306 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
2307
2308         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2309         switches straight on to the assembler, do not abbreviate them.
2310         * config/arm/elf.h (ASM_SPEC): As above.
2311         * config/arm/semi.h (ASM_SPEC): As above.
2312         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2313         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2314         -mcpu=xscale on to the assembler by default.
2315         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2316
2317 2002-05-20  Richard Henderson  <rth@redhat.com>
2318
2319         * cse.c (canon_hash): Reorder do_not_record test.  Always
2320         allow pic_offset_table_rtx.
2321
2322 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
2323
2324         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2325         (expand_binop): Ditto (3 times).
2326
2327 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
2328
2329         * Makefile.in (distclean): Remove QMTest stuff.
2330         (QMTEST_PATH): New variable.
2331         (QMTESTFLAGS): Likewise.
2332         (QMTESTRUNFLAGS): Likewise.
2333         (QMTEST): Likewise.
2334         (QMTEST_GPP_TESTS): Likewise.
2335         (QMTEST_DIR): Likewise.
2336         (QMTEST_DIR/context): New target.
2337         (qmtest-g++): Likeise.
2338         (qmtest-gui): Likewise.
2339         (QMTEST_DIR/gpp-expected.qmr): Likewise.
2340
2341 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
2342
2343         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2344         an altivec register if TARGET_ALTIVEC.
2345
2346         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2347         to ALTIVEC_VECTOR_MODE.
2348         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2349         (rs6000_va_arg): Vectors may go in registers if they are not
2350         altivec vectors.
2351
2352 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
2353
2354         * protoize.c: Fix formatting.
2355
2356 2002-05-19  Richard Henderson  <rth@redhat.com>
2357
2358         * gensupport.c (init_include_reader): Merge into ...
2359         (process_include): ... here.  Simplify composite path creation.
2360         Plug memory leaks.  Fix file/line number tracking.  Do not
2361         process_define_cond_exec.  Return void.
2362         (process_rtx): Don't check process_include return value.
2363
2364 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2365
2366         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2367         fields.
2368         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2369         traversing basic block chain.
2370         (create_basic_block_structure, create_basic_block): Declaration changed.
2371         (link_block, unlink_block): Declare.
2372         * cfg.c (entry_exit_blocks): Initialize new fields.
2373         (link_block, unlink_block): New.
2374         (expunge_block_nocompact): Unlink basic block.
2375         (dump_flow_info): Print prev_bb/next_bb fields.
2376         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2377         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2378         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2379         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2380         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2381         (verify_flow_info): Check that list agrees with numbering.
2382
2383 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2384
2385         * c-common.c (preprocessing_asm): New macro.
2386         * c-lex.h (builtin_define, builtin_assert): Use pfile.
2387 doc:
2388         * tm.texi: Update.
2389 config/alpha:
2390         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2391         (CPP_SPEC): Simplify.
2392         (TARGET_CPU_CPP_BUILTINS): Update.
2393         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2394         (CPP_SPEC): Simplify.
2395         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2396         (TARGET_OS_CPP_BUILTINS): Update.
2397         * osf.h (CPP_XFLOAT_SPEC): Kill.
2398         (TARGET_OS_CPP_BUILTINS): Update.
2399         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2400         * osf5.h (CPP_XFLOAT_SPEC): Kill.
2401         * vms.h (CPP_SUBTARGET_SPEC): Kill.
2402         (TARGET_OS_CPP_BUILTINS): Update.
2403
2404 2002-05-19  Richard Henderson  <rth@redhat.com>
2405
2406         * varasm.c (default_binds_local_p): Fix typo.
2407
2408 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2409
2410         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2411         CONST_INT operand to the correct mode after adding 1 to it.
2412
2413 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
2414
2415         * config.gcc (powerpc-wrs-windiss*): New target.
2416
2417 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2418
2419         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2420         (ashrdi3): Use it.
2421
2422 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
2423
2424         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2425         alphasort.
2426         * config.in: Regenerated.
2427         * configure: Regenerated.
2428
2429 2002-05-19  Richard Henderson  <rth@redhat.com>
2430
2431         * target-def.h (TARGET_BINDS_LOCAL_P): New.
2432         * target.h (struct gcc_target): Move boolean fields to the end.
2433         Add binds_local_p.
2434         * varasm.c (default_binds_local_p): New.
2435         * output.h: Declare it.
2436
2437         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2438         * config/cris/cris.c (cris_encode_section_info): Likewise.
2439         * config/i386/i386.c (i386_encode_section_info): Likewise.
2440         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2441         * config/sh/sh.c (sh_encode_section_info): Likewise.
2442
2443         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2444         (TARGET_BINDS_LOCAL_P): New.
2445
2446 2002-05-19  Richard Henderson  <rth@redhat.com>
2447
2448         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2449         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2450         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2451
2452         * toplev.c (display_help): Kill -a -ax help.
2453
2454         * config/1750a/1750a.h, config/alpha/alpha.h,
2455         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2456         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2457         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2458         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2459
2460         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2461         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2462
2463         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2464         (ix86_output_function_block_profiler): Kill.
2465         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2466         (m68hc11_function_block_profiler): Kill.
2467         * config/m68hc11/m68hc11-protos.h: Update.
2468         * config/m88k/m88k.c (output_block_profiler): Kill.
2469         (output_function_block_profiler): Kill.
2470         * config/m88k/m88k-protos.h: Update.
2471
2472 2002-05-19  Richard Henderson  <rth@redhat.com>
2473
2474         * system.h (STRIP_NAME_ENCODING): Poison it.
2475         * output.h (STRIP_NAME_ENCODING): Remove.
2476         (default_strip_name_encoding): Declare.
2477         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2478         * target.h (strip_name_encoding): New.
2479         * varasm.c (default_strip_name_encoding): New.
2480
2481         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2482         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2483         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2484         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2485         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2486         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2487         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2488         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2489         config/v850/v850.h: Use the hook, not the macro.
2490
2491         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2492         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2493         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2494         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2495         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2496         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2497         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2498         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2499         config/v850/v850.c, config/v850/v850.h:
2500         Move STRIP_NAME_ENCODING to out-of-line function and add
2501         TARGET_STRIP_NAME_ENCODING.
2502
2503         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2504         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2505         with TARGET_STRIP_NAME_ENCODING referencing existing function;
2506         make function static.
2507
2508         * xcoffout.c: Include target.h
2509         * Makefile.in (xcoffout.o): Update.
2510
2511         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2512         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2513         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2514         reloc argument unused.
2515         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2516
2517         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2518         STRIP_NAME_ENCODING docs.
2519
2520 2002-05-19  Andreas Jaeger  <aj@suse.de>
2521
2522         * gengenrtl.c: Add prototype for excluded_rtx.
2523
2524         * real.h: Add prototype for exact_real_truncate.
2525
2526 2002-05-18  Richard Henderson  <rth@redhat.com>
2527
2528         * system.h (ENCODE_SECTION_INFO): Poison it.
2529         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2530         * target.h (encode_section_info): New.
2531         * varasm.c (make_decl_rtl, output_constant_def): Use it.
2532         * hooks.c (hook_tree_int_void): New.
2533         * hooks.h: Declare it.
2534
2535         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2536         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2537         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2538         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2539         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2540         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2541         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2542         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2543         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2544         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2545         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2546         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2547         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2548         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2549         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2550         referencing existing function.  Make function static.
2551
2552         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2553         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2554         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2555         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2556         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2557         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2558         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2559         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2560         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2561         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2562         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2563         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2564         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2565         Move ENCODE_SECTION_INFO to out-of-line function and add
2566         TARGET_ENCODE_SECTION_INFO.
2567
2568         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2569         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2570
2571         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2572         from SUBTARGET_*
2573         (switch_to_section): Replace in_rdata case with in_readonly_data.
2574
2575         * config/h8300/h8300.c (h8300_encode_label): Make static.
2576         * config/h8300/h8300-protos.h: Update.
2577
2578         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2579         from rs6000_encode_section_info; make static.
2580         (rs6000_xcoff_encode_section_info): New.
2581
2582         * config/v850/v850.c (v850_encode_data_area): Make static.
2583         * config/v850/v850-protos.h: Update.
2584
2585         * config/vax/vax.c: Include flags.h.
2586         (vms_select_section): Fix typo.
2587
2588         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2589         ENCODE_SECTION_INFO docs.
2590
2591 2002-05-18  Richard Henderson  <rth@redhat.com>
2592
2593         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2594         REGISTER_TARGET_PRAGMAS.
2595         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2596
2597         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2598
2599 2002-05-18  Richard Henderson  <rth@redhat.com>
2600
2601         * system.h (SELECT_RTX_SECTION): Poison.
2602         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2603         * target.h (select_rtx_section): New.
2604         * varasm.c (output_constant_pool): Use it.
2605         (default_select_rtx_section, default_elf_select_rtx_section): New.
2606         * output.h: Declare them.
2607
2608         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2609         * config/darwin.c (machopic_select_rtx_section): ... here.
2610         * config/darwin-protos.h: Update.
2611
2612         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2613         * config/nextstep.c (machopic_select_rtx_section): ... here.
2614         (nextstep_select_section): Rename variable to avoid macro clash.
2615         * config/nextstep-protos.h: Update.
2616
2617         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2618         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2619         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2620         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2621         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2622         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2623         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2624         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2625         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2626         (SELECT_RTX_SECTION): Remove.
2627
2628         * config/darwin.h, config/elfos.h, config/nextstep.h,
2629         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2630         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2631         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2632         config/sparc/lynx.h, config/xtensa/xtensa.c
2633         (TARGET_ASM_SELECT_RTX_SECTION): New.
2634
2635         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2636         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2637         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2638         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2639         (ia64_aix_select_rtx_section): New.
2640         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2641         redefining.
2642         * config/mips/mips.c (mips_select_rtx_section): Make static.
2643         Support ELF SHF_MERGE features.
2644         * config/mips/mips-protos.h: Update.
2645         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2646         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2647         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2648         make static, fall back to default_elf_select_rtx_section.
2649         * config/rs6000/rs6000-protos.h: Update.
2650         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2651         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2652         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2653         * config/romp/romp.c (romp_select_rtx_section): New.
2654         * config/s390/s390.c (s390_select_rtx_section): New.
2655         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2656         declarations before target macro definition.
2657         (xtensa_emit_call): Use static buffer.
2658         (xtensa_select_rtx_section): New.
2659         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2660         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2661         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2662
2663         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2664         SELECT_RTX_SECTION docs.
2665
2666 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2667
2668         * i386.md (movsi/movdi): Fix template.
2669         (sse2 patterns): Set attributes consistently.
2670
2671         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2672
2673 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2674
2675         * optabs.c (complex_part_zero_p): New.
2676         * (expand_cmplxdiv_straight): Use it.
2677         * (expand_cmplxdiv_wide): Ditto.
2678         * (expand_binop): Ditto.
2679
2680 2002-05-18  Richard Henderson  <rth@redhat.com>
2681
2682         * final.c (HAVE_READONLY_DATA_SECTION): New.
2683         (shorten_branches): Use it instead of ifdefs.
2684         * varasm.c (enum in_section): Add in_readonly_data.
2685         (text_section, data_section): Tidy.
2686         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2687
2688         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2689         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2690         (READONLY_DATA_SECTION): Don't undef.
2691
2692         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2693         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2694         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2695
2696         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2697         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2698         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2699         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2700
2701         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2702         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2703         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2704         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2705         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2706         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2707         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2708         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2709         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2710
2711         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2712         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2713         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2714         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2715         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2716         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2717
2718         * config/elfos.h, config/netware.h, config/svr3.h,
2719         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2720         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2721         config/h8300/h8300.h, config/i386/i386-interix.h,
2722         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2723         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2724
2725         * config/elfos.h, config/netware.h, config/svr3.h,
2726         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2727         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2728         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2729         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2730
2731         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2732         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2733         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2734         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2735         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2736         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2737         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2738         config/rs6000/sysv4.h, config/v850/v850.h
2739         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2740         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2741
2742         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2743         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2744         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2745         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2746         * config/alpha/alpha.c (alpha_start_function): Likewise.
2747         (alpha_write_linkage): Likewise.
2748         * config/m32r/m32r.c (m32r_select_section): Likewise.
2749         * config/m88k/m88k.c (m88k_select_section): Likewise.
2750         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2751         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2752         (rs6000_elf_select_section): Likewise.
2753         * config/v850/v850.c (v850_select_section): Likewise.
2754
2755         * config/1750a/1750a.h, config/i860/sysv3.h
2756         (READONLY_DATA_SECTION_ASM_OP): New.
2757         READONLY_DATA_SECTION_ASM_OP.
2758         * config/i386/interix.c, config/i386/winnt.c
2759         (i386_pe_unique_section): Always use .rdata prefix.
2760         * config/pa/som.h (readonly_data): Always switch to read-only section.
2761         (READONLY_DATA_SECTION): Predicate on flag_pic.
2762         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2763         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2764         (READONLY_DATA_SECTION): Update.
2765
2766 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2767
2768         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2769         is used without -Wformat.
2770         * c-common.h (warn_format_zero_length): Declare extern.
2771         * c-decl.c (warn_options): Add "format-zero-length".
2772         * c-format.c (warn_format_zero_length): Declare.
2773         (set_Wformat): Set warn_format_zero_length for -Wformat.
2774         (check_format_info): Only warn about zero-length formats if
2775         warn_format_zero_length is true.  Include the format type
2776         name in the warning message.
2777         * doc/invoke.texi: Document -Wformat-zero-length.
2778         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2779
2780 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2781
2782         * timevar.c: Fix formatting.
2783         * tlink.c: Likewise.
2784         * toplev.c: Likewise.
2785         * tree-dump.c: Likewise.
2786         * tree-inline.c: Likewise.
2787
2788 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2789
2790         * cppinit.c (cpp_post_options): If preprocessed, turn off
2791         traditional.  If traditional, turn off column numbers.
2792         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2793         * cpptrad.c (handle_newline): Update line_base.
2794         (skip_comment): Handle -Wcomment.
2795
2796 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2797
2798         * cppinit.c (struct builtin): Remove unused fields.
2799         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2800         (operator_array): New - was second half of builtin_array.
2801         (init_builtins): Simplify loop over builtin_array/operator_array.
2802
2803 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2804
2805         * defaults.h (UNIQUE_SECTION): Remove.
2806         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2807
2808 2002-05-17  Richard Henderson  <rth@redhat.com>
2809
2810         * expr.c (init_expr_once): Don't use start/end_sequence.
2811         Use rtx_alloc instead of emit_insn.
2812         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2813         (lang_independent_init): ... not here.
2814
2815 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2816
2817         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2818
2819 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2820
2821         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2822         for fixed registers, possibly used for global register variables.
2823         (initial_elimination_offset, avr_output_function_prologue,
2824         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2825
2826 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2827
2828         * Makefile.in: Update for cpptrad.c.
2829         * cpphash.h (struct cpp_buffer): New members for buffer
2830         overlays.
2831         (struct cpp_reader): New members for traditional output.
2832         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2833         * cppinit.c (cpp_create_reader): Set trad_line.
2834         (cpp_destroy): Free trad_out_base if used.
2835         (cpp_read_main_file): Overlay an empty buffer if traditional.
2836         (cpp_finish_options): Don't do builtins.
2837         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2838         (cpp_handle_option): Handle it.
2839         * cpplex.c (continue_after_nul): New.
2840         (_cpp_lex_direct): Use handle_nul.
2841         * cpplib.h (struct cpp_options): New traditional option.
2842         * cpptrad.c: New file.
2843
2844 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2845
2846         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2847         and set the options flag.
2848         * cppinit.c (lang_flags): Remove objc.
2849         (lang_defaults): Remove OBJC and OBJCXX.
2850         (set_lang): Update.
2851         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2852         (cpp_handle_option): Remove -+ and -lang-objc++.
2853         For ObjC, just set a flag.
2854         (print_help): Update.
2855         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2856
2857 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2858
2859         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2860         bootstrap with -mips3.
2861
2862 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2863
2864         * final.c: Fix formatting.
2865         * fix-header.c: Likewise.
2866         * flow.c: Likewise.
2867         * fold-const.c: Likewise.
2868         * function.c: Likewise.
2869
2870 2002-05-17  David S. Miller  <davem@redhat.com>
2871
2872         PR c/6689, PR optimization/6615
2873         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2874         and make it a pointer to rtx.  Update comments.
2875         (update_equiv_regs): When scanning for equivalences, record
2876         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2877         it while making the equiv replacements.
2878
2879 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2880
2881         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2882
2883 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2884
2885         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2886         when encoding visibility into SYMBOL_REF_FLAG.
2887
2888 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2889
2890         * expr.c (force_operand): Fix reversed move.
2891
2892 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2893
2894         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2895         that can be ignored.
2896
2897 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2898
2899         * doc/install.texi (Final install): Recommend to install into a
2900         "clean" target directory.
2901
2902 2002-05-17  Richard Henderson  <rth@redhat.com>
2903
2904         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2905         for code blocks.  Tidy whitespace.
2906
2907 2002-05-17  Richard Henderson  <rth@redhat.com>
2908
2909         * hooks.c (hook_tree_bool_false): New.
2910         * hooks.h: Declare it.
2911         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2912         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2913         * target.h (select_section, unique_section): New.
2914         (in_small_data_p): New.
2915         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2916         (variable_section, output_constant_def_contents): Likewise.
2917         (default_select_section, default_unique_section): New.
2918         (categorize_decl_for_section, default_elf_select_section): New.
2919         * output.h: Declare them.
2920
2921         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2922         (TARGET_ASM_SELECT_SECTION): New.
2923         (SELECT_SECTION): Move ...
2924         * config/darwin.c (machopic_select_section): ... here.
2925         * config/darwin-protos.h: Update.
2926
2927         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2928         (SELECT_SECTION): Move ...
2929         * config/nextstep.c (nextstep_select_section): ... here.
2930         * config/nextstep-protos.h: Update.
2931
2932         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2933         (TARGET_ASM_SELECT_SECTION): New.
2934         * config/svr3.h (SELECT_SECTION): Remove.
2935
2936         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2937         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2938         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2939         (alpha_encode_section_info): Use it.
2940         * config/alpha/alpha-protos.h: Update.
2941         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2942         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2943         (TARGET_ASM_SELECT_SECTION): New.
2944         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2945
2946         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2947         (TARGET_ASM_UNIQUE_SECTION): New.
2948
2949         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2950         (avr_unique_section): Rename from unique_section; make static.
2951         * config/avr/avr-protos.h: Update.
2952         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2953
2954         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2955
2956         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2957         (TARGET_ASM_UNIQUE_SECTION): New.
2958         * config/i386/i386-interix.h: Likewise.
2959         * config/i386/win32.h: Likewise.
2960         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2961         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2962         * config/i386/sco5.h (SELECT_SECTION): Remove.
2963         (TARGET_ASM_SELECT_SECTION): New.
2964         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2965
2966         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2967         instead of SELECT_SECTION.
2968         * config/m68k/dpx2.h: Likewise.
2969         * config/rs6000/lynx.h: Likewise.
2970
2971         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2972         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2973         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2974         (ia64_in_small_data_p): New.
2975         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2976         (ia64_aix_select_section, ia64_aix_unique_section): New.
2977         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2978         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2979
2980         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2981         (TARGET_ASM_SELECT_SECTION): New.
2982         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2983         * config/m32r/m32r-protos.h: Update.
2984
2985         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2986         (SELECT_SECTION): Move ...
2987         * config/m88k/m88k.c (m88k_select_section): ... here.
2988
2989         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2990         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2991         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2992         (mcore_unique_section): Make static.
2993         * config/mcore/mcore-protos.h: Update.
2994
2995         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2996         (TARGET_ASM_UNIQUE_SECTION): New.
2997         * config/mips/elf64.h: Likewise.
2998         * config/mips/iris6gld.h: Likewise.
2999         * config/mips/linux.h: Likewise.
3000         * config/mips/mips-protos.h: Update.
3001         * config/mips/mips.c (mips_select_section): Add align argument.
3002         * config/mips/mips.h (SELECT_SECTION): Remove.
3003         (TARGET_ASM_SELECT_SECTION): New.
3004
3005         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
3006         * config/mmix/mmix.c (mmix_select_section): Remove.
3007         (mmix_unique_section): Remove.
3008         * config/mmix/mmix-protos.h: Update.
3009
3010         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
3011         (SELECT_SECTION): Move ...
3012         * config/pa/pa.c (pa_select_section): ... here.
3013         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
3014
3015         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
3016         from rs6000_select_section and make static.
3017         (rs6000_elf_unique_section): Similarly.
3018         (rs6000_xcoff_select_section): From xcoff.h.
3019         (rs6000_xcoff_unique_section): Likewise.
3020         * config/rs6000/rs6000-protos.h: Update.
3021         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
3022         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
3023         * config/rs6000/xcoff.h: Likewise.
3024
3025         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
3026         (SELECT_SECTION): Move ...
3027         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
3028
3029         * config/v850/v850.h (SELECT_SECTION): Move ...
3030         * config/v850/v850.c (v850_select_section): ... here.
3031         (TARGET_ASM_SELECT_SECTION): New.
3032
3033         * config/vax/vms.h (SELECT_SECTION): Move ...
3034         * config/vax/vax.c (vms_select_section): ... here.
3035         (TARGET_ASM_SELECT_SECTION): New.
3036
3037         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
3038         for the target hooks.
3039
3040 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
3041
3042         * config/arm/arm.c (emit_multi_reg_push): Do not set
3043         RTX_FRAME_RELATED_P on the SEQUENCE.
3044
3045 2002-05-16  Richard Henderson  <rth@redhat.com>
3046
3047         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
3048         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
3049
3050 2002-05-16  Richard Henderson  <rth@redhat.com>
3051
3052         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
3053
3054         * config/ia64/ia64.c (saveable_obstack): Do not declare.
3055
3056 2002-05-16  Richard Henderson  <rth@redhat.com>
3057
3058         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
3059         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
3060         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
3061         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
3062         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
3063         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
3064         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
3065         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
3066         Revert "Basic block renumbering removal", and two followup patches.
3067
3068 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
3069
3070         * lcm.c (optimize_mode_switching): Revert previous change.
3071
3072 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3073
3074         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
3075         with only extant block numbers.
3076
3077 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
3078
3079         * lcm.c (optimize_mode_switching): Fix typo.
3080
3081 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3082
3083         * flow.c (calculate_global_regs_live): Queue blocks in program order.
3084
3085 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3086
3087         * doc/install.texi (Configuration): Document PWDCMD.
3088
3089 2002-05-16  Dale Johannesen  <dalej@apple.com>
3090
3091         * combine.c (cant_combine_insn_p):  Reenable combinations
3092         involving hard regs unless CLASS_LIKELY_SPILLED_P.
3093
3094 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3095
3096         * c-common.c (cb_register_builtins): Handle more built-ins
3097         here rather than in gcc.c specs.
3098         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
3099         (cpp_options): Pass -O flags even when only preprocessing.
3100         * toplev.c (set_fast_math_flags): New prototype.
3101         (fast_math_flags_set_p): New.
3102         (set_no_fast_math_flags): Remove.
3103         (decode_f_option): Update.
3104         * toplev.h (set_fast_math_flags): Update.
3105         (fast_math_flags_set_p): New.
3106         (set_no_fast_math_flags): Remove.
3107 config:
3108         * c4x/c4x.c (c4x_override_options): Update.
3109
3110 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
3111
3112         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
3113         Default-define here.
3114         (builtin_define_with_value): Can now wrap the expansion in
3115         quotation marks if such is wanted.
3116         (cb_register_builtins): Update calls to builtin_define_with_value.
3117         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
3118         here.
3119         (c_common_init): Set options->stdc_0_in_system_headers.
3120         * c-lex.h: Update prototype of builtin_define_with_value.
3121         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
3122         and REGISTER_PREFIX.
3123
3124         * cppinit.c (VERS, ULP, C, X): Kill.
3125         (builtin_array): Remove entries for __VERSION__,
3126         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
3127         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
3128         a constant.
3129         (init_builtins): Kill off a bunch of now-dead code.
3130         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
3131         -fno-leading-underscore.
3132         (cpp_handle_option): Remove code to set user_label_prefix.
3133         (cpp_post_options): Likewise.
3134
3135         * cpplib.h (struct cpp_options): Remove user_label_prefix.
3136         (stdc_0_in_system_headers): New.
3137         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
3138         stdc_0_in_system_headers) too to decide the value of __STDC__.
3139
3140         * tradcpp.c (user_label_prefix): Kill.
3141         (main): Remove code handling -f(no-)leading-underscore.
3142         (initialize_builtins): Don't define __REGISTER_PREFIX__
3143         or __USER_LABEL_PREFIX__.
3144         (install_value): Wrap compound statement in dummy loop so the
3145         macro works properly in an if statement.
3146
3147
3148 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
3149
3150         * loop.h (struct loop_info): Add member has_prefetch.
3151         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
3152         (prescan_loop): Initialize has_prefetch.
3153         (struct prefetch_info): Change prefetch_in_loop and
3154         prefetch_before_loop from bit fields to ints.
3155         (emit_prefetch_instructions): Several small fixes.
3156         (check_dbra_loop): Don't reverse loop that uses prefetch.
3157
3158 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3159
3160         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
3161         * configure.in: Likewise.
3162         * fixinc/check.tpl: Likewise.
3163         * fixinc/fixinc.dgux: Likewise.
3164         * fixinc/fixinc.svr4: Likewise.
3165         * fixinc/fixinc.winnt: Likewise.
3166         * fixinc/fixincl.sh: Likewise.
3167         * fixproto: Likewise.
3168         * configure: Regenerate.
3169
3170 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3171
3172         Basic block renumbering removal:
3173         * basic_block.h (struct basic_block_def): Renamed index to sindex,
3174         added prev_bb and next_bb fields.
3175         (n_basic_blocks): Renamed to num_basic_blocks.
3176         (last_basic_block): New, index of last basic block.
3177         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3178         traversing basic block chain.
3179         (BLOCK_NUM): index -> sindex.
3180         (create_basic_block_structure, create_basic_block): Declaration changed.
3181         (debug_num2bb): Declare.
3182         (expunge_block_nocompact): Declaration removed.
3183         (link_block, unlink_block, compact_blocks): Declare.
3184         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
3185         * cfg.c (entry_exit_blocks): Initialize new fields.
3186         (clear_edges, alloc_block, expunge_block, cached_make_edge,
3187         redirect_edge_pred, dump_flow_info, dump_edge_info,
3188         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
3189         free_aux_for_edges): Modified.
3190         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
3191         (expunge_block_nocompact): Removed.
3192         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
3193         find_unreachable_blocks, create_edge_list, print_edge_list,
3194         verify_edge_list, flow_edge_list_print, remove_fake_successors,
3195         remove_fake_edges, flow_reverse_top_sort_order_compute,
3196         flow_depth_first_order_compute, flow_preorder_transversal_compute,
3197         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
3198         flow_dfs_compute_reverse_execute): Modified.
3199         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
3200         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
3201         Modified.
3202         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3203         merge_blocks_move_predecessor_nojumps,
3204         merge_blocks_move_successor_nojumps, merge_blocks,
3205         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
3206         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
3207         * cfglayout.c (skip_insns_after_block, label_for_bb,
3208         record_effective_endpoints, scope_to_insns_finalize,
3209         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
3210         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
3211         cfg_layout_duplicate_bb): Modified.
3212         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
3213         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3214         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
3215         flow_loops_find, flow_loop_outside_edge_p): Modified.
3216         * cfgrtl.c (create_basic_block_structure, create_basic_block,
3217         flow_delete_block, compute_bb_for_insn, split_block,
3218         try_redirect_by_replacing_jump, redirect_edge_and_branch,
3219         force_nonfallthru_and_redirect, tidy_fallthru_edge,
3220         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
3221         commit_edge_insertions, commit_edge_insertions_watch_calls,
3222         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3223         purge_all_dead_edges): Modified.
3224         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
3225         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3226         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
3227         Modified.
3228         * conflict.c (conflict_graph_compute): Modified.
3229         * df.c (FOR_ALL_BBS): Removed.
3230         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3231         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
3232         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
3233         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
3234         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3235         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
3236         * final.c (compute_alignments, final_scan_insn): Modified.
3237         * flow.c (verify_local_live_at_start, update_life_info,
3238         update_life_info_in_dirty_blocks, free_basic_block_vars,
3239         delete_noop_moves, calculate_global_regs_live,
3240         initialize_uninitialized_subregs, allocate_bb_life_data,
3241         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
3242         mark_used_reg, count_or_remove_death_notes): Modified.
3243         * function.c (thread_prologue_and_epilogue_insns): Modified.
3244         * gcse.c (struct null_pointer_info): Change typo of current_block
3245         to basic_block.
3246         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3247         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3248         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3249         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3250         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3251         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3252         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3253         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3254         pre_delete, one_pre_gcse_pass, compute_transpout,
3255         invalidate_nonnull_info, delete_null_pointer_checks_1,
3256         free_code_hoist_mem, compute_code_hoist_vbeinout,
3257         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3258         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3259         compute_store_table, build_store_vectors, insert_insn_start_bb,
3260         insert_store, replace_store_insn, free_store_memory, store_motion):
3261         Modified.
3262         * global.c (global_alloc, global_conflicts, mark_elimination,
3263         build_insn_chain): Modified.
3264         * graph.c (print_rtl_graph_with_bb): Modified.
3265         * haifa-sched.c (sched_init): Modified.
3266         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3267         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3268         if_convert): Modified.
3269         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3270         compute_insert_delete, pre_edge_lcm, compute_available,
3271         compute_farthest, compute_nearerout, compute_rev_insert_delete,
3272         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3273         Modified.
3274         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3275         * loop.c (loop_dump_aux): Modified.
3276         * predict.c (combine_predictions_for_insn, estimate_probability,
3277         last_basic_block_p, process_note_prediction, process_note_predictions,
3278         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3279         expensive_function_p, estimate_bb_frequencies,
3280         compute_function_frequency): Modified.
3281         * print-rtl.c (print_rtx): Modified.
3282         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3283         get_exec_counts, compute_branch_probabilities, compute_checksum,
3284         branch_prob, find_spanning_tree): Modified.
3285         * recog.c (split_all_insns, peephole2_optimize): Modified.
3286         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3287         convert_regs_1, convert_regs_2, convert_regs): Modified.
3288         * regclass.c (scan_one_insn, regclass): Modified.
3289         * regmove.c (mark_flags_life_zones, regmove_optimize,
3290         combine_stack_adjustments): Modified.
3291         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3292         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3293         * reorg.c (dbr_schedule): Modified.
3294         * resource.c (find_basic_block, init_resource_info): Modified.
3295         * sbitmap.c (sbitmap_intersection_of_succs,
3296         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3297         sbitmap_union_of_preds): Modified.
3298         * sched-deps.c (init_dependency_caches): Modified.
3299         * sched-ebb.c (schedule_ebbs): Modified.
3300         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3301         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3302         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3303         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3304         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3305         ssa_const_prop): Modified.
3306         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3307         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3308         * ssa.c (remove_phi_alternative, find_evaluations,
3309         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3310         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3311         make_regs_equivalent_over_bad_edges,
3312         make_equivalent_phi_alternatives_equival,
3313         compute_conservative_reg_partition,
3314         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3315         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3316         Modified.
3317
3318 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
3319
3320         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3321
3322 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
3323
3324         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3325         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3326         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3327         calling CONSTANT_POOL_ADDRESS_P.
3328         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3329         to decide whether to define __arm__ or __thumb.
3330         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3331         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3332
3333 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3334
3335         * config/arc/arc.h (CPP_PREDEFINES): Remove.
3336         (CPP_SPEC): Update.
3337         (TARGET_CPU_CPP_BUILTINS): New.
3338
3339 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3340
3341         * cpphash.h (cpp_macro): Move here, and make expansion a union.
3342         * cppmacro.c (cpp_macro): Remove.
3343         (enter_macro_context, replace_args, warn_of_redefinition,
3344         _cpp_create_definition, cpp_macro_definition): Update.
3345
3346 2002-05-16  Jason Merrill  <jason@redhat.com>
3347
3348         * config/mips/mips.c (mips_output_external): Don't do sdata
3349         optimization for a variable with DECL_COMDAT set.
3350
3351 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3352
3353         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3354         Cleanups for accepting modifiers on pointers.
3355         Fix predicate typos.
3356         Allow long pointers as well as int pointers.
3357
3358 2002-05-15  Richard Henderson  <rth@redhat.com>
3359
3360         * varasm.c (merge_weak): Remove special case for extern and common.
3361
3362 2002-05-15  Matt Hiller  <hiller@redhat.com>
3363
3364         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3365         XFAILing.
3366         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3367         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3368         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3369         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3370         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3371         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3372
3373 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3374
3375         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3376
3377 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3378
3379         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3380         ("altivec_mfvscr"): Read from VSCR.
3381
3382         Add vscr sets for the following insns: altivec_vctuxs,
3383         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3384         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3385         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3386         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3387         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3388         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3389         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3390         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3391         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3392         altivec_vsum2sws, altivec_vsumsws.
3393
3394         * config/rs6000/rs6000.h: Add VSCR fixed register.
3395         (CALL_REALLY_USED_REGISTERS): Add vscr.
3396         (CALL_USED_REGISTERS): Same.
3397         (FIXED_REGISTERS): Same.
3398         (REG_ALLOC_ORDER): Same.
3399         (reg_class): Add VSCR_REGS.
3400         (REG_CLASS_NAMES): Same.
3401         (REG_CLASS_CONTENTS): Same.
3402         (VSCR_REGNO): New.
3403         (REGISTER_NAMES): Add vscr.
3404         (DEBUG_REGISTER_NAMES): Same.
3405         (ADDITIONAL_REGISTER_NAMES): Same.
3406         (FIRST_PSEUDO_REGISTER): Increment.
3407         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3408
3409 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
3410
3411         * fold-const.c (fold): Fix a typo.
3412
3413 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
3414
3415         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3416         comparison against the highest or lowest integer value before
3417         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3418         transformation and that of an unsigned comparison against 0
3419         right after.
3420
3421 2002-05-15  Richard Henderson  <rth@redhat.com>
3422
3423         * varasm.c (merge_weak): Error for any weakening after definition.
3424         Adjust weakening after use warning to catch more cases.
3425         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3426         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3427
3428 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
3429
3430         * invoke.texi (-malign-double): Re-add lost warning.
3431
3432         * i386-protos.h (x86_output_mi_thunk): Declare.
3433         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3434         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3435
3436         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3437         when flag_asynchronous_unwind_tables is set.
3438
3439         * flags.h (flag_reorder_functions): Declare.
3440         * function.c (prepare_function_start): Initialize frequnecy.
3441         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3442         * Makefile.in (predict.o): Add dependency on target.h and params.h
3443         * defaults.h (HOT_TEXT_SECTION_NAME,
3444         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3445         * predict.c (choose_function_section): New function.
3446         (estimate_bb_frequencies): Use it.
3447         * toplev.c (flag_reorder_functions): New global variable.
3448         (lang_independent_options): New.
3449         (parse_options_and_default_flags): Set.
3450         * varasm.c (assemble_start_function): Bypass functdion alignment
3451         for never executed functions.
3452         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3453         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3454         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3455         Document.
3456
3457         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3458
3459         * predict.c: Inlude profile.h
3460         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3461         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3462         Use the information about maximal counter in the program.
3463
3464         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3465
3466         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3467         probably_never_executed_bb_p): New functions.
3468         * cfgcleanup.c (outgoing_edges_match): Use them.
3469         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3470         (maybe_hot_bb_p, probably_cold_bb_p,
3471         probably_never_executed_bb_p): New functions.
3472
3473         * function.h (function): Add new field function_frequency.
3474         * predict.c (compute_function_frequency): New function.
3475         (estimate_probability): Call it.
3476
3477 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3478
3479         PR optimization/5172, optimization/5200
3480         * gcse.c (gcse_main): Disable store_motion.
3481
3482 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
3483
3484         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3485         (c_common_nodes_and_builtins): Use it.
3486         (builtin_define_with_value): New function.
3487         (cb_register_builtins): Define __SIZE_TYPE__,
3488         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3489         using builtin_define_with_value.  Use consistent notation when
3490         defining __GXX_WEAK__.
3491         (WCHAR_TYPE_SIZE): Don't redefine.
3492         (combine_strings): Don't use WCHAR_TYPE_SIZE.
3493
3494         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3495         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3496         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3497         * tradcpp.c (initialize_builtins): Likewise.
3498         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3499
3500         * c-lex.h (builtin_define_with_value): Prototype.
3501         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3502         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3503         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3504
3505         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3506         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3507         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3508         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3509         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3510         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3511         config/sparc/sol2-bi.h, config/sparc/sparc.h:
3512         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
3513         to __SIZE_TYPE__ etc from all spec strings. When this makes
3514         extra specs empty, delete them.
3515
3516 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3517
3518         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3519         for PA8000 or generating dwarf2 call frame information.
3520         (output_call): Remove DO_FRAME_NOTES check from return pointer
3521         optimization.
3522         (following_call): Return 0 when scheduling for PA8000 or generating
3523         dwarf2 call frame information.  Revise comment.
3524
3525 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3526
3527 config/alpha:
3528         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3529         and __IEEE_FP_INEXACT as appropriate.
3530         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3531         (CPP_SPEC): Remove ieee defines.
3532         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3533
3534 2002-05-14  Richard Henderson  <rth@redhat.com>
3535
3536         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3537         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3538
3539 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3540
3541         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3542         (CPP_SPEC): Update.
3543         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3544         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3545         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3546         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3547         (EXTRA_SPECS): Update.
3548         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3549         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3550         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3551         define TARGET_OS_CPP_BUILTINS if necessary.
3552
3553 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3554
3555         * gcc.c (cpp_options): Must pass -m* and -f* options
3556         to the front end even when only preprocessing.
3557         (cc1_options): Remove redundant -lang-c.
3558         * tradcpp.c (main): Ignore -m options.
3559 objc:
3560         * lang-specs.h: Similarly.
3561
3562 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3563
3564         * genautomata.c (transform_3): Add code for transformation
3565         `(A,B,...)+C -> A+C,B,...'.
3566
3567 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3568
3569         * final.c (end_final): Do not output profile_arcs constructor, when
3570         no functions are instrumented.
3571
3572 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3573
3574         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3575
3576 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3577
3578         * doc/install.texi: Remove special markup originally required for
3579         HTML generation with texi2html.
3580
3581 2002-05-14  Andreas Schwab  <schwab@suse.de>
3582
3583         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3584         SELECT_SECTION.
3585         (UNIQUE_SECTION): Define to get small data correctly.
3586
3587         * varasm.c (resolve_unique_section): Add third parameter
3588         flag_function_or_data_sections and use it instead of
3589         flag_function_sections.
3590         (assemble_start_function): Pass flag_function_sections.
3591         (asm_emit_uninitialised): Pass flag_data_sections.
3592         (assemble_variable): Likewise.
3593
3594 2002-05-14  Richard Henderson  <rth@redhat.com>
3595
3596         * config/i386/i386.md: Use define_constants for unspec numbers.
3597         * config/i386/i386.c: Likewise.
3598
3599 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3600
3601         * doc/contrib.texi: Update my entry.
3602
3603 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3604
3605         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3606         * fixinc/fixincl.x: Regenerated.
3607         * fixinc/tests/base/math.h: Update.
3608         * fixinc/tests/base/testing.h: Likewise.
3609
3610 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3611
3612         * genattr.c (gen_attr): Don't emit a comma after the last
3613         enumerator.
3614
3615 2002-05-13  Richard Henderson  <rth@redhat.com>
3616
3617         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3618         by non-local gotos.
3619         * recog.c (peephole2_optimize): Likewise.
3620
3621 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3622
3623         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3624         input to O_BINARY.
3625
3626 2002-05-13  Jeffrey A Law  (law@redhat.com)
3627
3628         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3629         Update prototype and callers.
3630         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3631         the mem_set_list which reference the stack pointer, as do
3632         calls to constant functions as they may clobber outgoing
3633         argument space.
3634
3635         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3636
3637         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3638         (ia32_multipass_dfa_lookahead): New function.
3639
3640 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3641
3642         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3643         (translate_options): Remove 'V'.
3644         (process_command): Similarly.
3645 doc:
3646         * invoke.texi: Remove documentation of 'V'.
3647
3648 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3649
3650         * config/s390/linux.h: Revert 2002-04-22 changes.
3651
3652 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3653
3654         * config/fr30/fr30.md: Only allow splits of immediate loads
3655         if the destination is a register.
3656
3657 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3658
3659         * Makefile.in (c-common.o, cppinit.o): Update.
3660         * c-common.c: Include except.h.
3661         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3662         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3663         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3664         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3665         CPP_PREDEFINES): Handle here.
3666 config:
3667         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3668         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3669         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3670         TARGET_OS_CPP_BUILTINS.
3671         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3672         (CPP_SPEC, EXTRA_SPECS): Update.
3673         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3674         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3675         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3676         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3677         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3678 doc:
3679         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3680         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3681
3682 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3683
3684         * emit-rtl.c (global_rtl): Update comment.
3685         (const_double_htab, const_double_htab_hash,
3686         const_double_htab_hash, lookup_const_double): New.
3687         (const_int_htab_hash, const_int_htab_eq): Remove const
3688         qualifiers, which cause tons of warnings with RTL checking on.
3689         (gen_rtx_CONST_DOUBLE): Deleted.
3690         (const_double_from_real_value): New function - bears some
3691         resemblance to the former immed_real_const_1.
3692         (immed_double_const): Moved here from varasm.c and
3693         simplified.
3694         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3695         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3696         (gen_rtx): Use immed_double_const.
3697         (init_emit_once): Initialize the const_double_htab.  Use
3698         REAL_VALUE_FROM_INT where possible.  Can now use
3699         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3700         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3701         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3702         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3703         (init_varasm_status, mark_varasm_status): Don't touch
3704         x_const_double_chain.
3705
3706         * output.h: Delete prototype for clear_const_double_mem.
3707         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3708         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3709         const_double_from_real_value, not immed_real_const_1, and use
3710         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3711         CONST_DOUBLE_ATOF.
3712         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3713         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3714         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3715         (gen_rtx_REG): Second arg is unsigned.
3716
3717         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3718         (excluded_rtx): New, return true for CONST_DOUBLE.
3719         (genmacro): Write nothing for excluded codes.
3720         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3721         * expr.c (expand_expr): Likewise.
3722         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3723         CONST_DOUBLE_CHAIN.
3724         * toplev.c (rest_of_compilation): Don't call
3725         clear_const_double_mem.
3726
3727         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3728         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3729         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3730         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3731         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3732         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3733         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3734         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3735
3736 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3737
3738         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3739
3740 2002-05-12  Tom Tromey  <tromey@redhat.com>
3741
3742         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3743
3744 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3745
3746         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3747         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3748         * gensupport.h: Prototype new routines.
3749         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3750         use of printf.
3751         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3752         (next_comma_elt): Use scan_comma_elt.
3753
3754         * config/i386/i386.md: Use new attribute notation to break up
3755         long lines in define_attr forms.
3756
3757 2002-05-12  Richard Henderson  <rth@redhat.com>
3758
3759         * expr.c (compress_float_constant): New.
3760         (emit_move_insn): Use it.
3761         (float_extend_from_mem): New.
3762         (init_expr_once): Initialize it.
3763         * real.c (exact_real_truncate): New.
3764
3765         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3766         dropped into memory; penalize for size.
3767         (RTX_COSTS): FLOAT_EXTEND is free.
3768         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3769         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3770
3771 2002-05-12  Richard Henderson  <rth@redhat.com>
3772
3773         * profile.h (profile_info): Add missing extern to declaration.
3774         * profile.c (profile_info): Define it.
3775
3776 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3777
3778         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3779         used for DImode and TImode.
3780
3781 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3782
3783         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3784         fake a newline.
3785
3786 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3787
3788         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3789         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3790         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3791         (rs6000_override_options): Handle -m(no-)longcall.
3792         (init_cumulative_args, output_mi_thunk): Check for both
3793         longcall and shortcall attributes on the function.
3794         (rs6000_attribute_table): Add "shortcall".
3795         (rs6000_handle_longcall_attribute): Update comment.
3796         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3797         altivec_expand_ternop_builtin): Add default clauses to switches
3798         to silence warnings.
3799
3800         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3801         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3802         (TARGET_OPTIONS): Add longcall and no-longcall.
3803
3804         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3805         call_value_nonlocal_sysv): Split by alternatives.  One pair
3806         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3807         the call cookie.  The other pair accepts only LR/CTR and has
3808         no restriction.
3809
3810         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3811         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3812         tmake_file.
3813         * config/rs6000/rs6000-c.c: New file.
3814         * config/rs6000/t-rs6000-c-rule: New file.
3815         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3816         Prototype rs6000_pragma_longcall.
3817
3818         * doc/extend.texi: Document shortcall attribute.
3819         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3820
3821 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3822
3823         * reorg.c (dbr_schedule): Remove unnecessary test.
3824
3825 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3826
3827         * i386.md (testsi to testqi spliters): New.
3828
3829         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3830
3831         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3832
3833         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3834
3835         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3836         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3837         that can be made fallthru.
3838
3839         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3840
3841         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3842         (cfg_layout_initialize): Use it.
3843
3844 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3845
3846         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3847         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3848         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3849
3850 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3851
3852         * dbxout.c: Fix formatting.
3853         * dependence.c: Likewise.
3854         * df.c: Likewise.
3855         * diagnostic.c: Likewise.
3856         * doloop.c: Likewise.
3857         * dominance.c: Likewise.
3858         * doschk.c: Likewise.
3859         * dwarf2asm.c: Likewise.
3860         * dwarf2out.c: Likewise.
3861         * dwarfout.c: Likewise.
3862
3863 2002-05-10  Richard Henderson  <rth@redhat.com>
3864
3865         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3866         Convert integers constants as needed.  Replace "nwords" field with
3867         "sizeof_bb".
3868         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3869         * function.h: Fix typo in comment.
3870         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3871
3872 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3873
3874         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3875         into the equivalent (signed char)c > 0.
3876
3877 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3878
3879         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3880         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3881         (struct prefetch_info): Fix spelling of member bytes_accessed.
3882         (emit_prefetch_instructions): Make dump messages more regular;
3883         restructure code to add more dump messages; use new macros for
3884         heuristics. (There are no code generation changes in any of this).
3885
3886 2002-05-10  David S. Miller  <davem@redhat.com>
3887
3888         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3889         (struct rtx_def): Update unchanging flag comment.
3890         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3891         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3892         to be handled to INSN too.
3893         (dbr_schedule): Likewise.
3894         * resource.c (next_insn_no_annul): Likewise.
3895
3896         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3897         casing.
3898
3899 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3900
3901         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3902         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3903         (possibly) work around broken /bin/sh.
3904
3905 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3906
3907         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3908         . as N64/N32 libgcc_s.so subdirs.
3909
3910 2002-05-10  David S. Miller  <davem@redhat.com>
3911
3912         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3913
3914         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3915         more accurately.
3916         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3917         comment.
3918         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3919         * doc/rtl.texi: Document these macros more accurately.
3920         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3921         JUMP_INSNs and CALL_INSNs.
3922         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3923         or INSN_FROM_TARGET_P if the code is appropriate.
3924
3925 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3926
3927         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3928         before using SYMBOL_REF_FLAG (addr).
3929
3930         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3931         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3932         Make non-static.  Update all callers.
3933         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3934         New insns to clear/set/test a single bit in I/O address space.
3935
3936 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3937
3938         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3939
3940 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3941
3942         * Makefile.in: Update.
3943         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3944         builtin_define_std): New.
3945         (c_common_init): Register CPP builtins callback.
3946         * c-common.h (flag_iso, flag_undef): New.
3947         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3948         * c-lex.c: Don't include target.h.
3949         (cb_register_builtins): Move to c-common.c.
3950         (init_c_lex): Don't register hook here.
3951         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3952         (cpp_define, cpp_assert): Remove.
3953         * gcc.c (cc1_options): Pass -undef to front end.
3954         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3955         (TARGET_INITIALIZER): Update.
3956         * target.h (struct cpp_reader): Don't predeclare.
3957         (struct gcc_target): Remove cpp builtin hook.
3958         * tree.c (default_register_cpp_builtins): Remove.
3959 doc:
3960         * tm.texi: Update.
3961
3962 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3963
3964         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3965
3966 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3967
3968         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3969         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3970
3971 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3972
3973         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3974         * config/sparc/libgcc-sparc-glibc.ver: New file.
3975         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3976         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3977
3978 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3979
3980         PR target/6429
3981         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3982         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3983         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3984         base multilibs.
3985         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3986         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3987         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3988         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3989
3990 2002-05-09  Richard Henderson  <rth@redhat.com>
3991
3992         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3993         * config/ia64/ia64.c: Likewise.
3994
3995 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3996
3997         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3998         (save_restore_insns): Likewise.
3999         (mips_expand_prologue, mips_expand_epilogue): Update callers.
4000         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
4001
4002 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
4003
4004         * athlon.md, k6.md, pentium.md, ppro.md): New files.
4005         * i386.md: Move scheduling information into new files.
4006
4007         * i386.md (type attribute): Add "rotate" for rotate insns.
4008         (rotate insns): Set type to "rotate".
4009         (various attributes and function units): Treat rotate like shift.
4010         (pent_pair attribute): Only rotates by one bit position are
4011         pairable.
4012         (sbb insns): Explicitly set pent_pair attribute on a couple
4013         that were missing it.
4014
4015 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
4016
4017         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
4018         make sure that buffer starts on odd word address.
4019         (sh_va_arg): Skip odd fp registers when reading a double precision
4020         value.
4021
4022 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
4023
4024         * tree.h (preserve_data, object_permanent_p, type_precision):
4025         Remove.
4026
4027 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
4028
4029         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
4030         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
4031 doc:
4032         * cpp.texi: Update for removal of obsolete features.
4033
4034 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
4035                           Jeffrey A Law  (law@redhat.com)
4036
4037         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
4038         the DFA interface for Pentium processors.
4039         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
4040         (attr_pent_pair, ix86_pent_find_pair): Remove.
4041         (ix86_sched_reorder_pentium): Remove.
4042         (ix86_sched_reorder): Remove reordering for Pentium.
4043         * i386.md (Pentium scheduling): Rewrite using DFA description.
4044
4045 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
4046
4047         * cfganal.c (can_fallthru): Fix fast path.
4048         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
4049         with edges to the next block.
4050
4051 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
4052                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
4053
4054         * final.c (end_final): Use C trees to output data structures for profiling.
4055
4056         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
4057         (profile.o): New dependency profile.h
4058         (final.o): New dependency profile.h
4059         * profile.h: New file. New global structure profile_info.
4060         * final.h (count_edges_instrumented_now): Declare.
4061         (current_function_cfg_checksum): Declare.
4062         (function_list): New structure.
4063         (functions_head, functions_tail): New static variables.
4064         (end_final): Emits more data, removed some -ax stuff.
4065         (final): Stores function names and chcksums.
4066         * gcov-io.h (__write_gcov_string): New function.
4067         (__read_gcov_string): New function.
4068         * gcov.c (read_profile): New function.
4069         (create_program_flow_graph): Uses read_profile instead of reading
4070         da_file.
4071         (read_files): Removed da_file checking, it's done by read_profile now.
4072         * libgcc2.c (bb_function_info): New structure.
4073         (bb): New field in structure, removed some -ax stuff.
4074         (__bb_exit_func): Changed structure of da_file.
4075         * profile.c (count_edges_instrumented_now): New global variable.
4076         (current_function_cfg_checksum): New global variable.
4077         (max_counter_in_program): New global variable.
4078         (get_exec_counts): New function.
4079         (compute_checksum): New function.
4080         (instrument_edges): Sets count_edges_instrumented_now.
4081         (compute_branch_probabilities): Uses get_exec_counts instead of
4082         reading da_file.
4083         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
4084         (init_branch_prob): Removed da_file checking, done in get_exec_counts
4085         now.
4086         (end_branch_prob): Removed da_file checking, done in get_exec_counts
4087         now.
4088         * gcov.texi: Updated information about gcov file format.
4089
4090 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
4091
4092         * sbitmap.c: Fix formatting.
4093         * scan.c: Likewise.
4094         * scan-decls.c: Likewise.
4095         * sched-deps.c: Likewise.
4096         * sched-ebb.c: Likewise.
4097         * sched-rgn.c: Likewise.
4098         * sched-vis.c: Likewise.
4099         * sdbout.c: Likewise.
4100         * sibcall.c: Likewise.
4101         * simplify-rtx.c: Likewise.
4102         * ssa.c: Likewise.
4103         * ssa-ccp.c: Likewise.
4104         * ssa-dce.c: Likewise.
4105         * stmt.c: Likewise.
4106         * stor-layout.c: Likewise.
4107         * stringpool.c: Likewise.
4108
4109 2002-05-09  David S. Miller  <davem@redhat.com>
4110
4111         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
4112
4113 2002-05-07  David S. Miller  <davem@redhat.com>
4114
4115         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
4116         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
4117         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
4118         library implementation clobbers the output before the inputs
4119         are fully consumed, use stack temporary for the output.
4120
4121 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
4122
4123         * config/netbsd.h (CPP_SPEC): Remove.
4124         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
4125         * config/i386/netbsd.h (CPP_SPEC): Define.
4126         * config/ns32k/netbsd.h (CPP_SPEC): Define.
4127         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
4128         * config/sparc/netbsd.h (CPP_SPEC): Define.
4129         * config/vax/netbsd.h (CPP_SPEC): Define.
4130
4131 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
4132
4133         * read-rtl.c: Fix formatting.
4134         * real.c: Likewise.
4135         * recog.c: Likewise.
4136         * regclass.c: Likewise.
4137         * regmove.c: Likewise.
4138         * reg-stack.c: Likewise.
4139         * reload1.c: Likewise.
4140         * reload.c: Likewise.
4141         * resource.c: Likewise.
4142         * rtlanal.c: Likewise.
4143         * rtl.c: Likewise.
4144         * rtl-error.c: Likewise.
4145
4146 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4147
4148         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
4149         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
4150
4151 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
4152
4153         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
4154         use __SSE2__ macro instead.
4155         * config/i386/xmmintrin.h: Likewise.
4156
4157 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
4158
4159         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
4160         and use it in all invocations of these macros.  Clean up comments.
4161         * rtl.c (rtl_check_failed_flag): Add an argument for the name
4162         of the flag access macro whose check failed.
4163         * doc/rtl.texi (Flags): Document additional flag uses.
4164
4165 2002-05-08  Robert Spier <rspier@pobox.com>
4166             Neil Booth  <neil@daikokuya.demon.co.uk>
4167
4168         PR preprocessor/6521
4169         * cppfiles.c (handle_missing_header): Don't do anything
4170         different for <> includes.
4171 doc:
4172         * cppopts.texi: Update documentation for -MG.
4173
4174 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4175
4176         * cpplex.c (cpp_interpret_charconst): Truncate as well as
4177         sign-extend.
4178 doc:
4179         * cpp.texi: Clarify multichar charconst valuation.
4180
4181 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4182
4183         * doc/invoke.texi: Document -mwindiss option.
4184
4185 2002-05-08  Jason Merrill  <jason@redhat.com>
4186
4187         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
4188
4189         * dwarf2out.c (gen_type_die): Abort on broken recursion.
4190
4191         PR c++/6381
4192         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
4193         REAL_CST.
4194
4195 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
4196
4197         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
4198         little-endian multilibs to override arm/thumb multilibs.
4199         Do not build hardware floating point multilibs, nor apcs-26
4200         multilibs for the Thumb.
4201
4202 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4203
4204         PR c/6569.
4205         * varasm.c (mark_weak): New function.
4206         (merge_weak): Use it.  Do not call declare_weak.
4207         (declare_weak): Use merge_weak.
4208
4209 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4210
4211         * cse.c (dead_libcall_p): Update counts.
4212         (delete_trivially_dead_insns): Update call of dead_libcall_p.
4213
4214 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
4215
4216         * cfglayout.c (function_tail_eff_head): Rename to ...
4217         (function_footer): ... this one.
4218         (unlink_insn_chain): New functions.
4219         (label_for_bb): Only call block_label and emit debug message.
4220         (record_effective_endpoints): Actually unlink the headers and footers.
4221         (fixup_reorder_cahin): Re-insert the unlinked sequences.
4222         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
4223         * cfglayout.h (struct reorder_block_def): New fields footer/header;
4224         remove eff_head/eff_end.
4225         * rtl.h (set_first_insn): Declare.
4226         * emit-rtl.c (set_first_insn): New function.
4227
4228         * cfglayout.c (fixup_reorder_chain): Dump duplicated
4229         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4230         cfg_layout_duplicate_bb): New global function.
4231         (duplicate_insn_chain): New static function.
4232         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4233         cfg_layout_duplicate_bb): Declare.
4234         (struct reorder_block_def): Add "original" field.
4235         * emit-rtl.c (emit_copy_of_insn_after): New function.
4236         * rtl.h (emit_copy_of_insn_after): Declare.
4237
4238         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
4239         (fixup_reorder_chain): properly handle edges to exit block.
4240
4241 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4242                                Jan Hubicka  <jh@suse.cz>
4243
4244         * basic-block.h (note_prediction_to_br_prob): declare.
4245         * c-semantics.c: Inlucde predit.h
4246         (expand_stmt): predict GOTO_STMT as not taken.
4247         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4248         (cleanup_cfg): Do not free tail_recursion_list.
4249         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4250         (flow_delete_block): Kill predictions past end of basic block.
4251         * output.h (delete_unreachable_blocks): Declare.
4252         * predict.c (predicted_by_p, process_note_predictions,
4253         process_note_prediction, last_block_p): New function.
4254         (estimate_probability): Bypass loop on PRED_CONTINUE;
4255         do not handle noreturn heuristics; kill PRED_RETURN; add
4256         PRED_EARLY_RETURN.
4257         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4258         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4259         * predict.h (IS_TAKEN): New constant.
4260         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4261         * rtl.c (NOTE_INSN_PREDICTION): New.
4262         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4263         New macro.
4264         (insn_note): add NOTE_INSN_PREDICTION.
4265         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4266         CFG; free tail_recursion_label_list.
4267         * stmt.c: Include predict.h;
4268         (return_prediction): New.
4269         (expand_value_return): Use it.
4270         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4271
4272 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
4273
4274         * config/mips/mips.md: Name the unspecs with define_constant.
4275         (*HILO_delay): Rename to 'hilo_delay' (no star).
4276         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4277         (reload_outdi, reload_outsi): Likewise.
4278
4279 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
4280
4281         * toplev.c: Fix formatting.
4282
4283 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
4284
4285         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4286         * configure.in (ac_rtlflag_checking): New.
4287         * doc/install.texi (--enable-checking): Document RTL flag checking.
4288
4289 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4290
4291         * c-common.c (c_common_init): Set options->unsigned_wchar.
4292         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4293         group target dependencies.
4294         (init_builtins, cpp_handle_option): Update.
4295         * cpplex.c (cpp_interpret_charconst): Update.
4296         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4297         signed_char to unsigned_char, group target dependencies.
4298         * defaults.h (WCHAR_UNSIGNED): Remove.
4299         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4300 config:
4301         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4302         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4303         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4304         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4305         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4306 doc:
4307         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4308
4309 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4310
4311         * fixinc/inclhack.def (windiss_math1): New fix.
4312         (windiss_math2): Likewise.
4313         (windiss_valist): Likewise.
4314         * fixinc/fixincl.x: Regenerated.
4315
4316 2002-05-07  Andreas Jaeger  <aj@suse.de>
4317
4318         * genautomata.c (output_internal_min_issue_delay_func): Add
4319         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4320         (output_internal_trans_func): Likewise.
4321
4322 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
4323
4324         * pa.c (hppa_profile_hook): Use force_reg to get the address
4325         of the profile hook into an appropriate pseudo register.
4326
4327 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4328
4329         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4330         (LINK_START_SPEC): Handle it.
4331         (LINK_OS_SPEC): Likewise.
4332         (CPP_SPEC): Likewise.
4333         (STARTFILE_SPEC): Likewise.
4334         (LIB_SPEC): Likewise.
4335         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
4336         all platforms.
4337         (CRTSAVRES_DEFAULT_SPEC): New macro.
4338         (LIB_WINDISS_SPEC): New macro.
4339         (CPP_OS_WINDISS_SPEC): Likewise.
4340         (STARTFILE_WINDISS_SPEC): Likewise.
4341         (ENDFILE_WINDISS_SPEC): Likewise.
4342         (LINK_START_WINDISS_SPEC): Likewise.
4343         (LINK_OS_WINDISS_SPEC): Likewise.
4344         * config/rs6000/windiss.h: New file.
4345
4346 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
4347
4348         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4349
4350 2002-05-06  David S. Miller  <davem@redhat.com>
4351
4352         * config/sparc/sparc.md (shift insns): Do not mask off
4353         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4354         take care of it.
4355
4356 2002-05-06  Richard Henderson  <rth@redhat.com>
4357
4358         PR c++/6212
4359         * expr.c (highest_pow2_factor_for_type): New.
4360         (expand_assignment): Use it.
4361
4362 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
4363
4364         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4365         unspec_volatile.
4366         ("altivec_mfvscr"): Same.
4367
4368 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4369
4370         * rtl.h (struct rtx_def): Update comments.
4371         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
4372         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
4373         RTL_FLAG_CHECK macros with list of expected RTL codes.
4374         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4375         (rtl_check_failed_flag): New.
4376         * reload1.c (reload): Use REG macro before changing rtx to MEM.
4377         (reload_cse_noop_set_p): Check rtx code before using access macro.
4378         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4379         before using access macro.
4380
4381 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4382
4383         * doc/rtl.texi (Flags): Update to reflect current usage.
4384
4385 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4386
4387         PR opt/3995
4388         * fold-const.c (sign_bit_p): New function.
4389         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4390         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4391         Reapply fold when converting (A & C) == C into (A & C) != 0.
4392         (fold_binary_op_with_conditional_arg): Fix typo in comment.
4393
4394 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4395
4396         * c-common.c (warn_multichar): New.
4397         (c_common_init): Set CPP's warn_multichar.
4398         * c-common.h (warn_multichar): New.
4399         * c-decl.c (warn_multichar): Remove.
4400         * c-lex.c (lex_charconst): Update.
4401         * c-tree.h (warn_multichar): Remove.
4402         * cppexp.c (eval_token): Sign-extend charconst value.
4403         * cppinit.c (cpp_create_reader): Set warn_multichar.
4404         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4405         each character.  Update prototype.  Sign-extend the result.
4406         * cpplib.h: Fix conditions.
4407         (struct cpp_options): Add new warning flag.
4408         (cpp_interpret_charconst): Update prototype.
4409 doc:
4410         * cpp.texi: Update documentation.
4411
4412 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
4413
4414         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4415         Fix typo in usage of allof instead of unit.
4416
4417 2002-05-06  Richard Henderson  <rth@redhat.com>
4418
4419         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4420         and any jump or call for IN.
4421
4422 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
4423
4424         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4425         -msse2.
4426         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4427
4428 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4429
4430         * fold-const.c (lshift-double): Cast the high word to an unsigned
4431         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4432         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4433         avoid compiler warning.  (fold): Remove redundant code from
4434         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4435
4436 2002-05-06  Jeff Law  <law@redhat.com>
4437
4438         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4439         * pa.c (pa_adjust_cost): Remove all true dependency cost
4440         adjustments.  Also remove support for non-DFA scheduling.
4441         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4442         to adjust true dependency costs.  Update various comments.
4443         (7100lc, 7200, 7300 scheduling): Simplify by combining the
4444         FP ALU & MPY units into a single unit.
4445
4446 2002-05-06  Catherine Moore  <clm@redhat.com>
4447
4448         * config/v850/v850.c (compute_register_save_size): Make sure
4449         to count all of the registers that will be saved.
4450
4451 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4452
4453         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4454
4455 2002-05-06  David S. Miller  <davem@redhat.com>
4456
4457         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4458         allow result to overlap input operands in memory.
4459
4460 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4461
4462 doc:
4463         * cpp.texi: Update multichar charconst docs.
4464
4465 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4466
4467         * cpplex.c (cpp_interpret_charconst): Sign-extend each
4468         character.  Don't ignore excess characters.  Treat
4469         multicharacter character constants as signed.
4470         (cpp_parse_escape): Clarify diagnostic.
4471
4472 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4473
4474         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4475         use add instead of shift.
4476         (ashldi3_sp64): Likewise.
4477         (ashlsi3_const1, ashldi3_const1): Remove.
4478         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4479         * config/sparc/sparc.c (const1_operand): New.
4480
4481 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
4482
4483         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4484
4485 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4486
4487         PR target/6561
4488         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4489
4490 2002-05-05  Richard Henderson  <rth@redhat.com>
4491
4492         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4493         memory latency adjustments.
4494         (alpha_variable_issue): Remove.
4495         (alpha_use_dfa_pipeline_interface): New.
4496         (alpha_multipass_dfa_lookahead): New.
4497         * config/alpha/alpha.md: Remove define_function_unit scheduling;
4498         include new dfa scheduling.
4499         (attr type): Add none.
4500         (blockage): Use it.
4501         * config/alpha/ev4.md: New.
4502         * config/alpha/ev5.md: New.
4503         * config/alpha/ev6.md: New.
4504
4505 2002-05-05  David S. Miller  <davem@redhat.com>
4506
4507         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4508
4509 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
4510
4511         * cse.c: Fix formatting.
4512         * emit-rtl.c: Likewise.
4513
4514 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4515
4516         * genautomata.c (initiate_states): Add additional guard to
4517         initialize `units_array'.
4518
4519 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4520
4521         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4522         process_unit_to_form_the_same_automaton_unit_lists,
4523         form_the_same_automaton_unit_lists
4524         check_unit_distributions_to_automata): New prototypes and
4525         functions.
4526         (check_automata): Rename it into `check_automata_insn_issues'.
4527         (unit_decl): New fields `the_same_automaton_unit' and
4528         `the_same_automaton_message_reported_p'.
4529         (unit_decl_t): New typedef.
4530         (the_same_automaton_lists): New gloval variable.
4531         (unit_regexp, unit_set_el, units_array, units_cmp,
4532         output_get_cpu_unit_code_func): Use the typedef.
4533         (evaluate_max_reserv_cycles): Increment
4534         `description->max_insn_reserv_cycles'.
4535         (initiate_states): Don't increment `max_cycles_num'.
4536         (transform_insn_regexps): Move code around transformation of
4537         regexps from `generate'.
4538         (generate): Remove call of `transform_insn_regexps'.
4539         (expand_automata): Call `transform_insn_regexps' and
4540         `check_unit_distributions_to_automata'.  Check errors before
4541         `generate'.
4542
4543         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4544         automaton `ultrasparc3_1'.
4545
4546 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4547
4548         * c-common.c (c_common_init): Set up CPP arithmetic.
4549         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4550         something reasonable for the host.
4551         (sanity_checks): Add checks.
4552         (cpp_read_main_file): Call sanity_checks() from here...
4553         (cpp_post_options): ... not here.
4554         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4555         * cpplib.h (struct cpp_options): New member int_precision.
4556
4557 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4558
4559         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4560
4561 2002-05-04  David S. Miller  <davem@redhat.com>
4562
4563         * config/sparc/linux.h, config/sparc/linux64.h
4564         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4565
4566         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4567         more RTX codes.
4568         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4569
4570         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4571         of SETs.
4572
4573 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4574
4575         * treelang; New directory for new sample language treelang.
4576
4577 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4578
4579         * Makefile.in (c-lex.o): Update.
4580         * c-lex.c: Include target.h.
4581         (cb_register_builtins): New.
4582         (init_c_lex): Set builtins callback.
4583         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4584         * cppinit.c (init_builtins): Use callback, including for
4585         GXX_WEAK.
4586         * cpplib.h (struct cpp_callbacks): New member.
4587         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4588         (TARGET_INITIALIZER): Update.
4589         * target.h (struct gcc_target): New hook.
4590         * tree.c (default_register_cpp_builtins): New.
4591         * tree.h (default_register_cpp_builtins): New.
4592 doc:
4593         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4594
4595 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4596
4597         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4598         (cpp_post_options): Move sanity checks to...
4599         (sanity_checks): New.
4600         * cpplex.c (maybe_read_ucs): Fix prototype.
4601         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4602         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4603         if necessary.
4604
4605 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4606
4607         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4608         builtins.  Use V2DI patterns instead of TI for logical operations.
4609         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4610         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4611         (ix86_expand_builtins): Change the pattern used for movntdq.
4612         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4613         sse2_nandv2di3): New patterns.
4614         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4615         on operands.
4616         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4617         (cvtdq2pd): Correct mode on operand 1.
4618         (sse2_umulsidi3): Describe without unspec.
4619         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4620         machine modes.
4621         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4622         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4623         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4624         ashlv4si3, ashlv2di3): Use SImode for shift count.
4625         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4626         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4627         New patterns.
4628         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4629         New typedefs.
4630         (__m128i, __m128d): New macros.
4631         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4632         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4633         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4634         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4635         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4636         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4637         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4638         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4639         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4640         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4641         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4642         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4643         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4644         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4645         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4646         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4647         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4648         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4649         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4650         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4651         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4652         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4653         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4654         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4655         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4656         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4657         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4658         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4659         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4660         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4661         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4662         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4663         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4664         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4665         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4666         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4667         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4668         functions.
4669         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4670         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4671
4672 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4673
4674         * dwarf2out.c: Fix formatting.
4675         * varasm.c: Likewise.
4676
4677 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4678
4679         PR c/6543
4680         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4681         clobber and use result as temporary value.
4682
4683 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4684
4685         * expr.c (force_operand): Use expand_simple_* to handle more
4686         cases.
4687
4688 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4689
4690         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4691         and sign-extension.
4692         (lex_charconst): Update for change in prototype of
4693         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4694         appropriately.
4695         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4696         * cppinit.c (cpp_create_reader): Initialize them for no
4697         change in semantics.
4698         (cpp_post_options): Add sanity checks.
4699         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4700         and truncation issues.  Calculate in type cppchar_t.
4701         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4702         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4703         run-time dependent precision correctly.  Return whether the
4704         result is signed or not.
4705         * cpplib.c (dequote_string): Use cppchar_t; update.
4706         * cpplib.h (cppchar_signed_t): New.
4707         struct cpp_options): New precision members.
4708         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4709         * cppexp.c (eval_token): Update.
4710
4711 2002-05-03  David S. Miller  <davem@redhat.com>
4712
4713         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4714         * config/sparc/sparc.c (sparc_rtx_costs): New function
4715         implementing RTX_COSTS and CONST_COSTS.
4716         * config/sparc/sparc.h (CONST_COSTS): Delete.
4717         (RTX_COSTS_CASES): Define.
4718         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4719         the work.
4720
4721         * config/sparc/sparc.md (DFA schedulers): Split out...
4722         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4723         config/sparc/sparclet.md, config/sparc/supersparc.md,
4724         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4725
4726         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4727         checks on it, always defined for Sparc.
4728
4729         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4730         Tweak, and add more detailed comments.
4731
4732 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4733
4734         * Re-apply patch accidentally reverted with
4735         DFA scheduler merge: remove all rules and variables to slurp
4736         source files out of libiberty and rebuild them with HOST_CC.
4737         ($(HOST_PREFIX_1)varray.o): New rule.
4738         (genattrtab rule): Word wrap.
4739
4740 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4741
4742         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4743         (CPP_SUBTARGET_SPEC): Define.
4744         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4745         cpp_subtarget specs.
4746         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4747
4748 2002-05-03  David S. Miller  <davem@redhat.com>
4749
4750         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4751         * target.h (struct gcc_target): Delete cycle_display member.
4752
4753         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4754         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4755         (ia64_sched_reorder2): Mention need for cycle display handling
4756         once such notes exist.
4757
4758 2002-05-03  Richard Henderson  <rth@redhat.com>
4759
4760         * real.c (etoasc): Strip most trailing zeros for clarity.
4761         * sched-vis.c: Include real.h.
4762         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4763         * Makefile.in (sched-vis.o): Add real.h.
4764
4765 2002-05-03  David S. Miller  <davem@redhat.com>
4766
4767         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4768         no longer needed.
4769
4770 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4771
4772         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4773         when we get an out of range literal.
4774         (altivec_expand_ternop_builtin): Same.
4775         (altivec_expand_unop_builtin): Same.
4776         (altivec_expand_builtin): Same, for dss.
4777         (altivec_expand_builtin): Use trees instead of rtl when
4778         determining literal argument validity.
4779
4780 2002-05-03  David S. Miller  <davem@redhat.com>
4781
4782         Delete cycle display scheduling hook.
4783         * config/ia64/ia64.c (ia64_cycle_display,
4784         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4785         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4786         and use emit_insn_before instead of ia64_emit_insn_before.
4787         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4788         (cycle_display): Delete insn pattern.
4789         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4790         (cycle_display): Delete insn pattern.
4791         * config/sparc/sparc.c (sparc_cycle_display,
4792         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4793         * doc/md.texi (cycle_display): Don't mention.
4794         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4795
4796 2002-05-03  Richard Henderson  <rth@redhat.com>
4797
4798         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4799         * recog.h: Declare them.
4800
4801         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4802         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4803         * config/sparc/sparc-protos.h: Update.
4804
4805 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4806
4807         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4808         -D__arch64__.  Add -D_LP64.
4809         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4810         from sparc.h.
4811         (CPP_ARCH64_SPEC): Likewise.
4812         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4813         (NO_BUILTIN_SIZE_TYPE): Undef.
4814
4815 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4816
4817         * genautomata.c (min_issue_delay_pass_states): Change return type
4818         in the prototype.
4819         (min_issue_delay_pass_states): Change the algorithm.
4820         (min_issue_delay): Set up min_insn_issue_delay for the state.
4821         (output_min_issue_delay_table): Interchange the nested loops and
4822         and initiate min_insn_issue_delay for states.
4823
4824 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4825
4826         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4827         jump is simplejump.
4828
4829 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4830
4831         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4832         sequence.
4833
4834 2002-05-03  Richard Henderson  <rth@redhat.com>
4835
4836         PR opt/6534
4837         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4838         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4839         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4840         code before JUMP, not EARLIEST.
4841
4842 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4843
4844         * c-format.c (check_format_info_main): Don't check for presence of
4845         parameter for * width until after operand number has been read,
4846         and only check for it if format parameters are available.
4847         Fixes PR c/6547.
4848
4849 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4850
4851         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4852         (LINK_SPEC): Undef before defining.
4853
4854 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4855
4856         PR preprocessor/6489
4857         * tradcpp.c (fixup_newlines): New.
4858         (main, finclude): Use it.
4859
4860 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4861
4862         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4863         * config/mips/mips.c (mips_unique_section): Strip encoding from
4864         decl name.
4865
4866 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4867
4868         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4869         mode.
4870
4871 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4872
4873         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4874         (Specific): Removed buildstats references.
4875         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4876         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4877         Accomodate Solaris versions beyond 8.
4878         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4879         (Specific, *-*-solaris2.8): Removed, obsolete.
4880
4881 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4882
4883         PR target/6542
4884         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4885         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4886         fill leaf_reg_remap with identity.
4887         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4888
4889 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4890
4891         * config/h8300/crti.asm: Remove trailing spaces.
4892         * config/h8300/h8300.c: Likewise.
4893         * config/h8300/lib1funcs.asm: Likewise.
4894
4895 2002-05-02  Jason Merrill  <jason@redhat.com>
4896
4897         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4898         * c-decl.c (c_init_decl_processing): Use it.
4899         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4900         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4901         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4902
4903 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4904
4905         * regrename.c: Fix formatting.
4906         * tree.c: Likewise.
4907
4908 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4909
4910         * i386.md (attribute memory): Handle compares properly.
4911
4912 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4913
4914         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4915         to none.
4916
4917 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4918
4919         * function.c: Fix formatting.
4920
4921 2002-05-02  Jan Hubicka  <jh@suse.cz>
4922
4923         * haifa-sched.c (schedule_insn): Print table of instructions and
4924         reservations.
4925         (sched_block): Do not print ready list at verbosity level 1.
4926         * sched-vis.c (print_insn): Make global.
4927         * sched-ebb.c (ebb_print_insn): Rename from...
4928         (print_insn): ... this one.
4929         * sched-int.h (print_insn): Declare
4930
4931 2002-05-02  Richard Henderson  <rth@redhat.com>
4932
4933         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4934         emitted by cycle_display.
4935
4936 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4937
4938         * doc/install.texi (*-*-freebsd*): Update to latest status.
4939
4940 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4941
4942         PR target/6540
4943         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4944         * config/float-sparc.h: Assume 128-bit long double if
4945         __LONG_DOUBLE_128__ is defined.
4946
4947 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4948
4949         * genattrtab.c (write_function_unit_info): Add a dummy element
4950         when num_units == 0.
4951
4952 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4953
4954         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4955         TYPE_MODE (double_type_node) instead of DFmode.
4956
4957 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4958
4959         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4960         jumps post reload.
4961         * toplev.c (rest_of_compilation): Revert Richard's patch.
4962
4963 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4964
4965         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4966
4967 2002-05-02  Catherine Moore  <clm@redhat.com>
4968
4969         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4970
4971 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4972
4973         * combine.c: Fix comment typos.
4974         * expr.c: Likewise.
4975         * genautomata.c: Likewise.
4976         * stmt.c: Likewise.
4977         * tree.h: Likewise.
4978
4979 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4980
4981         * doc/install.texi: State GNAT version requirements.
4982
4983 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4984
4985         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4986         of the frame pointer or arg pointer register which strict register
4987         checking is not enabled.
4988
4989 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4990
4991         * gcc.dg/altivec-8.c: New.
4992
4993         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4994         PRE_INC and PRE_DEC for altivec modes.
4995
4996 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4997
4998         * fixinc/check.tpl(set-writable): make sure the function exists first
4999         * fixinc/inclhack.def(alpha_assert): fix test_text
5000         * fixinc/tests/base/assert.h: add in missing result
5001
5002 2002-05-01  Jeff Law  <law@redhat.com>
5003
5004         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
5005         'T' constraint.
5006
5007 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
5008
5009         * dbxout.c (dbxout_type): Emit size information for range types,
5010         as well, but only when using GDB extensions.
5011
5012 2002-05-01  Richard Henderson  <rth@redhat.com>
5013
5014         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
5015         target-independent gnu binutils date test.
5016
5017 2002-05-01  Richard Henderson  <rth@redhat.com>
5018
5019         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
5020         info before expunging the block.
5021
5022 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
5023
5024         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
5025         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
5026         -M -or -MM is in effect.
5027
5028 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
5029
5030         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
5031         A29k configurations.
5032         * doc/install.texi: Update to match.
5033
5034 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5035
5036         PR bootstrap/6514
5037         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
5038         for duplicates. Always loop over whole list.
5039
5040 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5041
5042         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
5043
5044 2002-05-01      Joel Sherrill <joel@OARcorp.com>
5045
5046         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
5047         support routines.
5048
5049 2002-05-01      Joel Sherrill <joel@OARcorp.com>
5050
5051         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
5052
5053 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
5054
5055         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
5056         (nabs_nopower): Same.
5057         (floatdisf2): New pattern.
5058         (absdi2): Convert to define_insn_and_split.
5059         (nabsdi2): Same.
5060         (trunctfsf2): Same.
5061         (floatditf2): Same.
5062         (floatsitf2): Same.
5063         (fix_trunctfdi2): Same.
5064         (fix_trunctfsi2): Same.
5065
5066 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
5067
5068         * doc/install.texi: Update Texinfo version requirement
5069         documentation.
5070
5071 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
5072
5073         PR target/6512, PR target/5628
5074         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
5075         when memory is not aligned.
5076         (movdf_insn_v9only_vis): Likewise.
5077         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
5078         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
5079         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
5080
5081 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
5082
5083         * gcc.dg/altivec-7.c: New.
5084
5085         * config/rs6000/altivec.h: Cleanup.
5086
5087 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
5088
5089         * doc/invoke.texi (Option Summary): Add -mvrsave=.
5090         (RS/6000 and PowerPC Options): Document -mvrsave=.
5091
5092         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
5093         (rs6000_altivec_vrsave_string): Same.
5094         (rs6000_override_options): Call rs6000_parse_vrsave_option.
5095         (rs6000_parse_vrsave_option): New.
5096         (rs6000_stack_info): Only generate vrsave instructions when
5097         TARGET_ALTIVEC_VRSAVE.
5098
5099         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
5100         (rs6000_altivec_vrsave_string): Define extern.
5101         (rs6000_altivec_vrsave): Same.
5102         (TARGET_ALTIVEC_VRSAVE): New.
5103
5104 2002-04-30  Richard Henderson  <rth@redhat.com>
5105
5106         PR opt/6516
5107         * toplev.c (rest_of_compilation): Don't run cross-jump before
5108         bb-reorder.
5109
5110 2002-04-30  Tom Rix  <trix@redhat.com>
5111
5112         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
5113         check which_alternative.
5114
5115 2002-04-30  Kazu Hirata  <kazu@hxi.com>
5116
5117         * cpplex.c: Fix comment formatting.
5118         * function.c: Likewise.
5119         * integrate.c: Likewise.
5120         * regrename.c: Likewise.
5121         * sibcall.c: Likewise.
5122         * simplify-rtx.c: Likewise.
5123         * tree-inline.c: Likewise.
5124
5125 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5126
5127         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
5128         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
5129         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
5130         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
5131         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
5132         * pa/x-ada: New file.  Define ADA_CFLAGS.
5133
5134 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
5135
5136         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
5137         from MMIX_LAST_REGISTER_FILE_REGNUM.
5138         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
5139         (struct machine_function): New member highest_saved_stack_register
5140         previously static variable in mmix.c.
5141         (MACHINE_DEPENDENT_REORG): Define.
5142         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
5143         (MMIX_OUTPUT_REGNO): New.
5144         (mmix_target_asm_function_prologue): Move calculation of last used
5145         saved-stack-register into...
5146         (mmix_machine_dependent_reorg): New function.  Update to also handle
5147         !TARGET_ABI_GNU.
5148         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
5149         register names, simplify somewhat by new variable regno.
5150         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
5151         register.
5152         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
5153         emitting register names.
5154         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
5155         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
5156         Remove fixed FIXME.
5157         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
5158         Declare.
5159
5160         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
5161
5162 2002-04-30  Richard Henderson  <rth@redhat.com>
5163
5164         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5165         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
5166         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
5167         emit_tfmode_cvt): New.
5168         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
5169         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
5170         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
5171         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
5172         * config/sparc/sparc-protos.h: Update.
5173
5174 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
5175
5176         * install.texi (Final install): Add to the list of info to include
5177         in a report of a successful bootstrap, and add link to 3.1 list.
5178
5179 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
5180
5181         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
5182         (mode): Add vector modes
5183         (i387): Kill attribute.
5184         (unit): New attribute.
5185         (length_immediate): Grok new types.
5186         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
5187         (modrm): Use "unit".
5188         (memory): Handle MMX/SSE properly.
5189         (scheduling descriptions): Kill uses of fop1.
5190         (sse, mmx, fp patterns): Set type and mode properly.
5191
5192 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
5193
5194         * pa.c (override_options): Default to PA8000 scheduling.
5195         * doc/invoke.texi (HP-PA options): Mention newly added 7300
5196         scheduling parameter.
5197
5198         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
5199         handling of double precision multiplies.
5200
5201         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
5202         fpdiv and fpsqrt instructions.
5203         (7200 & 7300 scheduling): Fix typo in handling of
5204         store-load and store-store penalties.
5205
5206 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5207
5208         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
5209         mips.  Add two missing commas.
5210
5211 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
5212
5213         * doc/contrib.texi (Contributors): Update Paolo Carlini's
5214         and Benjamin Kosnik's entries.
5215
5216 2002-04-29  David S. Miller  <davem@redhat.com>
5217
5218         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
5219         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5220         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
5221         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5222
5223 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5224
5225         * combine.c (find_split_point): Use gen_int_mode.
5226
5227 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5228
5229         Merging code from dfa-branch:
5230
5231         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5232
5233         * genautomata.c (output_reserv_sets): Fix typo.
5234
5235         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
5236
5237         * genautomata.c (output_reserv_sets): Remove
5238         next_cycle_output_flag.
5239
5240         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
5241
5242         * sched-rgn.c (init_ready_list): Make the DFA code handle
5243         USE/CLOBBER insns in the same way as the traditional
5244         scheduler.
5245         (new_ready): Similarly..
5246
5247         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
5248
5249         * haifa-sched.c (schedule_block): Change the DFA state only after
5250         issuing insn.
5251
5252         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
5253
5254         * pa.c (hppa_use_dfa_pipeline_interface): New function.
5255         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5256         (override_options): Add PA7300 scheduling support.
5257         (pa_adjust_cost): Update various comments.  Properly
5258         handle anti and output dependencies when using the
5259         DFA scheduler.
5260         (pa_issue_rate): Add PA7300 scheduling support.
5261         (pa_can_combine_p): Call extract_insn before calling
5262         constrain_operands (taken from mainline tree).
5263         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5264         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
5265         descriptions using DFA descriptions.  Add PA7300
5266         scheduling support.
5267
5268         2002-03-30  David S. Miller  <davem@redhat.com>
5269
5270         Add UltraSPARC-III DFA scheduling support.
5271         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5272         Update FP conditional move on register insn patterns to use it, as
5273         appropriate.
5274         (define_attr cpu): Add ultrasparc3.
5275         (define_attr us3load_type): New, update integer load patterns to
5276         set it, as appropriate.
5277         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5278         (rest): Add UltraSPARC3 scheduling description.
5279         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5280         (PROCESSOR_ULTRASPARC3): New.
5281         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5282         ({ASM,CPP}_CPU_SPEC): Likewise.
5283         (REGISTER_MOVE_COST): Likewise.
5284         (RTX_COSTS): Likewise.
5285         * config/sparc/sparc.c (sparc_override_options,
5286         sparc_initialize_trampoline, sparc64_initialize_trampoline,
5287         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5288         sparc_issue_rate): Likewise.
5289         * config/sparc/sol2.h: Likewise.
5290         * config/sparc/sol2-sld-64.h: Likewise.
5291         * config/sparc/linux64.h: Likewise.
5292
5293         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
5294
5295         * doc/md.texi: Add comments about usage the latency time for the
5296         different dependencies and about case when two or more conditions
5297         in different define_insn_reservations returns TRUE for an insn.
5298
5299         * doc/md.texi: Add reference for automaton based pipeline
5300         description.
5301
5302         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
5303
5304         * doc/passes.texi: Add missed information about genattrtab.
5305
5306         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
5307
5308         * genautomata.c (output_automata_list_transition_code): Check
5309         automata_list on NULL.
5310
5311         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
5312
5313         * genautomata.c (output_insn_code_cases,
5314         output_automata_list_min_issue_delay_code,
5315         output_automata_list_transition_code,
5316         output_automata_list_state_alts_code): Comment the functions.
5317
5318         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
5319
5320         * genautomata.c (automata_list_el_t): New typedef.
5321         (get_free_automata_list_el,free_automata_list_el,
5322         free_automata_list, automata_list_hash, automata_list_eq_p,
5323         initiate_automata_lists, automata_list_start, automata_list_add,
5324         automata_list_finish, finish_automata_lists,
5325         output_insn_code_cases, output_automata_list_min_issue_delay_code,
5326         output_automata_list_transition_code,
5327         output_automata_list_state_alts_code, add_automaton_state,
5328         form_important_insn_automata_lists): New functions and prototypes.
5329         (insn_reserv_decl): Add members important_automata_list and
5330         processed_p.
5331         (ainsn): Add members important_p.
5332         (automata_list_el): New structure.
5333         (first_free_automata_list_el, current_automata_list,
5334         automata_list_table): New global variables.
5335         (create_ainsns): Initiate member important_p.
5336         (output_internal_min_issue_delay_func): Generate the switch and
5337         call output_insn_code_cases.
5338         (output_internal_trans_func, output_internal_state_alts_func):
5339         Ditto.
5340         (generate): Call initiate_automata_lists.
5341         (automaton_states): New global variable.
5342         (expand_automata): Call form_important_insn_automata_lists.
5343         (write_automata): Call finish_automata_lists.
5344
5345         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
5346
5347         * genautomata.c (add_excls, add_presence_absence): Check that
5348         cpu units in the sets belong the same automaton.
5349
5350         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5351         about that cpu units in the sets belong the same automaton.
5352
5353         * doc/md.texi: Ditto.
5354
5355         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
5356                     Nitin Gupta  <niting@noida.hcltech.com>
5357
5358         * config/sh/sh.c (sh_use_dfa_interface): New function.
5359
5360         (sh_issue_rate): New Function.
5361         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5362         TARGET_SCHED_ISSUE_RATE: define.
5363
5364         * config/sh/sh.md: Add DFA based pipeline description for SH4.
5365
5366         (define_attr insn_class): New attribute used for DFA
5367          scheduling.
5368         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5369         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5370          cmpeqdi_t): Likewise.
5371
5372         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5373          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5374          ex_group.
5375         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5376
5377         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5378
5379         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5380         break.
5381
5382         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5383
5384         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5385         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5386         necessary.
5387         (output_dfa_start_func): Initiate new variable insn_codes_length,
5388         (write_automata): Output definition of the new variable.
5389
5390         2001-10-02  David S. Miller  <davem@redhat.com>
5391
5392         * haifa-sched.c (advance_one_cycle): New function.
5393         (schedule_block): Use it.
5394         (queue_to_ready): Use it, and also make sure to advance the DFA
5395         state on all stall cycles, not just those where insn_queue links
5396         are found.
5397
5398         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
5399
5400         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
5401         non-zero if the highest-priority instruction could be scheduled.
5402         (choose_ready): Remove last argument from max_issue call.
5403
5404         2001-09-28  David S. Miller  <davem@redhat.com>
5405
5406         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5407         ultrasparc and 3 for other multi-issue sparcs.
5408
5409         2001-09-27  David S. Miller  <davem@redhat.com>
5410
5411         * config/sparc/sparc.md (cycle_display): New pattern.
5412         * config/sparc/sparc.c (sparc_cycle_display): New.
5413         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5414
5415         2001-09-25  David S. Miller  <davem@redhat.com>
5416
5417         Convert all of Sparc scheduling to DFA
5418         * config/sparc/sparc.md: Kill all define_function_unit
5419         directives and replace with DFA equivalent.
5420         * config/sparc/sparc.c (ultrasparc_adjust_cost,
5421         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5422         ultra_fpmode_conflict_exists, ultra_find_type,
5423         ultra_build_types_avail, ultra_flush_pipeline,
5424         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5425         ultrasparc_variable_issue, ultrasparc_sched_init,
5426         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5427         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5428         ultra_cur_hist, ultra_cycles_elapsed): Kill.
5429         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5430         ultrasparc_store_bypass_p): New.
5431         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5432         Declare.
5433
5434         2001-09-24  David S. Miller  <davem@redhat.com>
5435
5436         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5437         ready->vec[foo] not ready[foo].
5438
5439         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5440
5441         * doc/md.texi: Correct examples for define_insn_reservations
5442         `mult' and `div'.
5443
5444         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5445
5446         * genautomata.c (create_automata): Print message about creation of
5447         each automaton.
5448         (generate): Remove printing meease about creation of
5449         automata.
5450
5451         2001-09-05  David S. Miller  <davem@redhat.com>
5452
5453         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5454         * config/sparc/linux64.h: Likewise.
5455
5456         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
5457
5458         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5459         schedule_block, sched_init, sched_finish): Add missed calls of
5460         use_dfa_pipeline_interface.
5461
5462         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5463         Ditto.
5464
5465         * sched-vis.c (get_visual_tbl_length): Ditto.
5466
5467         2001-08-27  Richard Henderson  <rth@redhat.com>
5468
5469         * genattr.c (main): Emit state_t even when not doing scheduling.
5470
5471         2001-08-27  Richard Henderson  <rth@redhat.com>
5472
5473         * genautomata.c (expand_automata): Always create a description.
5474
5475         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5476
5477         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5478         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5479         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5480         RTL constructions.
5481
5482         * genattr.c (main): New variable num_insn_reservations.  Increase
5483         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5484         pipeline hazard recognizer interface.
5485
5486         * genattrtab.h: New file.
5487
5488         * genattrtab.c: Include genattrtab.h.
5489         (attr_printf, check_attr_test, make_internal_attr,
5490         make_numeric_value): Move protypes into genattrtab.h.  Define them
5491         as external.
5492         (num_dfa_decls): New global variable.
5493         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5494         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5495         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5496         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5497
5498         * genautomata.c: New file.
5499
5500         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5501
5502         * sched-int.h: (curr_state): Add the external definition for
5503         automaton pipeline interface.
5504         (haifa_insn_data): Add comments for members blockage and units.
5505
5506         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5507         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5508         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5509         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5510         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5511         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5512         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5513         macros.
5514         (TARGET_SCHED): Use the new macros.
5515
5516         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5517         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5518         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5519         dfa_bubble): New members in gcc_target.sched.
5520
5521         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5522         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5523         (insn_queue): Redefine it as pointer to array.
5524         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5525         INSN_QUEUE_SIZE.
5526         (max_insn_queue_index_macro_value): New variable.
5527         (curr_state, dfa_state_size, ready_try): New varaibles for
5528         automaton interface.
5529         (ready_element, ready_remove, max_issue): New function prototypes
5530         for automaton interface.
5531         (choose_ready): New function prototype.
5532         (insn_unit, blockage_range): Add comments.
5533         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5534         FUNCTION_UNITS_SIZE == 0.
5535         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5536         actual_hazard, potential_hazard): Add comments.
5537         (insn_cost): Use cost -1 as undefined value.  Remove
5538         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5539         pipeline interface.
5540         (ready_element, ready_remove): New functions for automaton
5541         interface.
5542         (schedule_insn): Add new code for automaton pipeline interface.
5543         (queue_to_ready): Add new code for automaton pipeline interface.
5544         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5545         (debug_ready_list): Print newline when the queue is empty.
5546         (max_issue): New function for automaton pipeline interface.
5547         (choose_ready): New function.
5548         (schedule_block): Add new code for automaton pipeline interface.
5549         Print ready list before scheduling each insn.
5550         (sched_init): Add new code for automaton pipeline interface.
5551         Initiate insn cost by -1.
5552         (sched_finish): Free the current automaton state and finalize
5553         automaton pipeline interface.
5554
5555         * sched-rgn.c: Include target.h.
5556         (init_ready_list, new_ready, debug_dependencies): Add new code for
5557         automaton pipeline interface.
5558
5559         * sched-vis.c: Include target.h.
5560         (get_visual_tbl_length): Add code for automaton interface.
5561         (target_units, print_block_visualization):  Add comments.
5562
5563         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5564         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5565         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5566         (getruntime.o, genautomata.o): New entries.
5567         (genattrtab.o): Add new dependency file genattrtab.h.
5568         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5569         (getruntime.o, hashtab.o): New entries for canadian cross.
5570
5571         * doc/md.texi: Description of automaton based model.
5572
5573         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5574         Add comments.
5575         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5576         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5577         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5578         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5579         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5580         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5581         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5582         hook descriptions.
5583         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5584         MAX_DFA_ISSUE_RATE): New macro descriptions.
5585
5586         * doc/contrib.texi: Add dfa based scheduler contribution.
5587
5588         * doc/gcc.texi: Add more information about genattrtab.
5589
5590 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5591
5592         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5593         adjust_address_nv call.
5594
5595 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5596
5597         * doc/install.texi (Testing): Provide additional information, and
5598         a stronger encouragement, for running the testsuites.
5599
5600 2002-04-29  DJ Delorie  <dj@redhat.com>
5601
5602         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5603         given in upper case.
5604
5605 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5606
5607         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5608         Solaris 2 <widec.h> if missing.
5609         * fixinc/fixincl.x: Regenerate.
5610         * fixinc/tests/base/widec.h: New file.
5611
5612 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5613
5614         * toplev.c (f_options): Add "profile" switch so that
5615         -fno-profile can be used to disable -p.
5616
5617 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5618
5619         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5620         UV2DImode.
5621         * tree.c (build_common_tree_nodes_2): Likewise.
5622         * tree.h (enum tree_index): Likewise.
5623         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5624
5625         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5626         entries.
5627         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5628         (ix86_expand_builtin): Add support for SSE2 builtins.
5629         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5630         (VALID_SSE_REG_MODE): Use it.
5631         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5632         (enum ix86_builtins): Add SSE2 builtins.
5633         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5634         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5635         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5636         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5637         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5638         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5639         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5640         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5641         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5642         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5643         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5644         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5645         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5646         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5647         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5648         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5649         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5650         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5651         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5652         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5653         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5654         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5655         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5656         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5657         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5658         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5659         lfence_insn): New patterns.
5660         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5661         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5662
5663 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5664
5665         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5666
5667 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5668
5669         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5670         Janis Johnson.
5671         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5672         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5673         and CPU instead of cpu.
5674
5675 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5676
5677         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5678         variables.
5679         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5680         (rest_of_compilation): Do if conversion only when asked for.
5681         (parse_options_and_default_flags): Set new variables to 1 for -O1
5682         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5683
5684 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5685
5686         * i386.c (dbx64_register_map): Fix typo.
5687
5688 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5689
5690         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5691         real_one_half, real_bb_freq_max): New static variables.
5692         (debug_profile_bbauxs): Kill.
5693         (process_note_predictions): Kill unused variable.
5694         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5695         volatile double.
5696         (propagate_freq): Use REAL_ARITHMETICS.
5697         (estimate_bb_frequencies): Likevise; init new static variables.
5698         * Makefile.in (predict.o): Add dependency on real.h
5699
5700 2002-04-28  David S. Miller  <davem@redhat.com>
5701
5702         PR target/6500
5703         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5704         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5705         several {reads,writes} instead.
5706         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5707         Define.
5708
5709 2002-04-27  David S. Miller  <davem@redhat.com>
5710
5711         PR target/6494
5712         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5713         of the stack bias.
5714
5715         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5716         including signal.h and sys/ucontext.h, not needed.
5717
5718 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5719
5720         * varasm.c (output_constant_def): Correct test for not calling
5721         ENCODE_SECTION_INFO for INTEGER_CST.
5722
5723 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5724
5725         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5726         keep most cases as function eval_token.
5727         (eval_token): New function.
5728         (_cpp_parse_expr): Read token here for improved diagnostics.
5729         Don't use op_as_text.  Detect bad ':' here.
5730         (reduce): Don't detect bad ':' here.
5731         (op_as_text): Remove.
5732         * cpphash.h (_cpp_test_assertion): Change prototype.
5733         * cpplib.c (_cpp_test_assertion): Change prototype.
5734
5735 2002-04-28  Richard Henderson  <rth@redhat.com>
5736
5737         PR c/5154
5738         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5739         (ggc_mark_rtx_children): New.
5740
5741 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5742
5743         PR target/6496
5744         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5745         after call peepholes for UltraSPARC.
5746         (call + jump 64-bit peepholes): Remove.
5747
5748 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5749
5750         PR c/6497
5751         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5752         result as temporary value.
5753
5754 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5755
5756         PR c++/6396
5757         * toplev.c (rest_of_compilation): Only run regrename and copy
5758         propagation if optimizing.
5759
5760 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5761
5762         PR optimization/6475
5763         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5764         register of REGNO_DECL (i).
5765         * Makefile.in (reload1.o): Add $(TREE_H).
5766
5767 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5768
5769         * cppexp.c (lex): Update to use state.skip_eval.
5770         (struct op): Remove prio and flags members.
5771         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5772         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5773         (LEFT_ASSOC): New macro.
5774         (optab): New table of operator priorities and flags.
5775         (SHIFT): Update.
5776         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5777         malloc-ed parser stack.
5778         (reduce): New; reduce the operator stack.
5779         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5780         * cpphash.h (struct op): Predeclare.
5781         (struct cpp_reader): New members op_stack, op_limit.
5782         (struct lexer_state): New member skip_eval.
5783         (_cpp_parse_expr): Update.
5784         (_cpp_expand_op_stack): New.
5785         * cpplib.c (do_if): Update.
5786         * cppinit.c (cpp_create_reader): Create op stack.
5787         (cpp_destroy): And destroy it.
5788         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5789         (TTYPE_TABLE): Correct.
5790
5791 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5792
5793         PR c/6343
5794         * c-decl.c (duplicate_decls): Call merge_weak.
5795         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5796         * output.h (merge_weak): Prototype merge_weak.
5797         * varasm.c (merge_weak): New function.
5798         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5799         Mark RTL with SYMBOL_REF_WEAK.
5800
5801 2002-04-27  Kurt Garloff <garloff@suse.de>
5802
5803         * tree-inline.c (inlinable_function_p): Improve heuristics
5804         by using a smoother function to cut down allowable inlinable size.
5805         * param.def: Add parameters max-inline-insns-single,
5806         max-inline-slope, min-inline-insns that determine the exact
5807         shape of the above function.
5808         * param.h: Likewise.
5809
5810 2002-04-26  Richard Henderson  <rth@redhat.com>
5811
5812         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5813         (yyoverflow): Re-add.  Set them.
5814         (free_parser_stacks): New.
5815         * c-common.h: Declare it.
5816         * c-lex.c (c_common_parse_file): Call it.
5817
5818 2002-04-26  Richard Henderson  <rth@redhat.com>
5819
5820         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5821         for fallthru search.
5822
5823 2002-04-26  Eric Christopher  <echristo@redhat.com>
5824
5825         PR optimization/3700
5826         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5827         (TARGET_SCHED_ISSUE_RATE): Use.
5828
5829 2002-04-25  David S. Miller  <davem@redhat.com>
5830
5831         PR target/6422
5832         * reorg.c (optimize_skip): Do not allow exception causing
5833         instructions to be considered for delay slots.
5834         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5835         (relax_delay_slots): Do not try to consider exception causing
5836         instructions as redundant.
5837
5838 2002-04-26  Richard Henderson  <rth@redhat.com>
5839
5840         PR c/5225
5841         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5842
5843 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5844
5845         PR bootstrap/6445
5846         * config/i386/i386.md (untyped_call): Return the value in a float
5847         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5848         TARGET_80387.
5849
5850 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5851
5852         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5853         in unsigned-ness correctly.
5854
5855 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5856
5857         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5858         portable runtime model.
5859
5860 2002-04-26  Richard Henderson  <rth@redhat.com>
5861
5862         * c-parse.in (yyoverflow): Revert.
5863
5864 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5865             Richard Henderson  <rth@redhat.com>
5866
5867         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5868         result as temporary value.
5869
5870 2002-04-26  Richard Henderson  <rth@redhat.com>
5871
5872         PR c/3581
5873         * c-common.c (fix_string_type): Split out of ...
5874         (combine_strings): ... here.  Take a varray, not a tree list.
5875         (c_expand_builtin_printf): Use fix_string_type.
5876         * c-common.h: Update decls.
5877         * c-parse.in (string): Remove.  Update all uses to use STRING
5878         instead, and not call combine_strings.
5879         (yylexstring): New.
5880         (_yylex): Use it.
5881         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5882         (build_asm_stmt): Likewise.
5883         * objc/objc-act.c (my_build_string): Use fix_string_type.
5884         (build_objc_string_object): Build varray for combine_strings.
5885
5886 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5887
5888         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5889         x86-64.
5890
5891 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5892
5893         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5894         (HAVE_NO_R_OPERAND): Remove.
5895         (HAVE_VALUE): Remove.
5896         (op_to_prio): Update.
5897         (UNARY): Don't alter flags.
5898         (_cpp_parse_expr): want_value used to indicate whether
5899         a number or unary operator is expected next.  Distinguish
5900         unary and binary +/-.
5901         (op_as_text): Update for unary operators.
5902
5903 2002-04-25  Richard Henderson  <rth@redhat.com>
5904
5905         PR c/2161
5906         * c-parse.in (yyoverflow): New.
5907
5908 2002-04-25  Richard Henderson  <rth@redhat.com>
5909
5910         PR c/2098
5911         * c-common.c (shorten_compare): Simplfy conditions leading to
5912         the generation of a warning.
5913
5914 2002-04-25  Richard Henderson  <rth@redhat.com>
5915
5916         PR c/2035
5917         * expmed.c (extract_bit_field): Fall through to generic code rather
5918         than aborting on subreg special case.
5919
5920 2002-04-25  David S. Miller  <davem@redhat.com>
5921
5922         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5923         for DECL being NULL.
5924
5925 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5926
5927         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5928
5929 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5930
5931         * c-decl.c (grokdeclarator): Remove outdated ??? note
5932         on invalid declaration of flexible array members.
5933
5934 2002-04-25  Richard Henderson  <rth@redhat.com>
5935
5936         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5937
5938 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5939
5940         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5941         needed by the compiler, even if they are used as global regs.
5942
5943 2002-04-25  Matt Hiller  <hiller@redhat.com>
5944
5945         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5946         functions.
5947         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5948         of the corresponding functions.
5949         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5950         New prototypes.
5951
5952 2002-04-25  Matt Hiller  <hiller@redhat.com>
5953
5954         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5955
5956         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5957         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5958         registers, adjust comment accordingly.
5959         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5960         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5961         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5962         for coprocessor registers.
5963         (ADDITIONAL_REGISTER_NAMES): Include
5964         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5965
5966         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5967         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5968         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5969         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5970         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5971
5972         (mips_char_to_class): Adjust comment to include coprocessor
5973         constraint letters.
5974
5975         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5976         New functions.
5977         (mips_reg_names, mips_regno_to_class): Include coprocessor
5978         information.
5979         (mips_sw_reg_names): Ditto, make non-static.
5980         (mips_move_1word): Handle moves to and from coprocessor registers.
5981         (mips_move_2words): Handle moves to and from coprocessor
5982         registers.
5983         (mips_class_max_nregs, mips_register_move_cost): Handle
5984         coprocessor register classes.
5985         (override_options): Initialize mips_char_to_class and
5986         mips_hard_regno_mode_ok properly for coprocessor registers.
5987
5988         * config/mips/mips.md (movdi_internal, movdi_internal2,
5989         movsi_internal1, movsi_internal2): Add constraint-sets for
5990         coprocessor registers.
5991         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5992         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5993         isn't mips.
5994         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5995         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5996         isn't mips.
5997         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5998         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5999         isn't mips.
6000         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
6001         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
6002         isn't mips.
6003
6004         * doc/tm.texi: Document feature.
6005
6006 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
6007
6008         * integrate.c (function_attribute_inlinable_p): Simplify.
6009         Check the table pointer is not NULL.
6010
6011 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
6012
6013         * doc/c-tree.texi: Fix typo in introduction.
6014
6015 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
6016
6017         * c-common.h (c_common_parse_file): Update.
6018         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
6019         * c-lex.c (YYDEBUG): Get from c-lex.h.
6020         (c_common_parse_file): Update.
6021         * c-lex.h (YYDEBUG, yydebug): New.
6022         * c-parse.in (YYDEBUG): Get from c-lex.h.
6023         (c_set_yydebug): Remove.
6024         * c-tree.h (c_set_yydebug): Remove.
6025         * langhooks-def.h (lhd_do_nothing_i): New.
6026         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
6027         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
6028         * langhooks.c  (lhd_do_nothing_i): New.
6029         (lhd_set_yydebug): Remove.
6030         * langhooks.h (struct lang_hooks): Update.
6031         * toplev.c (set_yydebug): New.
6032         (compile_file): Update call to parse_file hook.
6033         (decode_d_option): Update.
6034 objc:
6035         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
6036
6037 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
6038
6039         * loop.c (load_mems): Don't change the interface of called functions.
6040
6041         * calls.c (expand_call): Take current_function_pretend_args_size
6042         into account when setting argblock for sibcalls.
6043
6044 2002-04-24  Matt Hiller  <hiller@redhat.com>
6045
6046         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
6047         * c-lex.c: Ditto.
6048
6049         * cpplex.c (skip_line_comment): Process comment one multibyte
6050         character at a time rather than one char at a time, if
6051         appropriate.
6052         (parse_string): Process string one multibyte character at a time
6053         rather than one char at a time, if appropriate.
6054         * c-lex.c (lex_string): Lex and copy multibyte strings
6055         appropriately.
6056         * cpplib.h (cppchar_t): Change to unsigned.
6057
6058 2002-04-24  Richard Henderson  <rth@redhat.com>
6059
6060         PR c/3467
6061         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
6062         for c99.
6063
6064 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
6065
6066         * sh.c (sh_va_arg): If argument was passed by reference,
6067         dereference the pointer.
6068
6069         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6070
6071         * sh.md (divsi3_i4_media): Use match_operand for input values
6072         rather than hard registers.
6073         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
6074         unnecessarily through hard registers.  Keep copies of pseudo
6075         registers outside of the libcall sequence.
6076
6077         * sh.md (casesi_shift_media): Add modes.
6078
6079         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
6080         values in memory.
6081
6082 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6083
6084         * attribs.c (c_common_attribute_table): Move table and handlers
6085         to c-common.c.
6086         (format_attribute_table, lang_attribute_table,
6087         lang_attribute_common): Remove.
6088         (init_attributes): Replace NULL pointers with pointers to the
6089         empty table.
6090         (handle_packed_attribute, handle_nocommon_attribute,
6091         handle_common_attribute, handle_noreturn_attribute,
6092         handle_noinline_attribute, handle_always_inline_attribute,
6093         handle_used_attribute, handle_unused_attribute,
6094         handle_const_attribute, handle_transparent_union_attribute,
6095         handle_constructor_attribute, handle_destructor_attribute,
6096         handle_mode_attribute, handle_section_attribute,
6097         handle_aligned_attribute, handle_weak_attribute,
6098         handle_alias_attribute, handle_visibility_attribute,
6099         handle_no_instrument_function_attribute, handle_malloc_attribute,
6100         handle_no_limit_stack_attribute, handle_pure_attribute,
6101         handle_deprecated_attribute, handle_vector_size_attribute,
6102         vector_size_helper): Move to c-common.c.
6103         * c-common.c (c_common_attribute_table,
6104         handle_packed_attribute, handle_nocommon_attribute,
6105         handle_common_attribute, handle_noreturn_attribute,
6106         handle_noinline_attribute, handle_always_inline_attribute,
6107         handle_used_attribute, handle_unused_attribute,
6108         handle_const_attribute, handle_transparent_union_attribute,
6109         handle_constructor_attribute, handle_destructor_attribute,
6110         handle_mode_attribute, handle_section_attribute,
6111         handle_aligned_attribute, handle_weak_attribute,
6112         handle_alias_attribute, handle_visibility_attribute,
6113         handle_no_instrument_function_attribute, handle_malloc_attribute,
6114         handle_no_limit_stack_attribute, handle_pure_attribute,
6115         handle_deprecated_attribute, handle_vector_size_attribute,
6116         vector_size_helper): Move from attribs.c.
6117         * c-common.h (c_common_attribute_table,
6118         c_common_format_attribute_table): New.
6119         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6120         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6121         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
6122         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
6123         (LANG_HOOKS_INITIALIZER): Update.
6124         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
6125         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
6126         * target.h: Update comment.
6127         * tree.c (default_target_attribute_table): Remove.
6128         * tree.h (default_target_attribute_table, format_attribute_table,
6129         lang_attribute_table, lang_attribute_common): Remove.
6130 objc:
6131         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6132         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6133
6134 2002-04-24  Jason Merrill  <jason@redhat.com>
6135
6136         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
6137         * dwarf2out.c (dwarf_attr_name): Support it.
6138         (gen_array_type_die): Emit it.
6139         (lookup_type_die): No special handling for VECTOR_TYPE.
6140         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
6141
6142 2002-04-24  Richard Henderson  <rth@redhat.com>
6143
6144         * config/mips/mips.md (movdi_usd): Renumber.
6145
6146 2002-04-24  David S. Miller  <davem@redhat.com>
6147
6148         PR target/6420
6149         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
6150         32-bit Sparc and current_function_returns_struct is true.
6151
6152 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6153
6154         * loop.c (canonicalize_condition): Use gen_int_mode.
6155
6156 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
6157
6158         * config/rs6000/altivec.h: Cleanup file.  Add non individual
6159         variants.
6160         (vec_vaddubm): New.
6161         (vec_vadduhm): New.
6162         (vec_vadduwm): New.
6163         (vec_vaddfp): New.
6164         (vec_vaddcuw): New.
6165         (vec_vaddubs): New.
6166         (vec_vaddsbs): New.
6167         (vec_vadduhs): New.
6168         (vec_vadduws): New.
6169         (vec_vaddsws): New.
6170         (vec_vand): New.
6171         (vec_vandc): New.
6172         (vec_vavgub): New.
6173         (vec_vavgsb): New.
6174         (vec_vavguh): New.
6175         (vec_vavgsh): New.
6176         (vec_vavguw): New.
6177         (vec_vavgsw): New.
6178         (vec_vrfip): New.
6179         (vec_vcmpbfp): New.
6180         (vec_vcmpequb): New.
6181         (vec_vcmpequh): New.
6182         (vec_vcmpequw): New.
6183         (vec_vcmpeqfp): New.
6184         (vec_vcmpgefp): New.
6185         (vec_vcmpgtub): New.
6186         (vec_vcmpgtsb): New.
6187         (vec_vcmpgtuh): New.
6188         (vec_vcmpgtsh): New.
6189         (vec_vcmpgtuw): New.
6190         (vec_vcmpgtsw): New.
6191         (vec_vcmpgtfp): New.
6192         (vec_vcmpgefp): New.
6193         (vec_vcfux): New.
6194         (vec_vcfsx): New.
6195         (vec_vctsxs): New.
6196         (vec_vctuxs): New.
6197         (vec_vexptefp): New.
6198         (vec_vrfim): New.
6199         (vec_lvx): New.
6200         (vec_lvebx): New.
6201         (vec_lvehx): New.
6202         (vec_lde): Add vector float variant.
6203         (vec_lvewx): New.
6204         (vec_lvxl): New.
6205         (vec_vlogefp): New.
6206         (vec_vmaddfp): New.
6207         (vec_vmhaddshs): New.
6208         (vec_vmaxub): New.
6209         (vec_vmaxsb): New.
6210         (vec_vmaxuh): New.
6211         (vec_vmaxsh): New.
6212         (vec_vmaxuw): New.
6213         (vec_vmaxsw): New.
6214         (vec_vmaxsw): New.
6215         (vec_vmaxfp): New.
6216         (vec_vmrghb): New.
6217         (vec_vmrghh): New.
6218         (vec_vmrghw): New.
6219         (vec_vmrglb): New.
6220         (vec_vmrglh): New.
6221         (vec_vmrglw): New.
6222         (vec_vminub): New.
6223         (vec_vminsb): New.
6224         (vec_vminuh): New.
6225         (vec_vminsh): New.
6226         (vec_vminuw): New.
6227         (vec_vminsw): New.
6228         (vec_vminfp): New.
6229         (vec_vmladduhm): New.
6230         (vec_vmhraddshs): New.
6231         (vec_msumubm): New.
6232         (vec_vmsummbm): New.
6233         (vec_vmsumuhm): New.
6234         (vec_vmsumshm): New.
6235         (vec_vmsumuhs): New.
6236         (vec_vmsumshs): New.
6237         (vec_vmuleub): New.
6238         (vec_vmulesb): New.
6239         (vec_vmuleuh): New.
6240         (vec_vmulesh): New.
6241         (vec_vmuloub): New.
6242         (vec_mulosb): New.
6243         (vec_vmulouh): New.
6244         (vec_vmulosh): New.
6245         (vec_vnmsubfp): New.
6246         (vec_vnor): New.
6247         (vec_vor): New.
6248         (vec_vpkuhum): New.
6249         (vec_vpkuwum): New.
6250         (vec_vpkpx): New.
6251         (vec_vpkuhus): New.
6252         (vec_vpkshss): New.
6253         (vec_vpkuwus): New.
6254         (vec_vpkswss): New.
6255         (vec_vpkshus): New.
6256         (vec_vpkswus): New.
6257         (vec_vperm): New.
6258         (vec_vrefp): New.
6259         (vec_vrlb): New.
6260         (vec_vrlh): New.
6261         (vec_vrlw): New.
6262         (vec_vrfin): New.
6263         (vec_vrsqrtefp): New.
6264         (vec_vsel): New.
6265         (vec_vslb): New.
6266         (vec_vslh): New.
6267         (vec_vslw): New.
6268         (vec_vsldoi): New.
6269         (vec_vsl): New.
6270         (vec_vslo): New.
6271         (vec_vspltb): New.
6272         (vec_vsplth): New.
6273         (vec_vspltw): New.
6274         (vec_vspltisb): New.
6275         (vec_vspltish): New.
6276         (vec_vspltisw): New.
6277         (vec_vsrb): New.
6278         (vec_vsrh): New.
6279         (vec_vsrw): New.
6280         (vec_vsrab): New.
6281         (vec_vsrah): New.
6282         (vec_vsraw): New.
6283         (vec_vsr): New.
6284         (vec_vsro): New.
6285         (vec_stvx): New.
6286         (vec_stvebx): New.
6287         (vec_stvehx): New.
6288         (vec_stvewx): New.
6289         (vec_stvxl): New.
6290         (vec_vsububm): New.
6291         (vec_vsubuhm): New.
6292         (vec_vsubuwm): New.
6293         (vec_vsubfp): New.
6294         (vec_vsubcuw): New.
6295         (vec_vsububs): New.
6296         (vec_vsubsbs): New.
6297         (vec_vsubuhs): New.
6298         (vec_vsubshs): New.
6299         (vec_vsubuws): New.
6300         (vec_vsubsws): New.
6301         (vec_vsum4ubs): New.
6302         (vec_vsum4sbs): New.
6303         (vec_vsum4shs): New.
6304         (vec_vsum2sws): New.
6305         (vec_vsumsws): New.
6306         (vec_vrfiz): New.
6307         (vec_vupkhsb): New.
6308         (vec_vupkhpx): New.
6309         (vec_vupkhsh): New.
6310         (vec_vupklsb): New.
6311         (vec_vupklpx): New.
6312         (vec_vupklsh): New.
6313         (vec_vxor): New.
6314
6315 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
6316
6317         PR c/5430
6318         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6319         added literals from substracted literals.
6320         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6321         (fold) [associate]: Preserve MINUS_EXPR if needed.
6322
6323 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
6324
6325         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6326         are obsoleted.
6327
6328 2002-04-23  Tom Tromey  <tromey@redhat.com>
6329
6330         * gcc.c: Added --resource.  For PR java/6314.
6331
6332 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6333
6334         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6335         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6336         these libraries.
6337
6338 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6339
6340         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6341
6342 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6343
6344         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6345         workaround.
6346         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6347         (ix86_expand_clrstr): Fix typo.
6348         * loop.c (gen_load_of_final_value): New.
6349         (loop_givs_rescan, strength_reduce, check_dbra_loop):
6350         Use it.
6351
6352 2002-04-23  Roger Sayle  <roger@eyesopen.com>
6353
6354         * builtins.c (builtin_memset_gen_str): New function.
6355         (expand_builtin_memset): Optimize the case of constant length, but
6356         unknown value.
6357
6358 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
6359
6360         * config/rs6000/altivec.h (vec_step): Remove extraneous
6361         parentheses.
6362         (vec_ctu): Cast return.
6363
6364 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
6365
6366         PR target/6413
6367         * function.h: (struct function): Add profile_label_no field.
6368         (current_function_profile_label_no): Define.
6369         * function.c: (profile_label_no): New static var.
6370         (expand_function_start): Increment it, and copy to
6371         current_function_profile_label_no.
6372         * output.h (profile_label_no): Delete.
6373         * final.c (profile_label_no): Delete.
6374         (profile_function): Use current_function_profile_label_no.
6375         (final_end_function): Don't increment profile_label_no here.
6376         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6377         profile_label_no with current_function_profile_label_no.
6378         * config/pa/pa.c (current_function_number): Delete.
6379         (pa_output_function_prologue): Don't output profile label here.
6380         (hppa_profile_hook): Use label_no param rather than
6381         current_function_number.
6382         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6383         * config/pa/pa.h: .. here.
6384         (FUNCTION_PROFILER): Output profile label here.
6385
6386 2002-04-22  Eric Christopher  <echristo@redhat.com>
6387
6388         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6389         patch of 2002-04-09 due to binutils issues.
6390         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6391
6392 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6393
6394         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6395         constraint to 'o' for m=r and r=m alternatives.
6396         ("*movv8hi_internal1"): Same.
6397         ("*movv16qi_internal1"): Same.
6398         ("*movv4sf_internal1"): Same.
6399
6400 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
6401
6402         * rtl.h (RTX_FLAG): New macro.
6403         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6404         * final.c (alter_subreg): Use macro to access rtx flag.
6405         * integrate.c (copy_rtx_and_substitute): Use new access macro.
6406         * print-rtl.c (print_rtx): Use new access macro.
6407
6408         * cse.c (insert): Check rtx code before accessing flag.
6409
6410         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6411         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6412         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6413         convert_const_symbol_ref, make_canonical, make_alternative_compare,
6414         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6415         simplify_test_exp, optimize_attrs, simplify_by_exploding,
6416         find_and_mark_used_attributes, unmark_used_attributes,
6417         add_values_to_cover, simplify_with_current_value,
6418         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6419         copy_rtx_unchanging, main): Use new access macros.
6420
6421 2002-04-22  Tom Rix  <trix@redhat.com>
6422
6423         * expmed.c (init_expmed): Generate shifted constant once.
6424
6425 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
6426
6427         * c-lex.c (lex_charconst): Call convert to get constant in
6428         proper type; don't just smash the type field.
6429         Fixes PR c/6300.
6430
6431         * config.gcc: Add list of obsolete configurations.  Disallow
6432         building these without --enable-obsolete.
6433         * doc/install.texi: Document --enable-obsolete and obsoletion
6434         policy.  Mention obsoletion of individual targets in
6435         appropriate places.
6436
6437 2002-04-22  Richard Henderson  <rth@redhat.com>
6438
6439         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6440
6441 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
6442
6443         PR f/6138.
6444         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6445         (walk_fixup_memory_subreg): Likewise.
6446         (fixup_var_refs_insn): Adjust accordingly.
6447         (fixup_var_refs_1): Likewise.
6448
6449 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
6450
6451         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6452         LIBPATH_ARCH64_SPEC): Define.
6453         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6454         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6455         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6456         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6457
6458 2002-04-22      Joel Sherrill <joel@OARcorp.com>
6459
6460         * gthr-rtems.h: Correct prototypes to remove warnings.
6461
6462 2002-04-22  Richard Henderson  <rth@redhat.com>
6463
6464         PR c/6344
6465         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6466
6467         * gcse.c (free_insn_expr_list_list): New.
6468         (clear_modify_mem_tables): Use it.  Fix bit set usage.
6469         (canon_list_insert): Use EXPR_LISTs for expressions.
6470         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6471
6472 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6473
6474         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
6475         file change and include code to _cpp_pop_buffer.
6476         * cpphash.h (struct pending_option): Predeclare.
6477         (struct cpp_reader): New member next_include_file.
6478         (_cpp_pop_file_buffer): Update.
6479         (_cpp_push_next_buffer): Update, rename.
6480         * cppinit.c (cpp_destroy): Free include chain and pending here.
6481         (cpp_finish_options): Simplify.
6482         (_cpp_push_next_buffer): Rename and clean up.
6483         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6484         Clarify.
6485         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6486
6487 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6488
6489         * config/rs6000/altivec.h (vec_xor): Add variant for both args
6490         being vector signed int.
6491         (vec_andc): Same.
6492         (vec_xor): Add variant for both args being vector signed char.
6493         Remove redundant variant.
6494         (vec_andc): Same.
6495
6496 2002-04-21  David S. Miller  <davem@redhat.com>
6497
6498         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6499         compare mode in output RTL.
6500
6501 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
6502
6503         * config/rs6000/rs6000.c (rs6000_override_options): Correct
6504         style and formatting of previous patch.
6505
6506 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
6507
6508         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6509         flag_pic for ABI_AIX.
6510
6511 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6512
6513         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6514         * cppfiles.c (read_include_file): Similarly.
6515         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6516         uxstrdup ustrchr, ufputs): Similarly.
6517         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6518         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6519         cpp_ideq, parse_identifier, parse_number): Similarly.
6520         * cpplib.c (struct directive, dequote_string, D, run_directive,
6521         cpp_push_buffer): Similarly.
6522         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6523         _cpp_create_definition, check_trad_stringification,
6524         cpp_macro_definition): Similarly.
6525
6526 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6527
6528         * cppmacro.c (funlike_invocation_p): Don't step back
6529         over CPP_EOF.
6530
6531 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
6532
6533         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6534         labelno.
6535
6536 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6537
6538         * doc/invoke.texi: Remove Chill references.
6539         * doc/gcc.texi: Update last modified date.
6540
6541 2002-04-20  Kazu Hirata  <kazu@hxi.com>
6542
6543         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6544         push and pop.  Replace add.l with add.w.
6545
6546 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6547
6548         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6549         multiply instructions for H8/300H case.
6550
6551 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6552
6553         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6554         Bum three instructions from each routine.
6555
6556 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6557
6558         * Makefile.in: Update.
6559         * decl.c (push_c_function_context, pop_c_function_context,
6560         mark_c_function_context): Rename for consistency.
6561         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6562         * c-tree.h (push_c_function_context, pop_c_function_context,
6563         mark_c_function_context): Rename for consistency.
6564         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6565         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6566         * function.c (init_lang_status, save_lang_status,
6567         restore_lang_status, mark_lang_status, free_lang_status):
6568         Move to langhooks.h.
6569         (push_function_context_to, pop_function_context_from,
6570         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6571         Update.
6572         * function.h (init_lang_status, save_lang_status,
6573         restore_lang_status, mark_lang_status, free_lang_status):
6574         Move to langhooks.h.
6575         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6576         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6577         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6578         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6579         (LANG_HOOKS_INITIALIZER): Update.
6580         (lhd_do_nothing_f): New.
6581         * langhooks.h (struct lang_hooks_for_functions): New.
6582         (struct lang_hooks): New hooks.
6583         * langhooks.c (lhd_do_nothing_f): New.
6584 objc:
6585         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6586         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6587
6588 2002-04-19  David S. Miller  <davem@redhat.com>
6589
6590         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6591         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6592
6593 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6594
6595         PR optimization/3756
6596         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6597         x = ((int) y < 0) ? cst1 : cst2.
6598
6599 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6600
6601         PR c/6358
6602         * function.c: Reapply patch for c/6358.
6603         (expand_function_end): Copy decl_rtl's mode, not
6604         current_function_return_rtx mode.
6605
6606 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6607
6608         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6609         targets.
6610
6611 2002-04-19  Tom Tromey  <tromey@redhat.com>
6612
6613         * doc/install.texi (Specific): Update status of Solaris 2.8.
6614         For PR libgcj/6158.
6615
6616 2002-04-19  Andreas Schwab  <schwab@suse.de>
6617
6618         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6619         (PUT_REAL): Restore old definition.
6620
6621 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6622             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6623
6624         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6625         binutils 2.11.2 and higher generate smaller binaries than Sun's
6626         native tools.
6627
6628 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6629
6630         PR c++/6352
6631         * toplev.c (rest_of_compilation): Do not defer functions for which
6632         TREE_SYMBOL_REFERENCED has already been set.
6633
6634 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6635
6636         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6637         alternative.
6638
6639 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6640
6641         * builtins.c: Include langhooks.h.
6642         (lang_type_promotes_to): Remove.
6643         (expand_builtin_va_arg): Use new hook.
6644         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6645         (simple_type_promotes_to): Move to c-typeck.c.
6646         * c-common.h (simple_type_promotes_to): Remove.
6647         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6648         * c-format.c: Include langhooks.h.
6649         (check_format_types): Update.
6650         * c-tree.h (c_type_promotes_to): New.
6651         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6652         (type_lists_compatible_p): Update.
6653         * langhooks-def.h (lhd_type_promotes_to): New.
6654         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6655         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6656         * langhooks.c (lhd_type_promotes_to): New.
6657         * langhooks.h (struct lang_hooks_for_types): New hook.
6658         * tree.h (lang_type_promotes_to): Remove.
6659 objc:
6660         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6661
6662 2002-04-18  Richard Henderson  <rth@redhat.com>
6663
6664         * function.c: Revert patch for c/6358.
6665
6666 2002-04-18  Richard Henderson  <rth@redhat.com>
6667
6668         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6669         blocks.  Handle multiple references to the TRAP block.  Handle
6670         non-adjacent THEN and OTHER blocks.
6671
6672 2002-04-18  Richard Henderson  <rth@redhat.com>
6673
6674         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6675         crash with no type for by-mode libcalls.
6676
6677         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6678
6679 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6680
6681         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6682         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6683         the register windows.
6684
6685 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6686
6687         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6688         appropriate.  Document need for extended precision even when
6689         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6690         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6691         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6692         instead of relying on later syntax error when REAL_WIDTH > 5.
6693         * real.c: Define NE based only on whether or not we have a
6694         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6695         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6696         define GET_REAL and PUT_REAL as simple memcpy operations; no
6697         need to byteswap or round.
6698         Use #error instead of #ifdef-ing out the entire file, for
6699         prompt error detection.
6700
6701         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6702
6703 2002-04-18  David S. Miller  <davem@redhat.com>
6704
6705         * config/sparc/sparc.h (BRANCH_COST): Define.
6706
6707         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6708         does it.
6709
6710 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6711
6712         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6713         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6714         propagate_block calls after relaxation loop using new variable
6715         stabilized_prop_flags.
6716
6717 2002-04-18  Richard Henderson  <rth@redhat.com>
6718
6719         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6720         (ia64_va_arg): Expect variable sized types by reference.
6721         * config/ia64/ia64-protos.h: Update.
6722         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6723         ia64_function_arg_pass_by_reference.
6724
6725 2002-04-18  Richard Henderson  <rth@redhat.com>
6726
6727         * ifcvt.c: Include except.h.
6728         (block_has_only_trap): Break out from find_cond_trap.
6729         (find_cond_trap): Use it.  Always delete the trap block.
6730         (merge_if_block): Allow then block null.  Be less simplistic about
6731         what insns can end a block.
6732         * Makefile.in (ifcvt.o): Depend on except.h.
6733
6734         * config/ia64/ia64.md (trap, conditional_trap): New.
6735
6736 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6737
6738         PR c/6358
6739         * function.c (assign_parms): Assign hard current_function_return_rtx
6740         register here...
6741         (expand_function_end): ...not here.
6742
6743 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6744
6745         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6746         * c-tree.h (c_incomplete_type_error): New.
6747         * c-typeck.c (require_complete_type, build_component_ref): Update.
6748         (incomplete_type_error): Rename.
6749         * langhooks-def.h (lhd_incomplete_type_error): New.
6750         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6751         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6752         * langhooks.c (lhd_incomplete_type_error): New.
6753         * langhooks.h (struct lang_hooks_for_types): New hook.
6754         * tree.c (size_in_bytes): Use new hook.
6755         * tree.h (incomplete_type_error): Remove.
6756 objc:
6757         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6758
6759 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6760
6761         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6762         TARGET_FLOAT_FORMAT blocks.
6763
6764 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6765
6766         * doc/install.texi (Downloading the source): Do not mention Chill
6767         any longer, but mention Ada.
6768         (Configuration): Do not mention Chill any longer.
6769
6770 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6771
6772         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6773
6774 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6775
6776         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6777         in last patch.
6778
6779 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6780
6781         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6782         instead of unsigned_type.
6783
6784 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6785
6786         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6787         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6788         later.
6789
6790 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6791
6792         * attribs.c (vector_type_node_list): New static variable.
6793         (handle_vector_size_attribute): Use it to avoid generating a
6794         new type node each time we are called.
6795
6796         * combine.c (subst): Avoid trying to make a vector mode subreg of
6797         an integer constant.
6798         (gen_lowpart_for_combine): Likewise.
6799
6800 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6801             Jakub Jelinek  <jakub@redhat.com>
6802
6803         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6804         for integer constant c (if x has unsigned type or sign bit is not
6805         set in c).  This folds the zero/sign extension into the bit-wise and
6806         operation.
6807
6808 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6809
6810         PR middle-end/6205
6811         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6812         otherwise xorps.
6813
6814 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6815
6816         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6817
6818 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6819
6820         * gcc.c (read_specs): Detect and fail if an attempt is made to
6821         rename a spec string to an already existing string.
6822
6823 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6824
6825         * config/s390/s390.c (legitimize_pic_address): Do not generate
6826         illegal address constant without CONST.
6827
6828 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6829
6830         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6831         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6832
6833 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6834
6835         PR optimization/6305
6836         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6837         to make sure previous reloads are taken into account.  Generate
6838         better code if one operand is an in-range immediate constant.
6839
6840 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6841
6842         * doc/install.texi (Building): libgcj requires GNU make.
6843
6844 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6845
6846         PR bootstrap/6315
6847         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6848         even if hard quad and register is not floating.
6849         (movtf reg<-mem split): Disallow splitting if hard quad and
6850         register is floating.
6851         (movtf mem<-reg split): Likewise.
6852         * config/sparc/sparc.c (fp_register_operand): New predicate.
6853         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6854
6855 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6856
6857         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6858         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6859         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6860         UNPROTOIZE on command line.
6861         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6862         (in_system_include_dir): Use cpp_include_defaults (defined in
6863         cppdefault.o).
6864         * unprotoize.c: Delete file.
6865
6866 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6867
6868         * config/rs6000/altivec.h (vec_ld): Add array variants.
6869         (vec_lde): Same.
6870         (vec_ldl): Same.
6871
6872 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6873             Aldy Hernandez <aldyh@redhat.com>
6874
6875         * config/rs6000/altivec.h: Define __ALTIVEC__.
6876         (bool): New.
6877         (__pixel): New.
6878         (pixel): New.
6879         (vec_cfux): New.
6880         (vec_vmaddfp): New.
6881         (vec_vsldoi): New.
6882         Add parentheses to all macro arguments.
6883
6884 2002-04-16  Richard Henderson  <rth@redhat.com>
6885
6886         PR c++/6320
6887         * except.c (remove_eh_handler): Insert inner regions at beginning
6888         of sibling chain.  Refactor expressions.
6889
6890 2002-04-16  Richard Henderson  <rth@redhat.com>
6891
6892         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6893         * config/sparc/sol2-gas-bi.h: New file.
6894         * config.gcc (sparc*-solaris): Add it as needed.
6895         * configure.in (AS_SPARC64_FLAG): Remove check.
6896         * config.in, configure: Regenerate.
6897
6898         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6899
6900 2002-04-16  Richard Henderson  <rth@redhat.com>
6901
6902         * config/mips/mips.c (override_options): Don't override N32 for
6903         a 64-bit ISA.
6904
6905         PR 6202
6906         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6907         (HILO_delay): Set can_delay false.
6908
6909 2002-04-16  Dale Johannesen <dalej@apple.com>
6910
6911         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6912         instruction addresses.
6913         (rs6000_output_function_epilogue): Likewise.
6914
6915 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6916
6917         * c-parse.in (poplevel, compstmt_start,
6918         compstmt_primary_start): Add ending ';', in accordance
6919         with POSIX.
6920
6921 2002-04-16  Richard Henderson  <rth@redhat.com>
6922
6923         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6924         Adjust tm_file order to get TARGET_DEFAULT set properly.
6925         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6926         * doc/install.texi (sparc-solaris): Update.
6927
6928 2002-04-16  Dale Johannesen <dalej@apple.com>
6929
6930         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6931         comparison operands do not match each other or if modes of
6932         conditions do not match result.
6933
6934 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6935
6936         PR target/6305
6937         * config/s390/s390.md (mulsidi3): Set both subregs of the
6938         multiword register.
6939
6940 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6941
6942         * config/rs6000/altivec.h (vec_addc): Type check.
6943
6944 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6945
6946         PR middle-end/6279
6947         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6948
6949         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6950
6951 2002-04-15  Richard Henderson  <rth@redhat.com>
6952
6953         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6954         call_really_used_regs too.
6955
6956 2002-04-15  Richard Henderson  <rth@redhat.com>
6957
6958         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6959
6960 2002-04-15  David S. Miller  <davem@redhat.com>
6961
6962         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6963         as being CLOBBERed.
6964
6965 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6966
6967         PR c/6290
6968         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6969         CONST_VECTOR is { 0, ... 0 }.
6970
6971 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6972
6973         * doc/install.texi (Installing GCC: Configuration): Clarify
6974         the only supported ways to configure gcc.
6975
6976 2002-04-15  Roland McGrath  <roland@frob.com>
6977
6978         * config.gcc (alpha*-*-gnu*): New target configuration.
6979         * config/alpha/gnu.h: New file for it.
6980         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6981
6982 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6983
6984         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6985         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6986         * tree.h (expand_start_stmt_expr): Update prototype.
6987         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6988         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6989         on the STMT_EXPR created for the inline function.
6990
6991 2002-04-15  Richard Henderson  <rth@redhat.com>
6992
6993         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6994         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6995         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6996         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6997         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6998         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6999         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
7000         Define __gnu_linux__, not gnu_linux.
7001         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
7002
7003 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
7004
7005         Remove Chill front end.
7006         * gcc.c (default_compilers): Remove Chill entries.
7007         * ch: Remove directory.
7008         * doc/frontends.texi: Remove information about Chill.
7009         * doc/sourcebuild.texi: Likewise.
7010         * doc/standards.texi: Likewise.
7011
7012 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
7013
7014         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
7015         (LONGLONG_STANDALONE): Define.
7016
7017 2002-04-15  David S. Miller  <davem@redhat.com>
7018
7019         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
7020         Call emit_library_call with LCT_NORMAL.
7021         (sparc_initialize_trampoline): Use LCT_foo instead of
7022         magic constant in emit_library_call invocations.
7023         (sparc64_initialize_trampoline): Likewise.
7024         (sparc_profile_hook): Likewise.
7025         * config/sparc/sparc.md: Likewise.
7026
7027         * config/sparc/sparc.c (sparc_extra_constraint_check):
7028         Fix type of argument 'c'.
7029         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
7030         Likewise.
7031
7032 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
7033
7034         * diagnostic.h (output_buffer_state): Redefine.
7035         (output_format_decoder): New macro.
7036         (output_prefixing_rule): Likewise.
7037         (output_line_cutoff): Likewise.
7038         (diagnostic_format_decoder): Adjust.
7039         (diagnostic_prefixing_rule): Likewise.
7040         (diagnostic_line_cutoff): Likewise.
7041         (diagnostic_state): Likewise.
7042         (diagnostic_kind_count): Likewise.
7043         (diagnostic_buffer): Now a macro.
7044
7045         * diagnostic.c (diagnostic_buffer): Remove definition.
7046         (output_is_line_wrapping): Adjust.
7047         (set_real_maximum_length): Likewise.
7048         (output_set_maximum_length): Likewise.
7049         (init_output_buffer): Likewise.
7050         (lhd_print_error_function): Likewise.
7051         (output_do_verbatim): Likewise.
7052
7053 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7054
7055         * cpperror.c (print_location): Don't print include chain
7056         if line == 0.
7057         (cpp_begin_message): Update to use DL_ macros.
7058         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7059         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7060         cpp_notice, cpp_notice_from_errno): Remove.
7061         (cpp_error, cpp_error_with_line): Update to take a diagnostic
7062         level.
7063         (cpp_errno): New.
7064         * cppexp.c (CPP_ICE): Remove.
7065         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
7066         lex, integer_overflow, _cpp_parse_expr): Update.
7067         * cppfiles.c (read_include_file, find_include_file,
7068         handle_missing_header, _cpp_read_file, remap_filename): Update.
7069         * cpphash.h (enum error_type): Remove.
7070         (_cpp_begin_message): Update.
7071         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
7072         cpp_handle_option, cpp_post_options): Update.
7073         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
7074         skip_whitespace, parse_identifier, parse_slow, parse_string,
7075         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
7076         cpp_interpret_charconst): Update.
7077         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
7078         lex_macro_node, do_undef, glue_header_name, parse_include,
7079         do_include_common, read_flag, do_line, do_linemarker, do_ident,
7080         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
7081         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
7082         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
7083         _cpp_pop_buffer, do_diagnostic): Update.
7084         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
7085         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
7086         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7087         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7088         cpp_notice, cpp_notice_from_errno): Remove.
7089         (cpp_error, cpp_error_with_line): Update to take a diagnostic
7090         level.
7091         (cpp_errno): New.
7092         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
7093         collect_args, enter_macro_context, save_parameter, parse_params,
7094         _cpp_create_definition, check_trad_stringification,
7095         cpp_macro_definition): Update.
7096         * cppmain.c (cpp_preprocess_file): Update.
7097         * fix-header.c (read_scan_file): Update.
7098
7099 2002-04-14  Andreas Schwab  <schwab@suse.de>
7100
7101         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
7102
7103 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7104
7105         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
7106
7107 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
7108
7109         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
7110         not gnu_hurd.
7111
7112 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
7113
7114         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
7115
7116 2002-04-13      Joel Sherrill <joel@OARcorp.com>
7117
7118         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
7119         sparc-elf and sparc-rtems targets.
7120
7121 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
7122
7123         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
7124         defined, and __gnu_hurd__ wherever __GNU__ is defined.
7125         * arm/linux-elf.h: Likewise.
7126         * cris/aout.h: Likewise.
7127         * cris/linux.h: Likewise.
7128         * i370/linux.h: Likewise.
7129         * i386/gnu.h: Likewise.
7130         * i386/linux-aout.h: Likewise.
7131         * i386/linux-oldld.h: Likewise.
7132         * i386/linux.h: Likewise.
7133         * i386/linux64.h: Likewise.
7134         * ia64/linux.h: Likewise.
7135         * m68k/linux-aout.h: Likewise.
7136         * m68k/linux.h: Likewise.
7137         * mips/linux.h: Likewise.
7138         * pa/pa-linux.h: Likewise.
7139         * pj/linux.h: Likewise.
7140         * rs6000/sysv4.h: Likewise.
7141         * s390/linux.h: Likewise.
7142         * sh/linux.h: Likewise.
7143         * sparc/linux-aout.h: Likewise.
7144         * sparc/linux.h: Likewise.
7145         * sparc/linux64.h: Likewise.
7146         * xtensa/linux.h: Likewise.
7147
7148 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
7149
7150         * stmt.c (check_unique_operand_names): Expect operand names to
7151         be strings rather than identifiers.  Use simple_cst_equal to
7152         compare them.
7153         (resolve_operand_name_1): Make same identifier to string change here.
7154         * c-parse.in (asm_operand): Convert a named operand into a string.
7155         * cp/parse.y (asm_operand): Likewise.
7156
7157 2002-04-13  Andreas Schwab  <schwab@suse.de>
7158
7159         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
7160
7161 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
7162
7163         Revert these changes:
7164
7165         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7166
7167         PR c++/5571
7168         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7169
7170 2002-04-12  Richard Henderson  <rth@redhat.com>
7171
7172         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
7173         (sparc*-*-solaris): Clean up header files.
7174         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
7175         and plan on generating 64-bit code.
7176         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
7177         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
7178         * config/sparc/sol2-sld-64.h: Rename ...
7179         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
7180         for AS_SPARC64_FLAG not defined.
7181         * config/sparc/sol2-gld-bi.h: New.
7182         * config/sparc/sol2-sld.h: Remove.
7183         * config/sparc/sol26-sld.h: New.
7184         * config/sparc/sol2.h: Tidy comments.
7185         * doc/install.texi: Document sparc-solaris configury changes.
7186
7187 2002-04-12  Richard Henderson  <rth@redhat.com>
7188
7189         * recog.c (offsettable_address_p): Match the logic in adjust_address.
7190
7191         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
7192         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
7193
7194 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7195
7196         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
7197
7198 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
7199
7200         * pa.c (pa_can_combine_p): Call extract_insn before calling
7201         constrain_operands.
7202
7203 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
7204
7205         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
7206         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
7207         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7208         (CPP_PREDEFINES): Handle __declspec.
7209         * config/i386/t-interix (USER_H): Remove.
7210
7211 2002-04-12  DJ Delorie  <dj@redhat.com>
7212
7213         * integrate.c (compare_blocks): Make comparisons safe for when
7214         sizeof(int) < sizeof(char *).
7215         (find_block): Likewise.
7216
7217 2002-04-12  Jan Hubicka  <jh@suse.cz>
7218             David Edelsohn  <edelsohn@gnu.org>
7219
7220         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
7221         registers.
7222         (symbol_ref_operand): New.
7223         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
7224         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
7225
7226 2002-04-12  Andreas Schwab  <schwab@suse.de>
7227
7228         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
7229         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
7230         overrides the definition in config/svr4.h.
7231
7232 2002-04-12      Eric Norum <eric.norum@usask.ca>
7233
7234         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
7235         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
7236         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
7237         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
7238         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
7239         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
7240         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
7241         definitions to config/rtems.h and make the targets more similar.
7242
7243 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7244
7245         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7246         POINTERS_EXTEND_UNSIGNED.
7247         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7248         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7249
7250         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7251         not specified.
7252
7253 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
7254
7255         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7256         depends on TARGET_SHMEDIA, not TARGET_SH5.
7257
7258 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
7259
7260         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7261         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7262
7263 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
7264
7265         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7266         no r0 clobber.
7267
7268 2002-04-12  Andreas Schwab  <schwab@suse.de>
7269
7270         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7271
7272 2002-04-12  Richard Henderson  <rth@redhat.com>
7273
7274         PR bootstrap/4191
7275         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7276
7277         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7278         modes spanning multiple hard regs.
7279
7280         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7281
7282 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7283
7284         * pa.c (pa_output_function_prologue): Don't accumulate the total
7285         number of code bytes when using TARGET_64BIT, or gas, SOM and not
7286         the portable runtime.
7287         (output_deferred_plabels): Handle 64bit plabels.
7288         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7289         generating pic code using the GAS assembler for object formats that
7290         are not SOM (ie., ELF32 and ELF64).
7291         (output_millicode_call): Check attribute type if attribute length is 28.
7292         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
7293         dbr_sequence_length once.
7294         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7295         dbr_sequence_length once.
7296         * pa.h (TARGET_SOM): Define if not defined.
7297         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7298         with GAS and not SOM.
7299         (jump, call_internal_reg, call_value_internal_reg): Likewise.
7300         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
7301
7302 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7303
7304         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7305         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7306         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7307         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7308         elfos.h and dbxelf.h values are fine now.
7309         * config/i386/freebsd.h, config/alpha/freebsd.h
7310         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7311
7312 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7313
7314         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7315         or set Acpu or Amachine.  Reformat.
7316         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7317         define.
7318         (LINK_SPEC): Do not need to undef.
7319         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7320         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7321         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7322         define.
7323         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7324         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7325         (LINK_SPEC): Do not need to undef.
7326         (DONT_USE_BUILTIN_SETJMP): Do not define.
7327         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7328         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
7329         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7330         Remove trailing spaces.
7331         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7332         __ELF__, or set Acpu or Amachine.  Reformat.
7333         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7334         define.
7335
7336 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7337
7338         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7339         all other *-*-freebsd* targets.
7340
7341 2002-04-11  Richard Henderson  <rth@redhat.com>
7342
7343         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7344
7345 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7346
7347         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7348         Include {cpu}/{cpu}.h thru tm_file.
7349         (alpha*-*-linux*ecoff): Remove target.
7350         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7351         (LINK_SPEC): Remove, is not OS independent.
7352         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7353         (LINK_SPEC): Do not need to #undef any longer.
7354         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7355         any longer.
7356         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7357         __ELF__.
7358         (LINK_SPEC): Moved here from alpha/elf.h.
7359         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7360         SUB_CPP_PREDEFINES.
7361         * config/alpha/linux-ecoff.h: Remove.
7362         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7363         (CPP_SPEC): Define _POSIX_SOURCE as needed.
7364         (CPP_SUBTARGET_SPEC): Do not define.
7365         (LINK_SPEC): Do not need to #undef any longer.
7366         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7367         * config/alpha/vms.h: Likewise.
7368
7369 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
7370
7371         * doc/extend.texi: Remove old claim that typedefs cannot have
7372         an alignment attribute.
7373
7374 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7375
7376         PR optimization/6177
7377         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7378         bitpos is 0 and bitsize CONCAT size.
7379
7380 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7381
7382         PR c/6223
7383         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7384
7385 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
7386
7387         * config/alpha/freebsd.h: Minor reformatting.
7388         (CPP_SPEC): Define ELF and add cpp_subtarget.
7389         (ASM_SPEC): No longer needed.
7390
7391 2002-04-11  Richard Henderson  <rth@redhat.com>
7392
7393         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7394         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
7395         (dimode mem/zero splitter): New.
7396
7397 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
7398
7399         * config/cris/cris.c (cris_override_options): Tweak error message
7400         for PIC not implemented.
7401
7402         * config/cris/cris.h: Tweak comments related to parameter-passing.
7403
7404         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7405
7406 2002-04-10  Richard Henderson  <rth@redhat.com>
7407
7408         * except.c (add_ehl_entry): Allow duplicates after landing pad
7409         creation.
7410
7411 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
7412
7413         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7414
7415 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
7416
7417         * c-decl.c (c_init_decl_processing): Move generation of
7418         decls for g77_integer_type_node and friends from here ...
7419         * c-common.c (c_common_nodes_and_builtins): ... to here.
7420
7421 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
7422
7423         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7424         is only used as frame pointer when frame_pointer_needed is true.
7425
7426 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
7427
7428         PR target/817
7429         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7430         for the fact that the pool entry uses two words.
7431         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
7432         1k bytes.
7433         (movdf_soft_insn): Similarly.
7434         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7435         for the fact that the pool entry uses three words.
7436
7437 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
7438
7439         * config/mips/mips.c (mips_va_arg): When using the struct version
7440         of the EABI va_list, allow arguments in the register save area to
7441         take up less room than a stack argument.
7442
7443 2002-04-10  Richard Henderson  <rth@redhat.com>
7444
7445         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7446         if EXPAND_INITIALIZER.
7447
7448 2002-04-09  Richard Henderson  <rth@redhat.com>
7449
7450         * config/alpha/alpha.md (movdi_er_maybe_g): New.
7451         * config/alpha/alpha.c (alpha_expand_mov): Use it.
7452
7453 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
7454
7455         PR optimization/6233
7456         * rtlanal.c (pure_call_p): New function.
7457         * rtl.h (pure_call_p): Declare.
7458         * loop.c (prescan_loop): Use it to set has_nonconst_call.
7459         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7460
7461 2002-04-09  Eric Christopher  <echristo@redhat.com>
7462
7463         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7464         information to .comm directive.
7465
7466 2002-04-09  Richard Henderson  <rth@redhat.com>
7467
7468         PR c/5078
7469         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7470
7471 2002-04-09  Richard Henderson  <rth@redhat.com>
7472
7473         * basic-block.h (flow_delete_block_noexpunge): Declare.
7474         (expunge_block_nocompact): Declare.
7475         * cfg.c (expunge_block_nocompact): Split out from ...
7476         (expunge_block): ... here.
7477         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7478         (flow_delete_block_noexpunge): Split out from ...
7479         (flow_delete_block): ... here.
7480         * cfgcleanup.c (delete_unreachable_blocks): Compact while
7481         removing dead blocks.
7482         * except.c (exception_handler_labels): Remove.
7483         (exception_handler_label_map): New.
7484         (struct eh_region): Add aka member.
7485         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7486         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7487         (for_each_eh_label, for_each_eh_label_1): New.
7488         (init_eh): Register exception_handler_label_map.
7489         (free_eh_status): Use free_region.
7490         (find_exception_handler_labels): Use the map, not the list.
7491         (remove_exception_handler_label): Likewise.
7492         (maybe_remove_eh_handler): Likewise.
7493         (remove_eh_handler): Use the region aka bitmap.
7494         * except.h (exception_handler_labels): Remove.
7495         (for_each_eh_label): Declare.
7496         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7497         * loop.c (invalidate_loops_containing_label): New.
7498         (find_and_verify_loops): Use it.  Use for_each_eh_label.
7499         * sched-rgn.c (is_cfg_nonregular): Use
7500         current_function_has_exception_handlers.
7501
7502 2002-04-09  Richard Henderson  <rth@redhat.com>
7503
7504         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7505         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7506         Do not return changed status.
7507         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7508         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7509         New functions that do return changed status.
7510         * sbitmap.h: Update decls.
7511         * gcse.c, lcm.c: Use _cg functions as needed.
7512
7513 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7514
7515         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7516         (sh64-*-elf*, sh-*-rtemself*): Likewise.
7517         * config/sh/embed_bb.c: New file.
7518         * config/sh/embed-elf.h: New file.
7519         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7520         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
7521         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7522         __PTRDIFF_TYPE__ .
7523         (SUBTARGET_CPP_PTR_SPEC): Don't define.
7524         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7525         Add subtarget_asm_endian_spec.
7526         (ASM_SPEC): Use subtarget_asm_endian_spec.
7527         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7528         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7529         (WCHAR_UNSIGNED): Define.
7530         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7531         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7532         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7533         Fix value.
7534         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7535         (sh_adjust_cost): Likewise.
7536         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7537         __PTRDIFF_TYPE__ .
7538         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7539         (WCHAR_TYPE_SIZE): Likewise.
7540         (ASM_SPEC): Use subtarget_asm_endian_spec.
7541         (SH_ELF_WCHAR_TYPE): #undef/ #define.
7542         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7543         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7544         (MAX_WCHAR_TYPE_SIZE): Don't #define .
7545         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7546         (USER_LABEL_PREFIX): Don't #undef /#define .
7547         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7548         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7549         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7550         (ASM_SPEC): Likewise.
7551         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7552         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7553         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7554         (LIB2FUNCS_EXTRA): Define.
7555         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7556         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7557         (LIB1ASMFUNCS_CACHE): Define.
7558         (LIB2FUNCS_EXTRA): Redefine empty.
7559
7560 2002-04-08  Richard Henderson  <rth@redhat.com>
7561
7562         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7563
7564 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7565
7566         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7567         and optimize for size.
7568         (__do_global_ctors): Fix pointer comparison.
7569         (__do_global_dtors): Likewise.
7570
7571 2002-04-09  David S. Miller  <davem@redhat.com>
7572
7573         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7574         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7575         allow reloading pseudos.
7576         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7577         * config/sparc/sparc-protos.h: Declare it.
7578
7579         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7580         unsigned comparison warning.
7581         (output_restore_regs): Mark leaf_function as unused.
7582
7583 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7584
7585         * expr.c (is_aligning_offset): New function.
7586         (expand_expr, case COMPONENT_EXPR): Call it.
7587
7588 2002-04-08  David S. Miller  <davem@redhat.com>
7589
7590         PR target/6082
7591         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7592
7593         Make init_priority work on Sparc when using GNU ld.
7594         * config/sparc/linux.h, config/sparc/linux64.h,
7595         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7596         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7597         * config/sparc/sol2-gld.h: New file to do the same.
7598         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7599         sparc/sol2-gld.h to tm_file.
7600
7601         PR optimization/4328
7602         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7603         * doc/md.texi: Document it.
7604         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7605         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7606         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7607         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7608         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7609
7610 2002-04-08  Andreas Jaeger  <aj@suse.de>
7611
7612         * stmt.c (expand_asm_operands): Revert last patch from Richard
7613         Henderson.
7614
7615 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7616
7617         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7618         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7619
7620 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7621
7622         * doc/contrib.texi (Contributors): Add David O'Brien.
7623
7624 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7625
7626         * configure.in (auto-build.h): Use target_alias and build_alias
7627         when running configure.
7628         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7629         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7630         * configure: Regenerate.
7631
7632 2002-04-07  David S. Miller  <davem@redhat.com>
7633
7634         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7635
7636 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7637
7638         PR 5933
7639         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7640         generating 32-bit pic code.
7641
7642 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7643
7644         * cppinit.c (cpp_create_reader): Initialize
7645         discard_comments_in_macro_exp.
7646         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7647         (cpp_handle_option): Handle "-CC" option.
7648         * cpplex.c (save_comment): If saving a C++ comment in
7649         a directive, convert it to a C comment.
7650         (_cpp_lex_direct): Pass second comment start character to
7651         save_comment to indicate comment type.
7652         * cpplib.c (_cpp_handle_directive): If processing
7653         a "#define" directive and discard_comments_in_macro_exp
7654         is false,  re-enable saving of comments.
7655         (lex_macro_node): If discard_comments_in_macro_exp is false,
7656         discard any comments before the macro identifier.
7657         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7658         member.
7659         * cppmacro.c (cpp_get_token): If expanding a macro while
7660         processing a directive, discard any comments we might encounter.
7661         (parse_params): If discard_comments_in_macro_exp is false,
7662         ignore comments in the macro parameter list.
7663         * gcc.c (cpp_unique_options): Add "-CC" option.
7664         (option_map): Map "--comments-in-macros" to "-CC".
7665         * doc/cppopts.texi: Document "-CC" option.
7666         * f/lang-specs.h: Add "-CC" option.
7667         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7668         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7669         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7670         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7671         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7672         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7673
7674 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7675
7676         PR middle-end/6180
7677         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7678
7679 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7680
7681         PR c++/5571
7682         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7683
7684         PR opt/5120
7685         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7686         RTX_UNCHANGING_P for the functions arguments when a tail call
7687         is made.
7688
7689 2002-04-06  Jason Merrill  <jason@redhat.com>
7690
7691         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7692         (parse_options_and_default_flags): Set them appropriately.
7693         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7694
7695 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7696
7697         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7698         here.
7699
7700         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7701         semicolon.
7702
7703         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7704         types come in by-reference.  Fix typo in comment.
7705
7706 2002-04-05  David S. Miller  <davem@redhat.com>
7707
7708         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7709         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7710         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7711         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7712
7713 2002-04-05  David S. Miller  <davem@redhat.com>
7714
7715         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7716         are not going to emit return instructions, emit at least a nop
7717         for the sake of sane backtraces.
7718
7719 2002-04-05  Richard Henderson  <rth@redhat.com>
7720
7721         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7722
7723 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7724
7725         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7726
7727 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7728
7729         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7730         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7731         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7732
7733 2002-04-05  Andreas Schwab  <schwab@suse.de>
7734
7735         * c-convert.c: Include c-common.h.
7736         * Makefile.in (c-convert.o): Updated.
7737
7738 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7739
7740         * mklibgcc.in: Use separate libgcc.map for each multilib.
7741         * Makefile.in (distclean): Don't remove libgcc.map here.
7742
7743 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7744
7745         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7746         genmultilib invocation.
7747
7748 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7749
7750         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7751         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7752         to num_gprs for symmetry.
7753         * config/mips/mips.c: Adjust accordingly.
7754
7755 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7756
7757         * c-common.c (truthvalue_conversion): Rename, update.
7758         * c-common.h (c_common_truthvalue_conversion): New.
7759         * c-convert.c (convert): Update.
7760         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7761         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7762         * c-typeck.c (build_binary_op, build_unary_op,
7763         build_conditional_expr): Update.
7764         * fold-const.c (constant_boolean_node, fold): Use langhook.
7765         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7766         * langhooks.h (struct lang_hooks): New hook.
7767         * stmt.c (expand_decl_cleanup): Use langhook.
7768         * tree.h (truthvalue_conversion): Remove.
7769 objc:
7770         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7771
7772 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7773
7774         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7775         Add rules to make null object file.
7776
7777 2002-04-04  Jim Blandy  <jimb@redhat.com>
7778
7779         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7780         macro formal parameter names.
7781
7782 2002-04-04  David S. Miller  <davem@redhat.com>
7783
7784         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7785
7786 2002-04-04  Richard Henderson  <rth@redhat.com>
7787
7788         PR middle-end/5099
7789         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7790         Support copies into and out of memory.  Don't accept allows_reg
7791         and allows_mem as gospel.
7792
7793 2002-04-04  Richard Henderson  <rth@redhat.com>
7794
7795         PR opt/6165
7796         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7797         (write_dependence_p): Likewise.
7798
7799 2002-04-04  Richard Henderson  <rth@redhat.com>
7800
7801         * predict.c (estimate_bb_frequencies): Do frequency calculation
7802         with a volatile temporary.
7803
7804 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7805
7806         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7807
7808 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7809
7810         PR c++/6119
7811         * final.c (final_start_function): Don't bump profile_label_no here...
7812         (final_end_function): ...but here.
7813
7814 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7815
7816         * config/sparc/sparc.md (pic): New attribute.
7817         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7818         into stack slots.
7819         (split after do_builtin_setjmp_setup): New.
7820
7821 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7822
7823         PR fortran/6106
7824         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7825         change.
7826
7827 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7828
7829         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7830         UNITS_PER_WORD for zero sized aggregates.
7831
7832 2002-04-03  David S. Miller  <davem@redhat.com>
7833
7834         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7835         one-character spec for this, just use %(link_gcc_c_sequence).
7836
7837 2002-04-03  David S. Miller  <davem@redhat.com>
7838
7839         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7840         handling.
7841
7842 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7843
7844         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7845         (DWARF_FRAME_RETURN_COLUMN): Move.
7846         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7847         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7848         * pa.c (except.h, predict.h): Include.
7849         (FRP): Delete.
7850         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7851         (output_ascii): Add cast.
7852         (store_reg_modify): Revise to add frame notes.
7853         (set_reg_plus_d): Likewise.
7854         (compute_frame_size): Include space for eh data registers in frame if
7855         the current function calls eh_return.
7856         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7857         function calls eh_return.  Save eh data registers if the current
7858         function calls eh_return.  Fix code to add frame notes.  Emit
7859         blockage to prevent insns with frame notes being scheduled in the
7860         delay slot of calls.
7861         (hppa_expand_epilogue): Restore eh data registers and do final stack
7862         adjustment if the current function calls eh_return.  Don't add frame
7863         notes.
7864         (output_call): Revise for change in length of call insn.  Don't do
7865         return pointer adjustment for an unconditional jump in the delay slot
7866         of a call when using frame notes.
7867         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7868         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7869         (ARG_POINTER_CFA_OFFSET): Define.
7870         * pa.md (return_external_pic): New pattern.
7871         (prologue): Correct formatting.  Use return_external_pic if current
7872         function calls eh_return.
7873         (call_internal_symref, call_value_internal_symref,
7874         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7875         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7876         respectively.
7877         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7878
7879         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7880         list of targets to check using "nop" insn.
7881         * configure: Rebuilt.
7882
7883 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7884
7885         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7886
7887 2002-04-03  David S. Miller  <davem@redhat.com>
7888
7889         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7890         library sequence passed to the linker.
7891         (LINK_COMMAND_SPEC): Use it.
7892         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7893         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7894         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7895
7896 2002-04-03  Jason Merrill  <jason@redhat.com>
7897
7898         * except.c (struct eh_status): Remove protect_list.
7899         (begin_protect_partials, end_protect_partials): Remove.
7900         (add_partial_entry): Remove.
7901         * except.h: Remove prototypes.
7902
7903         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7904         expand_decl_cleanup_eh.
7905
7906         PR c++/5636
7907         * tree.h (CLEANUP_EH_ONLY): New macro.
7908         * stmt.c (expand_decl_cleanup_eh): New fn.
7909         (expand_cleanups): Check CLEANUP_EH_ONLY.
7910         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7911         Use expand_decl_cleanup_eh.
7912         (expand_stmt): Adjust.
7913         * c-common.h: Adjust prototype.
7914
7915 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7916
7917         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7918         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7919         (cris_target_asm_function_epilogue): Ditto.
7920         (cris_initial_frame_pointer_offset): Ditto.
7921         (cris_simple_epilogue): Ditto.
7922         (cris_expand_builtin_va_arg): Variable-size types come in
7923         by-reference.
7924
7925 2002-04-03  David S. Miller  <davem@redhat.com>
7926
7927         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7928         little-endian.
7929         (set_fast_math): Correct 'fsr' type.
7930
7931 2002-04-03  Richard Henderson  <rth@redhat.com>
7932
7933         PR opt/3569
7934         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7935         * toplev.c (check_global_declarations): Use it.
7936         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7937         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7938         (LANG_HOOKS_DECLS): Add it.
7939         * langhooks.c (lhd_warn_unused_global_decl): New.
7940         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7941         * c-objc-common.c (c_warn_unused_global_decl): New.
7942         * c-tree.h (c_warn_unused_global_decl): Declare.
7943         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7944
7945 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7946
7947         * langhooks-def.h (lhd_set_decl_assembler_name,
7948         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7949         (LANG_HOOKS_INITIALIZER): Update.
7950         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7951         * langhooks.h (struct lang_hooks): New hook.
7952         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7953         (lang_set_decl_assembler_name): Remove.
7954         (init_obstacks): Don't set hook.
7955         (decl_assembler_name): New function.
7956         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7957         (decl_assembler_name): New.
7958         (lang_set_decl_assembler_name): Remove.
7959
7960 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7961
7962         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7963         works properly with .hidden symbols.
7964         * configure: Rebuilt.
7965         * config.in: Rebuilt.
7966         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7967         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7968         properly with .hidden symbols.
7969
7970 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7971
7972         PR middle-end/6102
7973         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7974         USE argument.
7975
7976 2002-04-03  Richard Henderson  <rth@redhat.com>
7977
7978         PR opt/4120
7979         * sched-rgn.c (sets_likely_spilled): New.
7980         (sets_likely_spilled_1): New.
7981         (add_branch_dependences): Use it.
7982
7983 2002-04-02  Richard Henderson  <rth@redhat.com>
7984
7985         PR opt/4311
7986         * loop.h (LOOP_FIRST_PASS): New.
7987         * loop.c (strength_reduce): Mind it when deciding to unroll.
7988         * toplev.c (rest_of_compilation): Set it.
7989
7990 2002-04-02  David S. Miller  <davem@redhat.com>
7991
7992         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7993         mems_ok_for_ldd_peep when the order of the loads being examined
7994         is reversed.
7995         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7996         existing comment to increase comprehension of this situation.
7997
7998 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7999
8000         * config/sh/sh.md: Don't use union real_extract.
8001
8002 2002-04-02  Richard Henderson  <rth@redhat.com>
8003
8004         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
8005
8006 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
8007
8008         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
8009         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
8010         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
8011         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
8012         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
8013         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
8014         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
8015         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
8016         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
8017         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
8018         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
8019         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
8020         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
8021         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
8022         Include as many configury headers via tm_file as possible.  This
8023         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
8024         * config/openbsd-oldgas.h: New file.
8025         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
8026         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
8027         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
8028         config/i386/i386-coff.h, config/i386/i386-interix.h,
8029         config/i386/iscdbx.h, config/i386/linux-aout.h,
8030         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
8031         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
8032         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
8033         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
8034         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
8035         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
8036         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
8037         config/i386/vxi386.h: Do not directly include configury headers.
8038         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
8039         Directly include configury headers that are no longer automatically
8040         included by the above headers.
8041         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
8042         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
8043         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
8044         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
8045         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
8046         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
8047         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
8048         (TARGET_VERSION): Define.
8049         * config/i386/beos-elf.h, config/i386/freebsd.h,
8050         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
8051         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
8052         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
8053         config/i386/sco5.h, config/i386/sysv4.h
8054         (TARGET_VERSION): Do not need to protect.
8055         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
8056         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
8057         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
8058         config/i386/i386-interix.h, config/i386/linux-aout.h,
8059         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
8060         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
8061         (YES_UNDERSCORES): Do not define - not needed.
8062         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
8063         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8064         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
8065         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
8066         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8067         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
8068         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
8069         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
8070
8071 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
8072             Richard Henderson  <rth@redhat.com>
8073
8074         PR c/5484
8075         * function.c (assign_temp): Accept either type or decl argument.
8076         Detect variables whose size is too large to fit into an integer.
8077         * stmt.c (expand_decl): Pass the decl, not the type.
8078
8079 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
8080
8081         * protoize.c: Match include directory usage with cppdefault.c.
8082
8083 2002-04-03  Jeffrey A Law  (law@redhat.com)
8084             Hans-Peter Nilsson  <hp@bitrange.com>
8085
8086         * combine.c (simplify_comparison): Avoid narrowing a comparison
8087         with a paradoxical subreg when doing so would drop signficant bits.
8088
8089 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
8090
8091         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
8092         if POINTERS_EXTEND_UNSIGNED is defined.
8093
8094 2002-04-02  Richard Henderson  <rth@redhat.com>
8095
8096         PR opt/3967
8097         * local-alloc.c (contains_replace_regs): LO_SUM may contain
8098         replace regs.
8099
8100 2002-04-02  Richard Henderson  <rth@redhat.com>
8101
8102         * doc/standards.texi: Document required freestanding libc entry points.
8103
8104 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
8105
8106         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
8107         associated splitter.  Remove MQ constraint.
8108         (ctrdi_internal4): Correct CCmode clobber.
8109
8110 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8111
8112         * milli64.S ($$dyncall): New function.
8113         * t-linux (LIB1ASMFUNCS): Revise module list.
8114         (LIB1ASMSRC): Use pa/milli64.S.
8115
8116 2002-04-02  Richard Henderson  <rth@redhat.com>
8117
8118         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
8119         rename solaris_sys_varargs_h.
8120
8121 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8122
8123         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
8124         the same mode as its component.
8125
8126 2002-04-02  Richard Henderson  <rth@redhat.com>
8127
8128         PR opt/190
8129         * final.c (this_is_asm_operands): Export.
8130         * output.h (this_is_asm_operands): Declare.
8131         * config/i386/i386.c (print_operand): Error odd asm operands.
8132
8133 2002-04-02  Richard Henderson  <rth@redhat.com>
8134
8135         PR opt/420
8136         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
8137
8138 2002-04-01  Richard Henderson  <rth@redhat.com>
8139
8140         PR target/1538
8141         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
8142         * fixinc/fixincl.x: Rebuild.
8143
8144 2002-04-01  Richard Henderson  <rth@redhat.com>
8145
8146         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
8147         (atomic_alloc, atomic_free): New.
8148         (SIZE, MASK_FOR, PTR_IN): New.
8149         (emergency_reg_state, emergency_reg_state_free): New.
8150         (emergency_labeled_state, emergency_labeled_state_free): New.
8151         (reg_state_alloced, labeled_state_alloced): New.
8152         (alloc_reg_state, free_reg_state): New.
8153         (alloc_label_state, free_label_state, free_label_states): New.
8154         (push, pop, dup_state_stack, free_state_stack): Use them.
8155         (desc_label_state): Likewise.
8156         (uw_frame_state_for): Free label states and state stack.
8157         (uw_update_reg_address): Eliminate warnings.
8158
8159 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
8160
8161         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
8162         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
8163
8164 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8165
8166         * c-decl.c (grokdeclarator): Update.
8167         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8168         * c-tree.h (c_mark_addressable): New.
8169         * c-typeck.c (default_function_array_conversion, build_unary_op,
8170         build_array_ref, convert_for_assignment): Update.
8171         (mark_addressable): Rename.
8172         * calls.c (try_to_integrate, expand_call): Use langhook.
8173         * expr.c (expand_expr): Use langhook.
8174         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
8175         * langhooks.h (struct lang_hooks): New hook.
8176         * stmt.c (expand_asm_operands): Use langhook.
8177         * tree.h (mark_addressable): Remove.
8178 objc:
8179         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8180
8181 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
8182
8183         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
8184         in previous change.
8185
8186 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
8187
8188         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
8189         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
8190
8191 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8192
8193         * c-common.c (unsigned_conversion_warning, convert_and_check,
8194         unsigned_type, signed_type, shorten_compare,
8195         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
8196         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
8197         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
8198         New.
8199         * c-decl.c (grokdeclarator): Update.
8200         * c-format.c (check_format_types): Update.
8201         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8202         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8203         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
8204         * convert.c (convert_to_integer): Use new hooks.
8205         * expmed.c (make_tree): Use new hooks.
8206         * expr.c (store_expr): Use new hooks.
8207         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
8208         all_ones_mask_p, unextend, fold): Use new hooks.
8209         * langhooks.h (struct lang_hooks_for_types): New hooks.
8210         * tree.h (signed_or_unsigned_type, signed_type,
8211         unsigned_type): Remove.
8212 objc:
8213         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8214         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8215
8216 2002-03-31  Richard Henderson  <rth@redhat.com>
8217
8218         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
8219         (desc_frgr_mem): Fix reference to f16-f31.
8220
8221 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8222
8223         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
8224         RTVEC_ELT): Const-ify.
8225         * varray.h (VARRAY_CHECK): Const-ify.
8226         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
8227         ggc_mark_rtvec, ggc_mark): Const-ify.
8228
8229 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8230
8231         * diagnostic.c: Include langhooks-def.h.
8232         * Makefile.in (diagnostic.o): Update.
8233
8234 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8235
8236         * c-common.c (c_unsafe_for_reeval): Rename.
8237         * c-common.h (c_unsafe_for_reeval): Rename.
8238         * c-decl.c (finish_incomplete_decl): Rename.
8239         (c_init_decl_processing): Don't set langhook.
8240         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8241         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8242         * c-objc-common.c (c_objc_common_init): Don't set langhook.
8243         * c-tree.h (finish_incomplete_decl): Rename.
8244         * langhooks-def.h (lhd_unsafe_for_reeval): New.
8245         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8246         (LANG_HOOKS_INITIALIZER): Update.
8247         * langhooks.c (lhd_unsafe_For_reeval): New.
8248         * langhooks.h (struct langhooks): New hooks.
8249         * toplev.c (incomplete_decl_finalize_hook): Remove.
8250         (wrapup_global_declarations): Update.
8251         * tree.c (lang_unsafe_for_reeval): Remove.
8252         (unsafe_for_reeval): Update.
8253         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8254         Remove.
8255 objc:
8256         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8257         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8258
8259 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8260
8261         * diagnostic.c (print_error_function): Remove.
8262         (default_print_error_function): Rename.
8263         (report_error_function): Update.
8264         * diagnostic.h (print_error_function): Remove.
8265         (default_print_error_function): Remove.
8266         * langhooks-def.h (struct diagnostic_context): Predeclare.
8267         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8268         (LANG_HOOKS_INITIALIZER): Update.
8269         * langhooks.h (struct diagnostic context): Predeclare.
8270         (struct lang_hooks): New hook.
8271
8272 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8273
8274         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8275         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8276         !flag_pic.
8277         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8278         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8279         of PIC_OFFSET_TABLE_REGNUM thruout.
8280         * config/rs6000/rs6000.md: Likewise.
8281         * config/rs6000/darwin.h: Likewise.
8282
8283 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8284
8285         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8286         unsigned HOST_WIDE_INT, not unsigned int.
8287
8288 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8289
8290         PR middle-end/6096, middle-end/6098, middle-end/6099
8291         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8292         CODE_LABELs.
8293         (fill_slots_from_thread): Likewise.
8294
8295 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8296
8297         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8298         floating fields in float regs.
8299         (function_arg_record_value_2): Likewise.
8300
8301 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8302
8303         * config/mmix/mmix.md (define_constants): Remove misleading
8304         FIXME.  Add MMIX_fp_rO_OFFSET.
8305         ("nonlocal_goto_receiver"): Don't have stack-frame address of
8306         saved rO as part of the pattern.  Remove FIXME.
8307         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
8308         here, at output-time.
8309
8310 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8311
8312         PR middle-end/6100
8313         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8314         REG_BR_PRED.
8315         (output_v9branch): Likewise.
8316
8317 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8318
8319         * gcc.c: Revert previous patch for now.
8320         * config/i386/djgpp.h: Likewise.
8321
8322 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8323
8324         * config/mmix/crti.asm (_init): Register _fini with atexit.
8325         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8326
8327 2002-03-31  Richard Henderson  <rth@redhat.com>
8328
8329         PR target/3997
8330         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8331         (ASM_OUTPUT_DEF_FROM_DECLS): New.
8332
8333 2002-03-31  Richard Henderson  <rth@redhat.com>
8334
8335         * libgcc2.c (__bb_exit_func): Make static.
8336
8337         * config/alpha/alpha.md (trap): New.
8338
8339 2002-03-31  Richard Henderson  <rth@redhat.com>
8340
8341         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8342         promoted argument types; build trap.
8343         (expand_builtin_trap): New.
8344         (expand_builtin): Use it.
8345         * stmt.c (expand_nl_goto_receivers): Likewise.
8346         * expr.h (expand_builtin_trap): Declare.
8347         * libfuncs.h (LTI_abort, abort_libfunc): New.
8348         * optabs.c (init_optabs): Init abort_libfunc.
8349
8350 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8351
8352         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8353         (LINK_COMMAND_SPEC): ... from here.
8354         (init_gcc_specs): Duplicate it here too, omitting
8355         shared_name in the second copy.
8356         (init_spec): Test for duplicate
8357         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8358
8359 2002-03-30  David S. Miller  <davem@redhat.com>
8360
8361         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8362         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8363
8364 2002-03-30  Roger Sayle <roger@eyesopen.com>
8365             Richard Henderson  <rth@redhat.com>
8366
8367         * regmove.c (combine_stack_adjustments_for_block): Avoid
8368         emitting a stack adjustment of zero bytes.  Let delete_insn
8369         update bb->head.
8370
8371 2002-03-30  Richard Henderson  <rth@redhat.com>
8372
8373         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8374         (sparc_emitting_epilogue): New.
8375         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8376         * config/sparc/sparc-protos.h: Update.
8377         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8378         (TARGET_SWITCHES): Update.
8379         * config/sparc/sparc.md (return): Remove.
8380         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8381         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8382         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8383         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8384         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8385         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8386         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8387         Remove MASK_EPILOGUE.
8388         * doc/invoke.texi: Update.
8389
8390 2002-03-30  Daniel Berlin  <dan@dberlin.org>
8391
8392         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8393         CPP will start the file for us.
8394
8395 2002-03-30  Richard Henderson  <rth@redhat.com>
8396
8397         PR target/5446
8398         * config/ia64/ia64.c (group_barrier_needed_p): Special case
8399         prologue_allocate_stack.
8400         (ia64_single_set): Use insn codes for recognition of special
8401         cases, not rtl matching.
8402         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8403
8404 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
8405
8406         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8407
8408 2002-03-30  Richard Henderson  <rth@redhat.com>
8409
8410         PR target/6032
8411         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8412         or -fomit-frame-pointer with profiling.
8413         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8414         (FUNCTION_PROFILER): Do nothing.
8415         (PROFILE_HOOK): New.
8416         * config/sparc/sparc.c (sparc_override_options): Don't check
8417         code models for profiling.
8418         (sparc_function_profiler): Remove.
8419         (sparc_profile_hook): New.
8420         * config/sparc/sparc-protos.h: Update.
8421
8422 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8423
8424         PR optimization/6086
8425         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8426         of SUBREG of volatile MEM or because the MEM was mode dependent,
8427         return CLOBBER instead of unmodified SUBREG.
8428
8429 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
8430
8431         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8432         when not optimizing.
8433
8434         * toplev.c (rest_of_compilation): Cann mark_constant_function
8435         only when optimizing.
8436
8437         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8438         are NULL.
8439
8440         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8441         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8442         (try_optimize_cfg): clear all AUX fields.
8443
8444         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8445         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8446         (ix86_address_cost): Be prepared for SUBREGed registers.
8447         (legitimate_address_p): Accept SUBREGed registers.
8448
8449 2002-03-29  Richard Henderson  <rth@redhat.com>
8450
8451         PR target/5672
8452         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8453
8454 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8455
8456         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8457         for aggregate and TFmode types.
8458
8459 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8460
8461         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8462
8463 2002-03-29  Richard Henderson  <rth@redhat.com>
8464
8465         PR target/5886
8466         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8467         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8468
8469 2002-03-29  Richard Henderson  <rth@redhat.com>
8470
8471         PR target/6041
8472         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8473         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8474         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8475         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8476         conditional.
8477         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8478
8479 2002-03-29  Dale Johannesen <dalej@apple.com>
8480
8481         * loop.c (combine_movables): Do allow combination of pseudos.
8482
8483 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
8484
8485         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8486         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8487         No functional change except ...
8488         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
8489         * doc/install.texi (*-*-freebsd*): Document port configuration.
8490
8491 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8492
8493         * Makefile.in (convert.o, calls.o, expmed.o): Update.
8494         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8495         Use new hooks.
8496         * builtin-types.def (BT_PTRMODE): Update.
8497         * c-common.c (type_for_size): Rename c_common_type_for_size.
8498         (type_for_mode): Similarly.
8499         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8500         Use new hook.
8501         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8502         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8503         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8504         Redefine.
8505         * c-typeck.c (common_type, comptypes, default_conversion):
8506         Use new hooks.
8507         * calls.c: Include langhooks.h.
8508         (emit_library_call_value_1): Use new hooks.  Avoid redundant
8509         calls.
8510         * convert.c: Include langhooks.h
8511         (convert_to_pointer, convert_to_integer): Use new hooks.
8512         * except.c (init_eh): Similarly.
8513         * expmed.c: Include langhooks.h.
8514         (expand_mult_add): Use new hooks.
8515         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8516         try_casesi): Similarly.
8517         * fold-const.c (optimize_bit_field_compare, make_range,
8518         decode_field_reference, fold_truthop, fold): Similarly.
8519         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8520         put_var_into_stack): Similarly.
8521         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8522         LANG_HOOKS_TYPE_FOR_SIZE): New.
8523         (LANG_HOOKS_TYPES_INITIALIZER): Update.
8524         * langhooks.h (lang_hooks_for_types): New hooks.
8525         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8526         * tree.c (get_unwidened, get_narrower): Similarly.
8527         * tree.h (type_for_mode, type_for_size): Remove.
8528         * varasm.c (force_const_mem): Use new hooks.
8529         * utils2.c (nonbinary_modular_operation): Update.
8530 objc:
8531         * objc-act.c (handle_impent): Update.
8532         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8533         Redefine.
8534
8535 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
8536
8537         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8538         * config/ia64/ia64.c (basereg_operand): New.
8539         * config/ia64/ia64-protos.h (basereg_operand): Declare.
8540         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8541
8542 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8543
8544         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8545         unwind information when frame_pointer_needed.
8546         (mmix_assemble_integer): Tweak wording in comment.
8547
8548 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8549
8550         * Makefile.in (except.o): Update.
8551         * except.c: Include langhooks.h.
8552         (init_eh): Use langhook.
8553         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8554         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8555         (LANG_HOOKS_INITIALIZER): Update.
8556         * langhooks.h (lang_hooks_for_types): New.
8557         (struct lang_hooks): Add it.
8558         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8559         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8560 config:
8561         * alpha/alpha.c: Include langhooks.h.
8562         (alpha_build_va_list): Use langhook.
8563         * d30v/d30v.c: Include langhooks.h.
8564         (d30v_build_va_list): Use langhook.
8565         * i386/i386.c: Include langhooks.h.
8566         (ix86_build_va_list): Use langhook.
8567         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8568         * s390/s390.c: Include langhooks.h.
8569         (s390_build_va_list): Use langhook.
8570         * stormy16/stormy16.c: Include langhooks.h.
8571         (stormy16_build_va_list): Use langhook.
8572
8573 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8574
8575         PR c++/5964
8576         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8577         attributes.
8578         (length): Compute variable length for branches/calls/jumps here.
8579         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8580         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8581         define branch_type attribute.
8582         (divsi3_sp32): Maximum length is 6 not 7.
8583         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8584         call_address_untyped_struct_value_sp32,
8585         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8586         * config/sparc/sparc.c (empty_delay_slot): New function.
8587         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8588         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8589
8590 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8591
8592         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8593         nonzero_bits if not needed.
8594         (nonzero_bits) [XOR]: Likewise.
8595         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8596         reg_last_set_mode and mode are both MODE_INT, but not equal.
8597         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8598         in nonzero_bits_mode for MODE_INT modes.
8599
8600 2002-03-28  Richard Henderson  <rth@redhat.com>
8601
8602         PR target/5715
8603         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8604         to GAS.  Correct drift between alternatives.
8605
8606 2002-03-28  Richard Henderson  <rth@redhat.com>
8607
8608         PR target/6087
8609         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8610
8611 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8612
8613         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8614         emulation to the linker.
8615
8616 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8617
8618         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8619         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8620
8621 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8622
8623         * combine.c (simplify_and_const_int): Make sure to apply mask
8624         when force_to_mode returns a constant integer.  PR3311.
8625
8626 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8627
8628         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8629
8630 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8631
8632         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8633         and Objective-C Dialect Options.
8634
8635 2002-03-28  Richard Henderson  <rth@redhat.com>
8636
8637         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8638         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8639
8640 2002-03-28  Richard Henderson  <rth@redhat.com>
8641
8642         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8643         on to c_expand_body.
8644         * c-tree.h (finish_function): Update decl.
8645         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8646
8647 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8648
8649         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8650
8651 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8652
8653         * rtlanal.c: Include flags.h
8654         (may_trap_p): Do not mark FP operations if trapping
8655         if !flag_trapping_math
8656         * Makefile.in (rtlanal.o): Add dependency on flag.h
8657         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8658
8659 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8660
8661         * mips.md: Use dconst1, not 1.0, as first argument of
8662         REAL_VALUE_LDEXP.  Don't use union real_extract.
8663
8664 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8665
8666         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8667         rather than $target.  Heed program_prefix and
8668         program_transform_name.  Search for gas in cross-compiler case too.
8669         "test -x" rather than "test -f".
8670         (gcc_cv_ld): Likewise.
8671         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8672         (gcc_cv_objdump): Likewise.
8673         * configure: Regenerate.
8674
8675 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8676
8677         * Makefile.in (attribs.o): Update.
8678         * attribs.c: Include langhooks.h.
8679         (decl_attributes): Use langhook.
8680         * c-decl.c (insert_default_attributes): Rename.
8681         * c-tree.h (c_insert_default_attributes): New.
8682         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8683         (LANG_HOOKS_INITIALIZER): Update.
8684         * langhooks.h (struct lang_hooks): New hook.
8685         * tree.h (insert_default_attributes): Remove.
8686 objc:
8687         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8688
8689 2002-03-27  Andreas Schwab  <schwab@suse.de>
8690
8691         * config/i386/i386.c (classify_argument): Also check for
8692         QUAL_UNION_TYPE.
8693
8694 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8695
8696         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8697         any more.
8698
8699 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8700
8701         * i960.md (ret): Set PC.
8702         (nonlocal_goto): Fix expander.
8703         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8704         some jump or call.
8705
8706 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8707
8708         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8709         of libcall regions.
8710
8711 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8712
8713         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8714         assigning to BLOCK_FOR_INSN directly.
8715
8716 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8717
8718         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8719
8720 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8721
8722         * c-common.c (c_expand_expr): Fix prototype.
8723         * c-common.h (c_expand_expr): Always declare, update.
8724         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8725         * c-objc-common.c (c_objc_common_init): No global hook.
8726         * expr.c (expand_expr): Use langhook.
8727         * expr.h (enum expand_modifier): Conditionally declare.
8728         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8729         (LANG_HOOKS_INITIALIZER): Update.
8730         * langhooks.c (lhd_expand_expr): New.
8731         * langhooks.h (struct lang_hooks): New hook.
8732         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8733         (lang_independent_init): Don't default hook.
8734 objc:
8735         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8736
8737 2002-03-27  Richard Henderson  <rth@redhat.com>
8738
8739         PR target/6054
8740         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8741         TARGET_CONST_GP.  Simplify conditions.
8742
8743 2002-03-27  Richard Henderson  <rth@redhat.com>
8744
8745         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8746         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8747         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8748
8749 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8750
8751         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8752         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8753         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8754         Remove unnecessary masks.
8755         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8756         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8757         -mwindows, -mdll switches and their negations.
8758
8759 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8760
8761         * gcc-common.c (lang_mark_false_label_stack): Remove.
8762         * ggc.h (lang_mark_false_label_stack): Similarly.
8763
8764 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8765
8766         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8767
8768         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8769         or __rtems_ is defined.
8770
8771 2002-03-26  Richard Henderson  <rth@redhat.com>
8772
8773         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8774         if a non-trivial load was emitted.
8775         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8776         in high+extra+low case.
8777
8778 2002-03-26  Richard Henderson  <rth@redhat.com>
8779
8780         * config.gcc (sparc*-solaris): Use float_format=sparc.
8781
8782 2002-03-26  Richard Henderson  <rth@redhat.com>
8783
8784         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8785         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8786         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8787         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8788         (WINT_TYPE_SIZE): Fix at 32.
8789
8790 2002-03-26  Richard Henderson  <rth@redhat.com>
8791
8792         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8793         until after eh landing pad generation.
8794         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8795         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8796
8797 2002-03-26  Richard Henderson  <rth@redhat.com>
8798
8799         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8800
8801 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8802
8803         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8804         and warning switches.
8805         (cc1_options):  Likewise.
8806
8807 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8808
8809         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8810         Restore more of the signal context.  Set no_reg_stack_frame.
8811         * config/ia64/unwind-ia64.c (unw_state_record):
8812         Add no_reg_stack_frame, comments.
8813         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8814         (uw_update_context): Adjust bsp when unwinding from leaf,
8815         but not signal frame.
8816
8817 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8818
8819         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8820
8821 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8822
8823         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8824
8825 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8826
8827         PR target/5621
8828         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8829         "Add a pool_range attribute", which was lost during the ARM/Thumb
8830         merge.
8831
8832 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8833
8834         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8835         a register into the MAC16 accumulator.
8836
8837 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8838
8839         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8840         (Warning Options): Document -Wswitch-enum.
8841         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8842         -Wswitch.
8843         (warn_switch_enum): Define variables.
8844         * flags.h (warn_switch_enum): Declare variables.
8845         * stmt.c (expand_end_case_type): When warn_switch_enum /
8846         -Wswitch-enum, perform switch checks.
8847         Fix PR c/5044.
8848
8849 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8850
8851         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8852         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8853         (reload_muladdsi_compare0_scratch): Delete.
8854
8855 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8856
8857         * doc/install.texi (*-*-freebsd*): Update.
8858
8859 2002-03-26  Richard Henderson  <rth@redhat.com>
8860
8861         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8862         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8863
8864         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8865         types from the normal argument frame.
8866
8867         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8868         variable sized objects by reference.
8869         (sparc_va_arg): Receive them by reference too.
8870
8871 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8872
8873         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8874         code to not restoring global registers.
8875
8876 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8877
8878         * Makefile.in (ggc-common.o): Update.
8879         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8880         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8881         * c-tree.h (c_mark_tree): New.
8882         * ggc-common.c: Include langhooks.h.
8883         (gcc_mark_trees): Use new langhook.
8884         * ggc-callbacks.c: Delete file.
8885         * ggc.h (lang_mark_tree): Remove.
8886         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8887         (LANG_HOOKS_INITIALIZER): Update.
8888         * langhooks.h (struct lang_hooks): New hook.
8889 objc:
8890         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8891
8892 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8893
8894         * doc/cpp.texi: Exclude entire Top node from printed manual.
8895         Move option index after directive index.  Insert page breaks
8896         before GFDL and concept index.  Index environment variables
8897         with command line options.
8898         * doc/cppenv.texi: Use @vtable for environment variable list.
8899         Add paragraph explaining semantics of empty elements in path
8900         variables.  Exclude a cross-reference to Fishkill from the
8901         manpage.  Remove an unnecessary cross-reference of the entry
8902         right above the referer.  Don't use @anchor in text that goes
8903         into manpage.
8904         * doc/cppopts.texi: Cross-reference the environment variables
8905         section, not the specific environment variable, for consistency.
8906
8907 2002-03-25  Richard Henderson  <rth@redhat.com>
8908
8909         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8910         anywhere in the block.  Don't refer to insns that have been
8911         removed from the chain.  Iterate backward through the new insns.
8912         Don't refer to edges that have been removed.
8913
8914 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8915
8916         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8917         test for overflow of constant.
8918
8919 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8920
8921         PR target/2623
8922         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8923         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8924         these patterns on arm_archv4.
8925
8926 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8927
8928         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8929         int".
8930
8931 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8932
8933         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8934         float_handled, float_handler, float_signal, set_float_handler,
8935         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8936         * toplev.h: Don't prototype do_float_handler.
8937
8938         * c-lex.c: Fold parse_float into lex_number.  Make warning
8939         about portability of hex float constants more informative, and
8940         don't issue it on top of a syntax error.
8941         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8942         their callers.
8943         * real.h: Define REAL_VALUE_ABS here...
8944         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8945         simplify_unary_real, simplify_binary_real, and
8946         simplify_binary_is2orm1 into their callers.
8947         * tree.c: Fold build_real_from_int_cst_1 into caller.
8948
8949         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8950
8951         * tsystem.h: Include float.h here...
8952         * libgcc2.c: ... not here.
8953
8954 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8955
8956         Fixes for: PR bootstrap/3591, target/5676
8957         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8958         defined.  Do not disable exceptions or rtti.
8959         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8960         mcore.h.  Disable exceptions and rtti, since they are not
8961         supported by EPOC.
8962
8963 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8964
8965         * c-decl.c (maybe_build_cleanup): Remove.
8966         * expr.c (expand_expr): Use langhook.
8967         * langhooks-def.h (lhd_return_null_tree,
8968         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8969         (LANGHOOKS_INITIALIZER): Update.
8970         * langhooks.c (lhd_return_null_tree): New.
8971         * langhooks.h (struct lang_hooks): New hook.
8972         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8973         * tree.h (maybe_build_cleanup): Remove.
8974
8975 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8976
8977         * regrename.c (build_def_use): Move recog_memoized
8978         before extract_insn.
8979
8980 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8981
8982         PR target/6043
8983         * expr.c (emit_group_store): Handle storing into CONCAT.
8984
8985 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8986
8987         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8988         corresponding MATCH_DUP.
8989
8990 2002-03-24  Richard Henderson  <rth@redhat.com>
8991
8992         * unroll.c (unroll_loop): Zero label_map.
8993
8994         * gcse.c: Include except.h.
8995         * Makefile.in (gcse.o): Update.
8996
8997 2002-03-24  Richard Henderson  <rth@redhat.com>
8998
8999         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
9000         Do resolve_unique_section before shared data clause.
9001
9002 2002-03-24  Richard Henderson  <rth@redhat.com>
9003
9004         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
9005
9006 2002-03-24  Richard Henderson  <rth@redhat.com>
9007
9008         * recog.c (peephole2_optimize): Split blocks when EH insns are
9009         generated in the middle of a block.  Do global life update if
9010         zapped EH edges.
9011
9012 2002-03-24  Richard Henderson  <rth@redhat.com>
9013
9014         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
9015
9016 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9017
9018         preprocessor/3951
9019         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
9020         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
9021         (init_dependency_output): Don't make no_output decision here.
9022
9023 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
9024
9025         * stmt.c (check_for_full_enumeration_handling): Remove tests of
9026         warn_switch.  Update description.
9027         (expand_end_case_type): Call check_for_full_enumeration_handling
9028         when warn_switch.
9029
9030 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9031
9032         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
9033         (m68hc11_split_move): Call it to see if the source and destination
9034         operands use the same direction auto inc/dec mode, otherwise make the
9035         source an offsetable memory operand and generate an add.
9036
9037 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9038
9039         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
9040         register for operand 2.
9041         ("*subsi3_zero_extendqi"): Likewise.
9042         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
9043         bits so that it is compatible with a pop.
9044         ("*andhi3_gen"): Likewise.
9045         ("xorhi3"): Likewise.
9046
9047 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9048
9049         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
9050         -pedantic here...
9051         (cpp_post_options): ... not here.
9052
9053 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9054             Aldy Hernandez  <aldyh@redhat.com>
9055
9056         Removal of separate preprocessor cpp0.
9057
9058         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
9059         cpp0, install-common): Update.
9060         * c-common.c (flag_preprocess_only): New.
9061         (c_common_init): Preprocess for -E.
9062         * c-common.h (flag_preprocess_only): New.
9063         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
9064         * c-objc-common.c (c_init_decl_processing): Exit quickly
9065         for NULL return from c_common_init.
9066         * cpplib.h (cpp_preprocess_file): New.
9067         * cppmain.c (main, general_init, pfile, progname): Remove.
9068         (do_preprocessing): Rename cpp_preprocess_file, don't call
9069         cpp_finish.  Don't close stdout here.
9070         (setup_callbacks): Update prototype.
9071         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
9072         Update.
9073         * tradcpp.c (main): Ignore -quiet.
9074 objc:
9075         * lang-specs.h (default_compilers): Preprocess with cc1obj.
9076
9077 2002-03-24  Richard Henderson  <rth@redhat.com>
9078
9079         PR optimization/5742
9080         * machmode.def: Add inner mode field to complex modes.
9081         * config/mips/mips.c (mips_function_value): Always define.  Add
9082         new argument to handle libcalls.
9083         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
9084         (FUNCTION_VALUE): Likewise.
9085         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
9086         * config/mips/mips-protos.h: Update.
9087
9088 2002-03-23  Richard Henderson  <rth@redhat.com>
9089
9090         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
9091         * config/sparc/sparc-protos.h: Update.
9092         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
9093
9094 2002-03-23  Richard Henderson  <rth@redhat.com>
9095
9096         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
9097         _start or _init begins the text segment.
9098
9099 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
9100
9101         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
9102         not HOST_WIDEST_INT.
9103         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
9104
9105 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
9106
9107         PR java/5489
9108         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
9109         operand argument to output_return_instruction.
9110         * arm.c (arm_print_operand, case 'd'): If the operand is
9111         const_true_rtx then just return.
9112         (arm_print_operand, case 'D'): If the operand is const_true_rtx
9113         then abort.
9114
9115 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9116
9117         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
9118         (Warning Options): Document -Wswitch-default.
9119         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
9120         -Wswitch.
9121         (warn_switch_default): Define variable.
9122         (warn_switch): Update comment.
9123         * flags.h (warn_switch_default): Declare variable.
9124         (warn_switch): Update comment.
9125         * stmt.c (expand_end_case): Check for and, when
9126         warn_switch_no_default, warn of a missing default case.
9127
9128 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
9129
9130         * real.h (N): Special case 128 bit doubles.
9131
9132         * combine.c (simplify_comparison): When widening modes, ignore
9133         sign extension on CONST_INTs.
9134
9135 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
9136
9137         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
9138         passed to adjust_address.  Fix comment formatting.
9139
9140
9141 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
9142
9143         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
9144         Always make REAL_VALUE_TYPE a struct containing an array of
9145         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
9146         big it is.  Don't declare or use union real_extract.
9147
9148         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
9149         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
9150         (print_operand), config/arm/arm.c (output_move_double),
9151         config/arm/arm.md (consttable_4, consttable_8),
9152         config/romp/romp.c (output_fpops), config/s390/s390.h
9153         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
9154         (xtensa_output_literal): Don't use union real_extract.
9155
9156         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
9157         (sfmode_constant_to_ulong), config/ns32k/merlin.h
9158         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
9159         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
9160         (PRINT_OPERAND): Don't use local version of union
9161         real_extract.
9162
9163         * config/convex/convex.c (check_float_value), config/vax/vax.c
9164         (vax_float_literal), config/m88k/m88k.md (divdf3),
9165         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
9166         config/pdp11/pdp11.c (output_move_quad): Don't do host
9167         arithmetic on target floating point quantities.
9168
9169         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
9170         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
9171
9172         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
9173         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
9174
9175         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
9176         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
9177         INFINITY.
9178         * print-rtl.c (print_rtx): Disable code which needs
9179         floating-point emulator.
9180         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
9181         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
9182         depending on HOST_FLOAT_FORMAT to be defined properly.
9183
9184         * config/1750a/1750a.c (get_double, float_label): Delete.
9185         (print_operand): Delete huge commented-out chunk.  Use
9186         REAL_VALUE_TO_DECIMAL.
9187         * config/1750a/1750a-protos.h: Delete prototypes of deleted
9188         functions.
9189         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
9190         IEEE_FLOAT_FORMAT.
9191         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
9192         Use REAL_VALUE_TO_DECIMAL as ELF version does.
9193         * config/m88k/m88k.c (real_power_of_2_operand,
9194         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
9195         real_extract out of the union; run the input through
9196         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
9197         from that into the union.
9198         * config/pdp11/pdp11.c (output_move_double): Rearrange
9199         parentheses to make automatic indenter happy.
9200
9201         * doc/tm.texi (Cross-compilation): Rename node to "Floating
9202         Point" and rewrite to describe current situation.  Also adjust
9203         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
9204         match code.
9205         * doc/rtl.texi: Adjust cross reference.
9206
9207 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
9208
9209         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
9210         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
9211         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
9212         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
9213         prevent use of sp as a reload register.
9214         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
9215         non_acc_reg_operand.
9216         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
9217         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
9218         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
9219         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
9220
9221 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9222
9223         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
9224         * cpplex.c (unterminated): Delete.
9225         (parse_string): No string literal may extend over multiple
9226         lines.  Suppress the error when preprocessing assembly.
9227         * cppmain.c (scan_translation_unit): Strings are single-line.
9228
9229         * doc/cpp.texi: Update to match.
9230
9231 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9232
9233         PR optimization/5854
9234         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
9235         Shut up warnings.
9236         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
9237         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
9238         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
9239         const0 if scratch register was not allocated.
9240         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
9241         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
9242         with GEN_INT (...).
9243         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
9244         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
9245         with GEN_INT (...) everywhere.  Remove constraints in define_split
9246         patterns.
9247         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9248         require scratch register for setting 0 into regs/non-pushable memory.
9249
9250 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9251
9252         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9253         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9254
9255 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
9256
9257         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
9258         * cppinit.c (cpp_create_reader):  On by default.
9259         (cpp_handle_option):  Handle -W[no-]endif-labels.
9260         (cpp_post_options):  Also enable if -pedantic.
9261         * cpplib.c (do_else):  Use it.
9262         (do_endif):  Likewise.
9263         * doc/cppopts.texi:  Document new option.
9264         * doc/invoke.texi:  Document new option.
9265
9266 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
9267
9268         * config/i386/i386.c, config/i386/i386.md: Change all occurences
9269         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9270
9271 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9272
9273         * flow.c (calculate_global_regs_live): Clear aux fields of
9274         ENTRY and EXIT.
9275
9276 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9277
9278         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9279         REG or MEM subregs, pass rtx * instead of rtx to it.
9280         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9281         rtx * instead of rtx to alter_subreg.
9282         * config/m32r/m32r.c (gen_split_move_double): Likewise.
9283         * config/pj/pj.c (pj_output_rval): Likewise.
9284
9285 2002-03-22  Richard Henderson  <rth@redhat.com>
9286
9287         PR target/3177
9288         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9289         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9290         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9291         (ia64_expand_prologue): Look at int_regs, not words, for number
9292         of incomming int regs.
9293
9294 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
9295
9296         * expr.c (expand_expr): A RESULT_DECL is part of a call.
9297
9298 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
9299
9300         * toplev.c (flag_loop_optimize, flag_crossjumping):
9301         New static variables.
9302         (rest_of_compilation): Conditionalize crossjumping and
9303         loop optimizer.
9304         (parse_options_and_default_flags): Default loop_optimize and
9305         crossjumping.
9306         (lang_independent_options): Add -fcrossjumping and -floop-optimize
9307         * invoke.texi (crossjumping, loop-optimize): Document.
9308
9309 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9310
9311         * real.c (eiisneg): Move outside #ifdef NANS.
9312
9313 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
9314
9315         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9316         frequencies match; avoid match on different loop depths.
9317         (try_crossjump_to_bb): Kill tests that no longer brings time
9318         savings.
9319         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9320         updating code.
9321         (split_edge): Likewise.
9322
9323         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9324         variable.
9325
9326         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9327         * cfgrtl.c: Include insn-config.h
9328         (split_block) Dirtify block in presence of conditional execution
9329
9330 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9331
9332         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9333         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9334         (function_arg): Constify CUMULATIVE_ARGS.
9335         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9336         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9337         (UNITS_PER_DOUBLE): New macro.
9338         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
9339         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
9340         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
9341         fp_regs and stack_words.
9342         (EABI_FLOAT_VARARGS_P): New macro.
9343         * config/mips/mips.c (struct mips_arg_info): New.
9344         (mips_arg_info): New function.
9345         (function_arg_advance): Use it.  Add adjustment instructions here
9346         rather than in function_arg.
9347         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
9348         for VOIDmode at the beginning of the function.
9349         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
9350         (function_arg_pass_by_reference): Likewise.
9351         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9352         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9353         (mips_va_start): Likewise.  Use the new stack_words field of
9354         CUMULATIVE_ARGS to set up overflow area.  Reformat.
9355         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
9356         doubles and other types, aligning the overflow pointer for non-doubles
9357         too.  Remove some code duplication.  Replace hard-coded constants.
9358
9359 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9360
9361         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9362         (CLASS_UNITS): Undefine.
9363         (CLASS_MAX_NREGS): Use FP_INC.
9364         * config/mips/mips.c (compute_frame_size): Likewise.
9365         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9366
9367 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9368
9369         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9370         prototype, and handle lexing numbers and identifiers.
9371         (parse_identifier): Update to new form of parse_slow.
9372         (parse_number): Fast path only, use parse_slow otherwise.
9373         (_cpp_lex_direct): Update calls to parse_number.
9374
9375 2002-03-21  DJ Delorie  <dj@redhat.com>
9376
9377         * bb-reorder.c (make_reorder_chain_1): Protect against
9378         when redundant edges are omitted.
9379         * predict.c (dump_prediction): Likewise.
9380
9381 2002-03-21  Richard Henderson  <rth@redhat.com>
9382
9383         PR target/5996
9384         * fixinc/inclhack.def (solaris_stdio_tag): New.
9385         * fixinc/fixincl.x: Regenerate.
9386
9387 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9388
9389         PR c/5597
9390         * c-typeck.c (process_init_element): Flag non-static
9391         initialization of a flexible array member as illegal.
9392
9393 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
9394
9395         * config/rs6000/t-linux64: New.
9396         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9397         t-ppccomm.  Use t-rs6000 and t-linux64.
9398         (powerpc64-*-gnu* <tmake_file>): Likewise.
9399         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9400         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9401         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9402
9403 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
9404
9405         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9406         flag_really_no_inline instead of optimize == 0.
9407
9408         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9409
9410         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9411
9412         * flags.h (flag_really_no_inline): New.
9413
9414         * c-common.c (c_common_post_options): Initialize
9415         flag_really_no_inline.
9416
9417         * toplev.c (flag_really_no_inline): New.
9418
9419 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9420
9421         * config/avr/avr.md (length): Fix length computation for
9422         conditional branches.
9423
9424 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9425
9426         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9427         sdbout.o, profile.o): Update.
9428         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9429         langhook.
9430         * c-common.h (gettags): Move here from tree.h.
9431         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9432         insert_block, getdecls, kept_level_p, global_bindings_p): New.
9433         * dbxout.c (dbxout_init): Use getdecls langhook.
9434         * expr.c (expand_expr): Use insert_block langhook.
9435         * fold-const.c: Include langhooks.h.
9436         (fold_range_test, fold_binary_op_with_conditional_arg,
9437         fold): Use global_bindings_p langhook.
9438         * integrate.c (expand_inline_function): Use insert_block langhook.
9439         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9440         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9441         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9442         LANG_HOOKS_GETDECLS): New.
9443         (LANG_HOOKS_INITIALIZER): Update.
9444         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9445         langhook.
9446         * langhooks.h (struct lang_hooks_for_decls): New.
9447         (struct lang_hooks): Update.
9448         * profile.c: Include langhooks.h.
9449         (output_func_start_profiler): Use new langhooks.
9450         * sdbout.c: Include langhooks.h.
9451         (sdbout_init, sdbout_finish): Use getdecls langhook.
9452         * stmt.c: Include langhooks.h.
9453         (expand_fixup, fixup_gotos): Use new langhooks.
9454         * stor-layout.c: Include langhooks.h.
9455         (variable_size): Use global_bindings_p langhook.
9456         * toplev.c (compile_file): Use getdecls langhook.
9457         * tree-inline.c (remap_block): Use insert_block langhook.
9458         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9459         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9460
9461 2002-03-21  Richard Henderson  <rth@redhat.com>
9462
9463         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9464         constants in .data when -fpic.
9465
9466 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9467
9468         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9469         where appropriate.
9470
9471 2002-03-21  Tom Tromey  <tromey@redhat.com>
9472
9473         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
9474
9475 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9476
9477         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9478
9479         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9480
9481 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9482             Richard Henderson  <rth@redhat.com>
9483
9484         PR c/5354
9485         * c-common.c (c_expand_expr): Preserve result of a statement
9486         expression if needed.
9487
9488 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9489
9490         PR bootstrap/4195
9491         * genrecog.c (maybe_both_true_mode): Remove.
9492         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9493         * machmode.def (Pmode): Likewise.
9494
9495 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
9496
9497         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9498         (nonlocal_mentioned_p_1): New function.
9499         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9500         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9501         (mark_constant_function): Recognize pure functions.
9502         * rtl.h (global_reg_mentioned_p): New prototype.
9503         * rtlanal.c (global_reg_mentioned_p,
9504         global_reg_mentioned_p_1): New function.
9505
9506 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9507
9508         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9509         UNIX assert.h.
9510         * fixinc/fixincl.x: Regenerate.
9511
9512 2002-03-20  Jason Merrill  <jason@redhat.com>
9513
9514         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9515
9516 2002-03-20  Michael Meissner  <meissner@redhat.com>
9517
9518         * doc/invoke.texi (Optimize Options): Document that -O2 sets
9519         -fstrict-aliasing.
9520
9521 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9522
9523         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9524         ".literal_position" directive before the constant pool.
9525
9526 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9527
9528         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9529         Add Craig Rodrigues.
9530         Add Brad Lucier to testers.
9531
9532 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9533
9534         PR target/4792
9535         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9536         to if_then_else.
9537         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9538         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9539         instead of insn_extract.
9540
9541 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9542
9543         PR bootstrap/4192
9544         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9545
9546         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9547         stmt if some case has been output.
9548
9549 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9550
9551         PR c/5972
9552         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9553         movsfcc_1, movdfcc_1): Add %O2.
9554         * config/i386/i386.c (print_operand): Handle %ON.
9555         Print . before float condition codes in Sun as cmov syntax.
9556         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9557         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9558         no longer true.
9559
9560 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9561
9562         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9563         return instruction if PC was popped.
9564
9565 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9566
9567         * config/xtensa/xtensa.md: Remove unused type attributes.
9568         (adddi_carry, subddi_carry): Change type attribute to "multi".
9569
9570 2002-03-19  Dale Johannesen  <dalej@apple.com>
9571
9572         PR optimization/5999, middle-end/5731
9573         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9574         multiplications by reciprocals.
9575
9576 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9577
9578         * Makefile.in: Update.
9579         * c-common.c: Include langhooks.h.
9580         (inline_forbidden_p): Use new hook.
9581         * diagnostic.c: Include langhooks.h.
9582         (format_with_decl, announce_function,
9583         default_print_error_function): Use new hook.
9584         * dwarf2out.c (dwarf2_name): Use new hook.
9585         * function.c: Include langhooks.h.
9586         (init_function_start): Use new hook.
9587         * langhooks-def.h (lhd_decl_printable_name): New.
9588         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9589         (LANGHOOKS_INITIALIZER): Update.
9590         * langhooks.c (lhd_decl_printable_name): New.
9591         * langhooks.h (struct lang_hooks): New hook.
9592         * toplev.c (decl_name, decl_printable_name): Remove.
9593         (open_dump_file): Use new hook.
9594         (process_options): Remove old hook.
9595         * tree.h (decl_printable_name): Remove.
9596 objc:
9597         * objc-act.c (objc_init): Remove old hook.
9598         (objc_printable_name): Export.
9599         * objc-act.h (objc_printable_name): New.
9600         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9601
9602 2002-03-19  Jim Blandy  <jimb@redhat.com>
9603
9604         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9605         the start_source_file debug hook, not the current line number.
9606
9607 2002-03-19  Richard Henderson  <rth@redhat.com>
9608
9609         * flow.c (EH_USES): Provide default.
9610         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9611         * doc/tm.texi (EH_USES): New.
9612
9613         * config/ia64/ia64.c (ia64_eh_uses): New.
9614         * config/ia64/ia64-protos.h: Update.
9615         * config/ia64/ia64.h (EH_USES): New.
9616
9617 2002-03-19  Richard Henderson  <rth@redhat.com>
9618
9619         * varasm.c (output_constant_def): Fix stupid typo.
9620
9621 2002-03-19  Richard Henderson  <rth@redhat.com>
9622
9623         PR 5879
9624         * except.c (current_function_has_exception_handlers): New.
9625         * except.h: Declare it.
9626         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9627         Combine tests that disable all sibcalls for the function.
9628
9629 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9630
9631         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9632         for INTEGER_CST.
9633
9634 2002-03-19  Richard Henderson  <rth@redhat.com>
9635
9636         PR 5977, 5991
9637         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9638         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9639
9640 2002-03-19  Jim Blandy  <jimb@redhat.com>
9641
9642         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9643         name, even if the replacement list contains no tokens, as required
9644         by Dwarf.
9645
9646 2002-03-19  Jason Merrill  <jason@redhat.com>
9647
9648         * varasm.c (globalize_decl): Get the name from the RTL, not
9649         DECL_ASSEMBLER_NAME.
9650
9651         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9652
9653 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9654
9655         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9656         subdi_carry): Define.
9657
9658 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9659
9660         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9661         about -fpic/-fPIC if extra_warnings set.
9662
9663 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9664
9665         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9666         TREE_STRING_POINTER.
9667         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9668
9669 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9670
9671         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9672         in favor of SP if FRAME_POINTER_REQUIRED is false.
9673
9674 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9675
9676         * emit-rtl.c (gen_int_mode): New function.
9677         * rtl.h: Prototype for it.
9678         * combine.c (make_extraction, simplify_comparison), expmed.c
9679         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9680         (convert_modes, store_field), optabs.c (expand_fix),
9681         simplify-rtx.c (neg_const_int, simplify_unary_real),
9682
9683         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9684         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9685
9686 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9687
9688         PR c/5656
9689         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9690         convert_parm_for_inlining.
9691         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9692         Define.
9693         * langhooks-def.h: Likewise.
9694         * objc/objc-lang.c: Likewise.
9695         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9696         function.
9697         * tree-inline.c (initialize_inlined_parameters):
9698         Call convert_parm_for_inlining lang hook if needed.
9699         * c-typeck.c (c_convert_parm_for_inlining): New function.
9700         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9701
9702 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9703
9704         * calls.c (precompute_arguments): Do not assume that temporaries
9705         can be destroyed after expanding the argument.
9706         (expand_call): Likewise.
9707
9708 2002-03-15  Eric Christopher  <echristo@redhat.com>
9709
9710         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9711         Fix register preference on last change.
9712         * config/mips/mips.c (mips_return_in_memory): New function.
9713         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9714         * config/mips/mips-protos.h: Declare.
9715         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9716         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9717
9718 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9719
9720         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9721         a register too.
9722         (anddi3, iorsi3): Likewise.
9723
9724         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9725         use %gprel for symbols that are going to be placed in linkonce
9726         sections.
9727
9728         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9729         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9730         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9731         not needed.  Disregard leaf_function_p().
9732         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9733         mips16 frame pointer.
9734         * config/mips/mips.md (store ra): Only to small SP offsets.
9735         2001-08-22  Graham Stott  <grahams@redhat.com>
9736         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9737         return a REG rtx for the return address register.
9738
9739 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9740
9741         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9742         constant-pool addresses as "mode-dependent".
9743         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9744
9745 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9746
9747         PR target/5740
9748         * expr.c (emit_group_load): Use extract_bit_field if
9749         needed for CONCAT arguments.
9750
9751 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9752
9753         PR target/4863
9754         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9755         offset to the base of the table.
9756         (thumb_tablejump): Matcher for Thumb tablejump insn.
9757         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9758         as the difference of two labels.
9759         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9760         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9761         tables in the code.
9762         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9763         * arm.c (get_jump_table_size): If the table is not in the text
9764         section, return zero.
9765
9766 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9767
9768         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9769         of gen_rtx_SUBREG.
9770         (arm_reload_out_hi): Use gen_lowpart instead of
9771         gen_rtx_SUBREG to access QImode components.
9772         * config/arm/arm.md: Disable zero_extend split for QImode
9773         subregs in BIG_ENDIAN mode.
9774         (storehi_bigend): Match use of least significant byte.
9775         (storeinthi): Remove extraneous SUBREG.
9776         Add missing construction of operands[2].
9777         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9778         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9779         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9780
9781 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9782
9783         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9784         any_operand.
9785
9786 2002-03-17  Richard Henderson  <rth@redhat.com>
9787
9788         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9789         explicitly.
9790
9791 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9792
9793         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9794         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9795
9796 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9797
9798         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9799
9800         * predict.c (estimate_bb_frequencies): Delete unused variables.
9801
9802 2002-03-17  Richard Henderson  <rth@redhat.com>
9803
9804         * config/ia64/ia64.c (ia64_attribute_table): Move before
9805         targetm definition.  Make static.
9806
9807 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9808
9809         * c-common.h (yyparse, c_common_parse_file): New.
9810         * c-lang.c: Include c-common.h.
9811         (LANG_HOOKS_PARSE_FILE): Redefine.
9812         * c-lex.c: Include c-common.h.
9813         (yyparse): Rename c_common_parse_file.  Call yyparse.
9814         * c-parse.in (yyparse): Remove macro.
9815         * c-tree.h (yyparse_1): Remove.
9816         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9817         (LANG_HOOKS_INITIALIZER): Update.
9818         * langhooks.h (struct lang_hoooks): New hook parse_file.
9819         * toplev.c (compile_file): Use parse_file hook.
9820         * tree.h (yyparse): Remove.
9821         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9822
9823 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9824
9825         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9826         float_truncate, not fix.
9827         ("*truncdfsf2_real"): Ditto.
9828         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9829
9830         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9831
9832 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9833
9834         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9835         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9836         where appropriate.  Make the second reference to
9837         leaf_function_p a function call, as intended.  Reindented.
9838
9839         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9840         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9841
9842         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9843         add register to non-constant into sp.
9844
9845         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9846         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9847         (mips16_gp_pseudo_rtx): Lose.
9848         (INIT_EXPANDERS): Deleted.
9849         * config/mips/mips.c (mips_init_machine_status): New.
9850         (mips_free_machine_status): New.
9851         (mips_mark_machine_status): New.
9852         (override_options): Set them.
9853         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9854         (struct machine_function): ... new.  Replaced all references.
9855         (mips_add_gc_roots): Don't mark them.
9856         (embedded_pic_fnaddr_reg): New, extracted from...
9857         (embedded_pic_offset): ... here.
9858         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9859         (movsi): Likewise.
9860
9861 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9862
9863         * cppinit.c: Revert -MD removal.
9864
9865 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9866
9867         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9868         soft registers by default for 68HC12.
9869         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9870         when compiling with -fomit-frame-pointer.
9871         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9872         (expand_epilogue): Likewise.
9873         (m68hc11_gen_rotate): Use exg when rotating by 8.
9874
9875 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9876
9877         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9878         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9879         (splits): Remove unused add splits.
9880         ("*addhi3_68hc12"): Tune constraints.
9881         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9882         constant fits in 8-bits and D is dead use abx/aby instructions.
9883         ("*addhi3"): Remove extern declaration of ix_reg.
9884         ("*subsi3"): Optimize and provide new split.
9885         ("subhi3"): Cleanup.
9886         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9887         (arith splits): For 68hc12 save the address register on the stack
9888         and do the arithmetic operation with a pop.
9889
9890 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9891
9892         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9893         allocating QImode in address registers.
9894         ("*movqi_m68hc11"): Likewise.
9895
9896 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9897
9898         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9899
9900 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9901
9902         * cppinit.c (print_help): Display -MD and -MMD.
9903         Don't display usage string.  Update assertion syntax and
9904         typo.
9905         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9906         (cpp_handle_option): Update.
9907
9908 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9909
9910         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9911         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9912         and define it so that regardless of target CPU size,
9913         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9914         of "int" rather than "long."
9915
9916 2002-03-15  Richard Henderson  <rth@redhat.com>
9917
9918         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9919         size as a tree.
9920
9921 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9922
9923         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9924         ("tstqi" split): Avoid using memory for tstqi on address register.
9925         (splits): Remove constraints.
9926         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9927         ("cmpdf", "cmpsf"): Remove since not used.
9928         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9929         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9930
9931 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9932
9933         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9934         ("neghi2"): Tighten constraints.
9935         ("one_cmplsi2"): Optimize and simplify split.
9936         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9937
9938 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9939
9940         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9941         and split of AND operation to clear the upper bits.
9942         ("*logicalsi3_zextqi"): Likewise.
9943         ("*logicallhi3_zexthi_ashift8"): Likewise.
9944         ("*logicalsi3_silshr16"): Likewise.
9945         ("logicalsi3_silshl16"): Likewise.
9946         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9947
9948 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9949
9950         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9951         (m68hc11_indirect_p): New function.
9952         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9953         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9954         TARGET_M6812.
9955         (asm_print_register): Likewise.
9956         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9957         (m68hc11_indirect_p): Declare.
9958         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9959         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9960         (TARGET_SWITCHES): New option -mrelax.
9961         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9962         destination.
9963         ("iorsi3", "xorsi3"): Likewise.
9964         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9965         ("*andhi3_mem"): New to handle destination in memory with bclr
9966         and a scratch register.
9967         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9968         ("*andhi3_const"): New when operand2 is constant.
9969         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9970         ("*andhi3_gen"): Cleanup of the old "andhi3".
9971         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9972         ("xorqi3"): Update constraints.
9973
9974 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9975
9976         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9977         for reg_equiv_memory_loc when the operand is a register that does
9978         not get a hard register (stack location).
9979         (tst_operand): After reload, accept all memory operand.
9980         (symbolic_memory_operand): Fix detection of symbolic references.
9981         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9982         accept symbols and any constant.
9983
9984 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9985
9986         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9987         note on the insn that sets the soft frame register.
9988         (must_parenthesize): ix and iy are also reserved names.
9989         (print_operand_address): One more place where parenthesis are required
9990         to avoid confusion with register names.
9991         (m68hc11_gen_movhi): Allow push of stack pointer.
9992         (m68hc11_check_z_replacement): Fix handling of parallel with a
9993         clobber.
9994         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9995         the replacement register is.
9996         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9997         and D8_REGS classes.
9998         (MODES_TIEABLE_P): All modes are tieable except QImode.
9999
10000 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10001
10002         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
10003         (___subdi3): Likewise.
10004         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
10005         (__map_data_section): Optimize 68hc11 case.
10006
10007 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10008
10009         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
10010         than a shift to avoid adding a register with itself.
10011         (m68hc11_memory_move_cost): Take into account NO_REGS.
10012         (m68hc11_register_move_cost): Update and use memory move cost
10013         for soft registers.
10014         (m68hc11_address_cost): Make cost of valid offset not 0 so that
10015         it gives more opportunities to cse to optimize.
10016         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
10017         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
10018
10019 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
10020
10021         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
10022         * c-common.def (CLEANUP_STMT): New tree node.
10023         * c-common.h (CLEANUP_DECL): New macro.
10024         (CLEANUP_EXPR): Likewise.
10025         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
10026         * expr.c (expand_expr): Tidy.
10027         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
10028         * tree-inline.c (initialize_inlined_parameters): Clean up
10029         new local variables.
10030
10031 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
10032
10033         PR bootstrap/4128
10034         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
10035         before movrXX only, use reg_overlap_mentioned_p.
10036         Only special case NE if just one insn can be generated.
10037
10038 2002-03-15  Jason Merrill  <jason@redhat.com>
10039
10040         * varasm.c (assemble_variable): Call resolve_unique_section before
10041         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
10042         of error_mark_node.
10043
10044 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
10045
10046         PR target/5170
10047         * arm.md (split pattern for thumb shiftable immediates): Add comment
10048         explaining non-obvious test.
10049
10050 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
10051
10052         PR target/5712
10053         * arm.md (movaddr, movaddr_insn): Delete.
10054
10055 2002-03-15  Jason Merrill  <jason@redhat.com>
10056
10057         * toplev.c (wrapup_global_declarations): Clarify variable handling.
10058         -fkeep-static-consts doesn't apply to comdats.
10059
10060 2002-03-14  Richard Henderson  <rth@redhat.com>
10061
10062         * c-decl.c: Include c-pragma.h.
10063         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
10064         (finish_function): Tidy.
10065         * c-pragma.c: Include c-common.h.
10066         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
10067         (handle_pragma_weak): Use them.
10068         (init_pragma): Register pending_weaks.
10069         * c-pragma.h (maybe_apply_pragma_weak): Declare.
10070         * print-tree.c (print_node): Print DECL_WEAK.
10071         * varasm.c (mark_weak_decls): Remove.
10072         (remove_from_pending_weak_list): Remove.
10073         (add_weak): Remove.
10074         (asm_emit_uninitialised): Call globalize_decl for weak commons.
10075         (weak_decls): Make a tree_list.
10076         (declare_weak): Cons weak_decls directly.
10077         (globalize_decl): Remove weak_decls elements directly.
10078         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
10079         symbols.  Don't pretend to handle aliases.
10080         (init_varasm_once): Update weak_decls registry.
10081         * Makefile.in: Update dependencies.
10082
10083 2002-03-14  Richard Henderson  <rth@redhat.com>
10084
10085         PR target/5312
10086         * config/ia64/ia64.c: Include tm_p.h last.
10087         (gen_nop_type): Remove duplicate definition.
10088         (cycle_end_fill_slots): Set sched_data for second L slot.
10089         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
10090         (nop_cycles_until): Fix typos.
10091
10092 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
10093
10094         PR optimization/5891
10095         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
10096
10097 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
10098
10099         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
10100           descriptors correctly.
10101
10102 2002-03-14  Michael Meissner  <meissner@redhat.com>
10103
10104         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
10105         100, allowing MAX_UNROLLED_INSNS to be overridden.
10106
10107         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
10108         --param.
10109
10110         * unroll.c (params.h): Include.
10111         (MAX_UNROLLED_INSNS): Delete, now in params.h.
10112
10113         * doc/invoke.texi (--param max-unroll-insns): Document.
10114
10115         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
10116
10117 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
10118
10119         * arm.md: Fix warnings about constraints in peepholes and splits.
10120
10121 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
10122
10123         * cpphash.h (struct lexer_state): Remove line_extension member.
10124         * cpplib.c (dequote_string, do_linemarker): New functions.
10125         (linemarker_dir): New data object.
10126         (DIRECTIVE_TABLE): No longer need to interpret #line in
10127         preprocessed source.  Delete obsolete comment about return
10128         values of handlers.
10129         (end_directive, directive_diagnostics, _cpp_handle_directive):
10130         Don't muck with line_extension.
10131         (directive_diagnostics): No need to issue warnings for
10132         linemarkers here.
10133         (_cpp_handle_directive): Issue warnings for linemarkers here,
10134         when appropriate.  Dispatch linemarkers to do_linemarker, not
10135         do_line.
10136         (do_line): Code to handle linemarkers split out to do_linemarker.
10137         Convert escape sequences in filename argument, both places.
10138
10139         * cppmacro.c (quote_string): Rename cpp_quote_string and
10140         export.  All callers changed.
10141         * cpplib.h (cpp_quote_string): Prototype.
10142         * cppmain.c (print_line): Call cpp_quote_string on to_file
10143         before printing it.
10144
10145         * doc/cpp.texi: Document that escapes are now interpreted in
10146         #line and in linemarkers, and that non-printing characters are
10147         converted to octal escapes when linemarkers are generated.
10148
10149 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10150
10151         * emit-rtl.c (try_split): Use delete_insns.
10152         * recog.c (split_all_insns): Fix terminating condition.
10153
10154 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
10155             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10156
10157         PR target/5828
10158         * arm.c (arm_output_epilogue): Fix floating-point register save
10159         adjustment when using a frame pointer.
10160
10161 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
10162
10163         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
10164         * config/mips/mips.c (compute_frame_size): Retrofit them here.
10165         (save_restore_insns, mips_expand_epilogue): And here.
10166         (build_mips16_call_stub): And here.
10167         (mips_function_value): Use the new macros to decide whether a single
10168         or complex float can be returned in floating-point registers.  Return
10169         a parallel rtx in the complex case.
10170
10171 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
10172
10173         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
10174         call after liveness analysis.
10175
10176         * recog.c (split_insn): Use delete_insn_and_edges.
10177
10178         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
10179         instructions to have branch prediction notes.
10180         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
10181
10182 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
10183
10184         * configure.in: Don't pass -Wno-long-long to a ADA compiler
10185         that doesn't support it.
10186         * configure: Regenerate.
10187
10188 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10189
10190         PR target/5626
10191         * config/sparc/sparc.md (normal_branch, inverted_branch,
10192         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10193         inverted_fp_branch): Adjust calls to output_cbranch.
10194         Set length attribute.
10195         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
10196         output_v9branch.  Set length attribute.
10197         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
10198         predicates.
10199         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
10200         (output_cbranch): Likewise.  Handle far branches.
10201         (output_v9branch): Handle far branches.
10202         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
10203         Adjust prototypes.
10204         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
10205         noov_compare64_op predicates.
10206
10207 2002-03-13  Jason Merrill  <jason@redhat.com>
10208
10209         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
10210         into the function and constify it.
10211         * gthr-dce.h, gthr-solaris.h: Likewise.
10212
10213 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
10214
10215         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
10216         * config/rs6000/rs6000.c (rs6000_va_arg): Use
10217         std_expand_builtin_va_arg if not ABI_V4.
10218
10219 2002-03-13  Jason Merrill  <jason@redhat.com>
10220
10221         * varasm.c (globalize_decl): New fn.
10222         (assemble_start_function): Use it.
10223         (asm_emit_uninitialized): Use it.
10224         (assemble_alias): Use it.
10225         (assemble_variable): Use it.
10226
10227 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
10228
10229         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
10230         2002-03-12 internal visibility change.
10231         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
10232         visibility into SYMBOL_REF_FLAG.
10233
10234 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
10235
10236         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
10237         VOIDmode operand.  Add compile-time optimization for constant results.
10238
10239 2002-03-12  Jason Merrill  <jason@redhat.com>
10240
10241         * c-typeck.c (convert_for_assignment): Don't allow conversions
10242         between pointers and references.  Only allow lvalues to convert to
10243         reference.
10244
10245 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
10246
10247         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10248         before prologue, to avoid scheduling problems.
10249
10250 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10251
10252         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10253         (ELIMINABLE_REGS): Add sfp->sp.
10254         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10255
10256 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10257
10258         PR optimization/5892
10259         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10260
10261 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10262
10263         * loop.c (basic_induction_var): Don't call convert_modes if mode
10264         classes are different.
10265
10266 2002-03-12  Richard Henderson  <rth@redhat.com>
10267
10268         PR optimization/5901
10269         * function.c (reposition_prologue_and_epilogue_notes): Position
10270         the markers after/before the last/first insn not deleted.
10271
10272 2002-03-12  Richard Henderson  <rth@redhat.com>
10273
10274         PR optimization/5878
10275         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10276         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10277         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10278
10279         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10280         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10281         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10282
10283         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10284         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10285         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10286         also.  Don't set it if not flag_pic.
10287         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10288         to be INVALID_REGNUM when not used.
10289
10290 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
10291
10292         * expmed.c (store_bit_field): Reset alias set for memory.
10293         (extract_bit_field): Same.
10294
10295 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10296
10297         * c-common.c (c_tree_code_type, c_tree_code_length,
10298         c_tree_code_name, add_c_tree_codes): Delete.
10299         * c-common.h (add_c_tree_codes): Delete.
10300         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10301         Define.
10302         * c-objc-common.c (c_objc_common_init): Don't call
10303         add_c_tree_codes, instead set lang_unsafe_for_reeval.
10304         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10305         objc_tree_code_name, add_objc_tree_codes): Delete.
10306         (objc_init): Don't call add_objc_tree_codes.
10307         * objc/objc-lang.c (tree_code_type, tree_code_length,
10308         tree_code_name): Define.
10309         * toplev.c (lang_independent_init): Don't set
10310         tree_code_length[IDENTIFIER_NODE].
10311         * tree.c (tree_code_type, tree_code_length, tree_code_name):
10312         Delete definitions, moved to language front-ends.
10313         * tree.def (IDENTIFIER_NODE): Hardwire the length.
10314         * tree.h (tree_code_type, tree_code_length, tree_code_name):
10315         Const-ify.
10316         (tree_code_length): Change type to unsigned char.
10317
10318 2002-03-12  Richard Henderson  <rth@redhat.com>
10319
10320         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10321         internal visibility change.
10322
10323 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10324
10325         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10326         validize_mem() instead of change_address to avoid clobbering
10327         memory attributes.
10328
10329 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10330
10331         * c-lex.h (position_after_whitespace): Remove.
10332
10333 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
10334
10335         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10336         (lex_string): Use unsigned char pointers.
10337
10338 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10339
10340         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10341         is not a valid memory_operand.
10342
10343 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10344
10345         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10346         * config/xtensa/lib1funcs.asm: Fix copyright to include
10347         special case for libgcc files.
10348         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10349         (__divsi3): Likewise.
10350         (__umodsi3): Likewise.
10351         (__modsi3): Likewise.
10352         * config/xtensa/lib2funcs.S: Fix copyright to include
10353         special case for libgcc files.
10354
10355 2002-03-12  Tom Rix  <trix@redhat.com>
10356
10357         * collect2.c (resolve_lib_name): Move outside of
10358         OBJECT_FORMAT_COFF ifdef.
10359         (ignore_library): Same.
10360
10361 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10362
10363         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10364
10365 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10366
10367         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10368         to function_section before writing out the constant pool.
10369
10370 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
10371
10372         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10373         zero_constant.
10374         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10375
10376 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
10377
10378         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10379         (adddi3): Likewise.
10380         (movdf): Likewise.
10381         (movdi): Likewise.
10382         (cmpsi splitter): Likewise.
10383         (modsi3): Fail if <= 0.
10384         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10385         redundant test when HOST_BITS_PER_WIDE_INT != 32.
10386         (reg_or_sub_cint64_operand): Likewise.
10387         (num_insns_constant_wide): Optimize sign extension.
10388         (rs6000_legitimize_address): Likewise.
10389
10390 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10391
10392         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10393         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10394
10395 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10396
10397         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10398         address calculation.
10399
10400 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10401
10402         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10403         scratch register to DImode / TImode.
10404         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10405         register used does not overlap the target.
10406
10407 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10408
10409         * Makefile.in (debug.o): Depend on debug.h.
10410         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10411         * debug.c (do_nothing_debug_hooks): Likewise.
10412         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10413         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10414         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10415         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10416         * dwarfout.c (dwarf_debug_hooks): Likewise.
10417         * integrate.c (output_inline_function): Likewise.
10418         * objc/objc-act.c (synth_module_prologue): Likewise.
10419         * sdbout.c (sdb_debug_hooks): Likewise.
10420         * toplev.c (debug_hooks): Likewise.
10421         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10422
10423 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10424
10425         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10426         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10427         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10428         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10429         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10430         * defaults.h (POINTER_SIZE): Define.
10431         * doc/tm.texi (POINTER_SIZE): Document default.
10432
10433 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10434
10435         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10436
10437 2002-03-11  Richard Henderson  <rth@redhat.com>
10438
10439         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10440         if rebuild_label_notes_after_reload.
10441
10442 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
10443
10444         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
10445         emit pic register load if "internal" visibility.
10446         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10447         (cris_expand_builtin_va_arg): Do all computations on trees.
10448
10449 2002-03-11  Richard Henderson  <rth@redhat.com>
10450
10451         * rtlanal.c: Include recog.h.
10452         (keep_with_call_p): Fix thinko.
10453         * Makefile.in (rtlanal.o): Update dependencies.
10454
10455 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
10456
10457         * genflags.c (gen_insn): Use IS_VSPACE.
10458         * genoutput.c (output_insn_data): Likewise.
10459         (process_template): Likewise.
10460
10461 2002-03-11  Richard Henderson  <rth@redhat.com>
10462
10463         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10464
10465 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10466
10467         * Makefile.in: Update.
10468         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10469         Update documentation.
10470         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10471         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10472
10473 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
10474
10475         * Makefile.in: Give texi2pod its input file as a command line
10476         argument, not on stdin.
10477
10478 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
10479             Daniel Berlin  <dan@dberlin.org>
10480
10481         C++ alias analysis improvement.
10482         * alias.c (record_component_aliases): Record aliases for base
10483         classes too.
10484
10485 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
10486
10487         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10488
10489 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
10490
10491         * toplev.c (vms_fopen): Remove, not needed.
10492
10493         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10494
10495         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10496
10497         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10498         for FP, already done later.
10499
10500         * toplev.c (debug_args): Add entry for VMS_DEBUG.
10501         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10502
10503 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
10504
10505         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10506         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10507         LARGEST_EXPONENT_IS_NORMAL for the given mode.
10508         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10509         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10510         (ediv, emul, eldexp, esqrt): Likewise.
10511         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10512         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10513         (saturate): New function.
10514         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10515         (make_nan): Use a saturation value instead of a NaN if
10516         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
10517         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10518         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
10519         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
10520         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10521         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10522         !ROUND_TOWARDS_ZERO.
10523         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10524         (ROUND_TOWARDS_ZERO): Document.
10525
10526 2002-03-11  Andreas Jaeger  <aj@suse.de>
10527
10528         * cfg.c (dump_flow_info): Remove unused variable.
10529
10530 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
10531
10532         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10533         computations on trees.
10534
10535 2002-03-10  Richard Henderson  <rth@redhat.com>
10536
10537         PR 5693:
10538         * reload.c (copy_replacements_1): New.
10539         (copy_replacements): Use it to recurse through the rtx.
10540
10541 2002-03-10  Richard Henderson  <rth@redhat.com>
10542
10543         * loop.c (strength_reduce): Compute number of iterations as
10544         unsigned HOST_WIDE_INT.
10545
10546 2002-03-10  Richard Henderson  <rth@redhat.com>
10547
10548         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10549         to move away from the end of the block.
10550
10551 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10552
10553         PR preprocessor/5899
10554         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10555
10556 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10557
10558         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10559
10560         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10561
10562 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10563
10564         * config/mmix/mmix.c: Improve comments.
10565         (mmix_target_asm_function_prologue): Drop variable
10566         empty_stack_frame.  Don't allocate unused slot above fp.
10567         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10568         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10569         brace in first column.
10570         (enum reg_class): Ditto.
10571         (FIRST_PARM_OFFSET): Now 0.
10572         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10573
10574 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10575
10576         * combine.c (make_extraction): Fix error in last change.
10577
10578 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10579
10580         * c4x.c (c4x_fp_reglist): Const-ify.
10581         * cris.c (cris_print_operand): Likewise.
10582         * i386.c (ix86_va_arg): Likewise.
10583         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10584         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10585         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10586         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10587         * mcore.h (regno_reg_class): Likewise.
10588         * mips.c (gen_int_relational): Likewise.
10589         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10590         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10591         * pdp11.c (move_costs): Likewise.
10592         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10593         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10594         Likewise.
10595         * s390.h (regclass_map): Likewise.
10596         * sh.c (shift_amounts): Likewise.
10597         * sh.md (rotlsi3): Likewise.
10598
10599 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10600
10601         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10602         (ne0+5): Use new clobber to generate proper shift pattern.
10603         Patch by Michael Matz <matz@kde.org>.
10604
10605 2002-03-09  Andreas Schwab  <schwab@suse.de>
10606
10607         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10608
10609 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10610
10611         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10612
10613 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10614
10615         PR middle-end/5877
10616         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10617         even for non-representable constants.
10618
10619 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10620
10621         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10622         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10623         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10624         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10625         (pop_function_context): Compute MAY_SHARE parameter for
10626         fixup_var_refs.
10627         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10628         (gen_mem_addressof): Call fixup_var_refs with new parm.
10629
10630         * combine.c (make_extraction): Don't make extension of CONST_INT.
10631
10632 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10633
10634         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10635         in o32 and o64 ABIs.
10636         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10637         but getting fixed-size structs passed in registers regardless of
10638         padding in o32 and o64 ABIs.
10639
10640         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10641         offset before loading address of argument passed by transparent
10642         reference.
10643
10644 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10645
10646         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10647
10648 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10649
10650         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10651         marker such that registers after it are saved.
10652
10653 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10654
10655         * sparc.c (arith_4096_operand): Fix error in last change.
10656
10657 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10658
10659         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10660         defaults for MEABI.
10661
10662 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10663
10664         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10665         vectors.
10666
10667 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10668
10669         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10670
10671 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10672
10673         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10674         removed; fix return value.
10675         * combine.c (combine_instructions): Dirtify blocks where we failed to
10676         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10677         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10678
10679 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10680
10681         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10682
10683 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10684
10685         * recog.c (peephole2_optimize): Re-distribute EH edges.
10686
10687 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10688
10689         * expr.c (expand_expr): Use unsave lang hook.
10690         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10691         (LANG_HOOKS_INITIALIZER): Update.
10692         * langhooks.h (struct lang_hooks): New hook unsave.
10693         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10694         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10695         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10696         (unsave_expr_now): Remove.
10697         * tree.h (unsave_expr_now, lang_unsave,
10698         lang_unsave_expr_now): Remove.
10699         (lhd_unsave): New.
10700
10701 2002-03-08  Andreas Jaeger  <aj@suse.de>
10702
10703         * flow.c (propagate_block_delete_insn): Remove unused variable.
10704
10705 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10706
10707         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10708         insn length for memory load/store.
10709
10710 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10711
10712         * doc/install.texi (--with-libiconv-prefix): Document.
10713
10714 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10715
10716         * doc/sourcebuild.texi: Fix typo.
10717
10718 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10719
10720         PR c/3711
10721         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10722         trees.
10723
10724 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10725
10726         * rtl.c (copy_most_rtx): Move from here ...
10727         * emit-rtl.c (copy_most_rtx): ... to here.
10728
10729 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10730
10731         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10732         SUBTARGET_CPP_SIZE_SPEC.
10733         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10734
10735         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10736
10737 2002-03-07  Matt Hiller  <hiller@redhat.com>
10738
10739         * gensupport.c (first_dir_md_include): Renamed from include;
10740         change all references.
10741         (last_dir_md_include): Renamed from last_include; change all
10742         references.
10743         (init_md_reader): Unconditionally initialize base_dir whether or
10744         not filename is a relative path.
10745
10746 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10747
10748         * config/fp-bit.c (_unord_f2): Compile it in even if
10749         US_SOFTWARE_GOFAST is enabled.
10750
10751         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10752         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10753         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10754         NULL_RTX, try reversing the comparison and the operands.
10755
10756 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10757
10758         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10759         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10760         and MATCH_OP_DUP.
10761
10762 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10763
10764         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10765
10766 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10767
10768         * basic-block.h (fixup_abnormal_edges): Declare.
10769         * reload1.c (fixup_abnormal_edges): New function.
10770         * reg-stack.c (convert_regs): Use it.
10771
10772         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10773
10774         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10775
10776 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10777
10778         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10779         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10780         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10781         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10782         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10783         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10784         unless x and y could be infinite.
10785         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10786         Check that the common type of both arguments is a real, even for
10787         targets without unordered comparisons.  Allow an integer argument
10788         to be compared against a real.
10789         (expand_tree_builtin): Use expand_unordered_cmp.
10790         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10791         * cse.c (fold_rtx): Likewise.  Fix indentation.
10792         * fold-const.c (fold_real_zero_addition_p): New.
10793         (fold): Use it, and the new HONOR_... macros.
10794         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10795         * jump.c (reversed_comparison_code_parts): After searching for
10796         the true comparison mode, use HONOR_NANS to decide whether it
10797         can be safely reversed.
10798         (reverse_condition_maybe_unordered): Remove IEEE check.
10799         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10800         to decide which simplifications are valid.  Allow the following
10801         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10802         and (a - -b) to (a + b).
10803         (simplify_relational_operation): Use HONOR_NANS.
10804         * doc/tm.texi: Document the MODE_HAS_... macros.
10805
10806 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10807
10808         * combine.c (simplify_comparison): If simplifying a logical shift
10809         right and compare with constant, force the comparison to unsigned.
10810
10811 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10812
10813         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10814
10815         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10816         -mabi=no-altivec
10817         (alt_reg_names): Remove % for vrsave.
10818
10819 2002-03-06  Richard Henderson  <rth@redhat.com>
10820
10821         PR optimization/5844
10822         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10823         if used indicates we've already emitted one copy of an operand.
10824         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10825         (gen_split): Supply a non-null used.
10826
10827 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10828
10829         * reload1.c (reload): Unshare all rtl after reload is done.
10830
10831         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10832         but simply fail if the expression is too complex to simplify.
10833         (simplify_gen_binary): Handle simplify_plus_minus failures.
10834
10835 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10836
10837         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10838         consistently call delete_trivially_dead_insns after CSE and GCSE;
10839         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10840         after liveness2; update comment in last crossjumping.
10841         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10842
10843 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10844
10845         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10846         after completing fast dead code elimination.
10847
10848         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10849         COMPARE operator.
10850
10851 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10852
10853         * version.c:  Fix misplaced leading blanks on first line.
10854
10855 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10856
10857         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10858
10859 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10860
10861         * cfgcleanup.c (mentions_nonequal_regs): New function.
10862         (thread_jump): Use it.
10863         * toplev.c (rest_of_compilation): Run jump threading after
10864         liveness.
10865
10866 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10867
10868         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10869         patch.
10870
10871 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10872
10873         * predict.c (estimate_bb_frequencies): Do not reload the
10874         frequencies from notes.
10875
10876 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10877
10878         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10879         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10880
10881         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10882         delete_noop_moves): Return indeger.
10883         * flow.c (ndead): New variable.
10884         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10885         BB argument; update callers.
10886         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10887         (life_analysis): Do not call purge_all_dead_edges.
10888         (update_life_info): Return number of deleted insns; print statistics.
10889         (update_life_info_in_dirty_blocks): likewise.
10890         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10891         return number of insns deleted.
10892
10893         * cse.c: Include timevar.h
10894         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10895         iterate until stabilizes; print statistics; return number of killed
10896         insns.
10897         * Makefile.in: (cse.o): Add timevar.h dependency
10898         * rtl.h (delete_trivially_dead_insns): New.
10899         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10900         * toplev.c (rest_of_compilation): Update callers.
10901
10902         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10903         (try_optimize_cfg): Do not update liveness.
10904         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10905         removal stabilizes; use delete_trivially_dead_insns.
10906
10907         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10908
10909 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10910
10911         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10912         callbacks when processing assembly language.
10913
10914 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10915
10916         * pa.h (ASM_FILE_END): Define.
10917         * som.h (ASM_FILE_END): Delete.
10918
10919         * pa.c (function_arg): Don't pass floats in general registers in
10920         indirect calls if TARGET_ELF32.
10921
10922 2002-03-05  Richard Henderson  <rth@redhat.com>
10923
10924         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10925
10926 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10927
10928         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10929
10930 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10931
10932         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10933         -r command line.  Don't hide any symbols if not building
10934         shared libgcc.
10935
10936 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10937
10938         * cfg.c (dump_flow_info): Warn about profile mismatches.
10939         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10940         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10941
10942 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10943
10944         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10945         wide volatile memory by parts.
10946
10947 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10948
10949         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10950         is NULL.
10951
10952 2002-03-05  Richard Henderson  <rth@redhat.com>
10953
10954         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10955
10956 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10957
10958         * toplev.c (documented_lang_options): Document more
10959         language-specific options.
10960         * doc/invoke.texi (Warning Options): Correct documentation for
10961         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10962         * c-decl.c (c_decode_option): Use a table to handle warning options.
10963
10964 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10965
10966         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10967         parameter to mmix_encode_section_info.
10968         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10969         relocatably.  Always produce ELF, not mmo if linking relocatably.
10970         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10971         first is non-zero, don't add symbol prefix.
10972         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10973         prototype accordingly.
10974
10975 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10976
10977         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10978
10979 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10980
10981         * configure.in: Increase required makeinfo version to 4.1.
10982         * configure: Regenerate.
10983
10984 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10985
10986         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10987         elsewhere now.
10988
10989 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10990
10991         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10992         * doc/invoke.texi: Fix @math uses.
10993
10994 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10995
10996         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10997         removal
10998
10999 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
11000
11001         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
11002         (powerpc-*-eabisimaltivec*): Same.
11003
11004         * config/rs6000/t-ppcendian: New.
11005
11006 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11007
11008         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
11009         nonimmediate_src_operand and nonimmediate_lsrc_operand to
11010         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
11011
11012 2002-03-03  Richard Henderson  <rth@redhat.com>
11013
11014         * toplev.c (rest_of_decl_compilation): Revert last two changes.
11015
11016 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
11017
11018         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
11019         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
11020         tree.c, config/m68k/m68k.c:
11021         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
11022         REAL_ARITHMETIC blocks unconditional.  Delete some further
11023         #ifdef blocks predicated on REAL_ARITHMETIC.
11024         * flags.h, toplev.c: Delete remaining references to
11025         flag_pretend_float.
11026
11027         * doc/invoke.texi: Remove documentation of -fpretend-float.
11028         * doc/tm.texi: Describe the various REAL_* macros as provided by
11029         real.h, not by the target configuration files.
11030
11031         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
11032         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
11033         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11034         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
11035         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
11036         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
11037         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
11038         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
11039         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11040         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
11041         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11042         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
11043         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
11044         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
11045         config/xtensa/xtensa.h:
11046         Do not define, undefine, or mention in comments any of
11047         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
11048         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
11049         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
11050         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
11051         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
11052         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
11053         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
11054         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
11055         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
11056
11057 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11058
11059         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
11060         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
11061         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
11062         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
11063         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
11064         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
11065         Delete.
11066         * defaults.h (BITS_PER_WORD): Define.
11067         * doc/tm.texi (BITS_PER_WORD): Document default value.
11068
11069         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
11070         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
11071         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
11072
11073 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11074
11075         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
11076         lieu of explicit sizeof/sizeof.
11077         * i386.c (override_options, ix86_init_mmx_sse_builtins,
11078         ix86_expand_builtin): Likewise.
11079         * mips.c (mips_add_gc_roots): Likewise.
11080         * mmix.c (mmix_output_condition): Likewise.
11081         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
11082         altivec_init_builtins): Likewise.
11083         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
11084         * cppexp.c (Nsuff, parse_number): Likewise.
11085         * cppinit.c (builtin_array_end): Likewise.
11086         * gcc.c (n_default_compilers, process_command): Likewise.
11087         * genpreds.c (output_predicate_decls): Likewise.
11088         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
11089         * lcm.c (N_ENTITIES): Likewise.
11090         * stor-layout.c (set_sizetype): Likewise.
11091
11092 2002-03-03  Richard Henderson  <rth@redhat.com>
11093
11094         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
11095         for types or labels.
11096
11097 2002-03-03  Richard Henderson  <rth@redhat.com>
11098
11099         * c-decl.c (start_decl): Initialized variables are not common.
11100
11101 2002-03-02  Per Bothner  <per@bothner.com>
11102
11103         * gcc.c (option_map):  Suport new --bootclasspath option.
11104         --CLASSPATH is now just an alias for --classpath.
11105
11106 2002-03-02  Richard Henderson  <rth@redhat.com>
11107
11108         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
11109         load if "internal" visibility.
11110         * doc/extend.texi: Document visibility meanings.
11111
11112 2002-03-02  Richard Henderson  <rth@redhat.com>
11113
11114         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
11115         to functions as well.
11116
11117 2002-03-02  Richard Henderson  <rth@redhat.com>
11118
11119         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
11120         (handle_visibility_attribute): Don't call assemble_visibility.
11121         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
11122         without asmspec.  Invoke assemble_alias when needed.
11123         * varasm.c (maybe_assemble_visibility): New.
11124         (assemble_start_function, assemble_variable, assemble_alias): Use it.
11125
11126 2002-03-02  Richard Henderson  <rth@redhat.com>
11127
11128         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
11129         invoke ENCODE_SECTION_INFO with first call flag.
11130
11131         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
11132         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
11133         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
11134         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
11135         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
11136         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11137         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
11138         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
11139         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
11140         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
11141         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11142         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
11143         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
11144         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
11145         config/mcore/mcore-protos.h, config/mcore/mcore.c,
11146         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
11147         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
11148         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11149         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
11150         config/sh/sh.h, config/sparc/sparc.h,
11151         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
11152         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
11153         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
11154         FIRST argument.  As needed, examine it and do nothing.
11155
11156         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
11157         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11158         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
11159
11160         * config/arm/t-pe (pe.o): Add dependencies.
11161
11162 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11163
11164         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
11165         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
11166         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
11167         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
11168         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
11169         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
11170         * defaults.h (BITS_PER_UNIT): Define.
11171         * doc/tm.texi (BITS_PER_UNIT): Document default value.
11172
11173 2002-03-02  Kazu Hirata  <kazu@hxi.com>
11174
11175         * config/h8300/h8300-protos.h: Add a prototype for
11176         compute_a_shift_length.
11177         * config/h8300/h8300.c (h8300_asm_insn_count): New.
11178         (compute_a_shift_length): Likewise.
11179         (h8300_adjust_insn_length): Do not adjust insn length of shift
11180         insns.
11181         * config/h8300/h8300.md (anonymous shift patterns): Use
11182         compute_a_shift_length.
11183
11184 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11185
11186         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
11187         trunc_int_for_mode.
11188
11189         * emit-rtl.c (offset_address): Call update_temp_slot_address.
11190
11191 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11192
11193         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
11194         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
11195         * flags.h (flag_zero_initialized_in_bss): Declare.
11196         * toplev.c (flag_zero_initialized_in_bss): New flag.
11197         (lang_independent_options): Add flag_zero_initialized_in_bss.
11198         * tree.c (initializer_zerop): New function.
11199         * tree.h (initializer_zerop): Declare.
11200         * varasm.c (assemble_variable): If we can emit bss, put zero
11201         initializers in the bss section.
11202
11203 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
11204
11205         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
11206         like more than one symbol per .weak directive.
11207
11208 2002-03-01  Richard Henderson  <rth@redhat.com>
11209
11210         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
11211         adjust argument_pointer by pretend_args_size.
11212         (ia64_va_start): Adjust va_start address by -pretend_args_size.
11213
11214 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11215
11216         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
11217
11218 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
11219
11220         * toplev.c (rest_of_compilation): Delete dead jumptables before
11221         loop.
11222         * flow.c (delete_dead_jumptables): Make global.
11223         * rtl.h (delete_dead_jumptables): Declare.
11224
11225 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
11226
11227         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
11228         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
11229         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
11230
11231 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11232
11233         * config/h8300/h8300-protos.h: Fix formatting.
11234         * config/h8300/h8300.c: Likewise.
11235         * config/h8300/h8300.h: Likewise.
11236
11237 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11238
11239         * config/h8300/h8300.c (print_operand): Support 16-bit
11240         constant addresses.
11241         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
11242
11243 2002-02-28  Richard Henderson  <rth@redhat.com>
11244
11245         * expmed.c (store_bit_field): Prevent generation of CONCATs;
11246         pun complex values as integers; use gen_lowpart instead of
11247         gen_rtx_SUBREG.
11248         (extract_bit_field): Likewise.
11249
11250 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
11251             David Edelsohn  <edelsohn@gnu.org>
11252
11253         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11254         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11255         (SUPPORTS_WEAK): Likewise.
11256         * output.h (add_weak): Add tree param.
11257         * varasm.c (add_weak): Likewise.  Save decl.
11258         (struct weak_syms): Add decl field.
11259         (mark_weak_decls): New function.
11260         (init_varasm_once): ggc_add_root mark_weak_decls.
11261         (assemble_start_function): Use ASM_WEAKEN_DECL.
11262         (assemble_variable): Likewise.
11263         (assemble_alias): Likewise.
11264         (declare_weak): Pass decl to add_weak.
11265         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11266         (remove_from_pending_weak_list): Declare and define for
11267         ASM_WEAKEN_DECL.
11268         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11269         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11270         * defaults.h (SUPPORTS_WEAK): Likewise.
11271         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11272         .weak for code sym.  Do emit .size for descriptor sym.
11273         (ASM_DECLARE_FUNCTION_SIZE): Define.
11274         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11275         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
11276         .lglobl unless TARGET_XCOFF.  Formatting fixes.
11277         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11278         .weak for code sym.
11279         (HANDLE_PRAGMA_WEAK): Remove.
11280         (ASM_WEAKEN_LABEL): Remove.
11281         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11282
11283 2002-03-01  Jason Merrill  <jason@redhat.com>
11284
11285         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11286         (TARGET_EXPR_CLEANUP): New macro.
11287
11288 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
11289
11290         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11291         to take ptr_extend into account as third type of extension.
11292         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11293         fields used by SUBREG_PROMOTED_UNSIGNED_P.
11294         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11295         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11296         * calls.c (precompute_arguments): Use new macro.
11297         (expand_call): Ditto.
11298         * combine.c (nonzero_bits): Ditto.
11299         (record_promoted_value): Ditto.
11300         * expr.c (store_expr): Ditto.
11301         (expand_expr): Ditto.
11302         * function.c (assign_parms): Ditto.
11303
11304 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
11305
11306         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11307         override -shared and -shared-libgcc.
11308
11309 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
11310
11311         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11312         of "ultrasparc".
11313         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
11314         to be broken.
11315
11316 2002-02-28  Richard Henderson  <rth@redhat.com>
11317
11318         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11319         4 cycle latency from MM producers.
11320         (ia64_internal_sched_reorder): Likewise with pipeline flush.
11321
11322 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
11323
11324         * mklibgcc.in: Don't use GNU make extension.
11325
11326 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11327
11328         * c-parse.in (STATIC): New terminal.
11329         (scspec): New non-terminal.  Update productions accordingly.
11330         (program): Remove bogus ifc / end ifc.
11331         (array_declarator): Simplify production using STATIC.
11332
11333 2002-02-28  Jim Meyering  <meyering@lucent.com>
11334
11335         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11336         \a still means TARGET_BELL.
11337
11338 2002-02-28  Richard Henderson  <rth@redhat.com>
11339
11340         * haifa-sched.c (sched_emit_insn): New.
11341         (schedule_block): Use last_scheduled_insn to track last insn.
11342         * sched-int.h (sched_emit_insn): Prototype.
11343         * config/ia64/ia64.c (last_issued): Remove.
11344         (ia64_variable_issue): Don't set it.
11345         (nop_cycles_until): Use sched_emit_insn.
11346
11347 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
11348
11349         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11350         extended constants.
11351
11352 2002-02-28  Kazu Hirata  <kazu@hxi.com>
11353
11354         * config/h8300/h8300.c: Fix formatting.
11355         * config/h8300/h8300.h: Likewise.
11356
11357 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11358
11359         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11360         which may overwrite the high byte of the frame pointer.
11361
11362 2002-02-28  Bo Thorsen  <bo@suse.de>
11363
11364         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11365         (STARTFILE_SPEC): Add 64 bit files.
11366         (ENDFILE_SPEC): Likewise.
11367
11368 2002-02-28  Jason Merrill  <jason@redhat.com>
11369
11370         * c-decl.c (finish_function): Only warn about missing return
11371         statement with -Wreturn-type.
11372
11373 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11374
11375         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11376
11377         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11378         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11379
11380 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11381
11382         * basic-block.h (BB_REACHABLE): Renumber.
11383         (BB_DIRTY, BB_NEW): New flags.
11384         (clear_bb_flags): Declare.
11385         (update_life_info_in_dirty_blocks): Declare.
11386         * cfg.c (clear_bb_flags): New function.
11387         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11388         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11389         reorder_insns, emit_insn_after): Mark block as dirty.
11390         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11391         (update_life_info_in_dirty_blocks): New function.
11392         * recog.c (apply_change_group): Dirtify block.
11393
11394         * cse.c (cse_insn): Reorder emitting of jump insn to keep
11395         cfg consistent.
11396         * gcse.c (delete_null_pointer_checks): Likewise.
11397
11398         * toplev.c (dump_file_index): Move cse2 after bp,
11399         add DFI_null
11400         (dump_file_info): Similary.
11401         (rest_of_compilation): Avoid most of CFG rebuilds;
11402         do first if converision after null pointer checks, do cse2
11403         after branch prediction; avoid full liveness rebuild after
11404         initializing subregs.
11405         * invoke.texi (-d options): Document -du, renumber.
11406
11407         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11408         (notice_new_block): Do not set BB_UPDATE_LIFE.
11409         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11410          merge_blocks_move_successor_nojumps, merge_blocks,
11411          try_crossjump_to_edge): Likewise.
11412         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11413         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11414         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11415         (merge_of_block): Do not use life_data_ok.
11416         (find_if_case_1): Do not use SET_UPDATE_LIFE.
11417         (if_convert): Use BB_DIRTY mechanizm to update life.
11418         * lcm.c (optimize_mode_switching): Update
11419         update_life_info_in_dirty_blocks
11420
11421 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11422
11423         * Makefile.in (integrate.o): Update.
11424         * c-decl.c (copy_lang_decl): Rename.
11425         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11426         * integrate.c: Include langhooks.h.
11427         (copy_decl_for_inlining): Update to use langhook.
11428         * langhooks-def.h (lhd_do_nothing_t,
11429         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11430         (LANG_HOOKS_INITIALIZER): Update.
11431         * langhooks.c (lhd_do_nothing_t): New.
11432         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11433         * tree.h (copy_lang_decl): Remove.
11434 objc:
11435         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11436
11437 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
11438
11439         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11440         POST_DEC, and POST_MODIFY.
11441
11442 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11443
11444         * c-typeck.c (digest_init): Remove unused parameter; all
11445         callers changed.
11446
11447 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
11448
11449         * expmed.c (expand_shift): Correctly test for low part of a
11450         subreg.
11451
11452 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
11453
11454         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11455         insn UIDs with insn addresses.
11456
11457 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11458
11459         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11460         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11461         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11462         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11463         gcc.c, toplev.c: Delete code implementing -traditional mode.
11464
11465         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11466         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11467         Document removal of -traditional mode for compilation, and
11468         remove documentation only relevant to that mode.
11469
11470         * config/nextstep.h, config/ptx4.h, config/svr4.h,
11471         config/convex/convex.h, config/d30v/d30v.h,
11472         config/i386/dgux.h, config/i386/osf1elf.h,
11473         config/i386/osfelf.h, config/i386/osfrose.h,
11474         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11475         config/m68k/hp310.h, config/m88k/dgux.h,
11476         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11477         config/m88k/m88k.h, config/m88k/openbsd.h,
11478         config/mips/abi64.h, config/mips/osfrose.h,
11479         config/mips/svr4-5.h, config/mips/svr4-t.h,
11480         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11481         config/stormy16/stormy16.h: Remove all references to
11482         -traditional from target specs.  Delete all mention of the
11483         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
11484         delete a couple of commented-out definitions of
11485         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11486         to -traditional.
11487
11488         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11489         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11490
11491 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11492
11493         * mklibgcc.in: Don't use \n in a line subject to
11494         interpretation by echo.
11495
11496 2002-02-27  Graham Stott  <grahams@redhat.com>
11497
11498         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11499         Constify NAME.
11500
11501         * loop.c (prescan_loop): Handle PARALLEL.
11502
11503         * unroll.c (loop_iterations): Return 0 if the add_val for
11504         a BIV is REG.
11505
11506         * final.c (output_operand_lossage): Constify PFX_STR.
11507
11508         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11509
11510 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11511
11512         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11513         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11514
11515 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
11516
11517         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11518
11519 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11520
11521         * cpplex.c (_cpp_lex_token): Handle directives in macro
11522         arguments.
11523         * cpplib.c (_cpp_handle_directive): Save and restore state
11524         if parsing macro args when entering a directive.
11525         * cppmacro.c (collect_args): No need to handle directives
11526         in macro arguments.
11527         (enter_macro_context, replace_args): Use the original macro
11528         definition in case it was redefined whilst collecting arguments.
11529 doc:
11530         * cpp.texi: Update.
11531
11532 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
11533
11534         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11535         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11536         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11537         method on AIX.
11538         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11539         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11540         (load_toc_v4_PIC_2): Same.
11541
11542 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
11543
11544         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11545
11546 2002-02-26  Richard Henderson  <rth@redhat.com>
11547
11548         * config/alpha/alpha.md (ashldi_se): Re-enable.
11549
11550 2002-02-26  Richard Henderson  <rth@redhat.com>
11551
11552         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11553         MODULE_LOCAL_P; improve commentary.
11554
11555 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11556
11557         * doc/cpp.texi: Clarify documentation of relationship between
11558         #line and #include.
11559
11560 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11561
11562         * config/h8300/h8300-protos.h: Update the prototype for
11563         compute_logical_op_length.  Add the prototype for
11564         compute_logical_op_cc.
11565         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11566         code from operands.
11567         (compute_logical_op_cc): New.
11568         * config/h8300/h8300.md: Combine all the logical op patterns
11569         in HImode and SImode.  Use compute_logical_op_cc.
11570
11571 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11572
11573         * config/i386/i386.c (print_operand): Don't append ATT-style
11574         length suffixs to x87 opcodes when in Intel mode.
11575
11576 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11577
11578         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11579         (init_emit_once): Update calls.
11580         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11581         (init_syntax_once): Prototype.
11582
11583 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11584
11585         * pa-linux.h (LIB_SPEC): Update definition.
11586         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11587
11588 2002-02-26  Richard Henderson  <rth@redhat.com>
11589
11590         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11591         if we emitted a stop bit.
11592
11593 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11594
11595         * configure.in (libgcc_visibility): Substitute.
11596         * configure: Rebuilt.
11597         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11598         defined symbols .hidden.
11599
11600 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11601
11602         * attribs.c (c_common_attribute_table): Add visibility.
11603         (handle_visibility_attribute): New function.
11604         * varasm.c (assemble_visibility): New function.
11605         * output.h (assemble_visibility): Add prototype.
11606         * tree.h (MODULE_LOCAL_P): Define.
11607         * crtstuff.c (__dso_handle): Use visibility attribute.
11608         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11609         for MODULE_LOCAL_P symbols too.
11610         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11611         MODULE_LOCAL_P symbols the same way as local symbols.
11612         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11613         into .sdata/.sbss by the user.
11614         * doc/extend.texi (Function Attributes): Document visibility
11615         attribute.
11616
11617 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11618
11619         PR debug/5770
11620         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11621         STRING_CST initializer spanning the whole variable without
11622         embedded zeros.
11623         If expand_expr returned MEM, don't use it.
11624
11625 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11626
11627         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11628         generate a die for the lexical block.
11629
11630 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11631
11632         * config/h8300/h8300-protos.h: Add a prototype for
11633         compute_logical_op_length.
11634         * config/h8300/h8300.c (compute_logical_op_length): New.
11635         * config/h8300/h8300.md (anonymous logical patterns): Use
11636         compute_logical_op_length for length.
11637
11638 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11639
11640         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11641         for vectors.
11642         (gen_type_die): Same.
11643
11644         * attribs.c (handle_vector_size_attribute): Set debug information.
11645
11646 2002-02-26  Daniel Egger  <degger@fhm.edu>
11647
11648         * config/rs6000/rs6000.md: Swap define_insn attributes to
11649         fix incorrect generation of merge high instructions instead
11650         of merge low.
11651
11652 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11653
11654         * c-typeck.c (really_start_incremental_init): Use
11655         bitsize_zero_node for vectors.
11656
11657 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11658
11659         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11660         ("*set_vrsave_internal"): Same.
11661
11662 2002-02-25  Richard Henderson  <rth@redhat.com>
11663
11664         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11665         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11666
11667 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11668
11669         PR target/5755
11670         * config/i386/i386.c (ix86_return_pops_args): Only pop
11671         fake structure return argument if it was passed on the stack.
11672
11673 2002-02-25  Jason Merrill  <jason@redhat.com>
11674
11675         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11676         RESULT_DECL.
11677
11678 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11679
11680         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11681         link with shared_name only.
11682         * doc/invoke.texi (Link Options): Document new behavior.
11683
11684 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11685
11686         * c-typeck.c (push_init_level): Handle vectors.
11687
11688 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11689
11690         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11691         operands of SPARC_SETHI_P.
11692         (input_operand): Likewise.
11693         (sparc_emit_set_const32): Likewise.
11694         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11695         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11696         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11697         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11698         (movdi_insn_sp64_vis): Likewise.
11699         (movdi split, movdf split): Use SETHI32.
11700         * doc/md.texi: Document SPARC constraints L, M and N.
11701
11702 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11703
11704         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11705         ("*set_vrsave_internal"): use mfspr for Darwin.
11706
11707         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11708         gen_get_vrsave_internal.
11709
11710 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11711
11712         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11713
11714 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11715
11716         * cpplex.c (cpp_interpret_charconst): Get signedness or
11717         otherwise of wide character constants correct.
11718         * cppexp.c (lex): Get signedness of wide charconsts correct.
11719
11720 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11721
11722         * optabs.c (widen_operand): Only call convert_modes for
11723         promoted SUBREG if signedness matches.
11724         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11725
11726 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11727
11728         * cpplib.c (glue_header_name): Use local buffer to build up
11729         header name.
11730
11731 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11732
11733         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11734
11735 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11736
11737         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11738         H8/300[HS] separately.
11739         * config/h8300/h8300.md: Remove the early clobber constraint
11740         from bit field patterns.
11741
11742 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11743
11744         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11745         register_operand.
11746         (mulhisi3): Likewise.
11747         (umulqisi3): Likewise.
11748         (umulhisi3): Likewise.
11749
11750 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11751
11752         * cppinit.c (output_deps): Correct test for stdout output.
11753         (init_dependency_output): Cure warning.
11754
11755 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11756
11757         * expr.c (store_expr): When converting expression to promoted
11758         equivalent type, allow using SUBREG_REG of TARGET as the target
11759         of the expansion of EXP.
11760         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11761         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11762         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11763         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11764         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11765
11766 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11767
11768         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11769         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11770         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11771
11772 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11773
11774         PR optimization/5747
11775         * loop.c (scan_loop): Update reg info if move_movables created new
11776         pseudos.
11777
11778 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11779
11780         * gcc.c (init_gcc_spec): Revert last change.
11781
11782 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11783
11784         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11785         gpc_reg_operand constraint.
11786
11787 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11788
11789         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11790         Simplify comparison of `low'.
11791         (add_operand): Fix formatting.
11792         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11793         (mask_operand): Disallow mask to wrap in 64-bit mode.
11794         (rs6000_stack_info): Remove redundant test setting push_p.
11795         (output_toc): Fix formatting.
11796         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11797         cc_reg_not_cr0_operand constraint.
11798         (booldi3, boolcdi3 splitters): Same.
11799
11800 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11801
11802         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11803
11804 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11805
11806         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11807         gcc invoked with -shared-libgcc.
11808
11809 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11810
11811         PR c++/5748
11812         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11813         decl if any of elements was TREE_USED.
11814
11815 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11816
11817         * config/sparc/sol2.h: Don't include sys/mman.h.
11818         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11819         (arith_4096_operand): Don't throw high bits away.
11820         (const64_operand): Take sign extension of CONST_INTs into account.
11821         (const64_high_operand, sparc_emit_set_const32): Likewise.
11822         (GEN_HIGHINT64): Likewise.
11823         (sparc_emit_set_const64_quick1): Likewise.
11824         (const64_is_2insns): Likewise.
11825         (print_operand): Use trunc_int_for_mode for sign extension.
11826         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11827         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11828         chars.  Assume CONST_INT is already properly sign-extended.
11829         (movdi split): Sign-extend each SImode part.
11830         (andsi3 split): Don't mask high bits off, so that result
11831         remains properly sign-extend.
11832         (iorsi3 split): Likewise.
11833         (xorsi3 split): Likewise.
11834
11835 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11836
11837         * fold-const.c (fold): Fix typo in comments.
11838
11839 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11840
11841         * Makefile.in (langhooks.o): Update dependencies.
11842
11843 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11844
11845         * langhooks.c: Include flags.h.
11846
11847 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11848
11849         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11850
11851         * c-common.c (c_common_post_options): Set inline trees by
11852         default.
11853
11854         * doc/extend.texi (Function Attributes): Document always_inline
11855         attribute.
11856         Update documentation about inlining when not optimizing.
11857
11858         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11859
11860         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11861         unless DECL_ALWAYS_INLINE.
11862
11863         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11864         unless DECL_ALWAYS_INLINE.
11865         (c_disregard_inline_limits): Disregard if always_inline set.
11866
11867         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11868         Disregard if always_inline set.
11869         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11870         unless DECL_ALWAYS_INLINE.
11871
11872         * attribs.c (handle_always_inline_attribute): New.
11873         (c_common_attribute_table): Add always_inline.
11874
11875         * config/rs6000/altivec.h: Add prototypes for builtins
11876         requiring the always_inline attribute.
11877
11878 2002-02-21  Eric Christopher  <echristo@redhat.com>
11879
11880         * expmed.c (store_bit_field): Try to simplify the subreg
11881         before generating a new one when when the mode size of
11882         value is less than maxmode.
11883
11884 2002-02-21  Richard Henderson  <rth@redhat.com>
11885
11886         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11887         than gen_rtx_PLUS to form the sum.
11888         * explow.c (force_reg): Rearrange to not allocate new pseudo
11889         when force_operand returns a register.
11890         * expr.c (expand_assignment): Allow offset_rtx expansion to
11891         return a sum.  Do not force addresses into registers.
11892         (expand_expr): Likewise.
11893         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11894         to canonicalize arithmetic that didn't simpify.
11895         (simplify_plus_minus): New argument force; update
11896         all callers.  Don't split CONST unless we can do something with it,
11897         and wouldn't lose the constness of the operands.
11898
11899         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11900         that we generated earlier.
11901
11902 2002-02-21  Tom Tromey  <tromey@redhat.com>
11903
11904         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11905         (output_line_info): Use constant `1', with a long explanatory
11906         comment.
11907         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11908
11909 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11910
11911         * jump.c (redirect_jump): If old label has no UID, don't try to
11912         delete it.
11913
11914 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11915
11916         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11917         If input is constant, do shifts at compile time.
11918
11919 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11920
11921         * doc/extend.texi: Fix some more overfull hboxes.
11922
11923 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11924
11925         PR optimization/4994
11926         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11927         register moves.
11928
11929 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11930
11931         PR c++/4574
11932         * expr.h (expand_and): Add mode argument.
11933         * expmed.c (expand_and): Add mode argument.
11934         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11935         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11936         * except.c (expand_builtin_extract_return_addr): Likewise.
11937         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11938         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11939         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11940         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11941         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11942         gen_rtx (CONST_INT, VOIDmode, x).
11943
11944 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11945
11946         PR c/4697:
11947         * stmt.c (warn_if_unused_value): Move side effects test once more.
11948
11949 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11950
11951         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11952         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11953
11954 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11955
11956         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11957         SUBREG or ZERO_EXTEND.
11958
11959 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11960
11961         * sh.h (current_function_anonymous_args): Remove.
11962         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11963         of current_function_varargs and current_function_stdarg is set.
11964         * sh.c (sh_expand_prologue): Check current_function_varargs /
11965         current_function_stdarg / TARGET_SH5 instead of
11966         current_function_anonymous_args.
11967
11968         * sh64.h (TARGET_VERSION): Define.
11969
11970 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11971
11972         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11973         VRSAVE_REGNO on TARGET_ALTIVEC.
11974
11975 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11976
11977         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11978         bits of SImode const_int.
11979         (includes_rshift_p): Likewise.
11980         (print_operand): Call mask_operand and mask64_operand with correct
11981         mode.
11982         (rs6000_output_function_epilogue): Pad traceback table to word.
11983         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11984         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11985         mask64_operand with correct mode.
11986         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11987
11988 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11989
11990         PR debug/4461
11991         * varasm.c (get_pool_constant_mark): New.
11992         * rtl.h (get_pool_constant_mark): Add prototype.
11993         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11994         be represented if it has not been output.
11995
11996 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11997
11998         * combine.c (do_SUBST): Sanity check substitutions of
11999         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
12000         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
12001         CONST_INT into its operand.
12002         (known_cond): Likewise, for ZERO_EXTEND.
12003         * simplify-rtx.c (simplify_unary_operation): Fix condition to
12004         allow for simplification of wide modes.  Reject CONST_INTs in
12005         ZERO_EXTEND when their actual mode is not given.
12006
12007 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
12008
12009         * c-decl.c (pushdecl): If no global declaration is found for an
12010         extern declaration in block scope, try a limbo one.
12011
12012 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
12013
12014         PR c++/4401
12015         * c-common.c (pointer_int_sum): Moved from...
12016         * c-typeck.c (pointer_int_sum): ...here.
12017         * c-common.h (pointer_int_sum): Add prototype.
12018
12019 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
12020
12021         PR c++/5713
12022         * c-decl.c (duplicate_decls): Return 0 if issued error about
12023         redeclaration.
12024
12025 2002-02-20  Roger Sayle  <roger@eyesopen.com>
12026             Jakub Jelinek  <jakub@redhat.com>
12027
12028         PR c/4389
12029         * tree.c (host_integerp): Ensure that the constant integer is
12030         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
12031         when pos is zero or non-zero respectively.  Clarify comment.
12032         * c-format.c (check_format_info_recurse): Fix host_integerp
12033         usage; the pos argument should be zero when assigning to a
12034         signed HOST_WIDE_INT.
12035
12036 2002-02-20  Richard Henderson  <rth@redhat.com>
12037
12038         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
12039         of the operand, rather than assuming TImode.
12040         (ix86_expand_binop_builtin): Cope with commutative patterns
12041         using nonimmediate_operand for both operands.
12042         (ix86_expand_timode_binop_builtin): Likewise.
12043         (ix86_expand_store_builtin): Validate operand 1.
12044         (ix86_expand_unop1_builtin): Likewise.
12045
12046 2002-02-20  Philip Blundell  <philb@gnu.org>
12047
12048         PR 5705
12049         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
12050
12051 2002-02-20  Richard Henderson  <rth@redhat.com>
12052
12053         PR c/5615
12054         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
12055
12056 2002-02-20  Tom Tromey  <tromey@redhat.com>
12057
12058         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12059         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12060         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12061         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12062         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
12063         unconditionally.
12064
12065 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
12066
12067         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
12068           for (const_int 0) in X not just INTVAL.
12069
12070 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
12071
12072         * doc/extend.texi: Avoid or reduce overfull hboxes.
12073
12074 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
12075
12076         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
12077         operations if the field does not start at a mode boundary.
12078
12079 2001-02-20      Joel Sherrill <joel@OARcorp.com>
12080
12081         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
12082         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
12083         Also done for -Acpu and -Amachine.
12084
12085 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12086
12087         * cppinit.c (init_dependency_output): Take deps output file
12088         from -o if none given with -MF.  Suppress normal output.
12089         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
12090         * doc/cpp.texi, doc/invoke.texi: Update.
12091
12092 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
12093
12094         * toplev.c (output_quoted_string): Write unprintable
12095         characters with octal escapes.
12096
12097 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
12098
12099         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
12100         really_call_used[VRSAVE_REGNO] if not Altivec.
12101
12102 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
12103
12104         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
12105         MODE_MASK.
12106         (constant_pool_expr_1): Fix formatting.
12107         (rs6000_legitimize_reload_address): Likewise.
12108
12109 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12110
12111         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
12112         now that we have one.
12113
12114 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
12115
12116         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
12117         end of first block of bitfields (which was only seven bits);
12118         rename dummy to unused_1; remove comment which is no longer true.
12119
12120 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
12121
12122         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
12123
12124 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
12125
12126         PR 5399
12127         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
12128         if generating PIC.
12129
12130         PR 5054
12131         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
12132         arm_is_longcall_p rather than inspecting call-type cookie
12133         directly.
12134         (call_value_insn) [TARGET_THUMB]: Likewise.
12135
12136 2002-02-19  Graham Stott  <grahams@redhat.com>
12137
12138         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
12139
12140 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
12141
12142         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
12143         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
12144         (FP_SAVE_INLINE): Delete.
12145
12146         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
12147         * config/rs6000/eabi.asm: Remove ABI save restore routines.
12148         * config/rs6000/t-ppccomm: Build crtsavres.o.
12149         * config/rs6000/crtsavres.asm: New file.
12150
12151 2002-02-19  Philip Blundell  <philb@gnu.org>
12152
12153         * config/arm/arm.c (use_return_insn): Don't reject interrupt
12154         functions.
12155         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
12156         (output_return_instruction): Allow interrupt functions to return with
12157         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
12158         (arm_expand_prologue): Subtract 4 before stacking LR in an
12159         interrupt function.
12160
12161 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
12162
12163         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
12164         decl, not just FUNCTION_DECL.
12165         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
12166         (arm_assemble_integer): Likewise.
12167         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
12168         marked local.
12169
12170 2002-02-19  matthew green  <mrg@eterna.com.au>
12171
12172         * config.gcc (sparc-*-netbsdelf*): Enable target.
12173         (sparc64-*-netbsd*): New target.
12174         * config/sparc/netbsd-elf.h: New file.
12175         * config/sparc/t-netbsd64: New file.
12176
12177 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
12178
12179         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
12180
12181 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
12182
12183         * doc/invoke.texi: explicitly list the style guidelines that
12184         -Weffc++ checks for.
12185
12186 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
12187
12188         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
12189
12190 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12191
12192         PR other/5718
12193         * gcc.c (cpp_unique_options): Treat -o as indicating object file
12194         only if not -E.  If -E, pass -o through to the preprocessor.
12195
12196 2002-02-19  Kazu Hirata  <kazu@hxi.com>
12197
12198         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
12199         register number with an appropriate macro.
12200
12201 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12202
12203         * doc/rtl.texi (Constants): Close @code tag.
12204
12205 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
12206
12207         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
12208         ("mmx_uavgv4hi3"): Same.
12209         ("pmulhrwv4hi3"): Same.
12210
12211         * tree-inline.c (walk_tree): Handle vectors.
12212
12213         * c-common.c (constant_expression_warning): Handle vectors.
12214         (overflow_warning): Same.
12215
12216         * sched-deps.c (sched_analyze_2): Handle vectors.
12217
12218         * rtlanal.c (rtx_unstable_p): Handle vectors.
12219         (rtx_varies_p): Same.
12220         (count_occurrences): Same.
12221         (regs_set_between_p): Same.
12222         (modified_between_p): Same.
12223         (modified_in_p): Same.
12224         (volatile_insn_p): Same.
12225         (volatile_refs_p): Same.
12226         (side_effects_p): Same.
12227         (may_trap_p): Same.
12228         (inequality_comparisons_p): Same.
12229         (replace_regs): Same.
12230         (computed_jump_p_1): Same.
12231
12232         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
12233         argument.
12234         (inner_mode_array): New.
12235         (copy_rtx): Handle vectors.
12236         (copy_most_rtx): Same.
12237         (rtx_equal_p): Same.
12238         (get_mode_alignment): Adjust for vectors.
12239
12240         * resource.c (mark_referenced_resources): Handle vectors.
12241         (mark_set_resources): Same.
12242
12243         * reload1.c (eliminate_regs): Handle vectors.
12244         (elimination_effects): Same.
12245         (scan_paradoxical_subregs): Same.
12246
12247         * reload.c (subst_reg_equivs): Handle vectors.
12248
12249         * regrename.c (scan_rtx): Handle vectors.
12250
12251         * regclass.c (reg_scan_mark_refs): Handle vectors.
12252
12253         * recog.c (find_single_use_1): Handle vectors.
12254
12255         * local-alloc.c (equiv_init_varies_p): Handle vectors.
12256         (contains_replace_regs): Same.
12257         (memref_referenced_p): Same.
12258
12259         * integrate.c (copy_rtx_and_substitute): Handle vectors.
12260         (subst_constants): Same.
12261
12262         * genattrtab.c (attr_copy_rtx): Handle vectors.
12263         (encode_units_mask): Same.
12264         (clear_struct_flag): Same.
12265         (count_sub_rtxs): Same.
12266
12267         * gcse.c (want_to_gcse_p): Handle vectors.
12268         (oprs_unchanged_p): Same.
12269         (hash_expr_1): Same.
12270         (oprs_not_set_p): Same.
12271         (expr_killed_p): Same.
12272         (compute_transp): Same.
12273         (store_ops_ok): Same.
12274
12275         * function.c (purge_addressof_1): Do not allow paradoxical subregs
12276         of vectors.
12277         (fixup_var_refs_1): Same.
12278         (instantiate_virtual_regs_1): Same.
12279
12280         * fold-const.c (operand_equal_p): Handle vectors.
12281         (fold): Same.
12282         (rtl_expr_nonnegative_p): Same.
12283
12284         * flow.c (mark_used_regs): Handle vectors.
12285
12286         * df.c (df_uses_record): Handle vectors.
12287
12288         * cselib.c (cselib_subst_to_values): Handle vectors.
12289         (cselib_mem_conflict_p): Same.
12290         (hash_rtx): Same.
12291
12292         * cse.c (canon_reg): Handle vectors.
12293         (fold_rt): Same.
12294         (cse_process_notes): Same.
12295         (count_reg_usage): Same.
12296         (canon_hash): Same.
12297
12298         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12299
12300         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12301
12302         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12303         (gen_rtx): Handle CONST_VECTOR.
12304         (gen_const_vector_0): New.
12305         (copy_rtx_if_shared): CONST_VECTORs can be shared.
12306         (reset_used_flags): Same.
12307         (copy_insn_1): Same.
12308         (initializer_constant_valid_p): Handle VECTOR_CST.
12309
12310         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12311
12312         * doc/rtl.texi (Constants): Document const_vector.
12313         (CONST0_RTX): Update for vectors.
12314         (RTL sharing): Same.
12315
12316         * print-tree.c (print_node): Add case for VECTOR_CST.
12317
12318         * tree.h (TREE_VECTOR_CST_ELTS): New.
12319         (struct tree_vector): New.
12320         (union tree_node): Add vector node.
12321         (build_vector): Add prototype.
12322
12323         * tree.def (VECTOR_CST): New.
12324
12325         * tree.c (build_vector): New.
12326
12327         * expmed.c (make_tree): Handle CONST_VECTOR.
12328
12329         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12330         (CONST_VECTOR_ELT): New.
12331         (CONST_VECTOR_NUNITS): New.
12332
12333         * machmode.h (GET_MODE_INNER): New.
12334         (DEF_MACHMODE): Accept 8th arg.
12335
12336         * machmode.def: Add 8th argument for vector inner mode.
12337         Add inner vector modes for vectors.
12338
12339         * rtl.def (VEC_CONST): Remove.
12340         (CONST_VECTOR): New.
12341
12342         * expr.c (clear_storage): Allow vectors.
12343         (is_zeros_p): Handle VECTOR_CST.
12344
12345         * varasm.c (output_constant_pool): Handle vectors.
12346         (rtx_const): Add veclo and vechi fields.
12347         (kind): Add RTX_VECTOR.
12348         (decode_rtx_const): Add case for vector.
12349
12350         * config/rs6000/rs6000-protos.h: Add zero_constant.
12351
12352         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12353         constants.  Force easy vector constants into memory.
12354         (easy_vector_constant): New.
12355         (emit_easy_vector_constant): New.
12356         (rs6000_legitimize_reload_address): Do not generate bad reloads on
12357         darwin.
12358
12359         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12360         instruction does.
12361         ("altivec_lvxl"): Same.
12362         (altivec_lvebx): Same.
12363         (altivec_lvehx): Same.
12364         (altivec_lvewx): Same.
12365         ("*movv4si_const0"): New.
12366         ("*movv4sf_const0"): New.
12367         ("*movv8hi_const0"): New.
12368         ("*movv16qi_const0"): New.
12369
12370 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12371
12372         * config/h8300/h8300.c (notice_update_cc): Use
12373         cc_status.value2.
12374
12375 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12376
12377         * config/h8300/h8300.md (divmod patterns): Change the
12378         constraints for operands[1] to register_operand.
12379
12380 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12381
12382         * config/h8300/h8300-protos.h: Remove the prototype for
12383         p_operand.
12384         * config/h8300/h8300.c (p_operand): Remove.
12385         * config/h8300/h8300.md: Replace p_operand with
12386         const_int_operand.
12387
12388 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12389
12390         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12391         comment.
12392         (output_return_instruction): Allow use of LDR to unstack
12393         return addresss even for interrupt handlers or when
12394         interworking.  If compiling for ARMv5, use interworking-safe
12395         return instructions by default.  Remove duplicated code and
12396         lengthy "strcat" sequences.
12397
12398 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12399
12400         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12401         (LINK_EH_SPEC): Define.
12402         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12403
12404 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
12405
12406         * config/s390/s390.c (s390_emit_prologue): Do not set the
12407         frame_related flag for call-clobbered registers.
12408
12409 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12410
12411         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12412         (construct_container): Fix handling of SSE operands.
12413         (ix86_expand_builtin): Fix handling of 64bit pointers.
12414         (mmx_maskmovq_rex): New pattern.
12415
12416 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12417
12418         * regrename.c (kill_set_value): Handle subregs properly.
12419
12420 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
12421
12422         * objc/objc-act.c (handle_impent): Remove leading '*'
12423         from objc_class_name.
12424
12425 2002-02-17  Richard Henderson  <rth@redhat.com>
12426
12427         * config/alpha/alpha.c (some_small_symbolic_operand,
12428         some_small_symbolic_operand_1, split_small_symbolic_operand,
12429         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12430         Handle small SYMBOL_REFs anywhere, not just inside memories.
12431         * config/alpha/alpha-protos.h: Update.
12432         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12433         * config/alpha/alpha.md (small symbolic operand splitter): Update.
12434
12435 2002-02-17  Roland McGrath  <roland@frob.com>
12436
12437         * config.gcc (powerpc-*-gnu-gnualtivec*,
12438         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12439         * config/rs6000/gnu.h: New file.
12440         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12441         Grok "gnu" in rs6000_abi_name.
12442         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12443         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12444         Grok -mcall-gnu analogous to -mcall-linux et al.
12445         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12446         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12447         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12448
12449 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
12450
12451         PR c/3444:
12452         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12453         shortening.
12454
12455 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12456
12457         * config/cris/cris.h: Undefine STARTFILE_SPEC and
12458         ENDFILE_SPEC before (re)defining them.
12459
12460 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12461
12462         * config/h8300/h8300.c: Fix formatting.
12463         * config/h8300/h8300.h: Likewise.
12464
12465 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12466
12467         * doc/tm.texi: Explain why empty strings should not be
12468         marked for translation.
12469
12470 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12471
12472         * final.c (output_operand_lossage): Changed to accept
12473         printf style arguments. Change calls where necessary.
12474         * output.h (output_operand_lossage): Change declaration
12475         accordingly. Update copyright.
12476         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12477         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12478         Update copyright date where necessary.
12479
12480         * config/i386/i386.c (print_operand): Likewise. Remove use of
12481         sprintf.
12482
12483         * config/cris/cris.c (cris_operand_lossage): Likewise.
12484         Rename parameter so that exgettext recognizes it as
12485         translatable message.
12486         (LOSE_AND_RETURN): Rename parameter to msgid.
12487
12488 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12489
12490         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12491         hard coded register number with an appropriate macro.
12492         (HARD_REGNO_MODE_OK): Likewise.
12493         (ARG_POINTER_REGNUM): Likewise.
12494         (STATIC_CHAIN_REGNUM): Likewise.
12495         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12496         * config/h8300/h8300.md (define_constants): Define more
12497         register numbers.
12498
12499 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12500
12501         * config/i386/i386.h: Don't mark empty strings for translation.
12502
12503 2002-02-16  H.J. Lu <hjl@gnu.org>
12504
12505         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12506
12507 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
12508
12509         * cppinit.c (merge_include_chains): Check for brack being
12510         NULL before attempting to merge it with qtail.
12511
12512 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12513
12514         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12515         DBX_DEBUG.
12516
12517 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12518
12519         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12520
12521 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12522
12523         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12524         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12525         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12526
12527 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12528
12529         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12530         now only if !TARGET_FIX.
12531         (*movsi_nt_vms_fix): New pattern.
12532
12533 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
12534
12535         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12536         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12537         (alpha_sa_mask, alpha_sa_size): Reflect above change.
12538         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12539         (alpha_start_function, alpha_expand_epilogue): Likewise.
12540         (unicosmk_gen_dsib): Likewise.
12541
12542 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12543
12544         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12545
12546 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
12547
12548         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12549         check_and_change_labels, s390_final_chunkify): Delete.
12550         (s390_split_branches, s390_chunkify_pool): New functions.
12551         (s390_function_prologue): Call them.
12552
12553         * config/s390/s390.h (S390_REL_MAX): Delete.
12554         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12555
12556         * config/s390/s390.md (cjump, icjump, jump): Fix length
12557         attribute calculation.
12558
12559
12560 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12561
12562         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12563         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12564
12565 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12566
12567         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12568         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12569         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12570
12571 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12572
12573         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12574
12575 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12576
12577         * reload.c (find_dummy_reload): Check that an output register
12578         is valid for its mode.
12579
12580 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12581
12582         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12583         to simplify it.
12584
12585         * function.c (assign_parms): Demote promoted argument passed by
12586         transparent reference.
12587
12588 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12589
12590         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12591         -Acpu() and -Amachine() to eliminate warnings.
12592
12593 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12594
12595         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12596
12597 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12598
12599         * config/h8300/h8300-protos.h: Update the prototype for
12600         const_costs.
12601         * config/h8300/h8300.c (const_costs): Treat SET as a little
12602         more expensive operation.
12603         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12604         reference to const_costs.
12605
12606 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12607
12608         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12609
12610 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12611
12612         PR c/5503:
12613         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12614         use arguments from newtype.
12615
12616 2002-02-13  Eric Christopher  <echristo@redhat.com>
12617
12618         * config/mips/mips.c (override_options): Add check for march/mipsX
12619         on the same command line. Fix error message in cpu processing.
12620         Remove architecture and ISA checks.
12621
12622 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12623
12624         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12625
12626         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12627
12628 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12629
12630         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12631         alternatives.
12632         ("*movv8hi_internal1"): Same.
12633         ("*movv16qi_internal1"): Same.
12634         ("*movv4sf_internal1"): Same.
12635
12636         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12637         not push_reload for altivec modes.
12638
12639 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12640
12641         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12642         all RTEMS targets including removal of #includes from config/*/rtems*.h
12643         file and adding them to tm_file setting. Added xm_defines=POSIX to
12644         many targets.
12645         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12646         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12647         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12648         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12649         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12650         config/m68k/rtemself.h: Ditto.
12651         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12652         config/mips/rtems64.h: Ditto.
12653         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12654         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12655         Ditto.
12656         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12657         config/sparc/rtemself.h: Ditto.
12658         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12659         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12660         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12661         more like arm-elf.
12662         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12663         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12664         target made more similar to i386-elf.
12665         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12666         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12667         be similar to config/m68k/t-m68kelf.
12668         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12669
12670 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12671
12672         * regmove.c (kill_value): Handle subregs.
12673
12674 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12675
12676         * i386.md (mul patterns): Allow memory operand to be first;
12677         add expanders where needed; fix constraints.
12678         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12679         Allow memory operand to be the first.
12680
12681         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12682         operands.
12683
12684 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12685
12686         PR c/5681:
12687         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12688         GET_MODE (x).
12689
12690 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12691
12692         PR optimization/5547:
12693         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12694         all valid IA-32 address modes involving non-scaled %ebx and
12695         GOT/GOTOFF as displacement.
12696
12697 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12698
12699         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12700         after emitting ltorg insns.
12701
12702         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12703         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12704         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12705         *abssf2): Fix "op_type" attribute.
12706
12707 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12708
12709         * mkconfig.sh: Avoid using a subshell redirect.
12710         ($output.T): Change to $(output)T.
12711         (ENABLE_NLS): Remove unneeded undef.
12712
12713         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12714         * config/alpha/x-vms (libsubdir): Define.
12715
12716         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12717         register frame procedures. Optimize retrieving context.
12718
12719         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12720         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12721         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12722
12723 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12724
12725         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12726         Make same change as for find_base_value.
12727
12728 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12729
12730         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12731         of QImode and SImode.
12732
12733 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12734
12735         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12736         length computation of movsi.
12737         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12738
12739 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12740
12741         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12742         operands[2] to register_operand.
12743
12744 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12745
12746         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12747
12748 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12749
12750         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12751         for altivec_lvx* and altivec_stvx*.
12752         ("*movv4si_internal"): Add constraint for loading from GPRs.
12753         ("*movv8hi_internal1"): Same.
12754         ("*movv16qi_internal1"): Same.
12755         ("*movv4sf_internal1"): Same.
12756
12757         * config/rs6000/rs6000.c (altivec_register_operand): New.
12758
12759         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12760         altivec_register_operand.
12761
12762 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12763
12764         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12765         handle SYMBOL_REF.
12766
12767 2002-02-13  Stan Shebs  <shebs@apple.com>
12768
12769         * c-typeck.c (digest_init): Handle vectors.
12770         (really_start_incremental_init): Same.
12771         (pop_init_level): Same.
12772         (process_init_element): Same.
12773
12774         * varasm.c (output_constant): Same.
12775
12776         * expr.c (clear_storage): Same.
12777         (store_constructor): Same.
12778
12779 2002-02-12  Eric Christopher  <echristo@redhat.com>
12780
12781         * explow.c (hard_function_value): Add comment explaining
12782         signed/unsigned comparison.
12783
12784 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12785
12786         * jump.c (never_reached_warning): Add finish argument.
12787         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12788         real insn after end.
12789         * rtl.h (never_reached_warning): Adjust prototype.
12790         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12791         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12792         never_reached_warning.
12793
12794 2002-02-12  Graham Stott  <grahams@redhat.com>
12795
12796         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12797
12798 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12799
12800         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12801         logical shifts on H8/300.
12802         (shift_alg_si): Improve several shifts on H8/300.
12803         (get_shift_alg): Likewise.
12804
12805 2002-02-12  Graham Stott  <grahams@redhat.com>
12806
12807         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12808
12809 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12810
12811         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12812         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12813
12814 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12815
12816         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12817         non-CONST_INT through default_assemble_integer.
12818         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12819         <case 8>: Abort for CONST_DOUBLE.
12820
12821 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12822
12823         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12824         is specified.
12825         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12826         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12827
12828 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12829
12830         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12831
12832 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12833
12834         * regrename.c (regrename_optimize): Don't accept a
12835         part-clobbered register if the replaced register is not part
12836         clobbered.
12837
12838         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12839         take padding into account when computing the argument value.
12840
12841         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12842
12843         * combine.c (try_combine): Apply substitutions in
12844         CALL_INSN_FUNCTION_USAGE too.
12845
12846 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12847
12848         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12849         __builtin_altivec_abs*.
12850         (bdesc_abs): New.
12851
12852         * config/rs6000/rs6000.h (rs6000_builtins): Add
12853         ALTIVEC_BUILTIN_ABS*.
12854
12855         * config/rs6000/altivec.h: Use const char for builtins expecting
12856         literals.
12857         (vec_abs): New versions for C and C++.
12858         (vec_abss): Same.
12859
12860 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12861
12862         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12863         using Pmode.
12864
12865 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12866
12867         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12868         constant definition from h8300.md.
12869         (FRAME_POINTER_REGNUM): Likewise.
12870         * config/h8300/h8300.md (define_constants): Add FP_REG.
12871
12872 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12873
12874         * config/h8300/h8300.c (print_operand): Remove redundant code.
12875
12876 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12877
12878         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12879         * config/h8300/h8300.c (byte_reg): Make it static.
12880
12881 2002-02-10  Richard Henderson  <rth@redhat.com>
12882
12883         PR c/5623
12884         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12885
12886 2002-02-10  Richard Henderson  <rth@redhat.com>
12887
12888         PR c++/5624
12889         * tree.c (append_random_chars): Don't abort if main_input_filename
12890         does not exist.
12891
12892 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12893
12894         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12895
12896 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12897
12898         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12899         (pushhi1): Likewise.
12900
12901 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12902
12903         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12904         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12905
12906 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12907
12908         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12909         remove MASK_VIS.
12910         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12911
12912 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12913
12914         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12915         a half of an SImode register on H8/300.
12916
12917 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12918
12919         * i386.md (movdi_2): Add missing '!'.
12920
12921 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12922
12923         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12924         definitions.
12925
12926 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12927
12928         * config/h8300/h8300.md (length): Correct the distance valid
12929         for the short branch.
12930
12931 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12932
12933         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12934
12935 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12936
12937         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12938         registers in SImode.
12939         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12940         part-clobbered.
12941
12942         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12943         patch.
12944
12945         Contribute sh64-elf.
12946         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12947         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12948         (sh_cannot_modify_jumps_p): New function.
12949         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12950         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12951         (sh_ms_bitfield_layout_p): New function.
12952         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12953                     Zack Weinberg  <zack@codesourcery.com>
12954         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12955         expand_simple_binop instead of expand_binop.
12956         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12957         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12958         use of .quad and .uaquad.
12959         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12960         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12961         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12962         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12963         movdi_const_16bit): Make sure all CONSTs have modes.
12964         (sym2PIC): Ditto, but by adjusting all callers.
12965         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12966         if the prologue calls the SHmedia argument decoder or register
12967         saver.
12968         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12969         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12970         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12971         (sh_expand_epilogue): Don't emit USE of return target register.
12972         (prepare_move_operands): Legitimize DImode PIC addresses.
12973         (sh_media_register_for_return): Skip tr0, used to initialize the
12974         PIC register.
12975         (sh_expand_prologue): Remove explicit USE of return register.
12976         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12977         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12978         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12979         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12980         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12981         EXTRA_CONSTRAINT_T.
12982         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12983         (MOVI_SHORI_BASE_OPERAND_P): New.
12984         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12985         (EXTRA_CONSTRAINT_T): Define in terms of them.
12986         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12987         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12988         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12989         alternatives supporting TARGET_REGS.
12990         (UNSPEC_GOTPLT): New constant.
12991         (movdi split): Move incrementing of LABEL_NUSES...
12992         (movdi_const, movdi_const_32bit): Here.  Use
12993         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12994         (movdi_const_16bit): New.
12995         (call, call_value) [flag_pic]: Use GOTPLT.
12996         (call_pop, call_value_pop): New expands.
12997         (call_pop_compact, call_pop_rettramp): New insns.
12998         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12999         (sibcall) [flag_pic]: Use GOT.
13000         (builtint_setjmp_receiver): Remove bogus, unused expand.
13001         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
13002         (*pt, *ptb, ptrel): New insns.
13003         (sym2GOT): Handle DImode GOT.
13004         (sym2GOTPLT, symGOTPLT2reg): New expands.
13005         (sym2PIC): New expand.
13006         (shcompact_return_tramp): Use GOTPLT to return trampoline.
13007         (shcompact_return_tramp_i): Use return register explicitly.
13008         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
13009         disable flag_reorder_blocks.
13010         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
13011         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
13012         clobbers, for clarity.
13013         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
13014         restoring of r0 in macl as MAYBE_DEAD.
13015         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
13016         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
13017         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
13018         alter_subreg all over.
13019         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
13020         reload, instead of emitting instructions that would require
13021         reloading.
13022         (casesi_load_media): Add missing modes.
13023         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
13024         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
13025         as used if the argument decoder is called.
13026         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
13027         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
13028         Pmode, then extend it to DImode if necessary.
13029         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
13030         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
13031         constants in FPU-enabled SHmedia, let them be loaded from memory.
13032         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
13033         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
13034         Adjust whitespace in assembly output templates.
13035         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
13036         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
13037         mode of if_then_else.
13038         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
13039         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
13040         sh.h.
13041         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
13042                     Joern Rennecke <amylaar@redhat.com>
13043         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
13044         (SUBTARGET_CPP_PTR_SPEC): New.
13045         (SUBTARGET_CPP_SPEC): Remove.
13046         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
13047         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
13048         Fix typo in previous checkin.
13049         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
13050         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
13051         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
13052                     Alexandre Oliva  <aoliva@redhat.com>
13053         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
13054         what single FP register can hold for SHmedia target.
13055         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
13056                     Alexandre Oliva  <aoliva@redhat.com>
13057         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
13058         Do not split into SUBREG.
13059         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
13060         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
13061         and added new functions as specified in SH5 ABI r9.
13062         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
13063         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
13064         8-byte boundary.
13065         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
13066         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
13067         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
13068         and consttable_window_ends.
13069         2001-06-03  Graham Stott  <grahams@redhat,com>
13070         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
13071         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
13072         * config/sh/sh.c (print_operand): Handle floating-point pair,
13073         vector and matrix registers.
13074         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
13075         vector modes into account.
13076         * config/sh/sh.md (movv2sf): Split move between registers into
13077         movdf.
13078         (movv4sf, movv16sf): Introduce insns that get split only after
13079         reload.
13080         * config/sh/shmedia.h: Fix Copyright dates.
13081         * config/sh/ushmedia.h: Likewise.  Move loop counter
13082         declarations into conditionals that uses them.
13083         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
13084         loop boundary.
13085         * config/sh/sshmedia.h: Fix Copyright dates.
13086         (sh_media_PUTCFG): Fix constraints.
13087         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
13088         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
13089         ptrmemfunc_vbit_in_delta for SH5.
13090         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
13091         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
13092         * invoke.texi: Likewise.
13093         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
13094         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
13095         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
13096         GCC_pop_shmedia_regs_nofpu): New global symbols.
13097         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
13098         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
13099         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
13100         compact function with nonlocal labels.
13101         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
13102         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
13103         (initial_elimination_offset): Account for their stack space.
13104         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
13105         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
13106         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
13107         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
13108         least one of the operands to be a register.
13109         (movv2sf): Likewise.  Renamed to movv2sf_i.
13110         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
13111         prepare_move_operands() before emitting SHmedia insns.
13112         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
13113         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
13114         Don't save nor initialize r12.  Don't mis-align the stack.
13115         Pad the code with a nop.
13116         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
13117         stack.
13118         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
13119         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
13120         [__SHMEDIA__]: Implement.
13121         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
13122         * config/sh/sh.md: Set latency of `pt' closer to reality.
13123         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
13124         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
13125         Set move, load and store type attributes.
13126         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
13127         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
13128         profiling.
13129         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
13130         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
13131         * config/sh/sh.c (sh_media_register_for_return): New function.
13132         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
13133         branch-target register.
13134         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
13135         * config/sh/sh.md (return_media_i): Use any call-clobbered
13136         branch-target register.
13137         (return_media): If r18 wasn't copied in the prologue, copy it
13138         here.
13139         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
13140         Clear class FP0_REGS.
13141         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
13142         from elf.h.
13143         2001-03-08  DJ Delorie  <dj@redhat.com>
13144         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
13145         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
13146         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
13147         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
13148         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
13149         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
13150         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
13151         return value correctly for call_cookie.
13152         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
13153         * config/sh/crt1.asm (start): Modified so as to call
13154         ___setup_argv_and_call_main.
13155         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
13156         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
13157         SHmedia mode.
13158         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
13159         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
13160         (STRIP_NAME_ENCODING): Use it.
13161         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
13162         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
13163         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
13164         prepare_scc_operands().
13165         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
13166         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
13167         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
13168         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
13169         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
13170         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
13171         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
13172         used in shcompact_incoming_args.
13173         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
13174         change.
13175         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
13176         mode.
13177         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
13178         Adjust accordingly.
13179         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
13180         Simplify.  Adjust.  Add sanity check.
13181         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
13182         FPU_SINGLE_BIT.
13183         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
13184         TARGET_SHCOMPACT.
13185         (udivsi3, divsi3): Use them.
13186         (force_mode_for_call): New insn.
13187         (call, call_value, sibcall_value): Emit it before SHcompact
13188         calls.
13189         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
13190         * config/sh/sh.md (call, call_value, sibcall): Make sure the
13191         call cookie is non-NULL before taking its value.
13192         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
13193         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
13194         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
13195         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
13196         block.
13197         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
13198         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
13199         temporary for stack adjusts.  Use MACL and MACH to pass
13200         arguments to shcompact_incoming_args.
13201         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
13202         clobber r1.
13203         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
13204         (nested_trampoline): Load static chain address into r1.
13205         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
13206         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
13207         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
13208         fp_arith_reg_operand().
13209         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
13210         * config/sh/sh.md (casesi): Sign-extend the first two operands,
13211         and use signed compares for them.
13212         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
13213         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
13214         ones properly aligned.
13215         (find_barrier): Account for extra alignment needed for 8-byte wide
13216         constants.
13217         (machine_dependent_reorg): Require a label for the second 4-byte
13218         constant after an 8-byte one.
13219         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
13220         change.
13221         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13222         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
13223         last_float when switching float modes.
13224         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
13225         auto-increment for general-purpose registers.
13226         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
13227         result.
13228         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
13229         for stack adjust.
13230         * config/sh/sh.c (sh_builtin_saveregs): Support using all
13231         registers for varargs.
13232         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
13233         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
13234         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
13235         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
13236         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
13237         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
13238         call_cookie accordingly.
13239         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
13240         (SHCOMPACT_BYREF): Likewise.
13241         (SHCOMPACT_FORCE_ON_STACK): New macro.
13242         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
13243         (sh_builtin_saveregs): Likewise.
13244         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13245         shcompact_incoming_args): Use new shift values.  Support
13246         sequences of consecutive and non-consecutive pushes/pops.
13247         * config/sh/sh.md (return): Don't explicitly use PR_REG.
13248         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
13249         * config/sh/sh.h (TEXT_SECTION): Define.
13250         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13251         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13252         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13253         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13254         return values on FPU-enabled SHmedia.
13255         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13256         FPU-enabled SHmedia.
13257         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13258         value is returned in a non-FP reg and is not returned by
13259         reference.
13260         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13261         jump_ind.
13262         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
13263         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13264         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13265         quad-aligned to be passed by callee-copy reference.
13266         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
13267         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13268         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13269         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
13270         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13271         copying low-numbered FP regs to r7 and r8.
13272         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13273         FP regs to general-purpose regs only if the copy was passed on the
13274         stack.
13275         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13276         copying FP reg to r9.
13277         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13278         copy FP regs to general-purpose regs only in outgoing calls.
13279         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13280         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
13281         HOST_WIDE_INT.
13282         * config/sh/sh.h (struct sh_args): Document all fields.
13283         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13284         passed partially on the stack should not consider making
13285         sibcalls.
13286         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13287         stack_regs only for incoming calls.  When passing FP args,
13288         make sure there are FP regs available before modifying
13289         call_cookie.
13290         (SHCOMPACT_BYREF): Pass double args in general-purpose
13291         registers by reference.
13292         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
13293         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13294         attempt to generate sibcalls if the caller got any arguments
13295         by reference.
13296         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13297         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13298         to 8-byte boundaries.
13299         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13300         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13301         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13302         stored in the stack.
13303         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13304         for the offsets to have the ISA bit set.
13305         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
13306         invocation.  Use beq instead of bgt to mark end of sequence of
13307         loads.
13308         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
13309         bgt to mark end of sequence of stores.
13310         * config/sh/sh.c (arith_operand): Don't check whether
13311         CONST_OK_FOR_J for now.
13312         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13313         instead of long for conversion.
13314         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
13315         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13316         before passing it to fprintf.
13317         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
13318         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13319         Call set_fpscr before reading/writing SR.
13320         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13321         Call set_fpscr.
13322         * config/sh/lib1funcs.asm: Add `.align 2' directives before
13323         SHmedia code.
13324         (FMOVD_WORKS): Define on SH5 with FPU.
13325         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
13326         setting.
13327         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13328         _fpscr_values.
13329         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
13330         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13331         address.
13332         (ia_main_table): Ditto.
13333         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
13334         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13335         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13336         the definitions from sh.h.
13337         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13338         TARGET_SH5.
13339         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13340         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13341         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13342         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
13343         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13344         Increment LABEL_NUSES.
13345
13346         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13347         TARGET_SH5.
13348         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13349         defined.
13350         * config/sh/elf.h (SIZE_TYPE): Likewise.
13351         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13352         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13353         shcompact_incoming_args): Load switch table addresses using
13354         datalabel.
13355         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13356         (NO_BUILTIN_SIZE_TYPE): Define.
13357         (SIZE_TYPE): Don't define.
13358         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13359         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13360         definition of __SH5__=32 for -m5-compact-nofpu.
13361         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13362         ADDR_DIFF_VEC.
13363         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
13364         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13365         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
13366         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13367         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13368         (INSN_LENGTH_ALIGNMENT): Likewise.
13369         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13370         * config/sh/sh.md (call, call_value, sibcall): Simplify
13371         copying of non-branch-target register.
13372         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13373         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
13374         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13375         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13376         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13377         floating-point values as structs.
13378         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13379         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13380         general-purpose register.
13381         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13382         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13383         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13384         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13385         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13386         (ENCODE_SECTION_INFO): Enclose variables and constants in
13387         DATALABEL unspecs.
13388         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13389         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13390         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13391         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13392         only for LABEL_REFs.  For SYMBOL_REFs, prepend
13393         SH_DATALABEL_ENCODING to the symbol name.
13394         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13395         convert_mode().
13396         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13397         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13398         UNSPEC_DATALABEL.
13399         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13400         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13401         (DATALABEL_REF_P): Don't require CONST.
13402         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13403         REL label.
13404         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
13405         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13406         right.
13407         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13408         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13409         Use shallow_copy_rtx and PUT_MODE to change the mode of
13410         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13411         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13412         on SHmedia using GENERAL_REGs.
13413         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13414         bltu_media_i): Fix reversion of conditions.
13415         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13416         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13417         * config/sh/sh.c (output_far_jump): Save r13 in macl.
13418         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
13419         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13420         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13421         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13422         (GCC_nested_trampoline): Likewise.
13423         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13424         * config/sh/sh.c (gen_datalabel_ref): Define.
13425         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13426         (INITIALIZE_TRAMPOLINE): Likewise.
13427         (TRAMPOLINE_ADJUST_ADDRESS): Define.
13428         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13429         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13430         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13431         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13432         (ic_invalidate): Adjust for SH5.
13433         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13434         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13435         _nested_trampoline.
13436         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
13437         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13438         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13439         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13440         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13441         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13442         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13443         * config/sh/sh.c (target_reg_operand): Match only target-branch
13444         registers and pseudos that aren't virtual registers.
13445         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13446         Copy operands that don't match target_reg_operand to pseudos.
13447         (call_media, call_value_media, sibcall_media): Use
13448         target_reg_operand instead of target_operand.
13449         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
13450         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13451         * config/sh/sh.c (target_reg_operand): Match hardware registers
13452         other than branch-target registers.
13453         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13454         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13455         (fpscr_values) [SH5 == 32]: Define.
13456         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13457         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13458         Handle function addresses coming in SUBREGs.
13459         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
13460         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13461         shcompact_return_trampoline): Use datalabel where appropriate.
13462         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
13463         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13464         general-purpose register to copy one branch-target register to
13465         another.
13466         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13467         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13468         SYMBOL_REFs with VOIDmode.
13469         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13470         bltu_media_i): New insns.
13471         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13472         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13473         (INIT_CUMULATIVE_ARGS): Likewise.
13474         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13475         * machmode.def (V16SFmode): New mode.
13476         * c-common.c (type_for_mode): Support V2SF and V16SF.
13477         * tree.c (build_common_tree_nodes_2): Likewise.
13478         * tree.h (tree_index): Likewise.
13479         * calls.c (emit_call_1): Take args_so_far.  Adjust all
13480         callers.  Introduce CALL_POPS_ARGS.
13481         * tm.texi (CALL_POPS_ARGS): Document.
13482         * config/sh/crt1.asm: Implement in SHmedia mode.
13483         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13484         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13485         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13486         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13487         Implement divsi and udivsi in SHmedia mode.  Introduce
13488         SHcompact trampolines.
13489         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13490         only in SHmedia64.
13491         (regno_reg_class): Rewrite.
13492         (fp_reg_names): Remove.
13493         (sh_register_names, sh_additional_register_names): New.
13494         (print_operand): Added `u'.  Support SUBREGs in addresses.
13495         Add parentheses around shifted CONSTs.
13496         (output_file_start): Output .mode and .abi directives.
13497         (shiftcosts, addsubcosts, multcosts): Adjust.
13498         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
13499         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
13500         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
13501         bytes, not registers.  Take into account the need for the
13502         SHcompact incoming args trampoline.  Adjust all callers.
13503         (sh_expand_prologue): Take stack_regs into account.  Call
13504         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
13505         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
13506         stack aligned as per SH5 ABI.
13507         (sh_builtin_saveregs): Support SH5 ABI.
13508         (sh_build_va_list, sh_va_start): Likewise.
13509         (initial_elimination_offset): Take alignment into account.
13510         Compute location of PR according to the SH5 stack frame.
13511         (arith_reg_operand): Reject branch-target registers.
13512         (shmedia_6bit_operand): New.
13513         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13514         (target_reg_operand): Match DImode only.  Accept SUBREGs.
13515         (target_operand): New.
13516         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13517         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
13518         SIBCALL_REGS for SHmedia.
13519         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13520         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13521         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13522         (TARGET_SWITCHES): New SH5 flags.
13523         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
13524         VALID_REGISTER_P to disable unsupported registers.
13525         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13526         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13527         (FUNCTION_ARG_PADDING): Define.
13528         (FASTEST_ALIGNMENT): Adjust.
13529         (SH_REGISTER_NAMES_INITIALIZER): New.
13530         (sh_register_names): Declare.
13531         (DEBUG_REGISTER_NAMES): Define.
13532         (REGISTER_NAMES): Define based on sh_register_names.
13533         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13534         (sh_additional_register_names): Declare.
13535         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13536         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13537         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13538         (REGISTER_NATURAL_MODE): Define.
13539         (FIRST_PSEUDO_REGISTER): Adjust.
13540         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13541         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13542         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13543         (VECTOR_MODE_SUPPORTED_P): Define.
13544         (REG_CLASS_CONTENTS): Adjust.
13545         (SMALL_REGISTER_CLASSES): Adjust.
13546         (REG_ALLOC_ORDER): Adjust.
13547         (INDEX_REG_CLASS): Adjust.
13548         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13549         (CONST_OK_FOR_LETTER_P): Adjust.
13550         (PREFERRED_RELOAD_CLASS): Adjust.
13551         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13552         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13553         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13554         (FIRST_FP_PARM_REG): Adjust.
13555         (CALL_POPS_ARGS): Define.
13556         (FUNCTION_ARG_REGNO_P): Adjust.
13557         (struct sh_args): New fields.
13558         (GET_SH_ARG_CLASS): Adjust.
13559         (INIT_CUMULATIVE_ARGS): Adjust.
13560         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13561         (FUNCTION_ARG_ADVANCE): Adjust.
13562         (FUNCTION_ARG): Adjust.
13563         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13564         (FUNCTION_ARG_CALLEE_COPIES): Define.
13565         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13566         (STRICT_ARGUMENT_NAMING): Define.
13567         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13568         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13569         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13570         (SETUP_INCOMING_VARARGS): Adjust.
13571         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13572         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13573         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13574         (SUBREG_OK_FOR_INDEX_P): Adjust.
13575         (EXTRA_CONSTRAINT_S): Update.
13576         (EXTRA_CONSTRAINT_T): New.
13577         (EXTRA_CONSTRAINT): Adjust.
13578         (GO_IF_LEGITIMATE_INDEX): Adjust.
13579         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13580         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13581         (MOVE_MAX): Adjust.
13582         (MAX_MOVE_MAX): Define.
13583         (Pmode): Adjust.
13584         (CONST_COSTS): Adjust.
13585         (REGISTER_MOVE_COST): Adjust.
13586         (BRANCH_COST): Adjust.
13587         (TEXT_SECTION_ASM_OP): Adjust.
13588         (DBX_REGISTER_NUMBER): Adjust.
13589         (ASM_OUTPUT_DOUBLE_INT): New.
13590         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13591         (PREDICATE_CODES): Adjust.
13592         (PROMOTE_MODE): Adjust.
13593         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13594         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13595         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13596         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13597         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13598         (TR0_REG, TR1_REG, TR2_REG): New.
13599         (XD0_REG): Renumber.
13600         (UNSPEC_COMPACT_ARGS): New.
13601         (type): Added pt and ptabs.
13602         (length): Default to 4 on SHmedia.  Default pt length to 12
13603         and     20 on SHmedia32 and SHmedia64, respectively.
13604         (pt): New function unit.
13605         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13606         Add whitespace between operands of SHmedia instructions.
13607         (movdicc): Fix.
13608         (adddi3_media, addsi3_media): Adjust constraints.
13609         (subsi3) [SHmedia]: Force operand 1 into a register.
13610         (udivsi3_i1_media, udivsi3_i4_media): New.
13611         (udivsi3): Support SHmedia.
13612         (divsi3_i1_media, divsi3_i4_media): New.
13613         (divsi3): Support SHmedia.
13614         (anddi3, iordi3, xordi3): Adjust constraints.
13615         (zero_extendhidi2, zero_extendqidi2): New.
13616         (extendsidi2, extendhidi2, extendqidi2): New.
13617         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13618         (pop_e, pop_fpul, pop_4): Likewise.
13619         (movsi_media): Support FP and BT registers.
13620         (movsi_media_nofpu): New.  Adjust splits to DImode.
13621         (lduw, ldub): Renamed to zero_extend* above.
13622         (movqi_media): Fix typo.
13623         (movdi_media): Support FP and BT registers.
13624         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13625         (movdi_const_32bit): New.
13626         (shori_media): Require immediate operand.  Use `u' for output.
13627         (movdf_media, movsf_media): Simplified.
13628         (movdf_media_nofpu, movsf_media_nofpu): New.
13629         (movdf, movsf): Adjust
13630         (movv2sf, movv2sf, movv16sf): New.
13631         (beq_media, beq_media_i): Adjust constraints.  Don't use
13632         scratch BT register.
13633         (bne_media, bne_media_i): Likewise.
13634         (bgt_media, bgt_media_i): Likewise.
13635         (bge_media, bge_media_i): Likewise.
13636         (bgtu_media, bgtu_media_i): Likewise.
13637         (bgeu_media, bgeu_media_i): Likewise.
13638         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13639         bunordered): Emit jump insn.  Force operands to registers when
13640         needed.
13641         (jump_media, jump): Simplify.
13642         (call_compact, call_compact_rettramp): New.
13643         (call_value_compact, call_value_compact_rettramp): New.
13644         (call_media, call_value_media): Simplify.
13645         (sibcall_compact, sibcall_media): New.
13646         (call, call_value): Adjust for SHmedia and SHcompact.
13647         (sibcall, sibcall_value, untyped_call): Likewise.
13648         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13649         (indirect_jump): Adjust for SHmedia.
13650         (casesi_jump_media): New.
13651         (nop): Re-enable for SHmedia.
13652         (call_site): Restrict to SH1.
13653         (casesi): Adjust for SHmedia.
13654         (casesi_shift_media, casesi_load_media): New.
13655         (return): Explicitly use PR register.  Call return trampoline
13656         on SHcompact.
13657         (return_i): Explicitly use PR register.
13658         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13659         (return_media): Adjust.
13660         (shcompact_incoming_args): New.
13661         (epilogue): Adjust.
13662         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13663         (movstrsi): Disable on SH5.
13664         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13665         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13666         (subsf3, subsf3_media): Likewise.
13667         (mulsf3, mulsf3_media, mac_media): Likewise.
13668         (divsf3, divsf3_media): Likewise.
13669         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13670         (floatsisf2, fux_truncsfsi2): Likewise.
13671         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13672         constraints.
13673         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13674         (cmpunsf_media, cmpsf): Likewise.
13675         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13676         (abssf2, abssf2_media): Likewise.
13677         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13678         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13679         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13680         (floatsidf2, fix_truncdfsi2): Likewise.
13681         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13682         constraints.
13683         (cmpeqdf_media, cmpgtdf_media): Likewise.
13684         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13685         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13686         (absdf2, absdf2_media): Likewise.
13687         (extendsfdf2, extendsfdf2_media): Likewise.
13688         (truncsfdf2, truncsfdf2_media): Likewise.
13689         * config/sh/sh64.h: New file.
13690         * config/sh/t-sh64: New file.
13691         * config/sh/shmedia.h: New file.
13692         * config/sh/ushmedia.h: New file.
13693         * config/sh/sshmedia.h: New file.
13694         * configure.in: Added sh64-*-elf.
13695         * configure: Rebuilt.
13696         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13697         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13698         (reg_class_from_letter): Use `b' for TARGET_REGS.
13699         (print_operand): Support `%M', `%m', `AND' and
13700         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13701         (andcosts): Adjust for SHmedia.
13702         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13703         Likewise.
13704         (target_reg_operand): New function.
13705         * config/sh/sh-protos.h (target_reg_operand): Declare.
13706         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13707         FP registers on SH5.
13708         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13709         on SH4.
13710         (TARGET_REGISTER_P): New macro.
13711         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13712         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13713         (EXTRA_CONSTRAINT_S): New macro.
13714         (EXTRA_CONSTRAINT): Adjust.
13715         (FLOAT_TYPE_SIZE): Define to 32.
13716         (Pmode): DImode on SHmedia.
13717         (CONST_COSTS): Adjust for SHmedia literals.
13718         (PREDICATE_CODES): Added target_reg_operand.
13719         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13720         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13721         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13722         (cmpdi): Accept SHmedia.
13723         (movdicc_false, movdicc_true): New insns.
13724         (movdicc): New expand.
13725         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13726         no_new_pseudos.
13727         (addsi3_media): Match `S' constraint.
13728         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13729         (negdi2): Expand for SHmedia.
13730         (one_cmpldi2): New expand.
13731         (zero_extendsidi2): Change from expand to insn.
13732         (extendsidi2): Add constraints.
13733         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13734         LD/ST address.  Fix SI immediate loading split.
13735         (movhi_media, movqi_media, lduw, ldub): New insns.
13736         (movhi, movqi): Accept SHmedia.
13737         (shori_media, movdi_media): Relax input constraints.  Split
13738         symbolic constants.
13739         (movdf_media, movsf_media): New insn.  New split to movdi.
13740         (movdf, movsf): Match on SHmedia.
13741         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13742         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13743         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13744         (bunordered): New expand.
13745         (jump_compact): Renamed from `jump'.
13746         (jump_media): New insn.
13747         (jump): New expand.
13748         (call_media, call_value_media): New insns.
13749         (call, call_value): Adjust.
13750         (indirect_jump_compact): Renamed from `indirect_jump'.
13751         (indirect_jump_media): New insn.
13752         (indirect_jump): New expand.
13753         (untyped_call, return): Accept SHmedia.
13754         (return_media): New insn.
13755         (prologue, epilogue, blockage): Accept SHmedia.
13756         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13757         (sunordered): New expand.
13758         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13759         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13760         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13761         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13762         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13763         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13764         abssf2_media): New insns.
13765         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13766         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13767         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13768         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13769         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13770         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13771         absdf2_media): New insns.
13772         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13773         (extendsfdf2_media, truncdfsf2_media): New insns.
13774         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13775         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13776         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13777         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13778         * config/sh/sh.md (adddi3): New expand.
13779         (adddi3_media, adddi3z_media): New insns.
13780         (adddi3_compact): Renamed from adddi3.
13781         (addsi3_media): Use add.l r63 to add constant zero.
13782         (subdi3): New expand.
13783         (subdi3_media): New insn.
13784         (subdi3_compact): Renamed from subdi3.
13785         (mulsidi3): New expand.
13786         (mulsidi3_media): New insn.
13787         (mulsidi3_compact): Renamed from mulsidi3.
13788         (umulsidi3): New expand.
13789         (umulsidi3_media): New insn.
13790         (umulsidi3_compact): Renamed from umulsidi3.
13791         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13792         (ashlsi3, ashrsi3, lshrsi3): Use them.
13793         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13794         (ashldi3, ashrdi3, lshrdi3): Use them.
13795         (zero_extendsidi2): New expand.
13796         (extendsidi2): New insn.
13797         (movsi_media): New insn.  Split to movdi to load constants.
13798         (movsi): Enable for shmedia.
13799         (movdi_media): New insn.  Use shori_media to load wide constants.
13800         (short_media): New insn.
13801         (movdi): Enable for shmedia.
13802         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13803         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13804         (SUBTARGET_CPP_SPEC): Added `!m5'.
13805         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13806         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13807         to all other SH variants.
13808         (TARGET_DEFAULT): Set to SH1_BIT.
13809         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13810         (BITS_PER_WORD): Raise to 64 on shmedia.
13811         (MAX_BITS_PER_WORD): Change to 64.
13812         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13813         (INT_TYPE_SIZE): Keep as 32.
13814         (UNITS_PER_WORD): Raise to 8 on shmedia.
13815         (MIN_UNITS_PER_WORD): Keep as 4.
13816         (POINTER_SIZE): Raise to 64 on shmedia.
13817         (CONST_OK_FOR_J): New macro.
13818         (CONST_OK_FOR_LETTER_P): Use it.
13819         (processor_type): Add PROCESSOR_SH5.
13820         * config/sh/sh.md: Conditionalize all expands, insns and
13821         splits to TARGET_SH1.
13822         (cpu): Added sh5.
13823         (addsi3_compact): Renamed from...
13824         (addsi3): Now an expand.
13825         (addsi3_media, subsi3_media): New insns.
13826         (subsi3): Don't negate constants with SHmedia.
13827
13828         * hooks.c: New file.
13829         * hooks.h: New file.
13830         * Makefile.in (HOOKS_H): New.
13831         (TARGET_DEF_H): Added $(HOOKS_H).
13832         (OBJS): Added hooks.o.
13833         (cfgcleanup.o, bb-reorder.o): Added target.h.
13834         (hooks.o): Added dependencies.
13835         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13836         (TARGET_INITIALIZER): this.
13837         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13838         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13839         * bb-reorder.c: Include target.h.
13840         (reorder_basic_blocks): Skip if cannot modify jumps.
13841         * cfgcleanup.c: Include target.h.
13842         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13843
13844 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13845
13846         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13847         Protect jump delay slot instructions with .set noreorder and
13848         .set nomacro.
13849
13850 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13851
13852         * config/mips/mips.md (casesi_internal_di): Calculate
13853         the index into the target offset table correctly.
13854
13855 2002-02-08  Richard Henderson  <rth@redhat.com>
13856
13857         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13858         * final.c (output_addr_const): Accept and discard SUBREG.
13859         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13860         mark them unknown instead.
13861         (simplify_subtraction): Handle RTX_UNKNOWN.
13862         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13863
13864 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13865
13866         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13867
13868 2002-02-08  Richard Henderson  <rth@redhat.com>
13869
13870         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13871
13872 2002-02-08  Andreas Jaeger  <aj@suse.de>
13873
13874         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13875         * config/i386/t-linux64: New file.
13876
13877 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13878
13879         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13880         * c-parse.in (compstmt): Clear last_expr_type.
13881
13882 2002-02-07  Richard Henderson  <rth@redhat.com>
13883
13884         * loop.c (strength_reduce): Sink final_value when not
13885         eliminating a biv.
13886
13887 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13888
13889         * config/sparc/freebsd.h: Fix mismatched spec {.
13890
13891 2002-02-07  Richard Henderson  <rth@redhat.com>
13892
13893         * cfgrtl.c: Include recog.h and insn-config.h.
13894         (keep_with_call_p): Fix general_operand invocation.
13895         * Makefile.in (cfgrtl.o): Update dependencies.
13896
13897 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13898
13899         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13900         comment.  Accept HImode only if TARGET_H8300.
13901
13902 2002-02-07  Eric Christopher  <echristo@redhat.com>
13903
13904         * config/mips/crtn.asm: Cleanup #ifdefs.
13905
13906 2002-02-07  Eric Christopher  <echristo@redhat.com>
13907
13908         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13909         register 7 as RA instead of $31.
13910         * config/mips/crtn.asm: Ditto.
13911         * config/mips/mips.c (mips_move_2words): Add case for
13912         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13913         (compute_frame_size): Fix typo.
13914         (save_restore_insns): Ditto.  Make documentation about using
13915         register $7 as return register more precise.
13916         (mips_expand_epilogue): Fix comment. Add code to work around not
13917         being able to add to the stack pointer directly.
13918         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13919         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13920         epilogue.
13921
13922 2002-02-07  Tom Rix  <trix@redhat.com>
13923
13924         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13925         immediates in ldu and stdu DS opcode field.
13926         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13927         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13928         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13929
13930 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13931
13932         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13933         offset for stack bias.
13934
13935 2002-02-07  H.J. Lu <hjl@gnu.org>
13936
13937         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13938
13939 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13940
13941         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13942
13943 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13944
13945         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13946         * i386.c (x86_order_regs_for_local_alloc): New global function.
13947         * i386.h (REG_ALLOC_ORDER): CLeanup.
13948         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13949
13950 2002-02-07  Richard Henderson  <rth@redhat.com>
13951
13952         PR optimization/2463
13953         * alias.c (find_base_value): Recall base values for fixed hard regs.
13954         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13955
13956 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13957
13958         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13959         length.
13960
13961 2002-02-06  Richard Henderson  <rth@redhat.com>
13962
13963         PR c/5609
13964         * stmt.c (resolve_operand_name_1): Take more care with mixed
13965         named and unnamed operands.
13966
13967 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13968             Jan Hubicka  <jh@suse.cz>
13969
13970         * loop.c (remove_constant_addition): Avoid clobbering a shared
13971         CONST expression.
13972
13973 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13974
13975         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13976         * config/s390/t-linux64: New file.
13977         * config/s390/libgcc-glibc.ver: New file.
13978
13979 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13980
13981         * config/s390/linux64.h: Delete file.
13982         * config/s390/s390x.h: New file.
13983         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13984         as target header file.
13985         * config/s390/linux.h (TARGET_VERSION): Define depending on
13986         DEFAULT_TARGET_64BIT.
13987         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13988         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13989         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13990         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13991         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13992         (EXTRA_SPEC): New define.
13993         * config/s390/s390.h (TARGET_VERSION): Define depending on
13994         DEFAULT_TARGET_64BIT.
13995         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13996
13997 2002-02-06  Jason Merrill  <jason@redhat.com>
13998
13999         * c-decl.c (finish_function): Warn about a non-void function with
14000         no return statement and no abnormal exit.
14001         (current_function_returns_abnormally): New variable.
14002         (start_function): Clear it.
14003         (struct c_language_function): Add returns_abnormally.
14004         (push_c_function_context): Save it.
14005         (pop_c_function_context): Restore it.
14006         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
14007         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
14008         an explicit return type.
14009         * c-tree.h: Declare current_function_returns_abnormally.
14010         (C_FUNCTION_IMPLICIT_INT): New macro.
14011         * c-typeck.c (build_function_call): Set it.
14012         (c_expand_return): Set current_function_returns_value even if the
14013         value is erroneous.
14014
14015 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
14016
14017         PR c/5420:
14018         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
14019         unsafe for reevaluation.
14020
14021 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
14022
14023         PR c/5482:
14024         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
14025         EXPR_STMT, but COMPOUND_STMT, recurse into it.
14026
14027 2002-02-06  Richard Henderson  <rth@redhat.com>
14028
14029         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
14030         be a general_operand.  Dest for function value must be a pseudo.
14031
14032 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
14033
14034         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
14035         as SYMBOL_REFs from the constant pool.
14036
14037 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
14038
14039         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
14040         passed by invisible reference.
14041
14042 2002-02-05  Richard Henderson  <rth@redhat.com>
14043
14044         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
14045
14046 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
14047
14048         Implement using "base addresses" in insn operands as default.
14049         * config/mmix/mmix.c (mmix_conditional_register_usage): if
14050         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
14051         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
14052         used to read the rtx value.
14053         (mmix_target_asm_function_epilogue): Fix spacing.
14054         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
14055         (mmix_legitimate_address): Ditto.
14056         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
14057         should be loaded with a GETA insn.  Don't allocate needless extra
14058         char for nul termination and fix misleading comment.
14059         (mmix_print_operand_address): Handle constants if
14060         TARGET_BASE_ADDRESSES.
14061         (mmix_output_register_setting): Use base addressing if
14062         TARGET_BASE_ADDRESSES and the number of insns is 3.
14063         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
14064         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
14065         to use R as constraint, add LDA to match s.
14066         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
14067         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
14068         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
14069         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
14070         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
14071         order with other fixed registers.
14072         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
14073         other parameter/call-clobbered registers.
14074         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
14075         -mbase-addresses, -mno-base-addresses.
14076         (MMIX Options): Ditto.
14077
14078 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14079
14080         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
14081
14082 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
14083
14084         * config/rs6000/altivec.h: Change elem to _S_elem.
14085
14086 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
14087
14088         * config/netbsd.h (WCHAR_TYPE): Define.
14089         (WCHAR_TYPE_SIZE): Ditto.
14090         (WINT_TYPE): Ditto.
14091         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
14092         (WCHAR_UNSIGNED): Ditto.
14093         (WCHAR_TYPE_SIZE): Ditto.
14094         (WINT_TYPE): Ditto.
14095         * config/arm/netbsd.h: Likewise.
14096         * config/i386/netbsd-elf.h: Likewise.
14097         * config/i386/netbsd.h: Likewise.
14098         * config/m68k/netbsd-elf.h: Likewise.
14099         * config/m68k/netbsd.h: Likewise.
14100         * config/ns32k/netbsd.h: Likewise.
14101         * config/sparc/netbsd.h: Likewise.
14102         * config/vax/netbsd.: Likewise.
14103
14104 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
14105
14106         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
14107         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
14108         (TARGET_INITIALIZER): this.
14109         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
14110         (BITFIELD_NBYTES_LIMITED): Markup fix.
14111         * tree.h (default_ms_bitfield_layout_p): Declare.
14112         (record_layout_info): Added prev_field.
14113         * tree.c (default_ms_bitfield_layout_p): New fn.
14114         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
14115         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
14116         * stor-layout.c: Include target.h.
14117         (start_record_layout): Initialize prev_field.
14118         (place_field): Handle MS bit-field layout, and disregard
14119         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
14120         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
14121         * Makefile.in (stor-layout.o): Adjust dependencies.
14122
14123 2002-02-05  Jason Merrill  <jason@redhat.com>
14124
14125         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
14126
14127 2002-02-05  Andreas Jaeger  <aj@suse.de>
14128
14129         * crtstuff.c: Fix comments.
14130
14131 2002-02-05  Richard Henderson  <rth@redhat.com>
14132
14133         PR fortran/3393
14134         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
14135         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
14136
14137         PR fortran/3392
14138         * config/mips/mips.c (function_arg): Handle TImode.
14139         (function_arg_advance): Likewise.
14140
14141 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14142
14143         * config/rs6000/altivec.h (vec_step_help): Rename to
14144         __vec_step_help.
14145
14146 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14147
14148         * config/rs6000/altivec.h: Fix typos.
14149
14150 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
14151
14152         * config/arm/netbsd.h: Correct a comment.
14153
14154 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14155
14156         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
14157         building void typed builtins.
14158
14159         * config/rs6000/altivec.h (vec_ld*): Fix typos.
14160         (vec_step): Implement for C++.
14161
14162 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14163
14164         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
14165
14166 2002-02-04  Richard Henderson  <rth@redhat.com>
14167
14168         * combine.c (nonzero_bits): Re-introduce special case for
14169         sp/fp/ap wrt REGNO_POINTER_ALIGN.
14170
14171 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14172
14173         * doc/extend.texi: Warn about unsupported usage of altivec
14174         builtins.
14175
14176         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
14177         (altivec_predicate_*): New.
14178
14179         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
14180         Add C++ version of vec_*() functions.
14181
14182         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
14183         (bdesc_2arg): Remove altivec predicates.
14184         (altivec_expand_builtin): Handle predicates.
14185         (altivec_init_builtins): Handle predicates.
14186         (altivec_expand_predicate_builtin): New.
14187
14188 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14189
14190         * pa.c (DO_FRAME_NOTES): Move forward.
14191         (store_reg): Revise handling of frame notes.
14192         (load_reg): Likewise.
14193         (set_reg_plus_d): Likewise.
14194         (hppa_expand_prologue): Likewise.
14195         (hppa_expand_epilogue): Likewise.
14196
14197 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14198
14199         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
14200
14201 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14202
14203         PR c/4475, c++/3780:
14204         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
14205         * c-common.h (SWITCH_TYPE): Define.
14206         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
14207         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
14208         Rename spareness variable to sparseness.
14209         (expand_end_case_type): Renamed from expand_end_case, use orig_type
14210         if non-NULL instead of TREE_TYPE (orig_index).
14211         * tree.h (expand_end_case_type): Renamed from expand_end_case.
14212         (expand_end_case): Define using expand_end_case_type.
14213         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
14214         to expand_end_case_type.
14215         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
14216
14217 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14218
14219         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
14220         (BIGGEST_ALIGNMENT): Change to 128.
14221
14222 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14223
14224         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
14225
14226 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14227
14228         * pa.md (call_internal_reg_64bit): Remove unused variable.
14229
14230 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
14231
14232         * config/arm/arm.h (machine_function): Add uses_anonymous_args
14233         field.
14234         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
14235         * config/arm/arm.c (current_function_anonymous_args): Delete,
14236         replace uses with cfun->machine->uses_anonymous_args.
14237         (arm_reorg): Do not reset uses_anonymous_args.
14238
14239         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
14240         any geenral register.
14241
14242 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
14243
14244         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
14245         the entry block.
14246
14247 2002-02-04  Richard Henderson  <rth@redhat.com>
14248
14249         * combine.c (force_to_mode): Remove STACK_BIAS code.
14250         (nonzero_bits): Likewise.  Replace sp/fp special case with
14251         REGNO_POINTER_ALIGN.
14252
14253         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14254         (HARD_FRAME_POINTER_REGNUM): New.
14255         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14256         (FIXED_REGS, CALL_USED_REGS): Update.
14257         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14258         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14259         (HARD_REGNO_NREGS): Update for SFP.
14260         (STACK_POINTER_OFFSET): Include bias here ...
14261         (FIRST_PARM_OFFSET): ... not here.
14262         (STACK_BIAS): Remove.
14263         (INIT_EXPANDERS): New.
14264         (STARTING_FRAME_OFFSET): Do not include bias.
14265         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14266         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14267         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14268         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14269         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14270         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14271         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14272         (MUST_SAVE_REGISTER): Likewise.
14273         (sparc_flat_function_prologue): Likewise.
14274         (sparc_flat_function_epilogue): Likewise.
14275         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14276         (sparc_init_modes): SFP is GENERAL_REGS.
14277         (sparc_builtin_saveregs): SFP does not have bias applied.
14278
14279 2002-02-04  Richard Henderson  <rth@redhat.com>
14280
14281         * config/alpha/alpha.c (current_function_is_thunk): Don't check
14282         current_function_is_thunk.
14283         (alpha_sa_mask): Distinguish between current_function_is_thunk
14284         called from ASM_OUTPUT_MI_THUNK and not.
14285         (alpha_does_function_need_gp): Thunks always need gp.
14286         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14287         (alpha_output_mi_thunk_osf): New.
14288         * config/alpha/alpha-protos.h: Update.
14289         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14290
14291 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
14292
14293         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14294         function types, not when they're taken away.
14295
14296 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
14297
14298         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14299         CODE_LABEL and jump table when replacing a table jump with a
14300         simple jump.
14301
14302 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14303
14304         * config/s390/s390-protos.h (legitimize_la_operand,
14305         s390_secondary_input_reload_class, s390_plus_operand,
14306         s390_expand_plus_operand): Add prototypes.
14307
14308         config/s390/s390.c (s390_secondary_input_reload_class,
14309         s390_plus_operand, s390_expand_plus_operand): New functions.
14310
14311         (struct s390_address): New member 'pointer'.
14312         (s390_decompose_address): Compute it.
14313         (legitimate_la_operand_p): Use it.
14314         (legitimize_la_operand): New function.
14315         (movti, movdi, movdf splitters): Call it.
14316
14317         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14318         (PREDICATE_CODES): Add s390_plus_operand.
14319
14320         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14321         (la_ccclobber): Allow GENERAL_REGS as output operand.
14322
14323         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14324         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14325         (*la_64, *la_31, reload_indi, reload_insi): ... these.
14326
14327 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14328
14329         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14330         register names for regular asm () construct.
14331
14332 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14333
14334         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14335         registers.
14336
14337 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14338
14339         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14340         pat for recog.
14341
14342 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
14343
14344         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14345         constant pool to be identical by string address and index.
14346
14347 2002-02-04  Anthony Green  <green@redhat.com>
14348
14349         * output.h (SECTION_OVERRIDE): Define.
14350         * varasm.c (named_section): Obey SECTION_OVERRIDE.
14351
14352 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14353
14354         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14355         by existing arm*-*-netbsd* (a.out) target.
14356         (ns32k-*-netbsdelf*): Likewise.
14357         (sparc-*-netbsdelf*): Likewise.
14358         (vax-*-netbsdelf*): Likewise.
14359
14360 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
14361
14362         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14363         headers and libobjc headers.
14364
14365 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
14366
14367         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14368         (_mingw.h): Remove duplicate include.
14369
14370 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14371
14372         * config.gcc: Set cpu_type to m68k for 68010, as well.
14373         (m68010-*-netbsdelf*): New...
14374         (m68k*-*-netbsdelf*): ...targets.
14375         * config/m68k/netbsd-elf.h: New file.
14376
14377 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14378
14379         * config/h8300/h8300.c (hand_list): Move inside function_arg.
14380
14381 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14382
14383         * config/h8300/h8300.c (h8_push_ops): Move inside
14384         h8300_init_once.
14385         (h8_pop_ops): Likewise.
14386         (h8_move_ops): Likewise.
14387
14388 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14389
14390         * config/h8300/h8300.c (os_task): Make it static.
14391         (monitor): Likewise.
14392         (pragma_saveall): Likewise.
14393
14394 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
14395
14396         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14397         constant is a valid sign-extension for Pmode.
14398
14399 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14400
14401         * config/h8300/h8300.c: Fix formatting.
14402
14403 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14404
14405         * config/h8300/h8300.md: Fix formatting.
14406
14407 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14408
14409         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14410         predicates of operands[1].  Split the patterns for each
14411         processor variant.
14412
14413 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14414
14415         * config/h8300/h8300.md (xor patterns): Tighten the predicates
14416         of operands[1] to register_operand.
14417
14418 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14419
14420         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14421         * cpphash.c (_cpp_init_hashtable): Similarly.
14422         * cppinit.c (cpp_create_reader): Default the signed_char flag.
14423         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14424         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14425         (cpp_handle_option): Handle the new options.
14426         * cpplex.c (cpp_interpret_charconst): Use new flag.
14427         * cpplib.h (struct cpp_options): New member signed_char.
14428         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14429         (cpp_options): Handle -fsigned-char and -funsigned-char.
14430         (static_specs): Remove signed_char_spec.
14431         (do_spec1): Don't handle %c.
14432         * system.h: Poison SIGNED_CHAR_SPEC.
14433         * tradcif.y (yylex): Use flag_signed_char.
14434         * tradcpp.h (flag_signed_char): New.
14435         * tradcpp.c (flag_signed_char): New.
14436         (main): Handle new command-line options.
14437         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14438 config:
14439         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14440         * avr/avr.h: Remove old comments.
14441         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14442         (CC1_SPEC): Pass -fsigned-char if -mic*.
14443         (SIGNED_CHAR_SPEC): Remove.
14444 doc:
14445         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14446
14447 2002-02-01  Eric Christopher  <echristo@redhat.com>
14448
14449         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14450         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14451         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14452         (ASM_OUTPUT_REG_POP): Ditto.
14453
14454 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14455
14456         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14457         patch.
14458
14459 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14460
14461         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14462
14463 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14464
14465         PR c/5304:
14466         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14467         unconditionally.
14468
14469 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14470
14471         * cfganal.c: Include tm_p.h.
14472         (keep_with_call_p): Fix the test that determines if a register holds
14473         the return value of a call.
14474
14475 2002-02-01  DJ Delorie  <dj@redhat.com>
14476
14477         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14478         we are given conflicting registers, switch to the other one we
14479         had allocated for us.
14480         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14481         as TImode so we know when the "other" register is available.
14482
14483 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
14484
14485         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14486         sparc/sparc_bi.h.
14487
14488 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14489
14490         * cfganal.c (keep_with_call_p): New function.
14491         (flow_call_edges_add): Prevent splitting a block between a call and
14492         a single-set instruction that should be kept in the same block.
14493
14494 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14495
14496         * doc/install.texi (avr): Update outdated URL.
14497
14498 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
14499
14500         * config/stormy16/stormy16.md (pushqi): New.
14501         (popqi): New.
14502         (pushhi): New.
14503         (pophi): New.
14504         (movhi): Remove stack operands.
14505         (movqi): Likewise.
14506         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14507         nonimmediate_nonstack_operand.
14508         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14509         New.
14510         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14511         New.
14512
14513 2002-01-31  Jason Merrill  <jason@redhat.com>
14514
14515         * Makefile.in (c-parse.c): Handle .output file.
14516         * objc/Make-lang.in (objc-parse.c): Likewise.
14517
14518 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
14519
14520         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14521         the -me[lb] option is given.  Don't output the default flag
14522         twice.
14523
14524 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
14525
14526         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14527         the primary source file; this has not been done yet.
14528         * c-decl.c (c_expand_body): Reset input_filename from
14529         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14530
14531 2002-01-31  Kazu Hirata  <kazu@hxi.com>
14532
14533         * rtlanal.c (subreg_regno_offset): Do not use
14534         SUBREG_REGNO_OFFSET.
14535         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14536         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14537
14538 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14539
14540         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
14541         version rather than GNATS version in --version output.
14542
14543 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
14544
14545         * ifcvt.c (noce_process_if_block): Make a copy of the destination
14546         when copying back from a temporary.
14547
14548 2002-01-30  Richard Henderson  <rth@redhat.com>
14549
14550         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14551         and new_dest are the same.
14552
14553 2002-01-30  Richard Henderson  <rth@redhat.com>
14554
14555         PR opt/5076
14556         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14557         * rtl.c (note_insn_name): Update.
14558         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14559         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14560         to perform loop rotation.
14561         (expand_exit_loop_top_cond): New.
14562         * tree.h (expand_exit_loop_top_cond): Declare it.
14563         * c-semantics.c (genrtl_while_stmt): Use it.
14564         (genrtl_for_stmt): Likewise.
14565
14566 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14567
14568         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14569         arguments to 64-bit boundaries on 64-bit ABIs.
14570
14571 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14572
14573         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14574
14575 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14576
14577         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14578         invalid type.
14579
14580 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14581
14582         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14583         * config/sparc/sparc_bi.h: Remove file.
14584         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14585
14586 2002-01-30  Richard Henderson  <rth@redhat.com>
14587
14588         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14589
14590 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14591
14592         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14593
14594 2002-01-30  Jason Merrill  <jason@redhat.com>
14595
14596         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14597         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14598         (reg_save): Use DW_CFA_offset_extended_sf instead.
14599
14600         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14601
14602 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14603
14604         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14605         in cselib_lookup.
14606
14607 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14608
14609         * rs6000.md ("*call_value_local32"): Remove constraints.
14610         ("*call_value_local64"): Same.
14611         ("*call_value_indirect_nonlocal_aix32"): Same.
14612         ("*call_value_nonlocal_aix32"): Same.
14613         ("*call_value_indirect_nonlocal_aix64"): Same.
14614         ("*call_value_nonlocal_aix64"): Same.
14615         ("*call_value_nonlocal_sysv"): Same.
14616
14617 2002-01-29  Richard Henderson  <rth@redhat.com>
14618
14619         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14620
14621 2002-01-29  Richard Henderson  <rth@redhat.com>
14622
14623         * expr.c (force_operand): Ignore flag_pic for detecting pic
14624         address loads.
14625         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14626         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14627         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14628         instead of open-coded loop.
14629         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14630         be fixed when in use.
14631
14632 2002-01-29  Richard Henderson  <rth@redhat.com>
14633
14634         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14635         * sched-rgn.c (propagate_deps): Update them.
14636         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14637         clobbers list when either gets too long.
14638
14639 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14640
14641         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14642         and INDEX_REGS the same as GENERAL_REGS.
14643         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14644
14645 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14646
14647         * tree.c (build_nonstandard_integer_type): Correct prototype.
14648
14649 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14650
14651         * config/s390/s390.md (movstrsico, movstrdix_64,
14652         movstrsix_31): Remove, replace by ...
14653         (movstrdi_short, movstrsi_short, movstrdi_long,
14654         movstrsi_long): ... these.  New.
14655         (movstrdi, movstrsi): Adapt.
14656
14657         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14658         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14659         Remove unnecessary CC clobber.
14660         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14661         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14662
14663         (divmoddi4): Don't partially initialize TImode register.
14664
14665 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14666
14667         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14668
14669 2002-01-29  Richard Henderson  <rth@redhat.com>
14670
14671         * flow.c (print_rtl_and_abort): Remove.
14672         (print_rtl_and_abort_fcn): Remove.
14673         (verify_local_live_at_start): Use dump_bb instead.
14674         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14675         (verify_wide_reg_1): Return 2 on mode test failure.
14676
14677 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14678
14679         PR c/3325, c/3326, c/2511, c/3347
14680         * c-decl.c (enum_decl_context): Remove BITFIELD.
14681         (grokdeclarator): Take bitfield width as an input.
14682         Ensure bitfields are given the correct type.  Perform
14683         bitfield width validation with build_bitfield_integer_type
14684         rather than waiting for finish_struct.
14685         (grok_typename, grok_typename_in_parm_context, start_decl,
14686         push_parmdecl, grokfield, start_function): Update calls to
14687         grokdeclarator.
14688         (build_bitfield_integer_type): New function.
14689         (finish_struct): Move bitfield validation to grokdeclarator
14690         and build_bitfield_integer_type.
14691         * tree.c (build_nonstandard_integer_type): New function.
14692         * tree.h (build_nonstandard_integer_type): New prototype.
14693 objc:
14694         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14695
14696 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14697
14698         PR other/1502:
14699         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14700         don't ignore unrecognized -W* options.
14701         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14702         * cpplib.h (cpp_handle_option): Adjust prototype.
14703         * c-decl.c (c_decode_options): Pass 0 as last argument to
14704         cpp_handle_option.
14705
14706         PR c/2896:
14707         * gcc.c (cpp_unique_options): Split from cpp_options.
14708         (cpp_options): Source cpp_unique_options.
14709         (default_compilers): Use cpp_unique_options instead of cpp_options
14710         when used together with cc1_options.
14711         (static_specs): Add cpp_unique_options.
14712         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14713         when used together with cc1_options.
14714
14715 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14716
14717         * config/h8300/h8300-protos.h: Update the prototype of
14718         output_a_shift.
14719         * config/h8300/h8300.c (output_a_shift): Remove an unused
14720         argument 'insn'.  Remove redundant code.
14721         * config/h8300/h8300.md: Adust to the new prototype of
14722         output_a_shift.
14723
14724 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14725
14726         * config/h8300/h8300-protos.h: Update the prototypes of
14727         emit_a_rotate and expand_a_rotate.
14728         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14729         first argument to 'enum rtx_code'.
14730         (expand_a_rotate): Likewise.
14731
14732 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14733
14734         * config/h8300/h8300-protos.h: Update the prototype of
14735         output_simode_bld.
14736         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14737         'log2'.
14738         * config/h8300/h8300.md: Adjust to the new prototype.
14739
14740 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14741
14742         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14743         redundant code.
14744
14745 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14746
14747         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14748         is a fixed register before returning pic_offset_table_rtx.
14749         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14750         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14751
14752 2002-01-28  Jason Merrill  <jason@redhat.com>
14753
14754         * dwarf2.h: Sync with src version.
14755
14756 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14757
14758         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14759         BT_FN_VOID_PTR_VAR.
14760         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14761         * doc/extend.texi (__builtin_prefetch): Update documentation:
14762         first argument is now const void ptr.
14763
14764 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14765
14766         * config/h8300/h8300-protos.h: Remove an unused prototype.
14767
14768 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14769
14770         * toplev.c (lang_independent_init): Round up identifier size.
14771
14772 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14773
14774         * config.gcc: Revert previous change.
14775
14776 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14777
14778         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14779
14780 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14781
14782         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14783         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14784         other non-elf netbsd config frags.
14785         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14786         collect2 will does that.
14787         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14788         shared-lib frobbing will work.
14789
14790 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14791
14792         * config/h8300/h8300.h: Fix formatting.
14793         * config/h8300/h8300.md: Likewise.
14794
14795 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14796
14797         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14798         the old, removed AAA_standards fix.
14799         * fixinc/fixincl.x: Rebuilt.
14800
14801 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14802
14803         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14804         atexit call in crtbegin, hooked in after call to frame_dummy;
14805         register EH before registering __fini__start.
14806
14807 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14808
14809         * config/rs6000/altivec.h: Remove spurious semicolons.
14810
14811 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14812
14813         * config/h8300/h8300.md: Replace dead bit extraction patterns
14814         with ones that work.
14815
14816 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14817
14818         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14819         if not STRICT_ALIGNMENT.
14820         * rtl.h (MEM_ALIGN): Likewise.
14821
14822 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14823
14824         * doc/invoke.texi (-fdump-translation-unit): Revert this
14825         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14826
14827 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14828
14829         * config/h8300/h8300.md (define_constants): New.
14830         (anonymous patterns) Use defined constants appropriately.
14831
14832 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14833
14834         * config/h8300/h8300.c (function_arg): Remove redundant code.
14835
14836 2002-01-26  Richard Henderson  <rth@redhat.com>
14837
14838         * sched-deps.c (reg_pending_uses_head): New.
14839         (reg_pending_barrier): Rename from reg_pending_sets_all.
14840         (find_insn_list): Don't mark inline.
14841         (find_insn_mem_list): Remove.
14842         (add_dependence_list, add_dependence_list_and_free): New.
14843         (flush_pending_lists): Replace only_write param with separate
14844         for_read and for_write parameters.  Update all callers.  Use
14845         add_dependence_list_and_free.
14846         (sched_analyze_1): Do not add reg dependencies here; just set
14847         the pending bits.  Use add_dependence_list.
14848         (sched_analyze_2): Likewise.
14849         (sched_analyze_insn): Replace schedule_barrier_found with
14850         reg_pending_barrier.  Add all dependencies for pending reg
14851         uses, sets, and clobbers.
14852         (sched_analyze): Don't add reg dependencies for calls, just
14853         set pending bits.  Use regs_invalidated_by_call.  Treat
14854         sched_before_next_call as a normal list, not a fake insn.
14855         (init_deps): No funny init for sched_before_next_call.
14856         (free_deps): Free pending mems lists.  Don't zero reg_last.
14857         (init_deps_global): Init reg_pending_uses.
14858         (finish_deps_global): Free it.
14859         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14860         (find_insn_mem_list): Remove.
14861         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14862         (propagate_deps): Use them.  Zero temp mem lists.
14863
14864 2002-01-26  Richard Henderson  <rth@redhat.com>
14865
14866         * Makefile.in (CRTSTUFF_CFLAGS): New.
14867         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14868         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14869         crtstuff.c instead of alpha assembly version.
14870         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14871         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14872         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14873         (__do_global_dtors_aux): Mark used.
14874         (frame_dummy, __do_global_ctors_aux): Mark used.
14875         (fini_dummy, init_dummy): Remove.
14876
14877         * config/alpha/crtbegin.asm: Remove file.
14878         * config/alpha/crtend.asm: Remove file.
14879         * config/alpha/t-crtbe: Remove file.
14880         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14881         (LINK_EH_SPEC): New.
14882
14883         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14884         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14885         calling constructors.
14886         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14887
14888         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14889         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14890         CRT_END_INIT_DUMMY hack.
14891         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14892         FORCE_{INIT,FINI}_SECTION_ALIGN.
14893
14894         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14895         FORCE_{INIT,FINI}_SECTION_ALIGN.
14896
14897         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14898         invocation sequence.
14899         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14900
14901         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14902         (FORCE_CODE_SECTION_ALIGN): New.
14903
14904 2002-01-26  Richard Henderson  <rth@redhat.com>
14905
14906         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14907
14908 2002-01-26  Richard Henderson  <rth@redhat.com>
14909
14910         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14911         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14912
14913 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14914
14915         * config/h8300/h8300.md: Remove bit extraction patterns that
14916         cannot be triggered.
14917         Restrict each bit extraction pattern to a variant on which the
14918         pattern is tested.
14919
14920 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14921
14922         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14923
14924 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14925
14926         * config/h8300/h8300.md: Remove bit test patterns that cannot
14927         be triggered.
14928         Restrict each bit test pattern to a variant on which the
14929         pattern is tested.
14930
14931 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14932
14933         * builtins.c (expand_builtin_strncat): Remove redundant check for
14934         INTEGER_CST.
14935
14936 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14937
14938         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14939         default setting.
14940         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14941         existing setting.
14942
14943 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14944
14945         * dbxout.c (dbxout_init): Use assemble_name rather than just
14946         stripping off the first character.
14947         (dbxout_source_file): Likewise.
14948
14949 2002-01-25  DJ Delorie  <dj@redhat.com>
14950
14951         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14952         using rtx_equal_p, not by comparing pointers.
14953
14954 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14955
14956         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14957         for PIC_OFFSET_TABLE_REGNUM.
14958         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14959
14960 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14961
14962         * config.gcc (x86_64-*-freebsd*): New target.
14963         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14964         value.
14965         (i[34567]86-*-freebsd*): Don't include svr4.h.
14966         * config/i386/freebsd64.h: New file.
14967
14968 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14969
14970         * config/alpha/x-vms (version): Make static.
14971
14972         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14973         in previous checkin.
14974
14975         * Makefile.in (install-headers-cp): New target.
14976         * config.gcc (alpha-dec-*vms*): Install headers with
14977         install-headers-cp
14978
14979 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14980
14981         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14982         avoid it's copies.
14983
14984 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14985
14986         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14987         of compare_tree_int.
14988         (expand_builtin_strncat): Likewise.
14989         * c-decl.c (finish_struct): Use tree_low_cst.
14990         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14991         * tree.c (compare_tree_int): Likewise.
14992
14993 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14994
14995         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14996         adjustments even if they are implemented by more than two insns.
14997
14998 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14999
15000         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
15001         * df.h (struct ref): Kill B.
15002         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
15003
15004         * basic-block.h (PROP_EQUAL_NOTES): New flag.
15005         * flow.c (propagate_one_insn): Use it.
15006         (mark_used_regs): Handle NIL.
15007
15008 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
15009
15010         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
15011         to help folding.
15012
15013 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
15014
15015         * rs6000.md (prefetch): Make address V4SI mode so that the address
15016         is restricted to legitimate form for instruction.
15017
15018 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
15019
15020         * doc/install.texi (xtensa-*-elf): New target.
15021         (xtensa-*-linux*): New target.
15022         * doc/contrib.texi: Add myself.
15023
15024 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
15025
15026         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
15027         purpose register to hold an SImode (or smaller) value.
15028
15029 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
15030
15031         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
15032         registry only.
15033         * crtstuff.c: Likewise.
15034
15035 2002-01-25  Kazu Hirata  <kazu@hxi.com>
15036
15037         * config/h8300/h8300.md (negation patterns): Tighten
15038         predicates to register_operand.
15039
15040 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
15041
15042         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
15043         mode, not Pmode.
15044
15045         * builtins.c (expand_builtin_prefetch): Same.
15046
15047 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15048
15049         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
15050         modes.
15051
15052 2002-01-24  Kazu Hirata  <kazu@hxi.com>
15053
15054         * config/h8300/h8300.c (print_operand): Remove support for
15055         operand character 'A'.
15056         * config/h8300/h8300.md (three anonymous patterns): Replace
15057         operand character 'A' with either 'T' or 'S'.
15058
15059 2002-01-24  Kazu Hirata  <kazu@hxi.com>
15060
15061         * config/h8300/h8300.c (print_operand): Remove support for
15062         operand character 'U'.
15063
15064 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
15065
15066         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
15067
15068 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
15069
15070         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
15071         values to be assigned to the stack pointer.
15072
15073 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15074
15075         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
15076         to const_double needs to be done right for big-endian systems.
15077
15078 2002-01-24  Jason Merrill  <jason@redhat.com>
15079
15080         PR c++/2432
15081         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
15082         to can_throw_internal.
15083
15084 2002-01-23  Richard Henderson  <rth@redhat.com>
15085
15086         * fold-const.c (fold): Change UINT_MAX test to check vs precision
15087         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
15088
15089 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15090
15091         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
15092         (symGOT2reg): Use them, then set as GOT value as unchanging.
15093         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
15094         as a temporary, if possible.
15095         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
15096         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
15097
15098 2002-01-23  Kazu Hirata  <kazu@hxi.com>
15099
15100         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
15101         accept to accept 0x80 as operands[2].
15102
15103 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15104
15105         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
15106
15107 2002-01-23  Richard Henderson  <rth@redhat.com>
15108
15109         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
15110
15111 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
15112
15113         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
15114         (parmlist_or_identifiers_1): Verify that only a parmlist follows
15115         an attribute.
15116
15117 2002-01-23  Richard Henderson  <rth@redhat.com>
15118
15119         * expr.c (move_by_pieces_1): Extend size before negation.
15120
15121         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
15122         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
15123         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
15124         * config/m68k/t-m68kelf: Likewise.
15125
15126 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
15127
15128         * config/xtensa/elf.h: New file.
15129         * config/xtensa/lib1funcs.asm: New file.
15130         * config/xtensa/lib2funcs.S: New file.
15131         * config/xtensa/linux.h: New file.
15132         * config/xtensa/t-xtensa: New file.
15133         * config/xtensa/xtensa-config.h: New file.
15134         * config/xtensa/xtensa-protos.h: New file.
15135         * config/xtensa/xtensa.c: New file.
15136         * config/xtensa/xtensa.h: New file.
15137         * config/xtensa/xtensa.md: New file.
15138         * config.gcc (xtensa-*-elf*): New target.
15139         (xtensa-*-linux*): New target.
15140         * cse.c (canon_hash): Compare rtx pointers instead of register
15141         numbers.  This is required for the Xtensa port.
15142         * integrate.c (copy_insn_list): Handle case where the static
15143         chain is in memory and the memory address has to be copied to
15144         a register.
15145         * doc/invoke.texi (Option Summary): Add Xtensa options.
15146         (Xtensa Options): New node.
15147         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
15148
15149 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
15150
15151         * diagnostic.c (internal_error): Do ICE suppression only
15152         when ENABLE_CHECKING is not defined.
15153
15154         * c-typeck.c (require_complete_type): Return error_mark_node
15155         if type is error_mark_node.
15156
15157 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
15158
15159         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
15160         -Os and issue a warning.
15161
15162 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
15163
15164         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
15165         current (lack of) need for host configuration by hand.
15166
15167         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
15168         references.  Documentation of some target macros moved from
15169         hostconfig.texi to tm.texi.
15170
15171 2002-01-23  Will Cohen  <wcohen@redhat.com>
15172
15173         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
15174         defined.
15175
15176 2002-01-23  Kazu Hirata  <kazu@hxi.com>
15177
15178         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
15179         operand[3].
15180
15181 2002-01-23  Jason Merrill  <jason@redhat.com>
15182
15183         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
15184
15185         * function.c (assign_parms): Don't put args of inline functions
15186         into registers when not optimizing.
15187
15188 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
15189
15190         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
15191         (prologue_use): New pattern.
15192         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
15193         preference to gen_rtx_USE.
15194         (thumb_expand_prologue): Use gen_prologue_use in preference to
15195         gen_rtx_USE.
15196         (thumb_expand_epilogue): Use gen_prologue_use in preference to
15197         gen_rtx_USE.
15198
15199 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
15200
15201         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
15202
15203 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15204
15205         PR c/3504
15206         * doc/extend.texi: Correct documentation of __alignof__.
15207
15208 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
15209
15210         * params.h: Rename arguments of DEFPARAM so that it will be
15211         recognized as a translation keyword.
15212
15213 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15214
15215         * extend.texi: Document altivec functions.
15216         Fix N-bit adjectives in X86 builtin documentation.
15217
15218 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15219
15220         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
15221         auto_inc_dec values.
15222
15223 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
15224
15225         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
15226         after backslash.
15227         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
15228
15229 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15230
15231         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
15232
15233 2002-01-22  Richard Henderson  <rth@redhat.com>
15234
15235         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
15236         copy_insn not copy_rtx.
15237
15238 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
15239
15240         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
15241         "nonzero" as that might add "1" bits.  Ensure "constop" is
15242         properly sign extened.
15243         (force_to_mode): Tweak for sign extended constop.
15244
15245 2002-01-22  Richard Henderson  <rth@redhat.com>
15246
15247         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15248         for_each_rtx instead of assuming we're already looking at the MEM.
15249         (split_small_symbolic_mem_operand): Likewise.
15250         * config/alpha/alpha.h (PREDICATE_CODES): Update.
15251         * config/alpha/alpha.md (small symbolic memory splitters): Update.
15252
15253 2002-01-22  Richard Henderson  <rth@redhat.com>
15254
15255         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15256         sequence number for the literal.
15257         (divmoddi_internal_er): Likewise.
15258
15259 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15260
15261         PR java/4972
15262         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15263         in LIBICONV variable.
15264         * configure: Regenerated.
15265
15266 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
15267
15268         * dependence.c (build_def_use): Remove array_idx.
15269
15270         * dwarfout.c (last_filename): Remove.
15271         (output_compile_unit_die): Remove last_filename.
15272
15273 2002-01-22  Roger Sayle  <roger@eyesopen.com>
15274             Richard Henderson  <rth@redhat.com>
15275
15276         PR opt/3640
15277         * fold-const.c (fold): Optimize unsigned comparisons against
15278         UINT_MAX (and similar unsigned constants).
15279
15280 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
15281
15282         * Makefile.in (loop.o): Depend on OPTABS_H.
15283         * loop.c (emit_prefetch_instructions): Check the prefetch operand
15284         against the predicate.
15285
15286         PR target/5379
15287         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15288         for the address operand.
15289
15290 2002-01-22  Richard Henderson  <rth@redhat.com>
15291
15292         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15293
15294 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15295
15296         PR other/5450
15297         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15298         preprocessor flags.
15299
15300 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
15301
15302         * config.gcc (x86_64-*-netbsd*): New target.
15303         * config/i386/netbsd64.h: New file.
15304
15305 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15306
15307         * regrename.c (kill_value): Fix typo.
15308
15309 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15310
15311         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15312
15313         * config/rs6000/rs6000.h: Same.
15314
15315         * function.c (instantiate_virtual_regs): Remove
15316         STARTING_FRAME_PHASE.
15317         (assign_stack_local_1): Same.
15318         Calculate frame phase.
15319
15320 2002-01-22  Nick Clifton  <nickc@redhat.com>
15321
15322         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15323         variable declaration to outer scope in order to simplify
15324         future extensions.
15325         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15326         arm_hard_regno_mode_ok.
15327         * config/arm/arm-protos.h: Add a prototype for
15328         arm_hard_regno_mode_ok.
15329         * config/arm/arm.c (soft_df_operand): Remove now redundant
15330         check for DImode values using IP_REGNUM.
15331         (nonimmediate_soft_df_operand): Remove now redundant check for
15332         DImode values using IP_REGNUM.
15333         (arm_hard_regno_mode_ok): New function. New check: make sure
15334         that DImode values are not stored in IP_REGNUM.
15335
15336         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15337         note with a USE.
15338         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15339
15340 2002-01-22  Jason Merrill  <jason@redhat.com>
15341
15342         * c-semantics.c (genrtl_compound_stmt): Only check nesting
15343         consistency if this COMPOUND_STMT is scoped.
15344
15345 2002-01-22  Kazu Hirata  <kazu@hxi.com>
15346
15347         * predict.c: Fix formatting.
15348         * print-tree.c: Likewise.
15349         * protoize.c: Likewise.
15350         * real.h: Likewise.
15351         * rtl.h: Likewise.
15352         * sbitmap.h: Likewise.
15353         * scan.c: Likewise.
15354         * sched-deps.c: Likewise.
15355         * sched-vis.c: Likewise.
15356         * sdbout.c: Likewise.
15357         * sibcall.c: Likewise.
15358         * ssa.c: Likewise.
15359         * ssa-ccp.c: Likewise.
15360         * ssa-dce.c: Likewise.
15361         * stmt.c: Likewise.
15362         * stor-layout.c: Likewise.
15363         * system.h: Likewise.
15364
15365 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15366
15367         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15368         if fits in bounds of base type.
15369
15370         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15371         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15372         (add_bound_info, default): If can't find a context, make a
15373         SAVE_EXPR.
15374         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15375
15376 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
15377
15378         * c-typeck.c (parser_build_binary_op): If result from
15379         build_binary_op is ERROR_MARK just return error_mark_node without
15380         further processing.
15381
15382 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
15383
15384         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15385         Split a.out-specific bits into...
15386         * config/netbsd-aout.h: ...this.
15387         * config/netbsd-elf.h: New file.
15388         * config/alpha/netbsd-elf.h: Remove.
15389         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15390         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15391         (STARTFILE_SPEC): Remove redundant definition.
15392         (ENDFILE_SPEC): Likewise.
15393         (LINK_SPEC): Likewise.
15394         (CPP_SPEC): Likewise.
15395         (ASM_SPEC): Likewise.
15396         (LIB_SPEC): Likewise.
15397         (SWITCH_TAKES_ARG): Likewise.
15398         (TARGET_MEM_FUNCTIONS): Likewise.
15399         (CPP_PREDEFINES): Redefine.
15400         (ASM_FINAL_SPEC): Remove redefinition.
15401         (ASM_COMMENT_START): Redefine.
15402         (FUNCTION_PROFILER): Define.
15403         (TARGET_VERSION): Redefine.
15404         Comment and formatting cleanup.
15405         * config/i386/netbsd.h: Include <netbsd-aout.h>.
15406         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15407         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15408         big- or little-endian.
15409         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15410         * config.gcc (*-*-netbsd*): Add definitions common to all
15411         NetBSD configs.
15412         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15413         gnu_ld definitions.  Add netbsd-elf.h to and remove
15414         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
15415         tmake_file, and don't lose previous tmake_file contents.
15416         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15417         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15418         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
15419         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15420         (mipsel-*-netbsd*): Rename this to...
15421         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
15422         mips/little.h to tm_file for mips*el-*.
15423         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15424         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15425         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15426
15427 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15428
15429         * pa-protos.h (reg_before_reload_operand): New function prototype.
15430         * pa.c (reg_before_reload_operand): New function implementation.
15431         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
15432         contraints to "*m".
15433
15434 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15435
15436         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15437
15438 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15439
15440         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15441         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15442         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15443         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15444         (ENDFILE_SPEC): Undefine.
15445         (STARTFILE_SPEC): Redefine for PA.
15446
15447 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15448
15449         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15450
15451 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
15452
15453         * config.gcc: Add entries to supported PowerPC --with-cpu
15454         types.
15455
15456 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
15457
15458         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15459         true for 64-bit mode only SSE registers in 32-bit mode.
15460
15461 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15462
15463         * unwind-dw2.c: Fix formatting.
15464         * unwind-dw2-fde.c: Likewise.
15465         * unwind-dw2-fde.h: Likewise.
15466         * unwind-pe.h: Likewise.
15467         * varasm.c: Likewise.
15468         * varray.h: Likewise.
15469
15470 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
15471
15472         Remove workaround for register stack overwrite bug in mmix.
15473         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15474         support for TARGET_REG_STACK_FILL_BUG.
15475         * config/mmix/mmix.h: Remove member has_call_without_parameters.
15476         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15477         Delete.
15478         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15479         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15480         -mno-reg-stack-fill-bug-workaround.
15481         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15482         machine member has_call_without_parameters.
15483         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15484         -mreg-stack-fill-bug-workaround and
15485         -mno-reg-stack-fill-bug-workaround.
15486         (MMIX Options): Ditto.
15487
15488 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15489
15490         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15491         as appropriate.
15492         Remove redundant code.
15493
15494 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15495
15496         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15497         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15498         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15499         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15500         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15501         out target macro definitions and non-target-specific comments
15502         mostly taken from old versions of the manual.
15503
15504 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15505
15506         * config/h8300/h8300.h: Fix comment formatting.
15507         * config/ia64/aix.h: Likewise.
15508         * config/ia64/ia64-protos.h: Likewise.
15509         * config/ia64/ia64.c: Likewise.
15510         * config/ia64/ia64.h: Likewise.
15511         * config/ia64/ia64intrin.h: Likewise.
15512         * config/ia64/linux.h: Likewise.
15513         * config/ia64/unwind-aix.c: Likewise.
15514         * config/ia64/unwind-ia64.c: Likewise.
15515
15516 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15517
15518         * config/h8300/h8300.c: Revise comments about shift code.
15519
15520 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15521
15522         * config/h8300/h8300.c (function_arg): Update a comment.
15523
15524 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15525
15526         * config/h8300/h8300.md: Update the comments at the beginning
15527         of the file.
15528
15529 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15530
15531         * config/i370/i370.c: Fix comment formatting.
15532         * config/i370/i370.h: Likewise.
15533         * config/i370/i370.md: Likewise.
15534         * config/i370/linux.h: Likewise.
15535
15536 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15537
15538         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15539
15540         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15541         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15542         in incomplete case.
15543
15544 2002-01-20  Graham Stott  <grahams@redhat.com>
15545
15546         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15547
15548 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15549
15550         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15551
15552 2002-01-19  Tom Rix  <trix@redhat.com>
15553
15554         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15555
15556 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15557
15558         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15559
15560         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15561         STARTING_FRAME_PHASE.
15562         (STARTING_FRAME_PHASE): New.
15563         (instantiate_virtual_regs): Check saneness of
15564         STARTING_FRAME_PHASE.
15565
15566         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15567
15568 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15569
15570         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15571
15572 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15573
15574         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15575         be used for bootstrapping GCC 3.0.
15576
15577 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15578
15579         * config/h8300/h8300.md: Fix an insn length.
15580
15581 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15582
15583         * bitmap.h: Fix comment formatting.
15584         * combine.c: Likewise.
15585         * cppfiles.c: Likewise.
15586         * c-pragma.h: Likewise.
15587         * c-typeck.c: Likewise.
15588         * df.c: Likewise.
15589         * dwarf2out.c: Likewise.
15590         * function.c: Likewise.
15591         * gcc.c: Likewise.
15592         * genattrtab.c: Likewise.
15593         * gthr-win32.h: Likewise.
15594         * haifa-sched.c: Likewise.
15595         * predict.c: Likewise.
15596         * rtlanal.c: Likewise.
15597         * rtl.h: Likewise.
15598         * unwind-dw2-fde.h: Likewise.
15599         * unwind-pe.h: Likewise.
15600         * vmsdbgout.c: Likewise.
15601
15602 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15603
15604         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15605         if type_required and passed decl.
15606
15607 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15608
15609         * config.gcc (cpu_type): Include altivec.h in powerpc
15610         extra_headers.
15611         Same for darwin.
15612
15613         * config/rs6000/altivec.h: New.
15614
15615 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15616
15617         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15618         handling information.
15619         * doc/trouble.texi (Interoperation): Add libstdc++ information
15620         for AIX.
15621         (Misunderstandings): Add template instantiation and static template
15622         member information for AIX.
15623
15624 2002-01-17  Jason Merrill  <jason@redhat.com>
15625
15626         * dbxout.c (dbxout_type): Support const and volatile.
15627
15628         * except.c (add_partial_entry): Remove backwards compatibility code.
15629         (end_protect_partials): Likewise.
15630
15631 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15632
15633         * config/ia64/ia64.md (prologue_use): New.
15634         * config/ia64/ia64.c (ia64_expand_prologue): Use
15635         gen_prologue_use instead of gen_rtx_USE.
15636         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15637         as CODE_FOR_pred_rel_mutex.
15638         (ia64_sched_reorder2): Likewise.
15639
15640 2002-01-16  Eric Christopher  <echristo@redhat.com>
15641
15642         * config/mips/r3900.h: Reformat.
15643         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15644         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15645         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15646         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15647         * config/mips/t-elf: Remove mips3 multilib.
15648
15649 2002-01-16  H.J. Lu <hjl@gnu.org>
15650
15651         * config/mips/linux.h: Include "mips/abi64.h".
15652
15653 2002-01-16  H.J. Lu <hjl@gnu.org>
15654
15655         * config/mips/t-linux: New.
15656
15657         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15658
15659         * config/mips/linux.h: Don't include "gofast.h".
15660         (INIT_SUBTARGET_OPTABS): Removed.
15661
15662 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15663
15664         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15665         output_a_shift.
15666         * config/h8300/h8300.c: Likewise.
15667         * config/h8300/h8300.md: Likewise.
15668
15669 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15670
15671         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15672         spaces after an opcode name.
15673         (pushqi1_h8300hs): Likewise.
15674         (pushhi1_h8300hs): Likewise.
15675
15676 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15677
15678         * doc/extend.texi: Replace "option" with "attribute"
15679         appropriately.
15680
15681 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15682
15683         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15684         (and:DI () (const_int -8)).
15685         (split_small_symbolic_mem_operand): Split
15686         (mem (and:DI () (const_int -8)).
15687
15688 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15689
15690         PR target/5309:
15691         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15692         same way as TYPE_IMUL.
15693         (ultrasparc_sched_reorder): Likewise.
15694         * config/sparc/sparc.md (type): Add comment to update
15695         ultrasparc_sched_reorder when making changes.
15696
15697 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15698
15699         * doc/invoke.texi: Change the dump file name of block
15700         reordering pass from 28.bbro to 29.bbro.
15701         Mention -dk option.
15702
15703 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15704
15705         * i386.md (minsf splitter): Fix pasto.
15706
15707 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15708
15709         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15710         to frame pointer initialisation instruction.
15711         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15712         initialisation instruction.
15713         (soft_df_operand): Do not accept the IP register.
15714         (nonimmediate_soft_df_operand): Do not accept the IP register.
15715
15716 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15717
15718         PR target/5357:
15719         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15720         MASK_V8 being both set.
15721
15722 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15723
15724         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15725         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15726         config/s390/s390.md (call, call_value): Add GOT register to
15727         CALL_INSN_FUNCTION_USAGE where needed.
15728         (call_exp, call_value_exp): New.
15729
15730 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15731
15732         * config/arm/arm.c: General formatting tidy up.
15733
15734 2002-01-16  Graham Stott  <grahams@redhat.com>
15735
15736         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15737         cast and when casting an integer literal to "rtx" pointer.
15738         (expand_call): Likewise.
15739         * flow.c (try_pre_increment): Likewise.
15740         (find_use_as_address): Likewise.
15741         * integrate.c (expand_iline_function): Likewise.
15742         * regmove.c (try_auto_increment): Likewise.
15743
15744 2002-01-16  Graham Stott  <grahams@redhat.com>
15745
15746         * sched-rgn.c (passed): Use sbitmap_free.
15747         (header): Likewise.
15748         (inner): Likewise.
15749         (in_queue): Likewise.
15750         (in_stack): Likewise.
15751
15752 2002-01-15  Eric Christopher  <echristo@redhat.com>
15753
15754         * flow.c (propagate_one_insn): Change to use fatal_insn.
15755
15756 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15757
15758         * expmed.c (extract_fixed_bit_field): Remove unused code.
15759         * system.h: Poison SLOW_ZERO_EXTEND.
15760         * doc/tm.texi: Remove.
15761         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15762         * config/arm/arm.h: Likewise.
15763         * config/avr/avr.h: Likewise.
15764         * config/clipper/clipper.h: Likewise.
15765         * config/convex/convex.h: Likewise.
15766         * config/d30v/d30v.h: Likewise.
15767         * config/dsp16xx/dsp16xx.h: Likewise.
15768         * config/elxsi/elxsi.h: Likewise.
15769         * config/fr30/fr30.h: Likewise.
15770         * config/h8300/h8300.h: Likewise.
15771         * config/i370/i370.h: Likewise.
15772         * config/i386/i386.h: Likewise.
15773         * config/m68k/m68k.h: Likewise.
15774         * config/mips/mips.h: Likewise.
15775         * config/ns32k/ns32k.h: Likewise.
15776         * config/pdp11/pdp11.h: Likewise.
15777         * config/pj/pj.h: Likewise.
15778         * config/s390/s390.h: Likewise.
15779         * config/sh/sh.h: Likewise.
15780         * config/stormy16/stormy16.h: Likewise.
15781         * config/v850/v850.h: Likewise.
15782         * config/vax/vax.h: Likewise.
15783         * config/we32k/we32k.h: Likewise.
15784
15785 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15786
15787         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15788         (altivec_lvsl): Change constraint to b.
15789         (altivec_lvsr): Same.
15790         (altivec_lvebx): Same.
15791         (altivec_lvehx): Same.
15792         (altivec_lvewx): Same.
15793         (altivec_lvxl): Same.
15794         (altivec_lvx): Same.
15795         (altivec_stvx): Add parallel.
15796         (altivec_stvxl): Same.
15797         (altivec_stvehx): Same.
15798         (altivec_stvebx): Same.
15799         (altivec_stvebx): Same.
15800
15801 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15802
15803         * config.gcc: Change altivec.h to altivec-defs.h.
15804
15805         * config/rs6000/altivec.h: Delete.
15806
15807         * config/rs6000/altivec-defs.h: Add.
15808
15809 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15810
15811         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15812         and UMOD modes.
15813
15814         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15815         less than or equal to eight bytes.
15816
15817         * vax.md (andsi3): Remove constraints and change SET destination
15818         operand type to nonimmediate_operand.
15819         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15820         when it is a CONST_INT.
15821
15822 2002-01-15  Jason Merrill  <jason@redhat.com>
15823
15824         * c-common.def (FILE_STMT): New code.
15825         * c-common.c (statement_code_p): It's a statement.
15826         * c-common.h (stmt_tree_s): Add x_last_filename.
15827         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15828         (last_expr_filename): New macro.
15829         * c-semantics.c (begin_stmt_tree): Initialize it.
15830         (add_stmt): If the filename changed, also insert a
15831         FILE_STMT.
15832         (expand_stmt): Handle seeing one.
15833
15834 2002-01-15  Eric Christopher  <echristo@redhat.com>
15835
15836         * flow.c (propagate_one_insn): Add error message and print out
15837         insn for debugging.
15838
15839 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15840
15841         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15842         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15843         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15844         TRAMPOLINE_ALIGNMENT.
15845         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15846         to be in bits.
15847         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15848         PCC_BITFIELD_TYPE_MATTERS.
15849         * config/interix.h (STDC_VALUE): Remove.  Use
15850         STDC_0_IN_SYSTEM_HEADERS.
15851         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15852         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15853         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15854
15855 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15856
15857         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15858         not work on this platform currently.
15859
15860 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15861
15862         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15863         readonly_warning in _().
15864
15865 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15866
15867         * gcc.c (delete_if_ordinary): Backout previous change.
15868
15869 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15870
15871         * config/h8300/h8300.c (print_operand): Remove support for
15872         unused operand characters.
15873
15874         * read-rtl.c: Fix formatting.
15875         * real.c: Likewise.
15876         * recog.c: Likewise.
15877         * regclass.c: Likewise.
15878         * regmove.c: Likewise.
15879         * reg-stack.c: Likewise.
15880         * reload1.c: Likewise.
15881         * rtlanal.c: Likewise.
15882
15883 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15884
15885         * config/i386/i386.c: Fix formatting.
15886
15887 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15888
15889         * c-typeck.c (process_init_element): Don't save_expr
15890         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15891
15892 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15893
15894         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15895         emit optional traceback table if optimize_size or TARGET_ELF.
15896         * config/rs6000/rs6000.md (prefetch): New.
15897
15898 2002-01-15  Andreas Jaeger  <aj@suse.de>
15899
15900         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15901
15902 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15903
15904         * mips-tfile.c: Fix formatting.
15905
15906 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15907
15908         * unroll.c (final_reg_note_copy): Fix previous commit.
15909
15910 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15911
15912         * config/h8300/h8300-protos.h: Remove the prototype for
15913         eq_operator.
15914         * config/h8300/h8300.c (eq_operator): Remove.
15915
15916 2002-01-14  Richard Henderson  <rth@redhat.com>
15917
15918         * config/i386/i386.md (prefetch): Tidy.
15919         (prefetch_3dnow): Fix locality operand.
15920
15921 2002-01-14  Richard Henderson  <rth@redhat.com>
15922
15923         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15924         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15925
15926 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15927
15928         * reload1.c (reload_combine): Pass reg_sum replacement through
15929         copy_rtx in loop performing multiple changes.
15930
15931 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15932
15933         * except.c (remove_unreachable_regions): New.
15934         (free_eh_status): Clear exception_handler_labels.
15935         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15936         (find_exception_handler_labels): Don't add the same label more than
15937         once.
15938         (remove_exception_handler_label): Don't die if
15939         find_exception_handler_labels hasn't been called for the current
15940         function yet.
15941
15942 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15943
15944         * toplev.c (rest_of_compilation): Rebuild jump labels after
15945         gcse.
15946
15947 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15948
15949         * doc/extend.texi: Move documentation of X86 built-in functions
15950         here.
15951         * doc/invoke.texi: From here.
15952         * doc/sourcebuild.texi: Document location of documentation for
15953         machine built-in functions.
15954
15955 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15956
15957         * cppfiles.c (TEST_THRESHOLD): New macro.
15958         (SHOULD_MMAP): Ditto.
15959         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15960         be used.
15961
15962 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15963
15964         * unroll.c (final_reg_note_copy): Properly handle
15965         REG_LABEL
15966         (unroll_loops): Fix LOOP_CONDITION heuristics.
15967
15968 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15969
15970         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15971         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15972
15973 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15974
15975         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15976         threaded loop.
15977
15978 2002-01-14  Tom Rix  <trix@redhat.com>
15979
15980         * config/rs6000/rs6000.md: Fix typo with sradi.
15981
15982 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15983
15984         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15985         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15986         (clrstrdi, clrstrsi): Adapt callers.
15987
15988         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15989
15990         (movti splitter): Never use register 0 as base register.
15991
15992 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15993
15994         * combine.c (simplify_shift_const): Always generate new rtx
15995         for shift expression instead of reusing given expression.
15996
15997 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15998
15999         * config/alpha/alpha.c (alpha_expand_mov): Don't call
16000         alpha_legitimize_address unless mode is Pmode.
16001
16002 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
16003
16004         * doc/md.texi (Modifiers): Document the '*' constraint for the
16005         user.
16006
16007         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
16008         * doc/extend.texi (Function Attributes): 'interrupt' is valid
16009         for xstormy16 too.
16010
16011 2002-01-13  Richard Henderson  <rth@redhat.com>
16012
16013         * reload.c (find_reloads): Use a hard reg destination as reload reg
16014         for an input reload of the source.
16015
16016 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16017
16018         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
16019         more generic.
16020
16021 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
16022
16023         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
16024         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
16025
16026         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
16027
16028 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16029
16030         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
16031
16032 2002-01-12  Tom Rix  <trix@redhat.com>
16033
16034         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
16035         TARGET_POWERPC64.
16036
16037 2002-01-12  Richard Henderson  <rth@redhat.com>
16038
16039         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
16040
16041         * doc/invoke.texi: Update Alpha options.
16042
16043         * doc/invoke.texi: Update i386 built-in function lists.
16044
16045 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
16046
16047         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
16048         referencing outside.
16049
16050 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16051
16052         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
16053         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
16054         offsets, and change line folding.
16055         * optabs.c (expand_binop): Remove warnings.
16056         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
16057
16058 2002-01-12  Graham Stott <grahams@redhat.com>
16059
16060         * attribs.c (handle_deprecated_attribute): constify WHAT.
16061         * diagnostic.c (warn_deprecated_use): Add braces, fixes
16062         dangling else warning and constify WHAT.
16063         * except.h (struct function, struct inline_remap): Move
16064         struct tag forward defs before all prototypes.
16065         (duplicate_eh_regions): Whitespace.
16066
16067 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
16068
16069         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16070         MODE_BASE_REG_CLASS.
16071         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
16072
16073 2002-01-12  Richard Henderson  <rth@redhat.com>
16074
16075         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
16076         (ix86_expand_vector_move): New.
16077         (bdesc_2arg): Remove andps, andnps, orps, xorps.
16078         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
16079         Remove old prefetch builtins.  Special case the logicals removed above.
16080         (ix86_expand_builtin): Likewise.
16081         (safe_vector_operand): Use V4SFmode, not TImode.
16082         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
16083         (ix86_expand_timode_binop_builtin): New.
16084         * config/i386/i386-protos.h: Update.
16085         * config/i386/i386.h (enum ix86_builtins): Update.
16086         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
16087         Use ix86_expand_vector_move in vector move expanders.
16088         (movti_internal, movti_rex64): Add xorps alternative.
16089         (sse_clrv4sf): Rename and adjust from sse_clrti.
16090         (prefetch): Don't work so hard.
16091         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
16092         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
16093         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
16094
16095 2002-01-11  Richard Henderson  <rth@redhat.com>
16096
16097         * config/i386/mmintrin.h: New file.
16098         * config/i386/xmmintrin.h: New file.
16099         * config.gcc (i?86-*-*): Add extra_headers.
16100         * simplify-rtx.c (simplify_unary_operation): Handle saturating
16101         truncation codes.
16102         (simplify_binary_operation): Handle saturating arithmetic codes.
16103         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
16104         not the lowpart subreg.
16105         (ix86_expand_builtin): Return a TImode dummy register instead of 0
16106         on error.
16107         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
16108
16109 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16110
16111         * conflict.c (conflict_graph_compute): Free regsets when finished.
16112         * ssa.c (compute_coalesced_reg_partition): Likewise.
16113
16114 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16115
16116         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
16117         every where we allocate a register.
16118
16119 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16120
16121         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
16122         * lcm.c (compute_earliest, compute_farthest): Likewise.
16123
16124 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
16125
16126         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
16127
16128 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
16129
16130         * doc/rtl.texi (Insns): Fix 2 typos.
16131
16132 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
16133
16134         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
16135         options.  Use @table @gcctabopt for MMIX options.  Add index
16136         entries for MMIX options.  Start new paragraph with first
16137         heading of the machine-dependent options.
16138
16139 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16140
16141         PR other/5299
16142         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
16143         * combine.c (force_to_mode): Same.
16144         * reload1.c (clear_reload_reg_in_use): Same.
16145
16146 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
16147
16148         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
16149         and 'subtargets'.
16150
16151 2002-01-11  Andreas Jaeger  <aj@suse.de>,
16152             Brad Lucier <lucier@math.purdue.edu>
16153
16154         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
16155         mcpu.
16156
16157 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
16158
16159         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
16160         Protect with IN_LIBGCC.
16161         (LINK_EH_SPEC): Add required trailing space.
16162
16163 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16164
16165         * c-tree.h: Move function declarations so that they are listed
16166         under the filename which contains them.
16167         (check_identifier, finish_decl_top_level,
16168         lookup_name_current_level_global, shadow_record_fields): Remove.
16169
16170 2002-01-11  Andreas Jaeger  <aj@suse.de>
16171
16172         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
16173         march.
16174
16175 2002-01-10  Richard Henderson  <rth@redhat.com>
16176
16177         * config/alpha/alpha.c (print_operand): Add 'J'.
16178         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
16179         new operand with the sequence number for the lituse.  When splitting
16180         the insns, use gen_movdi_er_high_g and generate a sequence number.
16181         (gen_movdi_er_high_g): Print the sequence number if non-zero.
16182
16183 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
16184
16185         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
16186         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
16187         stvxl.
16188         (altivec_expand_builtin): Same.
16189         (altivec_expand_stv_builtin): New.
16190
16191         * config/rs6000/rs6000.h (rs6000_builtins): Same.
16192
16193         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
16194         ("altivec_lvehx"): New.
16195         ("altivec_lvewx"): New.
16196         ("altivec_lvxl"): New.
16197         ("altivec_lvx"): New.
16198         ("altivec_stvx"): New.
16199         ("altivec_stvebx"): New.
16200         ("altivec_stvehx"): New.
16201         ("altivec_stvewx"): New.
16202         ("altivec_stvxl"): New.
16203
16204 2002-01-10  Richard Henderson  <rth@redhat.com>
16205
16206         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
16207         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
16208         care not to delete instructions twice.
16209
16210 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16211
16212         * toplev.c: Don't declare environ (it's not used anywhere).
16213         * configure.in: Don't check for declaration of environ.
16214         * config/i386/xm-mingw32.h: Don't #define environ.
16215         * config.in, configure: Regenerate.
16216
16217 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16218
16219         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
16220         * configure: Regenerate.
16221
16222         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
16223         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
16224         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
16225         alpha/xm-vms.h.
16226         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
16227         LIMITS_H_TEST here, not in m68k/x-next.
16228         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
16229         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
16230
16231         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
16232         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
16233         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
16234
16235         * config/i386/x-djgpp: Renamed i386/t-djgpp.
16236         * config/m88k/x-dolph: Renamed m88k/t-dolph.
16237         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
16238         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
16239         replacement of quadlib.asm with quadlib.c.
16240
16241         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
16242         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
16243         config/rs6000/xm-beos.h: Delete file.
16244
16245         * config.gcc: Update to match above changes.
16246
16247 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16248
16249         * config/h8300/h8300.h: Fix comment typos.
16250         * config/h8300/h8300.md: Likewise.
16251         * config/h8300/lib1funcs.asm: Likewise.
16252
16253 2002-01-10  Dale Johannesen  <dalej@apple.com>
16254
16255         PR optimization/5269
16256         * unroll.c (precondition_loop_p): Make *increment be the correct
16257         sign when n_iterations known, to avoid confusing caller.
16258
16259 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16260
16261         * doc/extend.texi (deprecated): Fix a typo.
16262
16263 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16264
16265         * basic-block.h (update_br_prob_note): Declare.
16266         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16267         (try_forward_edges): Care negative frequencies and update note.
16268         (outgoing_edges_match): Tweek conditional merging heuristics.
16269         (try_crossjump_to_edge): use update_br_prob_note.
16270         * cfglayout.c (fixup_reorder_chain): Likewise.
16271         * cfrtl.c (update_br_prob_note): New.
16272         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16273
16274         * i386.c (ix86_decompose_address): Return -1 if address contains
16275         shift.
16276         (legitimate_address_p): Require ix86_decompose_address to return 1.
16277
16278         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16279         (cprop_insn): Likewise.
16280
16281 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16282
16283         * toplev.c: Fix formatting.
16284         * tree.c: Likewise.
16285         * tree-dump.c: Likewise.
16286         * unroll.c: Likewise.
16287         * unwind-dw2.c: Likewise.
16288         * unwind-dw2-fde.c: Likewise.
16289         * unwind-dw2-fde-glibc.c: Likewise.
16290         * unwind-sjlj.c: Likewise.
16291
16292 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16293
16294         * doc/invoke.texi: Document PDP-11 options.
16295
16296 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16297
16298         * config/h8300/h8300.h: Fix formatting.
16299
16300 2002-01-10  Ira Ruben   <ira@apple.com>
16301
16302         Add __attribute__ ((deprecated)).
16303         * extend.texi: Document __attribute__ ((deprecated)).
16304         * invoke.texi: Document -Wno-deprecated-declarations.
16305         * testsuite/g++.dg/other/deprecated.C: New C++ test.
16306         * testsuite/gcc.dg/deprecated.c: New C test.
16307         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16308         (c_common_attribute_table): Add "deprecated" entry.
16309         (handle_deprecated_attribute): New function.
16310         * c-decl.c (deprecated_states): New enum.
16311         deprecated_state: State of "deprecated" handling.
16312         (start_decl): Set deprecated_state based on attributes.
16313         (grokdeclarator): Test for deprecated uses, propagate attribute.
16314         * c-typeck.c (build_component_ref): Test for deprecated fields.
16315         (build_external_ref): Test for deprecated primaries.
16316         * diagnostic.c (warn_deprecated_use) New function to issue
16317         warnings about __attribute__ ((depricated)) references.
16318         * flags.h (warn_deprecated_decl): Extern declared for
16319         -W[no-]deprecated-declarations option.
16320         * print-tree.c (print_node): Show deprecated flag status.
16321         * toplev.c (warn_deprecated_decl): Defined.
16322         (W_options): Added "deprecated-declaration".
16323         * toplev.h (warn_deprecated_use): Extern declared.
16324         * tree.h (struct tree_common): Define deprecated_flag.
16325         (TREE_DEPRECATED): New macro to access flag.
16326         * cp/call.c (build_call): Test for deprecated calls.
16327         * cp/class.c (add_implicitly_declared_members): Set global
16328         flag to tell grokdeclarator to not issue deprecated warnings.
16329         * cp/cp-tree.h: Add extern for adding_implicit_members.
16330         * cp/decl.c (deprecated_states): New enum.
16331         (start_decl): Set deprecated_state based on attributes.
16332         (grokdeclarator): Test for deprecated uses, propagate attribute.
16333         * cp/lex.c (do_identifier): Test for deprecated primaries.
16334         * cp/typeck.c (build_component_ref): Test for deprecated fields.
16335
16336 2002-01-10  Ira Ruben   <ira@apple.com>
16337
16338         Fix to assign attributes to inline member functions.
16339         * cp/decl.c (start_method): Handle attrlist.
16340
16341 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16342
16343         * combine.c (expand_field_assignment): Use subreg_lsb().
16344
16345 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
16346
16347         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16348         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16349         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16350         Recurse for any operand of AND as long as constant is non-zero.
16351
16352 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16353
16354         * config/h8300/h8300.md: Remove constraints from expanders.
16355
16356 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16357
16358         * varasm.c: Fix formatting.
16359         * varray.c: Likewise.
16360         * vmsdbgout.c: Likewise.
16361         * xcoffout.c: Likewise.
16362
16363 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
16364
16365         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16366         update edge probabilities to match.
16367
16368 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16369
16370         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16371         dependencies.
16372         * doc/languages.texi, doc/sourcebuild.texi: New files.
16373         * doc/configfiles.texi: Make a subsubsection.  Update.
16374         * doc/configterms.texi: Add @node.  Remove warning that this isn't
16375         instructions for building GCC.
16376         * doc/makefile.texi: Make a subsection.
16377         * doc/gccint.texi: Update.
16378
16379 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
16380
16381         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16382
16383 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16384
16385         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16386
16387 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
16388
16389         * optabs.c (expand_fix): Look for wider integer modes first.
16390
16391         * i386.md (mov?f): Avoid the fake const double trick for medium
16392         memory model.
16393         (min?f*/max?f*): Prohibit memory operands for i387 variant.
16394         (fop_df_4): Disable for SSE compilation.
16395
16396 2002-01-10  Graham Stott  <grahams@redhat.com>
16397
16398         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16399         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16400
16401 2002-01-10  Richard Henderson  <rth@redhat.com>
16402
16403         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16404
16405 2002-01-10  Richard Henderson  <rth@redhat.com>
16406
16407         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16408         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
16409
16410 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16411
16412         * combine.c (can_combine_p): Fix a comment typo.
16413
16414 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
16415
16416         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16417         empty list correctly.  Change loop index $t to $f for
16418         consistency with rest of Makefile.
16419
16420 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
16421
16422         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16423         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16424
16425         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16426         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16427         (altivec_init_builtins): Same.
16428         (altivec_expand_unop_builtin): Return NULL_RTX on error.
16429         (altivec_expand_binop_builtin): Same.
16430         (altivec_expand_ternop_builtin): Same.
16431         (bdesc_dst): New.
16432
16433         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16434         ("altivec_vctuxs"): Fix typo.
16435         ("altivec_vnmsubfp"): Same.
16436         ("altivec_dssall"): New.
16437         ("altivec_mfvscr"): New.
16438         ("altivec_dss"): New.
16439         ("altivec_lvsl"): New.
16440         ("altivec_lvsr"): New.
16441         ("altivec_dstt"): New.
16442         ("altivec_dstst"): New.
16443         ("altivec_dststt"): New.
16444         ("altivec_dst"): New.
16445
16446         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16447         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16448
16449 2002-01-09  Richard Henderson  <rth@redhat.com>
16450
16451         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16452
16453 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
16454
16455         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16456         function.
16457         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16458         prototype.
16459         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16460
16461 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16462
16463         * read-rtl.c: Fix formatting.
16464         * real.c: Likewise.
16465         * regclass.c: Likewise.
16466         * regrename.c: Likewise.
16467         * reg-stack.c: Likewise.
16468         * reload1.c: Likewise.
16469         * reload.c: Likewise.
16470         * rtl.c: Likewise.
16471
16472 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16473
16474         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16475         to extract items in the expr_list chain.
16476
16477 2002-01-09  Richard Henderson  <rth@redhat.com>
16478
16479         * config/vax/vax.c (vax_rtx_cost): Never abort.
16480
16481         * config/vax/vax.h (REAL_ARITHMETIC): Define.
16482
16483 2002-01-09  Jan Hubicka  <jh@suse.cz>
16484
16485         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16486
16487 2002-01-09  Richard Henderson  <rth@redhat.com>
16488
16489         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16490         Unify code from various alternatives.
16491
16492 2002-01-09  Richard Henderson  <rth@redhat.com>
16493
16494         * regrename.c (copy_value): Ignore the copy if the source register
16495         is present in the value chain with a narrower mode.
16496
16497 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
16498
16499         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16500         for the c4x target. Also improve layout.
16501
16502 2002-01-09  Richard Henderson  <rth@redhat.com>
16503
16504         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16505         * config/m32r/m32r.md (and ior xor splitters): Swap operands
16506         to match insn patterns.
16507
16508 2002-01-09  Richard Henderson  <rth@redhat.com>
16509
16510         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16511         (copyprop_hardreg_forward_1): Likewise.
16512
16513 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16514
16515         * pa.md (decrement_and_branch_until_zero): Change predicate for
16516         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16517
16518 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16519
16520         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16521         gets undefined. For Darwin.
16522
16523 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16524
16525         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16526
16527 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16528
16529         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16530
16531 2002-01-08  Richard Henderson  <rth@redhat.com>
16532
16533         * regrename.c (copy_value): Ignore overlapping copies.
16534
16535 2002-01-08  Richard Henderson  <rth@redhat.com>
16536
16537         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16538         as needed to avoid shared structure.
16539
16540 2002-01-08  Kazu Hirata  <kazu@hxi.com>
16541
16542         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16543         H8/300H and H8/S.
16544
16545 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16546
16547         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16548         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16549         documentation of obsolete macros.
16550         * system.h: Poison these macros.
16551         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16552         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16553         config/c4x/c4x.h, config/clipper/clipper.h,
16554         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16555         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16556         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16557         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16558         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16559         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16560         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16561         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16562         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16563         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16564         config/sparc/sparc.h, config/stormy16/stormy16.h,
16565         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16566         definitions and commented out definitions of obsolete macros.
16567         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16568         of MAX_INT_TYPE_SIZE.
16569
16570 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16571
16572         * config/s390/s390.c (s390_preferred_reload_class): Never
16573         return ADDR_REGS if it isn't a subset of the given class.
16574         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16575         FP_REGS, but all superclasses as well.
16576
16577         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16578
16579         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16580         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16581         must not be a const_int.
16582
16583 2002-01-08  Richard Henderson  <rth@redhat.com>
16584
16585         * Makefile.in (toplev.o): Depend on options.h.
16586         (gcc.o): Depend on specs.h.
16587
16588 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16589
16590         * expr.c (store_expr): Convert VOIDmode constants back to target's
16591         mode.
16592
16593 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16594
16595         * doc/invoke.texi: Markup gcc as @command.  Refer to
16596         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16597         of http://gcc.gnu.org/thanks.html.
16598
16599 2002-01-08  Dale Johannesen  <dalej@apple.com>
16600
16601         * config/rs6000/rs6000.md: Add missing int register
16602         target case to movdf_low.
16603
16604 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16605
16606         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16607         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16608         (cppinit.o): Depend on except.h.
16609         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16610         s-specs): New rules.
16611
16612         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16613         Don't create specs.h/options.h/gencheck.h here.  Remove
16614         unnecessary variable settings from last argument of AC_OUTPUT.
16615         * config.in, configure: Regenerate.
16616         * intl.c: Hardcode package name as "gcc".
16617
16618         * cppinit.c: Include except.h.
16619         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16620         appropriate.
16621         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16622         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16623         (!)USING_SJLJ_EXCEPTIONS.
16624         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16625
16626 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16627
16628         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16629         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16630         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16631         documentation of obsolete macros.
16632         * system.h: Poison these macros.
16633         * config/d30v/d30v.h, config/ns32k/encore.h,
16634         config/stormy16/stormy16.h: Remove definitions and commented out
16635         definitions of obsolete macros.
16636
16637 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16638
16639         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16640         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16641         warnings.
16642
16643 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16644
16645         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16646         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16647         to insn adjusting stack/frame pointer.
16648         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16649         accept operands that cause the insn to be non-splittable.
16650
16651 2002-01-08  Graham Stott  <grahams@redhat.com>
16652
16653         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16654         (C_TYPE_FIELDS_VOLATILE): Likewise.
16655         (C_TYPE_BEING_DEFINED): Likewise.
16656         (C_IS_RESERVED_WORD): Likewise.
16657         (C_TYPE_VARIABLE_SIZE): Likewise.
16658         (C_DECL_VARIABLE_SIZE): Likewise.
16659         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16660         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16661         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16662         parenthesis.
16663         (C_DECL_ANTICIPATED): Likewise.
16664         (c_build_type_variant): Add parenthesis.
16665
16666 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16667
16668         * gcc.c (option_map): Remove --version.
16669         (process_command): Handle -fversion following the GNU Coding
16670         Standards.  Partially addresses PR other/704.
16671
16672 2002-01-08  Graham Stott  <grahams@redhat.com>
16673
16674         * combine.c (combine_instructions): Fix typo.
16675
16676 2002-01-08  Graham Stott  <grahams@redhat.com>
16677
16678         * debug.h: Use "tree" and "rtx" throughout.
16679
16680         * debug.c: Likewise.
16681
16682 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16683
16684         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16685         constant pool, use the pool's version of the symbol instead.
16686
16687 2002-01-07  Richard Henderson  <rth@redhat.com>
16688
16689         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16690         the original register was copied in a mode with a fewer number of
16691         hard registers than the desired mode.
16692         (copyprop_hardreg_forward_1): Likewise.
16693         (debug_value_data): Fix loop test.
16694         * toplev.c (parse_options_and_default_flags): Reenable
16695         -fcprop-registers at -O1.
16696
16697 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16698
16699         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16700         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16701
16702         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16703         predicates.
16704
16705         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16706
16707 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16708
16709         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16710         (pa_output_function_prologue): Output local label at the beginning of
16711         the prologue when profiling.
16712         (hppa_profile_hook): Use the local label rather than the function label.
16713         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16714
16715 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16716
16717         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16718         (altivec_expand_unop_builtin): Fix thinko.
16719         (altivec_expand_binop_builtin): Same.
16720         (altivec_expand_ternop_builtin): Same.
16721         (altivec_expand_builtin): Same.
16722
16723 2002-01-07  Richard Henderson  <rth@redhat.com>
16724
16725         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16726
16727 2002-01-07  Jason Merrill  <jason@redhat.com>
16728
16729         * unwind-dw2.c (execute_cfa_program): Use < again.
16730
16731 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16732
16733         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16734
16735 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16736
16737         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16738         Don't allow -1 - x -> ~x simplifications in the first pass.
16739
16740 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16741
16742         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16743         arguments.
16744         (altivec_expand_binop_builtin): Same.
16745         (altivec_expand_unop_builtin): Same.
16746         (print_operand): Fix typo.
16747         (bdesc_1arg): Add vupk* variants.
16748
16749         * rs6000.h (rs6000_builtins): Add vupk* enums.
16750
16751         * rs6000.md: Add altivec_vupk* variants.
16752
16753 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16754
16755         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16756         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16757         and last update dates.
16758
16759 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16760
16761         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16762
16763 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16764
16765         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16766         * config/avr/avr.h (CPP_SPEC): Likewise.
16767         (LINK_SPEC): Likewise.
16768         (CRT_BINUTILS_SPECS): Likewise.
16769         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16770         * doc/invoke.texi (AVR Options): Document them.
16771
16772 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16773
16774         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16775         LABEL_NUSES.
16776
16777 2002-01-07  Graham Stott  <grahams@redhat.com>
16778
16779         * config/i386/i386.h: Update copyright date.
16780         (HALF_PIC_PTR): Add parenthesis.
16781         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16782         (CONSTANT_ALIGNMENT): Add parenthesis.
16783         (DATA_ALIGNMENT): Likewise.
16784         (LOCAL_ALIGNMENT): Likewise.
16785         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16786         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16787         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16788         (HARD_REGNO_NREGS): Add paranethesis.
16789         (VALID_SSE_REG_MODE): Whitespace.
16790         (VALID_MMX_REG_MODE): Whitespace.
16791         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16792         (ix86_hard_regno_mode_ok): Add parenthesis.
16793         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16794         (RETURN_IN_MEMORY): Whitespace.
16795         (N_REG_CLASSES): Add parenthesis.
16796         (INTEGER_CLASS_P): Add parenthesis and wrap.
16797         (FLOAT_CLASS_P): Likewise.
16798         (SSE_CLASS_P): Likewise.
16799         (MMX_CLASS_P): Likewise.
16800         (MAYBE_INTEGER_CLASS_P): Likewise.
16801         (MAYBE_FLOAT_CLASS_P): Likewise.
16802         (MAYBE_SSE_CLASS_P): Likewise.
16803         (MAYBE_MMX_CLASS_P): Likewise.
16804         (Q_CLASS_P): Likewise.
16805         (GENERAL_REGNO_P): Uppercase macro parameter.
16806         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16807         (FP_REGNO_P): Likewise.
16808         (ANY_FP_REGNO_P): Uppercase macro parameter.
16809         (SSE_REGNO_P): Likewise.
16810         (SSE_REGNO): Likewise.
16811         (SSE_REG_P): Likewise.
16812         (SSE_FLOAT_MODE_P): Likewise.
16813         (MMX_REGNO_P): Likewise.
16814         (MMX_REG_P):Likewise.
16815         (STACK_REG_P): Likewise.
16816         (NON_STACK_REG_P): Likewise.
16817         (STACK_TOP_P): Likewise.
16818         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16819         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16820         (SECONDARY_MEMORY_NEEDED): Likewise.
16821         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16822         (MD_ASM_CLOBBERS): Whitespace and wrap.
16823         (MUST_PASS_IN_STACK): Whitespace and wrap.
16824         (RETURN_POPS_ARGS): Add parenthesis.
16825         (INIT_CUMULATIVE_ARGS): Likewise.
16826         (FUNCTION_ARG): Likewise.
16827         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16828         (SETUP_INCOMING_VARARGS): Likewise.
16829         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16830         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16831         parenthsis.
16832         (EXPAND_BUILTIN_VA_ARG): Likewise.
16833         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16834         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16835         (INITIAL_ELIMINATION_OFFSET): Likewise.
16836         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16837         (REGNO_OK_FOR_BASE_P): Likewise.
16838         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16839         (REGNO_OK_FOR_DIREG_P): Likewise.
16840         (REG_OK_FOR_INDEX_P): Whitespace.
16841         (REG_OK_FOR_BASE_P): Whitespace.
16842         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16843         parenthesis.
16844         (FIND_BASE_TERM): Fix typo.
16845         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16846         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16847         (SYMBOLIC_CONST; Whitespace.
16848         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16849         (ENCODE_SECTION_INFO): Whitespace.
16850         (FINALIZE_PIC): Remove do { ... } while (0).
16851         (PROMOTE_MODE): Wrap in do { ... } while (0).
16852         (CONST_COSTS): Whitespace.
16853         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16854         (REGISTER_MOVE_COST): Add parenthesis.
16855         (MEMORY_MOVE_COST): Likewise.
16856         (EXTRA_CC_MODES): Whitespace.
16857         (SELECT_CC_MODE): Add parenthesis and whitespace.
16858         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16859         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16860         (ASM_OUTPUT_LABEL): Add paramethesis.
16861         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16862         (ASM_OUTPUT_REG_POP): Likewise.
16863         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16864         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16865
16866         * config/i386/i386.c: Update copyright.
16867         (CHECK_STACK_LIMIT): Add parenthesis.
16868         (AT_BP): Uppercase macro parameter.
16869         (x86_64_int_parameter_registers): Constify.
16870         (x86_64_int_return_registers): Likewise.
16871         (ix86_compare_op0): Use rtx.
16872         (construct_container): Constify INTREG parameter.
16873         (function_arg): Use rtx.
16874
16875         * diagnostic.h: Update copyright date.
16876         (output_buffer_state): Add parenthesis.
16877         (output_buffer_format_args): Likewise.
16878
16879         * combine.c (combine_instructions): Replace XEXP (links, 0)
16880         with link.
16881
16882 2002-01-06  H.J. Lu <hjl@gnu.org>
16883
16884         * cfgcleanup.c (thread_jump): Fix 2 typos.
16885
16886 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16887
16888         * config.gcc: Add support for --enable-altivec.
16889
16890 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16891
16892         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16893
16894 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16895
16896         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16897         __objc_class_name_*.
16898
16899 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16900
16901         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16902
16903 2002-01-06  Richard Henderson  <rth@redhat.com>
16904
16905         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16906         nop them out.  Increment label reference count for REG_LABEL.
16907         (fill_slots_from_thread): Frob label reference count around
16908         delete_related_insns.
16909
16910 2002-01-05  Richard Henderson  <rth@redhat.com>
16911
16912         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16913         jump threading.
16914
16915 2002-01-05  Richard Henderson  <rth@redhat.com>
16916
16917         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16918         * integrate.c (output_inline_function): Likewise.
16919         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16920         to remove_unnecessary_notes after emitting abstract instance.
16921         Force an emitted nested function to have its parent emited as well.
16922         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16923         for null.
16924         (rtl_for_decl_location): Do not look at reload data structures
16925         before reload has run.
16926
16927 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16928
16929         * cse.c: Fix formatting.
16930         * dwarf2asm.c: Likewise.
16931         * dwarf2out.c: Likewise.
16932         * explow.c: Likewise.
16933         * expmed.c: Likewise.
16934         * function.c: Likewise.
16935         * gcov.c: Likewise.
16936         * gencheck.c: Likewise.
16937         * genrecog.c: Likewise.
16938         * ggc-common.c: Likewise.
16939         * ggc-page.c: Likewise.
16940         * global.c: Likewise.
16941
16942 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16943
16944         * combine.c: Fix formatting.
16945
16946 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16947
16948         PR middle-end/1557
16949         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16950
16951 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16952
16953         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16954         as 1 for __powerpc64__ as well.
16955
16956         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16957
16958         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16959         return it.
16960
16961 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16962
16963         * lcm.c: Revert change, due to performance regression it causes on
16964         SPEC because it's slightly more conservative (sigh, I hate
16965         edge-based LCM).
16966
16967 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16968
16969         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16970
16971 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16972
16973         * doc/cppinternals.texi: Update.
16974
16975 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16976
16977         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16978         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16979         negatives.
16980         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16981         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16982         kludge for pre-october-14th mmix versions to handle new-found bug
16983         with PUSHJ/PUSHGO and the register stack.
16984         * config/mmix/mmix.h (struct machine_function): Rename member
16985         has_call_value_without_parameters to has_call_without_parameters.
16986         All referers changed.
16987         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16988         TARGET_MASK_BRANCH_PREDICT): New macros.
16989         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16990         -mno-reg-stack-fill-bug-workaround.
16991         * config/mmix/mmix.md ("call"): Set struct machine member
16992         has_call_without_parameters.
16993
16994 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16995
16996         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16997
16998 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16999
17000         * cfgcleanup.c: Include tm_p.h
17001         (mark_effect): Fix handling of hard register; fix handling of SET
17002
17003 2002-01-04  Kazu Hirata  <kazu@hxi.com>
17004
17005         * config/h8300/h8300.md (anonymous patterns): Check that
17006         operands are registers before using REGNO on them.
17007
17008 2002-01-03  Roland McGrath  <roland@frob.com>
17009
17010         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
17011
17012 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
17013
17014         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
17015         * c-common.h (genrtl_expr_stmt_value): Likewise.
17016         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
17017         (expand_expr_stmt_value): Add maybe_last argument.
17018         Don't warn about statement with no effect if it is the last statement
17019         in expression statement.
17020         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
17021         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
17022         expand_expr_stmt_value.
17023         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
17024         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
17025         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
17026         as maybe_last to expand_expr_stmt_value.
17027
17028 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
17029
17030         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
17031         be passed in, do not build it.
17032         (c_begin_if_stmt): New function.
17033         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
17034         * c-common.h (c_expand_start_cond): Update prototype.
17035         (c_begin_if_stmt): Prototype new function.
17036         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
17037         * c-parse.in (if_prefix): Use c_begin_if_stmt,
17038         c_begin_while_stmt and c_finish_while_stmt_cond.
17039
17040 2002-01-04  William Cohen  <wcohen@redhat.com>
17041
17042         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
17043         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17044         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17045         * config/pa/som.h (ASM_FILE_START): Likewise.
17046
17047 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
17048
17049         * lcm.c: Include df.h.
17050         Add available_transfer_function prototype.
17051         (compute_available): Rework to use iterative dataflow framework.
17052         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
17053         with bb_info in df.h
17054         (available_transfer_function): New function.
17055
17056         * Makefile.in (lcm.o): add df.h to dependencies.
17057
17058 2002-01-04  Richard Henderson  <rth@redhat.com>
17059
17060         * config/alpha/alpha.c (some_operand): Accept HIGH.
17061         (input_operand): Likewise; accept simple references to globals.
17062         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
17063         (alpha_const_double_ok_for_letter_p): Likewise.
17064         (alpha_extra_constraint): Likewise.
17065         (alpha_preferred_reload_class): Likewise.  Do not force
17066         symbolic constants to memory.
17067         (alpha_legitimate_address_p): Accept simple references
17068         to small_symbolic_operand.
17069         (alpha_legitimize_address): New arg scratch.  Be prepared to be
17070         called when no_new_pseudos.  Emit simple symbolic references.
17071         Split integers into low, high, and rest.
17072         (alpha_expand_mov): Use alpha_legitimize_address.
17073         (some_small_symbolic_mem_operand): New.
17074         (split_small_symbolic_mem_operand): New.
17075         * config/alpha/alpha-protos.h: Update.
17076         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
17077         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
17078         (EXTRA_CONSTRAINT): Likewise.
17079         (PREFERRED_RELOAD_CLASS): Likewise.
17080         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
17081         (PREDICATE_CODES): Update.
17082         * config/alpha/alpha.md: New post-reload splitters to convert
17083         simplfied symbolic operands to the form that references $29.
17084         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
17085         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
17086
17087 2002-01-03  Richard Henderson  <rth@redhat.com>
17088
17089         * local-alloc.c (function_invariant_p): Update commentary.
17090
17091 2002-01-04  H.J. Lu <hjl@gnu.org>
17092
17093         * toplev.c (rest_of_compilation): Fix a typo when calling
17094         cleanup_cfg.
17095
17096 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17097
17098         * c-common.c: Fix formatting.
17099         * diagnostic.c: Likewise.
17100         * doloop.c: Likewise.
17101         * dwarf2out.c: Likewise.
17102
17103 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17104
17105         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
17106         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
17107
17108 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
17109
17110         * cpperror.c: Update comments and copyright.
17111         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
17112         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
17113
17114 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17115
17116         * collect2.c (main): Use strcmp when testing for "-shared".
17117
17118 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
17119
17120         * cppmacro.c: Don't include intl.h.  Update comments.
17121         (new_number_token): Allocate enough buffer for 64-bit unsigned
17122         integers; update prototype.
17123         * cppmain.c: Update comments.
17124
17125 2002-01-03  William Cohen  <wcohen@redhat.com>
17126
17127         * function.h (struct function): Add profile.
17128         (current_function_profile): New.
17129         doc/extend.texi: Update documentation.
17130         * final.c (final_start_function): Use current_function_profile
17131         instead of profile_flag.
17132         (profile_after_prologue): Likewise.
17133         * function.c (expand_function_start): Likewise.
17134         (expand_function_start): Likewise.
17135         * config/alpha/alpha.c (direct_call_operand):
17136         (alpha_does_function_need_gp): Likewise.
17137         (alpha_expand_prologue): Likewise.
17138         * config/arm/arm.c (arm_expand_prologue): Likewise.
17139         thumb_expand_prologue: Likewise.
17140         * config/d30v/d30v.c (d30v_stack_info): Likewise.
17141         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
17142         (fr30_expand_prologue): Likewise.
17143         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
17144         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
17145         * config/i386/i386.h (FINALIZE_PIC): Likewise.
17146         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
17147         * config/i960/i960.c (i960_output_function_prologue): Likewise.
17148         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
17149         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
17150         (m32r_expand_prologue): Likewise.
17151         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
17152         (m88k_expand_prologue): Likewise.
17153         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
17154         * config/mips/mips.c (compute_frame_size): Likewise.
17155         (mips_expand_prologue): Likewise.
17156         (mips_can_use_return_insn): Likewise.
17157         * config/pa/elf.h (ASM_FILE_START): Likewise.
17158         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17159         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17160         * config/pa/som.h (ASM_FILE_START): Likewise.
17161         * config/romp/romp.c (romp_using_r14): Likewise.
17162         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
17163         (rs6000_stack_info): Likewise.
17164         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17165         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
17166         * config/v850/v850.c (compute_register_save_size): Likewise.
17167
17168 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
17169
17170         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
17171         gen_lowpart_common fails, use gen_lowpart_SUBREG.
17172
17173 2002-01-03  Turly O'Connor  <turly@apple.com>
17174
17175         * darwin.c (machopic_output_possible_stub_label): Don't generate
17176         stub routines for pseudo-stubs which we've just defined.
17177
17178 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17179
17180         * builtins.c: Fix formatting.
17181         * c-typeck.c: Likewise.
17182         * combine.c: Likewise.
17183         * expr.c: Likewise.
17184         * loop.c: Likewise.
17185
17186 2002-01-03  Andreas Schwab  <schwab@suse.de>
17187
17188         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
17189         and return true if _cpp_push_next_buffer pushed a new include
17190         file.
17191         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
17192         _cpp_pop_file_buffer did not push a new file.
17193         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
17194
17195 2002-01-02  Eric Christopher  <echristo@redhat.com>
17196
17197         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
17198         FIND_REG_INC_NOTE call. Update copyright.
17199         * loop.c (canonicalize_condition): Ditto.
17200         * reorg.c (delete_scheduled_jump): Ditto.
17201
17202 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17203
17204         * gcse.c: Fix formatting.
17205
17206 2002-01-03  Graham Stott  <grahams@redhat.com>
17207
17208         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
17209         forward defs for struct tags rtx_def, union_tree, rtvec_def
17210         also output corresponding typedefs for rtx, tree, and rtvec.
17211
17212         * system.h: Move forward defs for struct tags rtx_def, union_tree,
17213         rtvec_def along with corresponding typedefs for rtx, tree, and
17214         rtvec to config.h, hconfig.h, tconfig.h.
17215
17216 2002-01-03  Graham Stott  <grahams@redhat.com>
17217
17218         * tree.h: Update copyright date.
17219         (IS_EXPR_CODE_CLASS): Add parenthesis.
17220         (TREE_SET_CODE): Add whitespace.
17221         (TREE_CHECK): Add parenthesis.
17222         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
17223         (CST_OR_CONSTRUCTOR_CHECK):
17224         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
17225         (TREE_SYMBOL_REFERENCED): Whitespace.
17226         (INT_CST_LT): Likewise.
17227         (INT_CST_LT_UNSIGNED): Likewise.
17228         (tree_real_cst): Unwrap comment.
17229         (tree_string): Likewise.
17230         (tree_complex): Likewise.
17231         (IDENTIFIER_POINTER): correct cast.
17232         (SAVE_EXPR_CONTEXT): Whitespace.
17233         (EXPR_WFL_FILENAME_NODE): Likewise.
17234         (EXPR_WFL_FILENAME): Remove parenthesis.
17235         (DECL_ORIGIN): Add parenthesis.
17236         (DECL_FROM_INLINE): Use NULL_TREE.
17237         (build_int_2): Whitespace.
17238         (build_type_variant): Add parenthesis.
17239
17240         * gcc/jcf-parse.c: Update copyright date.
17241         (yyparse): Constify resource_filename.
17242
17243 2002-01-03  Graham Stott  <grahams@redhat.com>
17244
17245         * rtl.h: Update copyright date.
17246         (RTL_CHECK1): Wrap long line.
17247         (RTL_CHECK2): Likewise.
17248         (RTL_CHECKC1): Wrap long line and whitespace.
17249         (RTL_CHECKC2): Likewise.
17250         (XWINT): Whitespace.
17251         (XINT): Likewise.
17252         (XSTR): Likewise.
17253         (XEXP): Likewise.
17254         (XVEC): Likewise.
17255         (XMODE): Likewise.
17256         (XBITMAP): Likewise.
17257         (XTREE): Likewise.
17258         (XBBDEF): Likewise.
17259         (XTMPL): Likewise.
17260         (X0WINT): Likewise.
17261         (X0INT):Likewise.
17262         (X0UINT): Likewise.
17263         (X0STR): Likewise.
17264         (X0EXP): Likewise.
17265         (X0VEC): Likewise.
17266         (X0MODE): Likewise.
17267         (X0BITMAP): Likewise.
17268         (X0TREE): Likewise.
17269         (X0BBDEF): Likewise.
17270         (X0ADVFLAGS): Likewise.
17271         (X0CSELIB): Likewise.
17272         (X0MEMATTR): Likewise.
17273         (XCWINT): Likewise.
17274         (XCINT): Likewise.
17275         (XCUINT): Likewise.
17276         (XCSTR): Likewise.
17277         (XCEXP): Likewise.
17278         (XCVEC): Likewise.
17279         (XCMODE): Likewise.
17280         (XCBITMAP): Likewise.
17281         (XCTREE): Likewise.
17282         (XCBBDEF): Likewise.
17283         (XCADVFLAGS): Likewise.
17284         (XCCSELIB): Likewise.
17285         (XC2EXP): Likewise.
17286         (INSN_UID): Likewise.
17287         (PREV_INSN): Likewise.
17288         (PATTERN): Likewise.
17289         (INSN_CODE): Likewise.
17290         (PUT_REG_NOTE_KIND): Likewise.
17291         (CODE_LABEL_NUMBER): Likewise.
17292         (NOTE_SOURCE_FILE): Likewise.
17293         (NOTE_BLOCK): Likewise.
17294         (NOTE_EH_HANDLER): Likewise.
17295         (NOTE_RANGE_INFO): Likewise.
17296         (NOTE_LIVE_INFO): Likewise.
17297         (NOTE_BASIC_BLOCK): Likewise.
17298         (NOTE_EXPECTED_VALUE): Likewise.
17299         (NOTE_LINE_NUMBER): Likewise.
17300         (LABEL_NAME): Likewise.
17301         (LABEL_NUSES): Likewise.
17302         (LABEL_ALTERNATE_NAME): Likewise.
17303         (ADDRESSOF_DECL): Likewise.
17304         (JUMP_LABEL): Likewise.
17305         (LABEL_NEXTREF): Likewise.
17306         (REGNO): Likewise.
17307         (ORIGINAL_REGNO: Likewise.
17308         (HARD_REGISTER_NUM_P): Add parenthesis.
17309         (SUBREG_REG): Whitespace.
17310         (SUBREG_BYTE): Likewise.
17311         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17312         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17313         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17314         (ASM_OPERANDS_INPUT_VEC): Likewise.
17315         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17316         (ASM_OPERANDS_INPUT): Likewise.
17317         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17318         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17319         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17320         (ASM_OPERANDS_INPUT_MODE): Likewise.
17321         (ASM_OPERANDS_SOURCE_FILE): Likewise.
17322         (ASM_OPERANDS_SOURCE_LINE): Likewise.
17323         (MEM_SET_IN_STRUCT_P): Minor reformat.
17324         (TRAP_CONDITION): Whitespace.
17325         (TRAP_CODE): Likewise.
17326         (COND_EXEC_TEST): Likewise.
17327         (COND_EXEC_CODE): Likewise.
17328         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17329         (PHI_NODE_P): Add parenthesis.
17330         (plus_constant): Whitespace and add parenthesis.
17331
17332 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17333
17334         * config/avr/avr.c: Fix comment typos.
17335         * config/c4x/c4x.md: Likewise.
17336         * config/dsp16xx/dsp16xx.h: Likewise.
17337         * config/dsp16xx/dsp16xx.md: Likewise.
17338         * config/i386/i386.md: Likewise.
17339         * config/ia64/ia64.c: Likewise.
17340         * config/m32r/m32r.h: Likewise.
17341         * config/m68hc11/m68hc11.md: Likewise.
17342         * config/mmix/mmix.c: Likewise.
17343         * config/mn10200/mn10200.c: Likewise.
17344         * config/romp/romp.c: Likewise.
17345         * config/sh/sh.c: Likewise.
17346         * config/stormy16/stormy16.c: Likewise.
17347         * config/stormy16/stormy16.h: Likewise.
17348         * config/stormy16/stormy16.md: Likewise.
17349
17350 2002-01-03  Graham Stott  <grahams@redhat.com>
17351
17352         * loop.h: Update copyright date.
17353         (LOOP_MOVABLES): Fix typo.
17354         (LOOP_REGS): Likewise.
17355         (LOOP_IVS): Likewise.
17356
17357 2002-01-03  Graham Stott  <grahams@redhat.com>
17358
17359         * cppinit.c: Update copyright date.
17360         Don't include output.h
17361         * Makefile.in: Update copyright date.
17362         Update dependency.
17363
17364 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17365
17366         PR c/5226
17367         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17368         (-pthread) Add to RS/6000 options.
17369
17370 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17371
17372         * except.c: Fix comment typos.
17373         * loop.c: Likewise.
17374         * varasm.c: Likewise.
17375         * doc/tm.texi: Fix a typo.
17376
17377 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
17378
17379         * c-typeck.c (output_init_element): Allow initializing static storage
17380         duration objects with compound literals.
17381
17382 2002-01-02  Richard Henderson  <rth@redhat.com>
17383
17384         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17385         after abusing it.
17386
17387 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17388
17389         * gcc.c (default_compilers): Const-ify.
17390         * mips-tdump.c (stab_names): Likewise.
17391         * mips-tfile.c (map_coff_types, map_coff_storage,
17392         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17393         pseudo_ops_t, pseudo_ops): Likewise.
17394         * protoize.c (default_include): Likewise
17395
17396         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17397         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17398         Add array size in declaration.
17399         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17400         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17401         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17402         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17403         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17404         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17405         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17406         emtens, make_nan): Const-ify.
17407         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17408         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17409
17410 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
17411
17412         * config.gcc (ia64-*-*): Set extra_headers.
17413         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
17414         * config/alpha/t-osf: Remove.
17415         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17416
17417 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
17418
17419         * config/rs6000/t-aix43: Revert previous change.
17420
17421 2002-01-02  Jason Merrill  <jason@redhat.com>
17422
17423         * c-decl.c (c_expand_body): Call outlining_inline_function when
17424         emitting an inline function out of line.
17425
17426 2002-01-02  Richard Henderson  <rth@redhat.com>
17427
17428         * dwarf2out.c (limbo_die_node): Add created_for member.
17429         (new_die): New argument created_for.  Update all callers.
17430         (mark_limbo_die_list): New.
17431         (dwarf2out_init): Register limbo_die_list as a root.
17432         (dwarf2out_finish): Force insert limbo dies into their function
17433         context.
17434
17435 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
17436
17437         PR c++/5089
17438         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17439
17440 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17441
17442         * config/h8300/fixunssfsi.c: Update copyright.
17443         Fix comment typos.
17444         Fix formatting.
17445         * config/h8300/h8300.c: Update copyright.
17446         Eliminate warnings.
17447
17448 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17449
17450         * config/romp/romp.c: Fix comment formatting.
17451         * config/romp/romp.h: Likewise.
17452         * config/romp/romp.md: Likewise.
17453         * config/s390/s390.c: Likewise.
17454         * config/stormy16/stormy16.c: Likewise.
17455         * config/stormy16/stormy16.h: Likewise.
17456
17457 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
17458
17459         * c-common.h (genrtl_expr_stmt_value): Declare.
17460         * c-semantics.c (genrtl_goto_stmt): Redirect to...
17461         (genrtl_goto_stmt_value): ... this new function.  Pass new
17462         argument down to expand_expr_stmt_value, taking
17463         TREE_ADDRESSABLE into account.
17464         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17465         STMT_EXPR as addressable, i.e., one whose result we want.
17466         * expr.c (expand_expr): Don't save expression statement value
17467         of labeled_blocks or loop_exprs.
17468         * stmt.c (expand_expr_stmt): Redirect to...
17469         (expand_expr_stmt_value): ... this new function.  Use new
17470         argument to tell whether to save expression value.
17471         (expand_end_stmt_expr): Reset last_expr_type and
17472         last_expr_value if we don't have either.
17473         * tree-inline.c (declare_return_variable): Mark its use
17474         statement as addressable.
17475         * tree.h: Document new use of TREE_ADDRESSABLE.
17476         (expand_expr_stmt_value): Declare.
17477
17478 2002-01-01  Tom Rix  <trix@redhat.com>
17479
17480         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17481         rs6000_emit_allocate_stack.
17482
17483 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
17484
17485         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17486         ${srcdir}/ginclude/ to every entry in extra_headers.
17487         * configure: Regenerate.
17488         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17489         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17490         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17491         * ginclude/proto.h: Rename to config/convex/proto.h.
17492
17493 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17494
17495         * attribs.c (handle_vector_size_attribute): Use host_integerp
17496         and tree_int_cst; remove warnings.
17497         * caller-save.c (insert_restore): Add cast to get rid of warning.
17498         (insert_save): Likewise.
17499         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17500         * regmove.c (find_matches): Add temporary var to kill a warning.
17501
17502 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
17503
17504         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17505         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17506         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17507         (vms-dwarf2eh.o): Add Makefile rule.
17508         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17509         * config/alpha/vms-dwarf2eh.asm: New file.
17510
17511         * gcc.c (delete_if_ordinary): Delete all versions.
17512
17513 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
17514
17515         * config/mmix/mmix.md: Update FIXME to not mention
17516         define_constants.
17517         (MMIX_rJ_REGNUM): New define_constants constant.
17518         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17519         "*movdicc_real"): Adjust contraints formatting.
17520         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17521         for branch prediction.
17522         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17523         output template.
17524         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17525         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17526         number.  Delete related FIXMEs.
17527         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17528         from number to MMIX_rJ_REGNUM.
17529         (TARGET_MASK_BRANCH_PREDICT): New.
17530         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17531         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
17532         value.  Add -mbranch-predict and -mno-branch-predict.
17533         (TARGET_VERSION): Drop date.
17534         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17535         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17536         for finding out global symbols.
17537         (mmix_asm_output_labelref): Revert condition for global symbol.
17538         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17539         (mmix_print_operand_punct_valid_p): A '+' is valid.
17540
17541 See ChangeLog.6 for earlier changes.