OSDN Git Service

* cfgrtl.c (commit_one_edge_insertion): Fix warning.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
2
3         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
4         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
5
6 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7
8         * d30v.h (CPP_PREDEFINES): Replace with
9         (TARGET_CPU_CPP_BUILTINS): New.
10
11 2002-06-02  Roger Sayle  <roger@eyesopen.com>
12
13         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
14
15 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
16
17         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
18
19 2002-06-02  Richard Henderson  <rth@redhat.com>
20
21         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
22
23 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
24
25         Support for C++ constructors/destructors.
26         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
27         instead of looping if main() returns.
28         (asm_file_start): Output global symbols that cause .data and .bss
29         initialization code to be linked in, unconditionally for now.
30         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
31         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
32         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
33         (LIBSTDCXX): New.
34         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
35         (__tablejump__): New.
36         (__do_copy_data, __do_clear_bss): New.
37         (__do_global_ctors, __do_global_dtors): New.
38         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
39         _ctors, _dtors.
40
41 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
42
43         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
44         (CPP_SPEC, CPP_PREDEFINES): Kill.
45         * c4x/rtems.h (CPP_PREDEFINES): Kill.
46         (TARGET_OS_CPP_BUILTINS): New.
47
48 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
49
50         * Makefile.in (tracer.o): New.
51         * params.def (TRACER_*): New options.
52         * rtl.h (tracer): Declare.
53         * timevar.def (TV_TRACER): New.
54         * toplev.c (dump_file_index): Add DFI_tracer.
55         (dump_file_info): Add tracer.
56         (flag_tracer): New.
57         (lang_indepdenent_options): Add tracer.
58         (rest_of_compilation): Call tracer.
59         * tracer.c: New file.
60         * invoke.texi (-ftracer): Document.
61         (--param tracer-*): Document.
62
63 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
64
65         * tree-inline.c (expand_call_inline): Make the statement
66         expression we generate have a COMPOUND_STMT.    
67
68 2002-06-01  Roger Sayle  <roger@eyesopen.com>
69
70         * gcse.c (cprop_cc0_jump): Function deleted.
71         (cprop_jump): Take an additional argument which is the possibly
72         NULL cc setting insn immediately before the conditional jump.
73         When a MODE_CC set is present, substitute it into the JUMP_INSN
74         before attempting the constant propagation.
75         (cprop_insn):  Recognize cc setters followed by conditional jumps
76         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
77         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
78         (find_bypass_set): New function based upon find_avail_set used by
79         cprop, but finds constant expressions available at the end of
80         basic blocks.
81         (bypass_block): New function.  Given a basic block that begins
82         with a conditional jump and multiple incoming edges, perform
83         the jump bypass optimization.
84         (bypass_conditional_jumps): New function.  Call bypass_block with
85         each suitable basic block in the CFG using a simple single pass.
86
87 2002-06-01  Roger Sayle  <roger@eyesopen.com>
88
89         * tree.c (real_minus_onep): New function to test for -1.0.
90         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
91
92 2002-06-01  Roger Sayle  <roger@eyesopen.com>
93
94         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
95         and "!p && !q" into "(p|q) == 0" under suitable conditions.
96
97 2002-06-01  Andreas Jaeger  <aj@suse.de>
98
99         * cppexp.c (cpp_classify_number): Cast precission to int for
100         correct printf format.
101
102 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
103
104         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
105         expected, but don't really exist: atmega83, atmega85, attiny10.
106         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
107         emulations for all devices.
108         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
109         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
110
111 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
112
113         * config/h8300/h8300-protos.h: Add a prototype for
114         h8300_shift_needs_scratch_p.
115         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
116         * config/h8300/h8300.h (OK_FOR_R): New.
117         (OK_FOR_S): Likewise.
118         (OK_FOR_T): Likewise.
119         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
120         * config/h8300/h8300.md (anonymous shift patterns): Use
121         constraints R, S, and T.
122
123 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
124
125         * basic-block.h (struct basic_block_def): New field loop_father.
126         (BB_VISITED): New flag.
127         (struct loop): New field pred, removed field shared.
128         (struct loops): New field parray.
129         (LOOP_EXITS_DOMS): Removed.
130         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
131         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
132         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
133         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
134         verify_loop_structure): Declare.
135         * cfg.c (entry_exit_blocks): Initialize loop_father field.
136         * cfganal.c (dfs_enumerate_from): New function.
137         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
138         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
139         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
140         flow_loop_dump, flow_loops_dump, flow_loops_free,
141         flow_loop_tree_node_add, flow_loop_level_compute,
142         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
143         flow_loop_outside_edge_p): Modified for new infrastructure.
144         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
145         redirect_edge_with_latch_update, flow_loop_free): New static functions.
146         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
147         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
148         find_common_loop, verify_loop_structure, loop_latch_edge,
149         loop_preheader_edge): New functions.
150         (flow_loops_cfg_dump): Do not show dominators, as this information
151         does not remain up to date long.
152         (flow_loops_find): Store results in new format.
153         * predict.c (propagate_freq, estimate_probability,
154         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
155         infrastructure.
156
157 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
158
159         * except.c (nothrow_function_p): Walk epilogue delay list
160         checking the insn, not the chain for potential throws.
161
162 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
163
164         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
165         (install): Refer to install-cpp directly.
166         (uninstall-cpp): Folded into uninstall rule.
167         * configure.in: Delete all code relating to --disable-cpp.
168         * configure: Regenerate.
169         * config/t-install-cpp: Delete.
170
171 2002-05-31  Richard Henderson  <rth@redhat.com>
172
173         * configure.in (HAVE_AS_TLS): Add alpha tests.
174         * configure: Rebuild.
175         * config/alpha/alpha.c (TARGET_AS_TLS): New.
176         (alpha_tls_size, alpha_tls_size_string): New.
177         (overide_options): Set it.  Always install machine_status hooks.
178         (input_operand): Accept got tls predicates.
179         (local_symbol_p): Merge into ...
180         (local_symbolic_operand): ... here.  Reject tls symbols.
181         (global_symbolic_operand): Likewise.
182         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
183         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
184         (tp16_symbolic_operand, tp32_symbolic_operand): New.
185         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
186         (alpha_encode_section_info): Handle TLS symbols.
187         (alpha_strip_name_encoding): Likewise.
188         (alpha_legitimate_address_p): Likewise.
189         (alpha_legitimize_address): Likewise.
190         (alpha_expand_mov): Early exit to avoid nop moves.
191         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
192         (alpha_init_machine_status, alpha_mark_machine_status,
193         alpha_free_machine_status): Always define.
194         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
195         (print_operand, print_operand_address): Add TLS relocs.
196         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
197         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
198         (TARGET_SWITCHES): Add -mtls-kernel.
199         (alpha_tls_size, alpha_tls_size_string): New.
200         (TARGET_OPTIONS): Add -mtls-size=.
201         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
202         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
203         (ASM_OUTPUT_LABELREF): Skip %.
204         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
205         (PREDICATE_CODES): Update.
206         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
207         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
208         UNSPEC_TP, UNSPECV_SET_TP): New.
209         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
210         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
211         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
212         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
213         (call_value_osf_2_er): Accept anything as op4.
214         * config/alpha/alpha-protos.h: Update.
215         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
216
217 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
218
219         * cppinit.c (append_include_chain): Always pay attention to
220         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
221         marker on argument.
222
223 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
224
225         * target.h: Fix formatting.
226         * timevar.h: Likewise.
227         * tlink.c: Likewise.
228         * toplev.c: Likewise.
229         * toplev.h: Likewise.
230         * tree.c: Likewise.
231         * tree-dump.h: Likewise.
232         * tree.h: Likewise.
233         * tree-inline.h: Likewise.
234         * unroll.c: Likewise.
235         * unwind-dw2.c: Likewise.
236         * unwind-dw2-fde.c: Likewise.
237         * unwind-dw2-fde-glibc.c: Likewise.
238         * unwind-dw2-fde.h: Likewise.
239         * unwind.h: Likewise.
240         * unwind-sjlj.c: Likewise.
241         * varasm.c: Likewise.
242         * varray.h: Likewise.
243         * vmsdbg.h: Likewise.
244         * vmsdbgout.c: Likewise.
245         * xcoffout.h: Likewise.
246
247 2002-05-31  Igor Shevlyakov <igor@microunity.com>
248
249         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
250         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
251
252 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
253
254         * gcc.c (cpp_unique_options): Remove "-d" options.
255         (cpp_debug_options): New spec string.
256         (default_compilers): Use it.
257         * objc/lang-specs.h: Likewise.
258
259 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
260
261         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
262         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
263         * gcc/mklibgcc.in: Likewise.
264         * gcc/config/arc/t-arc: Likewise.
265         * gcc/configure.in: Likewise.
266         * gcc/configure: Regenerate.
267
268 2002-05-31  Stan Shebs  <shebs@apple.com>
269             Turly O'Connor  <turly@apple.com>
270
271         * c-decl.c (struct binding_level): Change int field n_incomplete
272         to tree list incomplete_list.
273         (clear_binding_level): Init field with NULL.
274         (pushdecl): Add incomplete type to list.
275         (mark_binding_level): Mark the incomplete list.
276         (finish_struct): Scan the incomplete list for types instead
277         of all decls in the current binding level.
278
279 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
280
281         * pa.c (output_millicode_call): Add missing '%' characters.
282         (output_call): Likewise.
283
284 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
285
286         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
287         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
288
289 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
290
291         * varasm.c (mark_constant_pool): Walk epilogue delay list
292         checking the insn, not the chain for potential constants.
293
294 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
295
296         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
297
298 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
299
300         * i386.c (classify_argument): Properly handle base types.
301
302         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
303         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
304         registers.
305
306 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
307
308         * gcse.c (gcse_emit_move_after): New.
309         (pre_delete, hoist_store): Use it.
310
311         * reload1.c (emit_input_reload_insns): Use constrain_operands
312         instead of constraint_accepts_reg_p to verify optimization.
313         (constraint_accepts_reg_p): Kill
314
315         * reload1.c (reload_cse_delete_noop_set): Kill.
316         (reload_cse_simplify): use delte_insn_and_edges.
317
318 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
319
320         * cfgloop.c (flow_loops_find): Initialize first and last fields
321         correctly.
322
323 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
324
325         * c-common.c (builtin_define_std): Correct logic.
326
327 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
328
329         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
330         (output_call): Likewise.
331
332 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
333
334         * pa.c: Move output.h include after tree.h include.
335         (pa_asm_output_mi_thunk): Constify identifier lab.
336
337 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
338
339         * config/ns32k/ns32k.h: Define named constants for the
340         bits in target_flags and use them.
341         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
342
343 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
344
345         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
346         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
347         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
348         default scheduling model.
349         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
350         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
351         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
352         * doc/install.texi (hppa*-*-*): Document default scheduling.
353
354 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
355
356         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
357
358 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
359
360         * config.gcc (ns32k-*-netbsd*): Set tm_file to
361         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
362         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
363         netbsd.h, or netbsd-aout.h.
364
365 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
366
367         * longlong.h (count_trailing_zeros): Add missing \, and clean up
368         whitespace in __ns32000__ case.
369
370 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
371
372         * expr.c (expand_expr): Output partially zeroed out vectors with
373         output_constant_def.
374
375 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
376
377         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
378         (sh-*-netbsdelf*)
379         (shl*-*-netbsdelf*): New targets.
380         * config/sh/netbsd-elf.h: New file.
381
382 2002-05-30  Richard Henderson  <rth@redhat.com>
383             Eric Botcazou  <ebotcazou@multimania.com>
384
385         PR optimization/6822
386         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
387         to unsigned int for op1 comparisons.  Use gen_int_mode.
388
389 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
390
391         * expmed.c (const_mult_add_overflow_p): New.
392         * expr.h: Declare it.
393         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
394         Don't eliminate the biv if the giv has a constant multiplier and
395         the rhs argument of the comparison does satisfy the predicate.
396         Use expand_mult_add to compute the replacement constant.
397
398 2002-05-30  Osku Salerma  <osku@iki.fi>
399
400         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
401         (c_common_get_alias_set): Handle it.
402         * doc/extend.texi: Document it.
403
404 2002-05-30  Richard Henderson  <rth@redhat.com>
405
406         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
407         * toplev.c (process_options): Don't check it.
408         * doc/tm.texi: Don't document it.
409         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
410         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
411         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
412         frame pointer optimization if current_function_profile.
413
414 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
415
416         * langhooks.c: Fix formatting.
417         * langhooks.h: Likewise.
418         * lcm.c: Likewise.
419         * libgcc2.c: Likewise.
420         * lists.c: Likewise.
421         * local-alloc.c: Likewise.
422         * loop.c: Likewise.
423         * loop.h: Likewise.
424
425 2002-05-30  Marc Espie <espie@openbsd.org>
426
427         * config.gcc (sparc64-*-openbsd*): New.
428         * config/sparc/openbsd1-64.h: New.
429         * config/sparc/openbsd64.h: New.
430
431 2002-05-30  Jeff Law <law@redhat.com>
432
433         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
434         a dead insn with a REG_RETVAL note when the entire libcall is not
435         dead and remove the associated REG_LIBCALL note at the same time.
436
437 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
438
439         * lcm.c (output.h): #include.
440         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
441         as an ordinary block.
442         (optimize_mode_switching): Don't pretend that the exit block is
443         an ordinary block, or handle sucessors of entry block specially.
444         Instead, split edges from entry block and to exit block, and
445         put a computing definition on the thus gained post-entry-block,
446         and a need on the pre-exit-block.
447
448 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
449
450         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
451         * rtl.texi: Document 'B'
452
453 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
454
455         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
456         at run-time.
457         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
458
459 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
460
461         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
462         const0_rtx instead of NULL_RTX when in error.
463         (altivec_expand_abs_builtin): Same.
464         (rs6000_expand_binop_builtin): Same.
465         (altivec_expand_predicate_builtin): Same.
466         (altivec_expand_stv_builtin): Same.
467         (rs6000_expand_ternop_builtin): Same.
468         (altivec_expand_builtin): Same.
469
470 2002-05-29  David S. Miller  <davem@redhat.com>
471
472         * rtl.h (clear_emit_caches): Delete.
473         * integrate.c (output_inline_function): Don't call it.
474         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
475         (clear_emit_caches): Delete definition.
476         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
477
478 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
479
480         * config/mmix/mmix.c: Include real.h.
481         (mmix_constant_address_p): Remove redundant test before switch.
482
483 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
484
485         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
486         only if not already defined.
487
488 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
489
490         * config/h8300/h8300-protos.h: Remove prototypes for
491         ok_for_bclr and small_power_of_two.
492         * config/h8300/h8300.c (small_power_of_two): Remove.
493         (ok_for_blcr): Likewise.
494         (fix_bit_operand): Make WHAT deal with an integer instead of a
495         constraint character.
496         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
497         (CONST_OK_FOR_P): Likewise.
498         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
499         CONST_OK_FOR_P any more.
500         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
501         of fix_bit_operand.
502         (iorqi3): Likewise.
503         (xorqi3): Likewise.
504
505 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
506
507         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
508         (CPP_PREDEFINES): Make sure this is undefined.
509         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
510         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
511         or -U__MIPSEB__ before defining one or the other.  Instead,
512         use %(subtarget_endian_default) if neither -EB nor -EL are
513         specified.
514         (SUBTARGET_EXTRA_SPECS): Define.
515         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
516         %(netbsd_cpp_spec).
517
518 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
519
520         * doc/md.texi (Patterns): Note pattern condition pitfall
521         for unnamed insn.
522
523 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
524
525         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
526         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
527         ternary operations from here...
528         (rs6000_expand_builtin): ...to here.
529         New argument expandedp.
530         Change all instances of altivec_expand_binop_builtin to
531         rs6000_expand_binop_builtin.
532         (altivec_expand_unop_builtin): Rename to
533         rs6000_expand_unop_builtin.
534         (altivec_expand_binop_builtin): Rename to
535         rs6000_expand_binop_builtin.
536         (altivec_expand_ternop_builtin): Rename to
537         rs6000_expand_ternop_builtin.
538
539 2002-05-29  Richard Henderson  <rth@redhat.com>
540
541         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
542         (TARGET_BI_ARCH): Likewise.
543         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
544         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
545         (TARGET_64BIT_DEFAULT): Default to 0.
546         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
547
548 2002-05-29  Richard Henderson  <rth@redhat.com>
549
550         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
551         (get_pc_thunk_name): New.
552         (output_set_got): Use it.
553         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
554         into linkonce sections.
555
556 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
557
558         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
559         (CPP_PREDEFINES): Make sure this is undefined.
560         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
561         (CPP_SUBTARGET_SPEC): Don't provide different versions for
562         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
563         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
564         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
565         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
566         (CPP_PREDEFINES): Make sure this is undefined.
567         (SUBTARGET_EXTRA_SPECS): Define.
568         (CPP_SPEC): Use %(netbsd_cpp_spec).
569
570 2002-05-29  Jeff Law <law@redhat.com>
571
572         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
573
574         * flow.c (propagate_one_insn): Do not remove a dead insn if it
575         contains a REG_RETVAL note.
576
577         * haifa-sched (sched_analyze): Remove another useless clearing
578         of SCHED_GROUP_P I missed yesterday.
579
580         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
581         * pa.c (pa_asm_output_mi_thunk): New function.
582         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
583
584 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
585             Marek Michalkiewicz  <marekm@amelek.gda.pl>
586
587         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
588         (avr_asm_only_p): Make non-static.
589         (enum avr_arch): Remove.
590         (avr_arch_types): New.
591         (avr_mcu_types): Update.
592         (avr_override_options): Use avr_arch_types table instead of switch.
593         * avr.h (CPP_PREDEFINES): Die.
594         (avr_base_arch_macro, avr_extra_arch_macro): New.
595         (TARGET_CPU_CPP_BUILTINS): New.
596         (CPP_SPEC, EXTRA_SPECS): Simplify.
597         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
598         CPP_AVR5_SPEC): Die.
599
600 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
601
602         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
603         NETBSD_OS_CPP_BUILTINS_AOUT.
604         (SUBTARGET_EXTRA_SPECS): Define.
605         (CPP_SPEC): Use %(netbsd_cpp_spec).
606
607 2002-05-29  Richard Henderson  <rth@redhat.com>
608
609         * config/i386/i386.c (ix86_output_function_epilogue): New.
610         (TARGET_ASM_FUNCTION_EPILOGUE): New.
611         (pic_label_name): Remove.
612         (pic_labels_used): New.
613         (ix86_asm_file_end): Emit one pc load stub for each register used.
614         (output_set_got): Generate deep pc load to any register.
615         (ix86_select_alt_pic_regnum): New.
616         (ix86_save_reg): Don't save pic register if we can find a valid
617         call-clobbered replacement.
618         (ix86_expand_prologue): If we found a valid replacement, renumber
619         pic_offset_table_rtx.
620         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
621         pic_offset_table_rtx after reload.
622         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
623         * config/i386/i386.md (set_got): Make insn, not expander.
624         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
625
626 2002-05-29  Richard Henderson  <rth@redhat.com>
627
628         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
629         alignment for alloca.
630
631 2002-05-29  Richard Henderson  <rth@redhat.com>
632
633         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
634         (print_operand_address): Only add rip for symbolic addresses
635         for which we do not have another relocation type.
636
637 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
638
639         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
640         (EXTRA_SPECS): Add netbsd_cpp_spec.
641         (CPP_SPEC): Use %(netbsd_cpp_spec).
642         (CPP_PREDEFINES): Remove.
643         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
644         (EXTRA_SPECS): Define.
645         (CPP_SPEC): Use %(netbsd_cpp_spec).
646         (CPP_PREDEFINES): Remove.
647
648 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
649
650         PR preprocessor/6844
651         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
652         NUL.
653
654 2002-05-29  Eric Christopher  <echristo@redhat.com>
655
656         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
657         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
658
659 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
660
661         * config/fr30/fr30.md: Remove previous restriction on splits.
662         Enforce conformance through gen_lowpart and cont_int_operand.
663         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
664         as the assembler does not support ".bss".
665
666 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
667
668         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
669         (CPP_PREDEFINES): Remove.
670         (SUBTARGET_EXTRA_SPECS): Define.
671         (CPP_SPEC): Use %(netbsd_cpp_spec).
672         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
673         (CPP_PREDEFINES): Remove.
674         (SUBTARGET_EXTRA_SPECS): Define.
675         (CPP_SPEC): Use %(netbsd_cpp_spec).
676         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
677         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
678         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
679         Add netbsd_cpp_spec.
680         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
681
682 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
683             Zack Weinberg <zack@codesourcery.com>
684
685         * cppexp.c (cpp_num): Move to cpplib.h.
686         (CPP_ERROR): Remove.
687         (interpret_float_suffix, interpret_int_suffix): New.
688         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
689         (cpp_classify_number, cpp_interpret_integer): New.
690         (interpret_number): Remove.
691         (eval_token): Update to use new routines.
692         * cpphash.h (cpp_num_part): Move to cpplib.h.
693         * cppinit.c (cpp_post_options): Set warn_long_long.
694         * cpplib.h (struct cpp_options): Add warn_long_long.
695         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
696         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
697         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
698         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
699         cpp_interpret_integer): New.
700
701 2002-05-29  Joel Sherrill <joel@OARcorp.com>
702
703         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
704
705 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
706
707         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
708         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
709         (CPP_SUBTARGET_SPEC): Define.
710         (SUBTARGET_EXTRA_SPECS): Define.
711         (CPP_SPEC): Remove.
712
713 2002-05-29  Chris Lattner  <sabre@nondot.org>
714
715         * ssa.c (rename_insn_1): Rename uses of undefined registers to
716         prevent confusion if/when the register is defined.
717
718 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
719
720         PR target/6838
721         * config/cris/cris.md: Fix typos and thinkos in comments.
722         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
723         second alternative.
724         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
725         ("*mov_sideqi_mem"): Similar, but for operand 3.
726         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
727         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
728         Remove spurious mode specifier on operand 2.
729
730 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
731
732         * config/h8300/h8300-protos.h: Remove the prototype for
733         o_operand.
734         Add prototypes for single_one_operand and single_zero_operand.
735         * config/h8300/h8300.c (o_operand): Remove.
736         (single_one_operand): New.
737         (single_zero_operand): Likewise.
738         (print_operand): For 'V' operand, and the operand with 0xff.
739         For 'V' and 'W' operands, do not and the bit position with 7.
740         * config/h8300/h8300.md (various anonymous patterns): Replace
741         use of exact_log2 with single_one_operand/single_zero_operand.
742
743 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
744
745         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
746
747 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
748
749         * config/s390/s390.c (legitimate_pic_operand_p): Do not
750         accept symbolic LARL operands.
751         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
752         epilogue insns.
753
754 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
755
756         * config/s390/s390.md (cmpstr_64/31): Mark whole
757         input registers as used.
758
759 2002-05-28  Richard Henderson  <rth@redhat.com>
760
761         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
762         not current_function_uses_pic_offset_table and
763         current_function_uses_const_pool; examine current_function_profile.
764         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
765         input to blockage if needed.
766         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
767         (legitimize_pic_address): Likewise.  Set regs_ever_live for
768         pic_offset_table_rtx when invoked during reload.
769         * config/i386/i386.h (FINALIZE_PIC): Remove.
770         * config/i386/i386.md (tablejump): Reformat.  Do not set
771         current_function_uses_pic_offset_table.
772         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
773         (blockage): Accept anything as operand 0.
774
775 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
776
777         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
778         common CPP built-ins for all NetBSD a.out targets.
779         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
780         common CPP built-ins for all NetBSD ELF targets.
781         * config/netbsd.h: Add missing notice.
782         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
783         for all NetBSD targets.
784         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
785         for all NetBSD targets using an LP64 code model.
786         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
787         NetBSD targets.
788
789 2002-05-28  Richard Henderson  <rth@redhat.com>
790
791         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
792         update if UPDATE_LIFE_LOCAL.
793
794 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
795
796         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
797
798 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
799                           Jason R. Thorpe <thorpej@wasabisystems.com>
800
801         config/sh reorganization to factor out endianness and coff:
802
803         * config/sh/little.h: New file.
804         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
805         defined, define to 0 to select big-endian.
806         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
807         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
808         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
809         * config/sh/t-be: New file.
810         * config/sh/t-le: New file.
811
812         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
813         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
814         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
815         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
816         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
817         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
818         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
819         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
820         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
821         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
822         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
823         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
824         (LINK_SPEC): Define to SH_LINK_SPEC.
825         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
826         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
827         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
828         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
829         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
830         * config/sh/coff.h: New file.
831         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
832         (TARGET_OBJFMT_CPP_BUILTINS): Define.
833         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
834         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
835         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
836         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
837         (PTRDIFF_TYPE): Likewise.
838         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
839         (CPP_PREDEFINES): Don't define.
840         (TARGET_OBJFMT_CPP_BUILTINS): Define.
841         (LINK_SPEC): Define to SH_LINK_SPEC.
842         (LINK_EMUL_PREFIX): Redefine.
843         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
844         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
845         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
846         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
847         (TARGET_OS_CPP_BUILTINS): Define.
848         (TARGET_DEFAULT): Redefine.
849         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
850         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
851         (LINK_SPEC): Don't redefine.
852         (LINK_DEFAULT_CPU_EMUL): Redefine.
853         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
854         * sh.c (sh_asm_named_section): Don't declare / define.
855         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
856         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
857         (sh64-*-elf* tm_file): Likewise.
858         (sh-*-rtemself* tm_file): Likewise.
859         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
860         (sh-*-linux* tmake_file): Add sh/t-le.
861         (sh-*-rtems* tm_file): Add sh/coff.h
862         (sh-*-* tm_file): Likewise.
863
864 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
865
866         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
867         CONSTANT_POOL_ADDRESS_P.
868
869         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
870
871 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
872             Jeff Law <law@redhat.com>
873
874         * optabs.c (expand_binop): Fix nwords sign warnings.
875         generate pseudo for add_optab.
876
877         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
878         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
879
880 2002-05-28      Marc Espie <espie@openbsd.org>
881
882         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
883         inherited from gas.h.
884         (ASM_QUAD):  Undef.  OpenBSD does not support it.
885
886 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
887
888         * doc/install.texi (binaries): Change mingw binaries
889         link to www.mingw.org.
890
891 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
892
893         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
894
895 2002-05-28  Richard Henderson  <rth@redhat.com>
896
897         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
898         bottom alignment for leaf functions.
899
900 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
901
902         * config/pa/milli32.S, config/pa/lib1funcs.asm,
903         config/sparc/sol2-g1.asm: Delete unused files.
904
905 2002-05-28  Richard Henderson  <rth@redhat.com>
906
907         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
908
909         * flow.c (calculate_global_regs_live): Rename call_used to
910         invalidated_by_call.  Initialize from regs_invalidated_by_call
911         instead of call_used_regs.
912
913         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
914         DECL_EXTERNAL.
915
916 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
917
918         * tree.h: Don't include real.h.
919         Forward-declare struct realvaluetype.
920         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
921         contain it.
922         (TREE_REAL_CST_PTR): New accessor.
923         (TREE_REAL_CST): Update.
924         * real.h: Include machmode.h.
925         (realvaluetype): Make it struct realvaluetype, not a typedef.
926         (build_real): Prototype here.
927
928         * tree.c: Include real.h.
929         (build_real): Allocate the REAL_VALUE_TYPE as a separate
930         object in GC memory, set TREE_REAL_CST_PTR to point to it.
931         (build_real_from_int_cst): Use build_real.
932         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
933         REAL_CST.
934
935         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
936         fold-const.c, print-tree.c, real.c: Include real.h.
937         * Makefile.in: Update dependency lists.
938
939 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
940
941         * basic-block.h (last_basic_block): Declare.
942         (expunge_block_nocompact): Declaration removed.
943         (compact_blocks): Declare.
944         * cfg.c (last_basic_block): New variable.
945         (expunge_block_nocompact): Removed.
946         (expunge_block): Do not compact basic blocks.
947         (compact_blocks): New.
948         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
949         longer change.
950         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
951         last_basic_block.
952         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
953         real positions of blocks.
954         (delete_unreachable_blocks): Simplified -- quadratic behavior now
955         cannot occur.
956         (cleanup_cfg): Compact blocks.
957         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
958         basic_block_info varray.
959         (flow_delete_block): Comment update.
960         (back_edge_of_syntactic_loop_p): Modify position check code.
961         (verify_flow_info): Update checking.
962         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
963         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
964         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
965         indices no longer change.
966         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
967         last_basic_block.
968         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
969         * profile.c (branch_prob): Compact blocks.
970         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
971         last_basic_block.
972
973 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
974
975         * config/h8300/h8300.md (two anonymous patterns): New.
976
977 2002-05-28  David S. Miller  <davem@redhat.com>
978
979         * config/sparc/sparc.md (cpu): Tidy.
980         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
981         'trap'.
982         (in_call_delay): Delete reference to 'return' type.
983         (eligible_for_return_delay, in_return_delay, define_delay
984         referencing those): Delete.
985         (rest of file): Use new type attributes as appropriate.
986         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
987         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
988         * config/sparc/ultra1_2.md (us1_single): New reservation.
989         (us1_ialuX): Likewise.
990         * config/sparc/ultra3.md (us3_single): Likewise.
991         (us3_ialuX): Likewise.
992         (us3_imul, us3_idiv): Tweak.
993
994 2002-05-28  Richard Henderson  <rth@redhat.com>
995
996         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
997         STRING_CST.
998
999 2002-05-28  Richard Henderson  <rth@redhat.com>
1000
1001         * config.gcc: Obsolete mn10200.
1002
1003 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1004
1005         * cppexp.c (interpret_number): Optimize for single-digit
1006         and less-than-half-precision cases.
1007         (num_trim, num_positive, num_div_op): Cast constants.
1008
1009 2002-05-27  Bo Thorsen  <bo@suse.de>
1010
1011         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
1012         3.1 branch. The file was made by Jakub Jelinek.
1013         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1014         support so multilib doesn't break. And don't define this at all
1015         when -Dinhibit_libc is used.
1016         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
1017         * config/i386/t-linux64: Implement full multilib support. Patch
1018         originally done by Andreas Jaeger and Jakub Jelinek.
1019
1020 2002-05-27  Roger Sayle  <roger@eyesopen.com>
1021
1022         * c-common.c: Add support for __attribute__((nothrow)) to specify
1023         that a function cannot throw an exception (using TREE_NOTHROW).
1024         (handle_nothrow_attribute): New function to process this attribute.
1025
1026         * doc/extend.texi: Document the new nothrow function attribute.
1027
1028 2002-05-27  H.J. Lu  (hjl@gnu.org)
1029
1030         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
1031         (num_positive): Likewise.
1032         (num_div_op): Likewise.
1033
1034 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1035
1036         * c-common.c (c_common_init): Always use intmax_t.
1037
1038 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1039
1040         * c-common.c (c_common_init): Use intmax_t for now.
1041
1042 2002-05-24  Andrew Haley  <aph@redhat.com>
1043
1044         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
1045         if T is a boolean type.
1046
1047 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1048
1049         * basic-block.h (last_basic_block): Defined as synonym for
1050         n_basic_blocks.
1051         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1052         flow_depth_first_order_compute, flow_preorder_transversal_compute,
1053         flow_dfs_compute_reverse_init): Replaced relevant occurences of
1054         n_basic_blocks with last_basic_block.
1055         * cfgbuild.c (make_edges): Likewise.
1056         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1057         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1058         * combine.c (combine_instructions): Likewise.
1059         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1060         iterative_dataflow_bitmap): Likewise.
1061         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1062         calc_idoms, idoms_to_doms): Likewise.
1063         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1064         Likewise.
1065         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1066         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1067         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1068         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1069         delete_null_pointer_checks, compute_code_hoist_vbeinout,
1070         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1071         compute_store_table, build_store_vectors): Likewise.
1072         * haifa-sched.c (sched_init): Likewise.
1073         * ifcvt.c (if_convert): Likewise.
1074         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1075         pre_edge_lcm, compute_available, compute_nearerout,
1076         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1077         Likewise.
1078         * predict.c (estimate_probability, process_note_prediction,
1079         note_prediction_to_br_prob): Likewise.
1080         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1081         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1082         * regrename.c (copyprop_hardreg_forward): Likewise.
1083         * resource.c (init_resource_info): Likewise.
1084         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1085         init_regions, schedule_insns): Likewise.
1086         * ssa-ccp.c (ssa_const_prop): Likewise.
1087         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1088         * ssa.c (compute_dominance_frontiers,
1089         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1090
1091         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1092         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1093         sizes consistently.
1094
1095 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1096
1097         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1098         new.
1099         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1100         hoist_insn_after, hoist_insn_to_edge): New.
1101
1102 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
1103
1104         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1105         (PROP_FINAL): Include.
1106         * flow.c (life_analysis, update_life_info,
1107         init_propagate_block_info, mark_set_1, mark_used_rgs):
1108         Support SCAN_DEAD_STORE.
1109
1110 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1111
1112         * c-common.c (c_common_init): Set CPP arithmetic precision.
1113         * cppexp.c (cpp_num_part): Move typedef ...
1114         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1115         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1116         (sanity_checks): Update.
1117
1118 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
1119
1120         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1121         (mkheaders): New rule.
1122         (install-mkheaders): New rule.
1123         * configure.in (all_outputs): Add mkheaders.
1124         * configure: Regenerate.
1125         * mkheaders.in: New file.
1126
1127 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
1128
1129         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1130
1131 2002-05-26  Andreas Jaeger  <aj@suse.de>
1132
1133         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1134
1135 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1136
1137         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1138         right_shift): Remove.
1139         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1140         HIGH_PART): New.
1141         (struct op): Use cpp_num.
1142         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1143         num_part_mul, num_unary_op, num_binary_op, num_negate,
1144         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1145         num_div_op, num_lshift, num_rshift, append_digit): New.
1146         (interpret_number, parse_defined, eval_token, reduce): Update
1147         for two-integer arithmetic.
1148         (binary_handler): New typedef.
1149         (optab): Update.
1150         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1151         (_cpp_parse_expr, reduce): Update to handle two-integers.
1152         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1153
1154 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1155
1156         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1157         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1158         branch insn into account, do not assume 1.
1159         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
1160         over single word insn.  Handle upper half of I/O space too.
1161         * config/avr/avr.md (*sbrx_branch): Use it.
1162         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1163         (*sbix_branch, *sbix_branch_bit7): Likewise.
1164         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1165         Use RTL peepholes to optimize register operand sign tests.
1166
1167 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1168
1169         * config/avr/avr.c (avr_asm_only_p): New variable.
1170         (avr_override_options): Set it here if AVR1.
1171         (asm_file_start): Test it here, report an error if set.
1172
1173 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
1174
1175         * alias.c: Fix formatting.
1176         * attribs.c: Likewise.
1177         * bb-reorder.c: Likewise.
1178         * bitmap.c: Likewise.
1179         * bitmap.h: Likewise.
1180         * builtins.c: Likewise.
1181
1182 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
1183
1184         * reload.c (find_valid_class): Accept new argument DEST,
1185         choose class accordingly.
1186         (push_reload): Update callers.
1187
1188 2002-05-26  Andreas Jaeger  <aj@suse.de>
1189
1190         * combine.c (combine_instructions): Do not indent #if for
1191         traditional C.
1192
1193 2002-05-25  Richard Henderson  <rth@redhat.com>
1194
1195         * c-pragma.c (apply_pragma_weak): Convert value identifier to
1196         string for decl_attributes.
1197         (handle_pragma_weak): Call assemble_alias if we're modifying
1198         an existing decl.
1199
1200 2002-05-25  Richard Henderson  <rth@redhat.com>
1201
1202         PR target/6788
1203         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1204         using rtl instead of fprintf.
1205         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1206         * config/sparc/sparc-protos.h: Update.
1207
1208 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1209
1210         * Makefile.in (C_COMMON_H): Fix.
1211         Update other targets.
1212         * c-common.c: Don't include c-lex.h.
1213         (builtin_define_with_value): Make static and prototype.
1214         (builtin_define_std): Move from c-lex.h.
1215         * c-common.h (init_c_lex): Move from c-lex.h.
1216         * c-decl.c: Don't include c-lex.h.
1217         (make_pointer_declarator): Move from c-parse.in.
1218         * c-lex.c: Don't include c-lex.h.
1219         * c-lex.h: Remove.
1220         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1221         (make_pointer_declarator): Move to c-decl.c.
1222         * c-pragma.c: Don't include c-lex.h.
1223         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1224         * c-tree.h (make_pointer_declarator): New.
1225 doc:
1226         * passes.texi, tm.texi: Update.
1227 objc:
1228         * Make-lang.in: Update and correct.
1229         * objc-act.c: Don't include c-lex.h or cpplib.h.
1230 treelang:
1231         * treetree.c: Don't include c-lex.h.
1232 config:
1233         * darwin-c.c: Don't include c-lex.h.
1234         * c4x/c4x-c.c: Don't include c-lex.h.
1235         * c4x/t-c4x: Update.
1236         * i370/i370-c.c: Don't include c-lex.h.
1237         * i370/t-i370: Update.
1238         * i960/i960-c.c: Don't include c-lex.h.
1239         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1240         * i960/t-960bare: Update.
1241         * i960/t-vxworks: Update.
1242         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1243         * rs6000/t-darwin: Update.
1244         * rs6000/t-rs6000-c-rule: Update.
1245         * v850/v850-c.c: Don't include c-lex.h.
1246         * v850/v850.c: Don't include c-lex.h or cpplib.h.
1247
1248
1249 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1250
1251         * tree.def: Fix typos.
1252         * doc/install.texi: Likewise.
1253
1254 2002-05-25  Richard Henderson  <rth@redhat.com>
1255
1256         * configure.in (HAVE_AS_TLS): Add ia64 test.
1257         * configure: Rebuild.
1258         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1259         (override_options): Set it.
1260         (TARGET_HAVE_TLS): New.
1261         (sdata_symbolic_operand): Look for 's'.
1262         (tls_symbolic_operand): New.
1263         (ia64_expand_load_address): Abort for tls symbols.
1264         (gen_tls_get_addr): New.
1265         (gen_thread_pointer): New.
1266         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
1267         (rtx_needs_barrier): Add new unspecs.
1268         (ia64_encode_section_info): Handle tls symbols.
1269         (ia64_strip_name_encoding): Strip two encoding chars.
1270         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1271         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1272         (TARGET_OPTIONS): Add tls-size.
1273         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1274         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1275         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1276         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1277         (movsf, movdf): Likewise.
1278         (movdi_symbolic): Use match_scratch.  Don't split if we won't
1279         have a scratch availiable.
1280         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1281         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1282         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1283         * config/ia64/ia64-protos.h: Update.
1284         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1285         sdata_symbolic_operand.
1286         (ASM_OUTPUT_LABELREF): Strip two characters.
1287
1288 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1289
1290         * combine.c (simplify_set): Remove an unnecessary subreg.
1291
1292 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1293
1294         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1295
1296         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1297
1298 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1299
1300         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
1301
1302 2002-05-25  Roger Sayle  <roger@eyesopen.com>
1303
1304         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1305         (cond (compare x y) 0) into the equivalent (cond x y).
1306
1307 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1308
1309         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
1310
1311 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
1312
1313         * config.gcc: Remove all stanzas for previously obsoleted
1314         systems.  Where necessary, add explicit error stanzas to
1315         prevent removed systems from being misidentified as something
1316         else.  Begin a fresh obsoletions list, with the systems that
1317         were reprieved last round.
1318         * doc/install.texi: Remove all mention of dead targets.
1319         * fixinc/mkfixinc.sh: Likewise.
1320
1321         * config/arm/arm.h: Bit 31 of target_flags is no longer
1322         reserved.
1323
1324         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1325         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1326         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1327         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1328         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1329         config/alpha/osf12.h, config/alpha/osf2or3.h,
1330         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1331         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1332         config/clipper/clipper-protos.h, config/clipper/clipper.c,
1333         config/clipper/clipper.h, config/clipper/clipper.md,
1334         config/clipper/clix.h, config/convex/convex-protos.h,
1335         config/convex/convex.c, config/convex/convex.h,
1336         config/convex/convex.md, config/convex/fixinc.convex,
1337         config/convex/proto.h, config/elxsi/elxsi-protos.h,
1338         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1339         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1340         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1341         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1342         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1343         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1344         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1345         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1346         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1347         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1348         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1349         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1350         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1351         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1352         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1353         config/m68k/altos3068.h, config/m68k/apollo68.h,
1354         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1355         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1356         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1357         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1358         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1359         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1360         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1361         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1362         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1363         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1364         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1365         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1366         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1367         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1368         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1369         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1370         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1371         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1372         config/mips/dec-osf1.h, config/mips/elflorion.h,
1373         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1374         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1375         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1376         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1377         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1378         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1379         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1380         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1381         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1382         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1383         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1384         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1385         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1386         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1387         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1388         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1389         Delete file.
1390
1391 2002-05-24  Richard Henderson  <rth@redhat.com>
1392
1393         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1394         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1395         * config/i386/i386.c (tls_model_chars): Add leading space.
1396         (tls_symbolic_operand): Don't bias by 1.
1397         (legitimize_address): Don't unbias by 1.
1398
1399 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1400
1401         * lcm.c (optimize_mode_switching): Change bb used as indices
1402         to bb->index.
1403
1404 2002-05-24  Richard Henderson  <rth@redhat.com>
1405
1406         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1407         of update_life_info_in_dirty_blocks.
1408
1409 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1410
1411         PR other/6782
1412         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1413
1414 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1415
1416         PR preprocessor/6780
1417         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1418
1419 2002-05-24  Jim Blandy  <jimb@redhat.com>
1420
1421         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1422         entry with a type code of zero, marking the end of the compilation
1423         unit's macro info.
1424
1425 2002-05-24  Richard Henderson  <rth@redhat.com>
1426
1427         * varasm.c (asm_output_bss): Always output one byte.
1428         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1429
1430 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1431
1432         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1433         namespace.
1434
1435 2002-05-24  Andreas Jaeger  <aj@suse.de>
1436
1437         * ggc-page.c (alloc_page): Cast variables of type size_t to
1438         unsigned long, adjust printf format string.
1439         (ggc_alloc): Likewise.
1440         (ggc_print_statistics): Likewise.
1441         (ggc_print_statistics): Correct printf format string for SCALE to
1442         use unsigned long.
1443
1444 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1445
1446         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1447
1448 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1449             Zack Weinberg     <zack@codesourcery.com>
1450
1451         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1452         quoted strings.
1453         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1454         directive in assembly file.
1455         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1456         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1457         * config/pj/pj.h (ASM_FILE_START): Likewise.
1458         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1459         * config/avr/avr.c (asm_file_end): Likewise.
1460         * toplev.c (output_quoted_string): Handle possibly signed plain
1461         char.
1462         * toplev.h (output_clean_symbol_name): Declare
1463         * toplev.c (output_clean_symbol_name): Define.
1464         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1465         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1466
1467 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1468
1469         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1470
1471 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1472
1473         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1474         of size of unsigned.
1475
1476 2002-05-23  Richard Henderson  <rth@redhat.com>
1477
1478         * configure.in (HAVE_AS_TLS): New test.
1479         * config.in, configure: Rebuild.
1480         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1481         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1482         (override_options): Set it.
1483         (tls_model_chars, tls_symbolic_operand): New.
1484         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1485         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1486         (local_exec_symbolic_operand): New.
1487         (get_pic_label_name): Merge into output_set_got.
1488         (ix86_asm_file_end): Emit pic_label_name if defined.
1489         (legitimate_constant_p, constant_address_p): New.
1490         (legitimate_pic_operand_p): New.
1491         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1492         (legitimate_address_p): Likewise.
1493         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1494         (ix86_strip_name_encoding): New.
1495         (get_thread_pointer): New.
1496         (legitimize_address): Handle tls symbols.
1497         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1498         Remove UNSPEC_PLT.
1499         (struct machine_function): Add some_ld_name.
1500         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1501         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1502         (output_addr_const_extra): New.
1503         (maybe_get_pool_constant): New.
1504         (ix86_split_to_parts): Use it.
1505         (ix86_expand_move): Handle tls symbols.
1506         (ix86_tls_get_addr): New.
1507         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1508         (TARGET_OPTIONS): Add tls-dialect.
1509         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1510         (LEGITIMATE_CONSTANT_P): Likewise.
1511         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1512         (TARGET_STRIP_NAME_ENCODING): New.
1513         (ASM_OUTPUT_LABELREF): New.
1514         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1515         (OUTPUT_ADDR_CONST_EXTRA): New.
1516         (PREDICATE_CODES): Update.
1517         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1518         * config/i386/i386.md: Regroup and renumber unspec constants.
1519         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1520         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1521         (tls_global_dynamic, tls_local_dynamic_base): New.
1522         (tls_local_dynamic_once): New.
1523         * config/i386/i386-protos.h: Update.
1524
1525 2002-05-23  Richard Henderson  <rth@redhat.com>
1526
1527         * genemit.c (gen_insn): Print file:lineno comment before function.
1528         (main): likewise.
1529         * gensupport.c (struct queue_elem): Add filename member.
1530         (queue_pattern): Initialize it; update all callers.
1531         (process_include): Don't free filename.
1532         (read_md_rtx): Set read_rtx_filename.
1533
1534 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1535
1536         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1537
1538 2002-05-23  Richard Henderson  <rth@redhat.com>
1539
1540         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1541
1542 2002-05-23  Richard Henderson  <rth@redhat.com>
1543
1544         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1545         commentary from Mark.
1546
1547 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1548
1549         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1550         Use FOR_EACH_BB macros to iterate over basic block chain.
1551         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1552         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1553         Likewise.
1554         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1555         find_unreachable_blocks, create_edge_list, verify_edge_list,
1556         remove_fake_edges, add_noreturn_fake_exit_edges,
1557         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1558         Likewise.
1559         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1560         find_sub_basic_blocks): Likewise.
1561         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1562         Likewise.
1563         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1564         Likewise.
1565         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1566         Likewise.
1567         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1568         commit_edge_insertions, commit_edge_insertions_watch_calls,
1569         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1570         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1571         * conflict.c (conflict_graph_compute): Likewise.
1572         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1573         df_modified_p, df_refs_unlink, df_dump): Likewise.
1574         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1575         * final.c (compute_alignments): Likewise.
1576         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1577         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1578         count_or_remove_death_notes): Likewise.
1579         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1580         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1581         classic_gcse, compute_transp, cprop, compute_pre_data,
1582         compute_transpout, invalidate_nonnull_info,
1583         delete_null_pointer_checks_1, delete_null_pointer_checks,
1584         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1585         compute_store_table, build_store_vectors, store_motion): Likewise.
1586         * global.c (global_conflicts, mark_elimination): Likewise.
1587         * graph.c (print_rtl_graph_with_bb): Likewise.
1588         * haifa-sched.c (sched_init): Likewise.
1589         * ifcvt.c (if_convert): Likewise.
1590         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1591         compute_available, compute_nearerout, compute_rev_insert_delete,
1592         optimize_mode_switching): Likewise.
1593         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1594         * predict.c (estimate_probability, note_prediction_to_br_prob,
1595         propagate_freq, counts_to_freqs, expensive_function_p,
1596         estimate_bb_frequencies): Likewise.
1597         * profile.c (instrument_edges, get_exec_counts,
1598         compute_branch_probabilities, compute_checksum, branch_prob,
1599         find_spanning_tree): Likewise.
1600         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1601         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1602         Likewise.
1603         * regclass.c (scan_one_insn, regclass): Likewise.
1604         * regmove.c (mark_flags_life_zones, regmove_optimize,
1605         record_stack_memrefs): Likewise.
1606         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1607         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1608         * resource.c (find_basic_block): Likewise.
1609         * sched-ebb.c (schedule_ebbs): Likewise.
1610         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1611         find_single_block_region, find_rgns, schedule_insns)
1612         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1613         * ssa-ccp.c (optimize_unexecutable_edges,
1614         ssa_ccp_df_delete_unreachable_insns): Likewise.
1615         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1616         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1617         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1618         compute_coalesced_reg_partition, rename_equivalent_regs,
1619         convert_from_ssa): Likewise.
1620         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1621         process_for_unwind_directive): Likewise.
1622
1623         * df.c (FOR_ALL_BBS): Removed.
1624         * gcse.c (struct null_pointer_info): Type of current_block field
1625         changed.
1626         (struct reg_avail_info): Type of last_bb field changed.
1627         * config/ia64/ia64.c (block_num): Removed.
1628         (need_copy_state): Type changed.
1629         (last_block): New.
1630
1631 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1632
1633         * cppinit.c (mark_named_operators): Split out from init_builtins.
1634         (cpp_finish_options): Call it from here instead.
1635
1636 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1637
1638         * builtin-attrs.def: Update copyright years.
1639         (ATTR_NONNULL): New attribute identifier.
1640         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1641         attribute tree lists.
1642         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1643         format operand.
1644         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1645         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1646         attribute lists.  Chain the appropriate nonnull attribute.
1647         * c-format.c (check_format_arg): Remove null format string
1648         warning.
1649         * testsuite/gcc.dg/format/null-1.c: New test.
1650
1651 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1652
1653         * Makefile.in (ADAC): Define.
1654         (SYSLIBS): Define.
1655         (.SUFFIXES): Move before language makefile fragments.
1656         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1657
1658 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1659
1660         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1661         placed in common.
1662
1663 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1664
1665         * cfg.c (dump_flow_info): Print results of
1666         maybe_hot/probably_never_executed predicates.
1667         * toplev.c (open_dump_file): Print function frequency.
1668
1669 2002-05-23  David S. Miller  <davem@redhat.com>
1670
1671         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1672         regsets.
1673
1674 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1675
1676         * c-common.c (warn_nonnull): Declare.
1677         (c_common_attribute_table): Add "nonnull" attribute.
1678         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1679         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1680         check_function_arguments_recurse): New functions.
1681         * c-common.h (warn_nonnull): Declare extern.
1682         (check_function_arguments, check_function_arguments_recurse): New
1683         prototypes.
1684         * c-decl.c (c_decode_option): Add -Wnonnull option.
1685         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1686         format checking.
1687         (format_check_context): New structure.
1688         (check_format_info_recurse): Remove recursion and rename to...
1689         (check_format_arg): ...this.  Update comment.
1690         (check_format_info): Use check_function_arguments_recurse.
1691         * c-typeck.c (build_function_call): Call check_function_arguments
1692         instead of check_function_format.
1693         * doc/extend.texi: Document "nonnull" attribute.
1694         * doc/invoke.texi: Docuemnt -Wnonnull option.
1695         * testsuite/gcc.dg/nonnull-1.c: New test.
1696         * testsuite/gcc.dg/nonnull-2.c: New test.
1697
1698 2002-05-23  David S. Miller  <davem@redhat.com>
1699
1700         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1701         * cfgcleanup.c (cleanup_cfg): If it is set do not
1702         attempt to delete trivially dead insns.
1703         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1704         * toplev.c (rest_of_compilation): Document non-trivial aspect
1705         the RTL before optimize_save_area_alloca is run.
1706
1707 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1708
1709         * c-lex.c (indent_level): Remove.
1710         (cb_file_change, c_lex): Remove indent level handling.
1711         * c-lex.h (indent_level): Remove.
1712         * input.h (struct file_stack): Remove indent_level.
1713         * toplev.c (push_srcloc): Remove indent_level handling.
1714
1715 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1716
1717         PR target/6753
1718         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1719         of x in constraints for clarity.
1720         (sse_mov?fcc split): abort if op2 == op3.
1721         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1722         sse_movsfcc_const0_4): Add earlyclobber.
1723         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1724         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1725         Use Y instead of x in constraints.
1726
1727 2002-05-23  Richard Henderson  <rth@redhat.com>
1728
1729         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1730         (C++98 Thread-Local Edits): New subsection.
1731
1732         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1733         (ix86_arch): Set type to enum processor_type.
1734
1735         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1736         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1737
1738 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1739
1740         * configure.in: Fix as version test for binutils 2.12.1 releases
1741         (without dates).
1742         * configure: Rebuilt.
1743
1744 2002-05-23  Richard Henderson  <rth@redhat.com>
1745
1746         * config/i386/i386.c (get_pic_label_name): New.
1747         (load_pic_register): Remove.
1748         (output_set_got): New.
1749         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1750         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1751         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1752         (prologue_set_got, prologue_get_pc): Remove.
1753         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1754         (builtin_setjmp_receiver): Use gen_set_got.
1755         * config/i386/i386-protos.h: Update.
1756
1757 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1758
1759         * gcse.c (hash_expr): Do not use alias set for hashing.
1760
1761 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1762
1763         * dbxout.c (dbxout_class_name_qualifiers): New function.
1764         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1765
1766 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1767
1768         * cpperror.c (_cpp_begin_message): No special casing
1769         of CPP_FATAL_LIMIT.
1770         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1771         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1772         * cpplib.c (do_include_common): Use DL_ERROR.
1773         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1774         (DL_ICE): Renumber.
1775         * fix-header.c (read_scan_file): Update.
1776
1777 2002-05-22  Richard Henderson  <rth@redhat.com>
1778
1779         * config/i386/i386.c (ix86_expand_call): New function, extracted
1780         from md call patterns.  Add pic_offset_table_rtx to
1781         CALL_INSN_FUNCTION_USAGE when needed.
1782         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1783         (call_value_pop, call_value, untyped_call): Likewise.
1784         (call_exp, call_value_exp): Remove.
1785         * config/i386/i386-protos.h: Update.
1786
1787 2002-05-22  Richard Henderson  <rth@redhat.com>
1788
1789         * varasm.c (default_section_type_flags): Check for VAR_DECL
1790         before using DECL_THREAD_LOCAL.
1791
1792 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1793
1794         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1795         (STARTFILE_SPEC): Delete PE crt0.o.
1796         * config/rs6000/aix51.h: Same.
1797         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1798         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1799         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1800         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1801         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1802
1803 2002-05-22  Richard Henderson  <rth@redhat.com>
1804
1805         * varasm.c (default_section_type_flags): Handle tls data and
1806         default sections.
1807         (default_unique_section): Handle tls sections.
1808
1809 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1810
1811         * configure.in (CROSS): Define NATIVE_CROSS.
1812         * configure: Regenerate.
1813         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1814         (startfile_prefix_spec): New var.
1815         (static_specs): Add startfile_prefix_spec.
1816         (do_spec_2): Split out from..
1817         (do_spec): ..here.
1818         (main): Process startfile_prefix_spec.
1819         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1820         dynamic linker.
1821         (STARTFILE_PREFIX_SPEC): Define.
1822         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1823         absolute paths.
1824
1825 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1826
1827         * cpperror.c: Fix formatting.
1828         * cppexp.c: Likewise.
1829         * cppfiles.c: Likewise.
1830         * cpphash.c: Likewise.
1831         * cpphash.h: Likewise.
1832         * cppinit.c: Likewise.
1833         * cpplex.c: Likewise.
1834         * cpplib.c: Likewise.
1835         * cppmacro.c: Likewise.
1836         * cppmain.c: Likewise.
1837         * cppspec.c: Likewise.
1838
1839 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1840
1841         * combine.c (force_to_mode): Use gen_int_mode.
1842         Don't clear CONST_INT bits outside of mode.
1843
1844 2002-05-22  Richard Henderson  <rth@redhat.com>
1845
1846         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1847         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1848
1849 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1850
1851         PR c/6643
1852         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1853         if DECL_SIZE_UNIT is INTEGER_CST.
1854
1855 2002-05-22  Richard Henderson  <rth@redhat.com>
1856
1857         * flow.c (life_analysis): Delete broken reg_label check.
1858
1859 2002-05-22  Richard Henderson  <rth@redhat.com>
1860
1861         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1862         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1863
1864 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1865
1866         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1867         (embed-bb.c): New rule.
1868         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1869         * config/sh/embed_bb.c: Delete.
1870
1871 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1872
1873         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1874
1875 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1876
1877         * config/h8300/h8300.md (*andorqi3): New.
1878
1879 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1880
1881         PR preprocessor/6517
1882         * Makefile.in: Update.
1883         * c-common.c (c_common_post_options): Add preprocessor
1884         errors to the error count.
1885         * c-lang.c (c_post_options): Kill.
1886         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1887         * hooks.h: Add header guards.
1888         * langhooks-def.h: Include hooks.h.
1889         (LANG_HOOKS_POST_OPTIONS): Update.
1890         * langhooks.h (struct lang_hooks): Update post_options.
1891         * toplev.c (parse_options_and_default_flags): Update.
1892 objc:
1893         * objc-lang.c (objc_post_options): Kill.
1894         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1895
1896 2002-05-21  Bruce Korb  <bkorb@gnu.org>
1897
1898         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1899         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1900         * fixinc/fixincl.x: regen.
1901
1902 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
1903
1904         * cfgbuild.c: Fix formatting.
1905         * cfg.c: Likewise.
1906         * cfgcleanup.c: Likewise.
1907         * cfglayout.c: Likewise.
1908         * cfgloop.c: Likewise.
1909         * cfgrtl.c: Likewise.
1910
1911 2002-05-21  Richard Henderson  <rth@redhat.com>
1912
1913         * c-common.h (enum rid): Add RID_THREAD.
1914         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1915         (grokdeclarator): Grok __thread.
1916         * c-parse.in (reswords): Add __thread.
1917         (rid_to_yy): Add RID_THREAD.
1918
1919         * tree.h (DECL_THREAD_LOCAL): New.
1920         (struct tree_decl): Add thread_local_flag.
1921         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1922         * tree.c (staticp): TLS variables are not static.
1923
1924         * target-def.h (TARGET_HAVE_TLS): New.
1925         * target.h (have_tls): New.
1926         * output.h (SECTION_TLS): New.
1927         * varasm.c (assemble_variable): TLS variables can't be common for now.
1928         (default_section_type_flags): Handle .tdata and .tbss.
1929         (default_elf_asm_named_section): Handle SECTION_TLS.
1930         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1931
1932         * flags.h (flag_tls_default): Declare.
1933         * toplev.c (flag_tls_default): Define.
1934         (display_help): Display help for it.
1935         (decode_f_option): Set it.
1936
1937         * doc/extend.texi (Thread-Local): New node describing language-level
1938         thread-local storage.
1939         * doc/invoke.texi (-ftls-model): Document.
1940
1941         * fixinc/inclhack.def (thread_keyword): New.
1942         * fixinc/fixincl.x: Rebuild.
1943
1944 2002-05-21  Jeffrey A Law  <law@redhat.com>
1945
1946         * optabs.c (expand_binop): For double-word integer multiplies,
1947         do not compute intermediate results into something that is
1948         not a register (such as a SUBREG or MEM).
1949
1950         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1951         (ix86_sched_reorder): Make sure to initialize scheduling
1952         data even when there's only one insn in the ready queue.
1953
1954 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1955
1956         * genautomata.c (reserv_sets_hash_value): Fix a typo.
1957
1958 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1959
1960         * genautomata.c (reserv_sets_hash_value): Define hash_value as
1961         set_el_t.  Transform the hash value into unsigned.
1962         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1963         (transform_3): Add code to process `(A,B)+(D,E)'.
1964
1965 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
1966
1967         * reload1.c (do_output_reload): Run delete_output_reload
1968         only if optimizing.
1969
1970 2002-05-21  Roger Sayle  <roger@eyesopen.com>
1971
1972         PR middle-end/6600
1973         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1974         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
1975         (can_store_by_pieces): ... and here to limit the largest mode used.
1976         Add a comment to document this function.
1977
1978 2002-05-21  Richard Henderson  <rth@redhat.com>
1979
1980         * flow.c (life_analysis): Fix test for deleted label.
1981
1982 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1983
1984         * doc/tm.texi: Fix typo.
1985
1986 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
1987
1988         * c-common.c (c_common_init): Set options->unsigned_char from
1989         flag_signed_char.
1990         (cb_register_builtins): Define __STRICT_ANSI__ and
1991         __CHAR_UNSIGNED__ here...
1992         * cppinit.c (init_builtins): Not here.
1993         (cpp_create_reader): unsigned_char option defaults to 0, not
1994         !DEFAULT_SIGNED_CHAR.
1995         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1996         and -funsigned-char.
1997
1998         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1999         * cpphash.c (_cpp_init_hashtable): Don't set it.
2000         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
2001         directly.  Clarify comment.
2002
2003 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2004
2005         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
2006         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
2007         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
2008         BASIC_BLOCK (n_basic_blocks - 1).
2009         * cfganal.c (can_fallthru, flow_call_edges_add,
2010         flow_preorder_transversal_compute): Too.
2011         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
2012         find_sub_basic_blocks): Too.
2013         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
2014         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
2015         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
2016         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
2017         * combine.c (this_basic_block): Type changed to basic_block.
2018         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
2019         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2020         get_last_value, distribute_notes, distribute_links): Too.
2021         * final.c (compute_alignments): Too.
2022         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
2023         * function.c (thread_prologue_and_epilogue_insns): Too.
2024         * gcse.c (compute_code_hoist_vbeinout): Too.
2025         * global.c (build_insn_chain): Too.
2026         * ifcvt.c (find_if_block, find_cond_trap): Too.
2027         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
2028         * regmove.c (regmove_optimize): Too.
2029         * resource.c (find_basic_block): Too.
2030         * sched-ebb.c (schedule_ebbs): Too.
2031         * ssa-dce.c (find_control_dependence, find_pdom): Too.
2032
2033 2002-05-21  Andreas Jaeger  <aj@suse.de>
2034
2035         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
2036
2037 2002-05-21  Richard Henderson  <rth@redhat.com>
2038
2039         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
2040         unspec names, not numbers.
2041
2042 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2043
2044         * doc/sourcebuild.texi: Mention snapshot-README and
2045         snapshot-index.html as needing updating for new front ends.
2046
2047 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2048
2049         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2050         disabling checking, and avoid multiple evaluation of RTX.
2051
2052 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
2053
2054         * bitmap.c (bitmap_find_bit): Return early if we have the correct
2055         element cached.
2056
2057 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2058
2059         * profile.c (gen_edge_profiler):  Set alias set before the memory is
2060         used.
2061
2062 2002-05-20  David S. Miller  <davem@redhat.com>
2063
2064         * cselib.c (max_value_regs): New.
2065         (cselib_lookup, cselib_invalidate_regno): Initialize it when
2066         adding new entries to the REG_VALUES table and we are dealing with
2067         a hard register.
2068         (clear_table): Initialize it.
2069         (cselib_invalidate_regno): Use it to determine which hard
2070         registers to scan when mode is not VOIDmode.
2071
2072 2002-05-20  Duraid Madina   <duraid@fl.net.au>
2073
2074         * tradcpp.c (fixup_newlines): Use old-style function header.
2075
2076 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
2077
2078         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2079
2080 2002-05-20  H.J. Lu  (hjl@gnu.org)
2081
2082         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2083
2084         * config/mips/mips.h (DFMODE_NAN): Defined.
2085         (SFMODE_NAN): Likewise.
2086
2087 2002-05-20  Dale Johannesen  <dalej@apple.com>
2088
2089         * combine.c (cant_combine_insn_p):  Back out my
2090         previous patch.
2091
2092 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
2093
2094         * params.c: Fix formatting.
2095         * params.h: Likewise.
2096         * predict.c: Likewise.
2097         * prefix.c: Likewise.
2098         * print-rtl.c: Likewise.
2099         * print-tree.c: Likewise.
2100         * profile.c: Likewise.
2101
2102 2002-05-20  H.J. Lu  (hjl@gnu.org)
2103
2104         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2105
2106 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
2107
2108         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2109         switches straight on to the assembler, do not abbreviate them.
2110         * config/arm/elf.h (ASM_SPEC): As above.
2111         * config/arm/semi.h (ASM_SPEC): As above.
2112         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2113         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2114         -mcpu=xscale on to the assembler by default.
2115         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2116
2117 2002-05-20  Richard Henderson  <rth@redhat.com>
2118
2119         * cse.c (canon_hash): Reorder do_not_record test.  Always
2120         allow pic_offset_table_rtx.
2121
2122 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
2123
2124         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2125         (expand_binop): Ditto (3 times).
2126
2127 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
2128
2129         * Makefile.in (distclean): Remove QMTest stuff.
2130         (QMTEST_PATH): New variable.
2131         (QMTESTFLAGS): Likewise.
2132         (QMTESTRUNFLAGS): Likewise.
2133         (QMTEST): Likewise.
2134         (QMTEST_GPP_TESTS): Likewise.
2135         (QMTEST_DIR): Likewise.
2136         (QMTEST_DIR/context): New target.
2137         (qmtest-g++): Likeise.
2138         (qmtest-gui): Likewise.
2139         (QMTEST_DIR/gpp-expected.qmr): Likewise.
2140
2141 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
2142
2143         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2144         an altivec register if TARGET_ALTIVEC.
2145
2146         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2147         to ALTIVEC_VECTOR_MODE.
2148         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2149         (rs6000_va_arg): Vectors may go in registers if they are not
2150         altivec vectors.
2151
2152 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
2153
2154         * protoize.c: Fix formatting.
2155
2156 2002-05-19  Richard Henderson  <rth@redhat.com>
2157
2158         * gensupport.c (init_include_reader): Merge into ...
2159         (process_include): ... here.  Simplify composite path creation.
2160         Plug memory leaks.  Fix file/line number tracking.  Do not
2161         process_define_cond_exec.  Return void.
2162         (process_rtx): Don't check process_include return value.
2163
2164 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2165
2166         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2167         fields.
2168         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2169         traversing basic block chain.
2170         (create_basic_block_structure, create_basic_block): Declaration changed.
2171         (link_block, unlink_block): Declare.
2172         * cfg.c (entry_exit_blocks): Initialize new fields.
2173         (link_block, unlink_block): New.
2174         (expunge_block_nocompact): Unlink basic block.
2175         (dump_flow_info): Print prev_bb/next_bb fields.
2176         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2177         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2178         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2179         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2180         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2181         (verify_flow_info): Check that list agrees with numbering.
2182
2183 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2184
2185         * c-common.c (preprocessing_asm): New macro.
2186         * c-lex.h (builtin_define, builtin_assert): Use pfile.
2187 doc:
2188         * tm.texi: Update.
2189 config/alpha:
2190         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2191         (CPP_SPEC): Simplify.
2192         (TARGET_CPU_CPP_BUILTINS): Update.
2193         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2194         (CPP_SPEC): Simplify.
2195         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2196         (TARGET_OS_CPP_BUILTINS): Update.
2197         * osf.h (CPP_XFLOAT_SPEC): Kill.
2198         (TARGET_OS_CPP_BUILTINS): Update.
2199         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2200         * osf5.h (CPP_XFLOAT_SPEC): Kill.
2201         * vms.h (CPP_SUBTARGET_SPEC): Kill.
2202         (TARGET_OS_CPP_BUILTINS): Update.
2203
2204 2002-05-19  Richard Henderson  <rth@redhat.com>
2205
2206         * varasm.c (default_binds_local_p): Fix typo.
2207
2208 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2209
2210         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2211         CONST_INT operand to the correct mode after adding 1 to it.
2212
2213 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
2214
2215         * config.gcc (powerpc-wrs-windiss*): New target.
2216
2217 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2218
2219         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2220         (ashrdi3): Use it.
2221
2222 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
2223
2224         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2225         alphasort.
2226         * config.in: Regenerated.
2227         * configure: Regenerated.
2228
2229 2002-05-19  Richard Henderson  <rth@redhat.com>
2230
2231         * target-def.h (TARGET_BINDS_LOCAL_P): New.
2232         * target.h (struct gcc_target): Move boolean fields to the end.
2233         Add binds_local_p.
2234         * varasm.c (default_binds_local_p): New.
2235         * output.h: Declare it.
2236
2237         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2238         * config/cris/cris.c (cris_encode_section_info): Likewise.
2239         * config/i386/i386.c (i386_encode_section_info): Likewise.
2240         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2241         * config/sh/sh.c (sh_encode_section_info): Likewise.
2242
2243         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2244         (TARGET_BINDS_LOCAL_P): New.
2245
2246 2002-05-19  Richard Henderson  <rth@redhat.com>
2247
2248         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2249         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2250         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2251
2252         * toplev.c (display_help): Kill -a -ax help.
2253
2254         * config/1750a/1750a.h, config/alpha/alpha.h,
2255         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2256         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2257         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2258         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2259
2260         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2261         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2262
2263         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2264         (ix86_output_function_block_profiler): Kill.
2265         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2266         (m68hc11_function_block_profiler): Kill.
2267         * config/m68hc11/m68hc11-protos.h: Update.
2268         * config/m88k/m88k.c (output_block_profiler): Kill.
2269         (output_function_block_profiler): Kill.
2270         * config/m88k/m88k-protos.h: Update.
2271
2272 2002-05-19  Richard Henderson  <rth@redhat.com>
2273
2274         * system.h (STRIP_NAME_ENCODING): Poison it.
2275         * output.h (STRIP_NAME_ENCODING): Remove.
2276         (default_strip_name_encoding): Declare.
2277         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2278         * target.h (strip_name_encoding): New.
2279         * varasm.c (default_strip_name_encoding): New.
2280
2281         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2282         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2283         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2284         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2285         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2286         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2287         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2288         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2289         config/v850/v850.h: Use the hook, not the macro.
2290
2291         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2292         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2293         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2294         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2295         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2296         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2297         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2298         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2299         config/v850/v850.c, config/v850/v850.h:
2300         Move STRIP_NAME_ENCODING to out-of-line function and add
2301         TARGET_STRIP_NAME_ENCODING.
2302
2303         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2304         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2305         with TARGET_STRIP_NAME_ENCODING referencing existing function;
2306         make function static.
2307
2308         * xcoffout.c: Include target.h
2309         * Makefile.in (xcoffout.o): Update.
2310
2311         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2312         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2313         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2314         reloc argument unused.
2315         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2316
2317         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2318         STRIP_NAME_ENCODING docs.
2319
2320 2002-05-19  Andreas Jaeger  <aj@suse.de>
2321
2322         * gengenrtl.c: Add prototype for excluded_rtx.
2323
2324         * real.h: Add prototype for exact_real_truncate.
2325
2326 2002-05-18  Richard Henderson  <rth@redhat.com>
2327
2328         * system.h (ENCODE_SECTION_INFO): Poison it.
2329         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2330         * target.h (encode_section_info): New.
2331         * varasm.c (make_decl_rtl, output_constant_def): Use it.
2332         * hooks.c (hook_tree_int_void): New.
2333         * hooks.h: Declare it.
2334
2335         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2336         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2337         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2338         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2339         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2340         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2341         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2342         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2343         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2344         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2345         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2346         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2347         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2348         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2349         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2350         referencing existing function.  Make function static.
2351
2352         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2353         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2354         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2355         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2356         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2357         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2358         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2359         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2360         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2361         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2362         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2363         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2364         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2365         Move ENCODE_SECTION_INFO to out-of-line function and add
2366         TARGET_ENCODE_SECTION_INFO.
2367
2368         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2369         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2370
2371         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2372         from SUBTARGET_*
2373         (switch_to_section): Replace in_rdata case with in_readonly_data.
2374
2375         * config/h8300/h8300.c (h8300_encode_label): Make static.
2376         * config/h8300/h8300-protos.h: Update.
2377
2378         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2379         from rs6000_encode_section_info; make static.
2380         (rs6000_xcoff_encode_section_info): New.
2381
2382         * config/v850/v850.c (v850_encode_data_area): Make static.
2383         * config/v850/v850-protos.h: Update.
2384
2385         * config/vax/vax.c: Include flags.h.
2386         (vms_select_section): Fix typo.
2387
2388         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2389         ENCODE_SECTION_INFO docs.
2390
2391 2002-05-18  Richard Henderson  <rth@redhat.com>
2392
2393         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2394         REGISTER_TARGET_PRAGMAS.
2395         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2396
2397         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2398
2399 2002-05-18  Richard Henderson  <rth@redhat.com>
2400
2401         * system.h (SELECT_RTX_SECTION): Poison.
2402         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2403         * target.h (select_rtx_section): New.
2404         * varasm.c (output_constant_pool): Use it.
2405         (default_select_rtx_section, default_elf_select_rtx_section): New.
2406         * output.h: Declare them.
2407
2408         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2409         * config/darwin.c (machopic_select_rtx_section): ... here.
2410         * config/darwin-protos.h: Update.
2411
2412         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2413         * config/nextstep.c (machopic_select_rtx_section): ... here.
2414         (nextstep_select_section): Rename variable to avoid macro clash.
2415         * config/nextstep-protos.h: Update.
2416
2417         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2418         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2419         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2420         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2421         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2422         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2423         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2424         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2425         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2426         (SELECT_RTX_SECTION): Remove.
2427
2428         * config/darwin.h, config/elfos.h, config/nextstep.h,
2429         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2430         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2431         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2432         config/sparc/lynx.h, config/xtensa/xtensa.c
2433         (TARGET_ASM_SELECT_RTX_SECTION): New.
2434
2435         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2436         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2437         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2438         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2439         (ia64_aix_select_rtx_section): New.
2440         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2441         redefining.
2442         * config/mips/mips.c (mips_select_rtx_section): Make static.
2443         Support ELF SHF_MERGE features.
2444         * config/mips/mips-protos.h: Update.
2445         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2446         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2447         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2448         make static, fall back to default_elf_select_rtx_section.
2449         * config/rs6000/rs6000-protos.h: Update.
2450         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2451         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2452         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2453         * config/romp/romp.c (romp_select_rtx_section): New.
2454         * config/s390/s390.c (s390_select_rtx_section): New.
2455         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2456         declarations before target macro definition.
2457         (xtensa_emit_call): Use static buffer.
2458         (xtensa_select_rtx_section): New.
2459         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2460         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2461         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2462
2463         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2464         SELECT_RTX_SECTION docs.
2465
2466 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2467
2468         * i386.md (movsi/movdi): Fix template.
2469         (sse2 patterns): Set attributes consistently.
2470
2471         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2472
2473 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2474
2475         * optabs.c (complex_part_zero_p): New.
2476         * (expand_cmplxdiv_straight): Use it.
2477         * (expand_cmplxdiv_wide): Ditto.
2478         * (expand_binop): Ditto.
2479
2480 2002-05-18  Richard Henderson  <rth@redhat.com>
2481
2482         * final.c (HAVE_READONLY_DATA_SECTION): New.
2483         (shorten_branches): Use it instead of ifdefs.
2484         * varasm.c (enum in_section): Add in_readonly_data.
2485         (text_section, data_section): Tidy.
2486         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2487
2488         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2489         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2490         (READONLY_DATA_SECTION): Don't undef.
2491
2492         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2493         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2494         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2495
2496         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2497         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2498         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2499         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2500
2501         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2502         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2503         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2504         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2505         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2506         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2507         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2508         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2509         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2510
2511         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2512         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2513         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2514         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2515         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2516         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2517
2518         * config/elfos.h, config/netware.h, config/svr3.h,
2519         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2520         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2521         config/h8300/h8300.h, config/i386/i386-interix.h,
2522         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2523         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2524
2525         * config/elfos.h, config/netware.h, config/svr3.h,
2526         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2527         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2528         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2529         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2530
2531         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2532         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2533         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2534         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2535         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2536         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2537         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2538         config/rs6000/sysv4.h, config/v850/v850.h
2539         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2540         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2541
2542         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2543         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2544         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2545         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2546         * config/alpha/alpha.c (alpha_start_function): Likewise.
2547         (alpha_write_linkage): Likewise.
2548         * config/m32r/m32r.c (m32r_select_section): Likewise.
2549         * config/m88k/m88k.c (m88k_select_section): Likewise.
2550         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2551         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2552         (rs6000_elf_select_section): Likewise.
2553         * config/v850/v850.c (v850_select_section): Likewise.
2554
2555         * config/1750a/1750a.h, config/i860/sysv3.h
2556         (READONLY_DATA_SECTION_ASM_OP): New.
2557         READONLY_DATA_SECTION_ASM_OP.
2558         * config/i386/interix.c, config/i386/winnt.c
2559         (i386_pe_unique_section): Always use .rdata prefix.
2560         * config/pa/som.h (readonly_data): Always switch to read-only section.
2561         (READONLY_DATA_SECTION): Predicate on flag_pic.
2562         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2563         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2564         (READONLY_DATA_SECTION): Update.
2565
2566 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2567
2568         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2569         is used without -Wformat.
2570         * c-common.h (warn_format_zero_length): Declare extern.
2571         * c-decl.c (warn_options): Add "format-zero-length".
2572         * c-format.c (warn_format_zero_length): Declare.
2573         (set_Wformat): Set warn_format_zero_length for -Wformat.
2574         (check_format_info): Only warn about zero-length formats if
2575         warn_format_zero_length is true.  Include the format type
2576         name in the warning message.
2577         * doc/invoke.texi: Document -Wformat-zero-length.
2578         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2579
2580 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2581
2582         * timevar.c: Fix formatting.
2583         * tlink.c: Likewise.
2584         * toplev.c: Likewise.
2585         * tree-dump.c: Likewise.
2586         * tree-inline.c: Likewise.
2587
2588 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2589
2590         * cppinit.c (cpp_post_options): If preprocessed, turn off
2591         traditional.  If traditional, turn off column numbers.
2592         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2593         * cpptrad.c (handle_newline): Update line_base.
2594         (skip_comment): Handle -Wcomment.
2595
2596 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2597
2598         * cppinit.c (struct builtin): Remove unused fields.
2599         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2600         (operator_array): New - was second half of builtin_array.
2601         (init_builtins): Simplify loop over builtin_array/operator_array.
2602
2603 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2604
2605         * defaults.h (UNIQUE_SECTION): Remove.
2606         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2607
2608 2002-05-17  Richard Henderson  <rth@redhat.com>
2609
2610         * expr.c (init_expr_once): Don't use start/end_sequence.
2611         Use rtx_alloc instead of emit_insn.
2612         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2613         (lang_independent_init): ... not here.
2614
2615 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2616
2617         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2618
2619 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2620
2621         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2622         for fixed registers, possibly used for global register variables.
2623         (initial_elimination_offset, avr_output_function_prologue,
2624         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2625
2626 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2627
2628         * Makefile.in: Update for cpptrad.c.
2629         * cpphash.h (struct cpp_buffer): New members for buffer
2630         overlays.
2631         (struct cpp_reader): New members for traditional output.
2632         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2633         * cppinit.c (cpp_create_reader): Set trad_line.
2634         (cpp_destroy): Free trad_out_base if used.
2635         (cpp_read_main_file): Overlay an empty buffer if traditional.
2636         (cpp_finish_options): Don't do builtins.
2637         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2638         (cpp_handle_option): Handle it.
2639         * cpplex.c (continue_after_nul): New.
2640         (_cpp_lex_direct): Use handle_nul.
2641         * cpplib.h (struct cpp_options): New traditional option.
2642         * cpptrad.c: New file.
2643
2644 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2645
2646         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2647         and set the options flag.
2648         * cppinit.c (lang_flags): Remove objc.
2649         (lang_defaults): Remove OBJC and OBJCXX.
2650         (set_lang): Update.
2651         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2652         (cpp_handle_option): Remove -+ and -lang-objc++.
2653         For ObjC, just set a flag.
2654         (print_help): Update.
2655         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2656
2657 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2658
2659         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2660         bootstrap with -mips3.
2661
2662 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2663
2664         * final.c: Fix formatting.
2665         * fix-header.c: Likewise.
2666         * flow.c: Likewise.
2667         * fold-const.c: Likewise.
2668         * function.c: Likewise.
2669
2670 2002-05-17  David S. Miller  <davem@redhat.com>
2671
2672         PR c/6689, PR optimization/6615
2673         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2674         and make it a pointer to rtx.  Update comments.
2675         (update_equiv_regs): When scanning for equivalences, record
2676         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2677         it while making the equiv replacements.
2678
2679 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2680
2681         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2682
2683 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2684
2685         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2686         when encoding visibility into SYMBOL_REF_FLAG.
2687
2688 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2689
2690         * expr.c (force_operand): Fix reversed move.
2691
2692 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2693
2694         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2695         that can be ignored.
2696
2697 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2698
2699         * doc/install.texi (Final install): Recommend to install into a
2700         "clean" target directory.
2701
2702 2002-05-17  Richard Henderson  <rth@redhat.com>
2703
2704         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2705         for code blocks.  Tidy whitespace.
2706
2707 2002-05-17  Richard Henderson  <rth@redhat.com>
2708
2709         * hooks.c (hook_tree_bool_false): New.
2710         * hooks.h: Declare it.
2711         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2712         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2713         * target.h (select_section, unique_section): New.
2714         (in_small_data_p): New.
2715         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2716         (variable_section, output_constant_def_contents): Likewise.
2717         (default_select_section, default_unique_section): New.
2718         (categorize_decl_for_section, default_elf_select_section): New.
2719         * output.h: Declare them.
2720
2721         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2722         (TARGET_ASM_SELECT_SECTION): New.
2723         (SELECT_SECTION): Move ...
2724         * config/darwin.c (machopic_select_section): ... here.
2725         * config/darwin-protos.h: Update.
2726
2727         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2728         (SELECT_SECTION): Move ...
2729         * config/nextstep.c (nextstep_select_section): ... here.
2730         * config/nextstep-protos.h: Update.
2731
2732         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2733         (TARGET_ASM_SELECT_SECTION): New.
2734         * config/svr3.h (SELECT_SECTION): Remove.
2735
2736         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2737         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2738         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2739         (alpha_encode_section_info): Use it.
2740         * config/alpha/alpha-protos.h: Update.
2741         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2742         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2743         (TARGET_ASM_SELECT_SECTION): New.
2744         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2745
2746         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2747         (TARGET_ASM_UNIQUE_SECTION): New.
2748
2749         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2750         (avr_unique_section): Rename from unique_section; make static.
2751         * config/avr/avr-protos.h: Update.
2752         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2753
2754         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2755
2756         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2757         (TARGET_ASM_UNIQUE_SECTION): New.
2758         * config/i386/i386-interix.h: Likewise.
2759         * config/i386/win32.h: Likewise.
2760         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2761         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2762         * config/i386/sco5.h (SELECT_SECTION): Remove.
2763         (TARGET_ASM_SELECT_SECTION): New.
2764         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2765
2766         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2767         instead of SELECT_SECTION.
2768         * config/m68k/dpx2.h: Likewise.
2769         * config/rs6000/lynx.h: Likewise.
2770
2771         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2772         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2773         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2774         (ia64_in_small_data_p): New.
2775         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2776         (ia64_aix_select_section, ia64_aix_unique_section): New.
2777         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2778         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2779
2780         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2781         (TARGET_ASM_SELECT_SECTION): New.
2782         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2783         * config/m32r/m32r-protos.h: Update.
2784
2785         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2786         (SELECT_SECTION): Move ...
2787         * config/m88k/m88k.c (m88k_select_section): ... here.
2788
2789         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2790         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2791         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2792         (mcore_unique_section): Make static.
2793         * config/mcore/mcore-protos.h: Update.
2794
2795         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2796         (TARGET_ASM_UNIQUE_SECTION): New.
2797         * config/mips/elf64.h: Likewise.
2798         * config/mips/iris6gld.h: Likewise.
2799         * config/mips/linux.h: Likewise.
2800         * config/mips/mips-protos.h: Update.
2801         * config/mips/mips.c (mips_select_section): Add align argument.
2802         * config/mips/mips.h (SELECT_SECTION): Remove.
2803         (TARGET_ASM_SELECT_SECTION): New.
2804
2805         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2806         * config/mmix/mmix.c (mmix_select_section): Remove.
2807         (mmix_unique_section): Remove.
2808         * config/mmix/mmix-protos.h: Update.
2809
2810         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2811         (SELECT_SECTION): Move ...
2812         * config/pa/pa.c (pa_select_section): ... here.
2813         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2814
2815         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2816         from rs6000_select_section and make static.
2817         (rs6000_elf_unique_section): Similarly.
2818         (rs6000_xcoff_select_section): From xcoff.h.
2819         (rs6000_xcoff_unique_section): Likewise.
2820         * config/rs6000/rs6000-protos.h: Update.
2821         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2822         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2823         * config/rs6000/xcoff.h: Likewise.
2824
2825         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2826         (SELECT_SECTION): Move ...
2827         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2828
2829         * config/v850/v850.h (SELECT_SECTION): Move ...
2830         * config/v850/v850.c (v850_select_section): ... here.
2831         (TARGET_ASM_SELECT_SECTION): New.
2832
2833         * config/vax/vms.h (SELECT_SECTION): Move ...
2834         * config/vax/vax.c (vms_select_section): ... here.
2835         (TARGET_ASM_SELECT_SECTION): New.
2836
2837         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2838         for the target hooks.
2839
2840 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
2841
2842         * config/arm/arm.c (emit_multi_reg_push): Do not set
2843         RTX_FRAME_RELATED_P on the SEQUENCE.
2844
2845 2002-05-16  Richard Henderson  <rth@redhat.com>
2846
2847         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2848         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
2849
2850 2002-05-16  Richard Henderson  <rth@redhat.com>
2851
2852         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2853
2854         * config/ia64/ia64.c (saveable_obstack): Do not declare.
2855
2856 2002-05-16  Richard Henderson  <rth@redhat.com>
2857
2858         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2859         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2860         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2861         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2862         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2863         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2864         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2865         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2866         Revert "Basic block renumbering removal", and two followup patches.
2867
2868 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2869
2870         * lcm.c (optimize_mode_switching): Revert previous change.
2871
2872 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2873
2874         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2875         with only extant block numbers.
2876
2877 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2878
2879         * lcm.c (optimize_mode_switching): Fix typo.
2880
2881 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2882
2883         * flow.c (calculate_global_regs_live): Queue blocks in program order.
2884
2885 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2886
2887         * doc/install.texi (Configuration): Document PWDCMD.
2888
2889 2002-05-16  Dale Johannesen  <dalej@apple.com>
2890
2891         * combine.c (cant_combine_insn_p):  Reenable combinations
2892         involving hard regs unless CLASS_LIKELY_SPILLED_P.
2893
2894 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2895
2896         * c-common.c (cb_register_builtins): Handle more built-ins
2897         here rather than in gcc.c specs.
2898         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2899         (cpp_options): Pass -O flags even when only preprocessing.
2900         * toplev.c (set_fast_math_flags): New prototype.
2901         (fast_math_flags_set_p): New.
2902         (set_no_fast_math_flags): Remove.
2903         (decode_f_option): Update.
2904         * toplev.h (set_fast_math_flags): Update.
2905         (fast_math_flags_set_p): New.
2906         (set_no_fast_math_flags): Remove.
2907 config:
2908         * c4x/c4x.c (c4x_override_options): Update.
2909
2910 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
2911
2912         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2913         Default-define here.
2914         (builtin_define_with_value): Can now wrap the expansion in
2915         quotation marks if such is wanted.
2916         (cb_register_builtins): Update calls to builtin_define_with_value.
2917         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2918         here.
2919         (c_common_init): Set options->stdc_0_in_system_headers.
2920         * c-lex.h: Update prototype of builtin_define_with_value.
2921         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2922         and REGISTER_PREFIX.
2923
2924         * cppinit.c (VERS, ULP, C, X): Kill.
2925         (builtin_array): Remove entries for __VERSION__,
2926         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2927         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
2928         a constant.
2929         (init_builtins): Kill off a bunch of now-dead code.
2930         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2931         -fno-leading-underscore.
2932         (cpp_handle_option): Remove code to set user_label_prefix.
2933         (cpp_post_options): Likewise.
2934
2935         * cpplib.h (struct cpp_options): Remove user_label_prefix.
2936         (stdc_0_in_system_headers): New.
2937         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2938         stdc_0_in_system_headers) too to decide the value of __STDC__.
2939
2940         * tradcpp.c (user_label_prefix): Kill.
2941         (main): Remove code handling -f(no-)leading-underscore.
2942         (initialize_builtins): Don't define __REGISTER_PREFIX__
2943         or __USER_LABEL_PREFIX__.
2944         (install_value): Wrap compound statement in dummy loop so the
2945         macro works properly in an if statement.
2946
2947
2948 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
2949
2950         * loop.h (struct loop_info): Add member has_prefetch.
2951         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2952         (prescan_loop): Initialize has_prefetch.
2953         (struct prefetch_info): Change prefetch_in_loop and
2954         prefetch_before_loop from bit fields to ints.
2955         (emit_prefetch_instructions): Several small fixes.
2956         (check_dbra_loop): Don't reverse loop that uses prefetch.
2957
2958 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2959
2960         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2961         * configure.in: Likewise.
2962         * fixinc/check.tpl: Likewise.
2963         * fixinc/fixinc.dgux: Likewise.
2964         * fixinc/fixinc.svr4: Likewise.
2965         * fixinc/fixinc.winnt: Likewise.
2966         * fixinc/fixincl.sh: Likewise.
2967         * fixproto: Likewise.
2968         * configure: Regenerate.
2969
2970 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2971
2972         Basic block renumbering removal:
2973         * basic_block.h (struct basic_block_def): Renamed index to sindex,
2974         added prev_bb and next_bb fields.
2975         (n_basic_blocks): Renamed to num_basic_blocks.
2976         (last_basic_block): New, index of last basic block.
2977         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2978         traversing basic block chain.
2979         (BLOCK_NUM): index -> sindex.
2980         (create_basic_block_structure, create_basic_block): Declaration changed.
2981         (debug_num2bb): Declare.
2982         (expunge_block_nocompact): Declaration removed.
2983         (link_block, unlink_block, compact_blocks): Declare.
2984         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2985         * cfg.c (entry_exit_blocks): Initialize new fields.
2986         (clear_edges, alloc_block, expunge_block, cached_make_edge,
2987         redirect_edge_pred, dump_flow_info, dump_edge_info,
2988         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2989         free_aux_for_edges): Modified.
2990         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2991         (expunge_block_nocompact): Removed.
2992         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2993         find_unreachable_blocks, create_edge_list, print_edge_list,
2994         verify_edge_list, flow_edge_list_print, remove_fake_successors,
2995         remove_fake_edges, flow_reverse_top_sort_order_compute,
2996         flow_depth_first_order_compute, flow_preorder_transversal_compute,
2997         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2998         flow_dfs_compute_reverse_execute): Modified.
2999         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
3000         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
3001         Modified.
3002         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3003         merge_blocks_move_predecessor_nojumps,
3004         merge_blocks_move_successor_nojumps, merge_blocks,
3005         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
3006         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
3007         * cfglayout.c (skip_insns_after_block, label_for_bb,
3008         record_effective_endpoints, scope_to_insns_finalize,
3009         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
3010         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
3011         cfg_layout_duplicate_bb): Modified.
3012         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
3013         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3014         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
3015         flow_loops_find, flow_loop_outside_edge_p): Modified.
3016         * cfgrtl.c (create_basic_block_structure, create_basic_block,
3017         flow_delete_block, compute_bb_for_insn, split_block,
3018         try_redirect_by_replacing_jump, redirect_edge_and_branch,
3019         force_nonfallthru_and_redirect, tidy_fallthru_edge,
3020         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
3021         commit_edge_insertions, commit_edge_insertions_watch_calls,
3022         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3023         purge_all_dead_edges): Modified.
3024         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
3025         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3026         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
3027         Modified.
3028         * conflict.c (conflict_graph_compute): Modified.
3029         * df.c (FOR_ALL_BBS): Removed.
3030         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3031         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
3032         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
3033         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
3034         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3035         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
3036         * final.c (compute_alignments, final_scan_insn): Modified.
3037         * flow.c (verify_local_live_at_start, update_life_info,
3038         update_life_info_in_dirty_blocks, free_basic_block_vars,
3039         delete_noop_moves, calculate_global_regs_live,
3040         initialize_uninitialized_subregs, allocate_bb_life_data,
3041         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
3042         mark_used_reg, count_or_remove_death_notes): Modified.
3043         * function.c (thread_prologue_and_epilogue_insns): Modified.
3044         * gcse.c (struct null_pointer_info): Change typo of current_block
3045         to basic_block.
3046         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3047         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3048         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3049         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3050         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3051         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3052         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3053         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3054         pre_delete, one_pre_gcse_pass, compute_transpout,
3055         invalidate_nonnull_info, delete_null_pointer_checks_1,
3056         free_code_hoist_mem, compute_code_hoist_vbeinout,
3057         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3058         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3059         compute_store_table, build_store_vectors, insert_insn_start_bb,
3060         insert_store, replace_store_insn, free_store_memory, store_motion):
3061         Modified.
3062         * global.c (global_alloc, global_conflicts, mark_elimination,
3063         build_insn_chain): Modified.
3064         * graph.c (print_rtl_graph_with_bb): Modified.
3065         * haifa-sched.c (sched_init): Modified.
3066         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3067         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3068         if_convert): Modified.
3069         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3070         compute_insert_delete, pre_edge_lcm, compute_available,
3071         compute_farthest, compute_nearerout, compute_rev_insert_delete,
3072         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3073         Modified.
3074         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3075         * loop.c (loop_dump_aux): Modified.
3076         * predict.c (combine_predictions_for_insn, estimate_probability,
3077         last_basic_block_p, process_note_prediction, process_note_predictions,
3078         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3079         expensive_function_p, estimate_bb_frequencies,
3080         compute_function_frequency): Modified.
3081         * print-rtl.c (print_rtx): Modified.
3082         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3083         get_exec_counts, compute_branch_probabilities, compute_checksum,
3084         branch_prob, find_spanning_tree): Modified.
3085         * recog.c (split_all_insns, peephole2_optimize): Modified.
3086         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3087         convert_regs_1, convert_regs_2, convert_regs): Modified.
3088         * regclass.c (scan_one_insn, regclass): Modified.
3089         * regmove.c (mark_flags_life_zones, regmove_optimize,
3090         combine_stack_adjustments): Modified.
3091         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3092         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3093         * reorg.c (dbr_schedule): Modified.
3094         * resource.c (find_basic_block, init_resource_info): Modified.
3095         * sbitmap.c (sbitmap_intersection_of_succs,
3096         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3097         sbitmap_union_of_preds): Modified.
3098         * sched-deps.c (init_dependency_caches): Modified.
3099         * sched-ebb.c (schedule_ebbs): Modified.
3100         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3101         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3102         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3103         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3104         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3105         ssa_const_prop): Modified.
3106         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3107         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3108         * ssa.c (remove_phi_alternative, find_evaluations,
3109         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3110         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3111         make_regs_equivalent_over_bad_edges,
3112         make_equivalent_phi_alternatives_equival,
3113         compute_conservative_reg_partition,
3114         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3115         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3116         Modified.
3117
3118 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
3119
3120         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3121
3122 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
3123
3124         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3125         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3126         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3127         calling CONSTANT_POOL_ADDRESS_P.
3128         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3129         to decide whether to define __arm__ or __thumb.
3130         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3131         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3132
3133 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3134
3135         * config/arc/arc.h (CPP_PREDEFINES): Remove.
3136         (CPP_SPEC): Update.
3137         (TARGET_CPU_CPP_BUILTINS): New.
3138
3139 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3140
3141         * cpphash.h (cpp_macro): Move here, and make expansion a union.
3142         * cppmacro.c (cpp_macro): Remove.
3143         (enter_macro_context, replace_args, warn_of_redefinition,
3144         _cpp_create_definition, cpp_macro_definition): Update.
3145
3146 2002-05-16  Jason Merrill  <jason@redhat.com>
3147
3148         * config/mips/mips.c (mips_output_external): Don't do sdata
3149         optimization for a variable with DECL_COMDAT set.
3150
3151 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3152
3153         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3154         Cleanups for accepting modifiers on pointers.
3155         Fix predicate typos.
3156         Allow long pointers as well as int pointers.
3157
3158 2002-05-15  Richard Henderson  <rth@redhat.com>
3159
3160         * varasm.c (merge_weak): Remove special case for extern and common.
3161
3162 2002-05-15  Matt Hiller  <hiller@redhat.com>
3163
3164         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3165         XFAILing.
3166         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3167         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3168         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3169         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3170         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3171         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3172
3173 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3174
3175         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3176
3177 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3178
3179         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3180         ("altivec_mfvscr"): Read from VSCR.
3181
3182         Add vscr sets for the following insns: altivec_vctuxs,
3183         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3184         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3185         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3186         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3187         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3188         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3189         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3190         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3191         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3192         altivec_vsum2sws, altivec_vsumsws.
3193
3194         * config/rs6000/rs6000.h: Add VSCR fixed register.
3195         (CALL_REALLY_USED_REGISTERS): Add vscr.
3196         (CALL_USED_REGISTERS): Same.
3197         (FIXED_REGISTERS): Same.
3198         (REG_ALLOC_ORDER): Same.
3199         (reg_class): Add VSCR_REGS.
3200         (REG_CLASS_NAMES): Same.
3201         (REG_CLASS_CONTENTS): Same.
3202         (VSCR_REGNO): New.
3203         (REGISTER_NAMES): Add vscr.
3204         (DEBUG_REGISTER_NAMES): Same.
3205         (ADDITIONAL_REGISTER_NAMES): Same.
3206         (FIRST_PSEUDO_REGISTER): Increment.
3207         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3208
3209 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
3210
3211         * fold-const.c (fold): Fix a typo.
3212
3213 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
3214
3215         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3216         comparison against the highest or lowest integer value before
3217         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3218         transformation and that of an unsigned comparison against 0
3219         right after.
3220
3221 2002-05-15  Richard Henderson  <rth@redhat.com>
3222
3223         * varasm.c (merge_weak): Error for any weakening after definition.
3224         Adjust weakening after use warning to catch more cases.
3225         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3226         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3227
3228 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
3229
3230         * invoke.texi (-malign-double): Re-add lost warning.
3231
3232         * i386-protos.h (x86_output_mi_thunk): Declare.
3233         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3234         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3235
3236         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3237         when flag_asynchronous_unwind_tables is set.
3238
3239         * flags.h (flag_reorder_functions): Declare.
3240         * function.c (prepare_function_start): Initialize frequnecy.
3241         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3242         * Makefile.in (predict.o): Add dependency on target.h and params.h
3243         * defaults.h (HOT_TEXT_SECTION_NAME,
3244         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3245         * predict.c (choose_function_section): New function.
3246         (estimate_bb_frequencies): Use it.
3247         * toplev.c (flag_reorder_functions): New global variable.
3248         (lang_independent_options): New.
3249         (parse_options_and_default_flags): Set.
3250         * varasm.c (assemble_start_function): Bypass functdion alignment
3251         for never executed functions.
3252         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3253         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3254         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3255         Document.
3256
3257         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3258
3259         * predict.c: Inlude profile.h
3260         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3261         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3262         Use the information about maximal counter in the program.
3263
3264         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3265
3266         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3267         probably_never_executed_bb_p): New functions.
3268         * cfgcleanup.c (outgoing_edges_match): Use them.
3269         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3270         (maybe_hot_bb_p, probably_cold_bb_p,
3271         probably_never_executed_bb_p): New functions.
3272
3273         * function.h (function): Add new field function_frequency.
3274         * predict.c (compute_function_frequency): New function.
3275         (estimate_probability): Call it.
3276
3277 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3278
3279         PR optimization/5172, optimization/5200
3280         * gcse.c (gcse_main): Disable store_motion.
3281
3282 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
3283
3284         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3285         (c_common_nodes_and_builtins): Use it.
3286         (builtin_define_with_value): New function.
3287         (cb_register_builtins): Define __SIZE_TYPE__,
3288         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3289         using builtin_define_with_value.  Use consistent notation when
3290         defining __GXX_WEAK__.
3291         (WCHAR_TYPE_SIZE): Don't redefine.
3292         (combine_strings): Don't use WCHAR_TYPE_SIZE.
3293
3294         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3295         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3296         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3297         * tradcpp.c (initialize_builtins): Likewise.
3298         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3299
3300         * c-lex.h (builtin_define_with_value): Prototype.
3301         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3302         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3303         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3304
3305         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3306         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3307         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3308         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3309         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3310         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3311         config/sparc/sol2-bi.h, config/sparc/sparc.h:
3312         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
3313         to __SIZE_TYPE__ etc from all spec strings. When this makes
3314         extra specs empty, delete them.
3315
3316 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3317
3318         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3319         for PA8000 or generating dwarf2 call frame information.
3320         (output_call): Remove DO_FRAME_NOTES check from return pointer
3321         optimization.
3322         (following_call): Return 0 when scheduling for PA8000 or generating
3323         dwarf2 call frame information.  Revise comment.
3324
3325 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3326
3327 config/alpha:
3328         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3329         and __IEEE_FP_INEXACT as appropriate.
3330         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3331         (CPP_SPEC): Remove ieee defines.
3332         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3333
3334 >>>>>>> 1.14095
3335 2002-05-14  Richard Henderson  <rth@redhat.com>
3336
3337         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3338         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3339
3340 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3341
3342         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3343         (CPP_SPEC): Update.
3344         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3345         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3346         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3347         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3348         (EXTRA_SPECS): Update.
3349         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3350         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3351         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3352         define TARGET_OS_CPP_BUILTINS if necessary.
3353
3354 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3355
3356         * gcc.c (cpp_options): Must pass -m* and -f* options
3357         to the front end even when only preprocessing.
3358         (cc1_options): Remove redundant -lang-c.
3359         * tradcpp.c (main): Ignore -m options.
3360 objc:
3361         * lang-specs.h: Similarly.
3362
3363 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3364
3365         * genautomata.c (transform_3): Add code for transformation
3366         `(A,B,...)+C -> A+C,B,...'.
3367
3368 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3369
3370         * final.c (end_final): Do not output profile_arcs constructor, when
3371         no functions are instrumented.
3372
3373 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3374
3375         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3376
3377 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3378
3379         * doc/install.texi: Remove special markup originally required for
3380         HTML generation with texi2html.
3381
3382 2002-05-14  Andreas Schwab  <schwab@suse.de>
3383
3384         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3385         SELECT_SECTION.
3386         (UNIQUE_SECTION): Define to get small data correctly.
3387
3388         * varasm.c (resolve_unique_section): Add third parameter
3389         flag_function_or_data_sections and use it instead of
3390         flag_function_sections.
3391         (assemble_start_function): Pass flag_function_sections.
3392         (asm_emit_uninitialised): Pass flag_data_sections.
3393         (assemble_variable): Likewise.
3394
3395 2002-05-14  Richard Henderson  <rth@redhat.com>
3396
3397         * config/i386/i386.md: Use define_constants for unspec numbers.
3398         * config/i386/i386.c: Likewise.
3399
3400 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3401
3402         * doc/contrib.texi: Update my entry.
3403
3404 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3405
3406         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3407         * fixinc/fixincl.x: Regenerated.
3408         * fixinc/tests/base/math.h: Update.
3409         * fixinc/tests/base/testing.h: Likewise.
3410
3411 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3412
3413         * genattr.c (gen_attr): Don't emit a comma after the last
3414         enumerator.
3415
3416 2002-05-13  Richard Henderson  <rth@redhat.com>
3417
3418         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3419         by non-local gotos.
3420         * recog.c (peephole2_optimize): Likewise.
3421
3422 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3423
3424         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3425         input to O_BINARY.
3426
3427 2002-05-13  Jeffrey A Law  (law@redhat.com)
3428
3429         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3430         Update prototype and callers.
3431         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3432         the mem_set_list which reference the stack pointer, as do
3433         calls to constant functions as they may clobber outgoing
3434         argument space.
3435
3436         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3437
3438         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3439         (ia32_multipass_dfa_lookahead): New function.
3440
3441 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3442
3443         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3444         (translate_options): Remove 'V'.
3445         (process_command): Similarly.
3446 doc:
3447         * invoke.texi: Remove documentation of 'V'.
3448
3449 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3450
3451         * config/s390/linux.h: Revert 2002-04-22 changes.
3452
3453 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3454
3455         * config/fr30/fr30.md: Only allow splits of immediate loads
3456         if the destination is a register.
3457
3458 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3459
3460         * Makefile.in (c-common.o, cppinit.o): Update.
3461         * c-common.c: Include except.h.
3462         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3463         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3464         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3465         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3466         CPP_PREDEFINES): Handle here.
3467 config:
3468         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3469         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3470         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3471         TARGET_OS_CPP_BUILTINS.
3472         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3473         (CPP_SPEC, EXTRA_SPECS): Update.
3474         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3475         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3476         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3477         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3478         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3479 doc:
3480         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3481         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3482
3483 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3484
3485         * emit-rtl.c (global_rtl): Update comment.
3486         (const_double_htab, const_double_htab_hash,
3487         const_double_htab_hash, lookup_const_double): New.
3488         (const_int_htab_hash, const_int_htab_eq): Remove const
3489         qualifiers, which cause tons of warnings with RTL checking on.
3490         (gen_rtx_CONST_DOUBLE): Deleted.
3491         (const_double_from_real_value): New function - bears some
3492         resemblance to the former immed_real_const_1.
3493         (immed_double_const): Moved here from varasm.c and
3494         simplified.
3495         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3496         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3497         (gen_rtx): Use immed_double_const.
3498         (init_emit_once): Initialize the const_double_htab.  Use
3499         REAL_VALUE_FROM_INT where possible.  Can now use
3500         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3501         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3502         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3503         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3504         (init_varasm_status, mark_varasm_status): Don't touch
3505         x_const_double_chain.
3506
3507         * output.h: Delete prototype for clear_const_double_mem.
3508         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3509         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3510         const_double_from_real_value, not immed_real_const_1, and use
3511         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3512         CONST_DOUBLE_ATOF.
3513         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3514         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3515         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3516         (gen_rtx_REG): Second arg is unsigned.
3517
3518         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3519         (excluded_rtx): New, return true for CONST_DOUBLE.
3520         (genmacro): Write nothing for excluded codes.
3521         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3522         * expr.c (expand_expr): Likewise.
3523         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3524         CONST_DOUBLE_CHAIN.
3525         * toplev.c (rest_of_compilation): Don't call
3526         clear_const_double_mem.
3527
3528         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3529         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3530         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3531         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3532         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3533         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3534         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3535         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3536
3537 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3538
3539         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3540
3541 2002-05-12  Tom Tromey  <tromey@redhat.com>
3542
3543         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3544
3545 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3546
3547         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3548         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3549         * gensupport.h: Prototype new routines.
3550         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3551         use of printf.
3552         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3553         (next_comma_elt): Use scan_comma_elt.
3554
3555         * config/i386/i386.md: Use new attribute notation to break up
3556         long lines in define_attr forms.
3557
3558 2002-05-12  Richard Henderson  <rth@redhat.com>
3559
3560         * expr.c (compress_float_constant): New.
3561         (emit_move_insn): Use it.
3562         (float_extend_from_mem): New.
3563         (init_expr_once): Initialize it.
3564         * real.c (exact_real_truncate): New.
3565
3566         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3567         dropped into memory; penalize for size.
3568         (RTX_COSTS): FLOAT_EXTEND is free.
3569         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3570         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3571
3572 2002-05-12  Richard Henderson  <rth@redhat.com>
3573
3574         * profile.h (profile_info): Add missing extern to declaration.
3575         * profile.c (profile_info): Define it.
3576
3577 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3578
3579         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3580         used for DImode and TImode.
3581
3582 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3583
3584         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3585         fake a newline.
3586
3587 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3588
3589         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3590         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3591         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3592         (rs6000_override_options): Handle -m(no-)longcall.
3593         (init_cumulative_args, output_mi_thunk): Check for both
3594         longcall and shortcall attributes on the function.
3595         (rs6000_attribute_table): Add "shortcall".
3596         (rs6000_handle_longcall_attribute): Update comment.
3597         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3598         altivec_expand_ternop_builtin): Add default clauses to switches
3599         to silence warnings.
3600
3601         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3602         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3603         (TARGET_OPTIONS): Add longcall and no-longcall.
3604
3605         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3606         call_value_nonlocal_sysv): Split by alternatives.  One pair
3607         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3608         the call cookie.  The other pair accepts only LR/CTR and has
3609         no restriction.
3610
3611         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3612         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3613         tmake_file.
3614         * config/rs6000/rs6000-c.c: New file.
3615         * config/rs6000/t-rs6000-c-rule: New file.
3616         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3617         Prototype rs6000_pragma_longcall.
3618
3619         * doc/extend.texi: Document shortcall attribute.
3620         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3621
3622 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3623
3624         * reorg.c (dbr_schedule): Remove unnecessary test.
3625
3626 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3627
3628         * i386.md (testsi to testqi spliters): New.
3629
3630         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3631
3632         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3633
3634         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3635
3636         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3637         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3638         that can be made fallthru.
3639
3640         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3641
3642         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3643         (cfg_layout_initialize): Use it.
3644
3645 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3646
3647         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3648         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3649         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3650
3651 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3652
3653         * dbxout.c: Fix formatting.
3654         * dependence.c: Likewise.
3655         * df.c: Likewise.
3656         * diagnostic.c: Likewise.
3657         * doloop.c: Likewise.
3658         * dominance.c: Likewise.
3659         * doschk.c: Likewise.
3660         * dwarf2asm.c: Likewise.
3661         * dwarf2out.c: Likewise.
3662         * dwarfout.c: Likewise.
3663
3664 2002-05-10  Richard Henderson  <rth@redhat.com>
3665
3666         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3667         Convert integers constants as needed.  Replace "nwords" field with
3668         "sizeof_bb".
3669         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3670         * function.h: Fix typo in comment.
3671         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3672
3673 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3674
3675         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3676         into the equivalent (signed char)c > 0.
3677
3678 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3679
3680         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3681         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3682         (struct prefetch_info): Fix spelling of member bytes_accessed.
3683         (emit_prefetch_instructions): Make dump messages more regular;
3684         restructure code to add more dump messages; use new macros for
3685         heuristics. (There are no code generation changes in any of this).
3686
3687 2002-05-10  David S. Miller  <davem@redhat.com>
3688
3689         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3690         (struct rtx_def): Update unchanging flag comment.
3691         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3692         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3693         to be handled to INSN too.
3694         (dbr_schedule): Likewise.
3695         * resource.c (next_insn_no_annul): Likewise.
3696
3697         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3698         casing.
3699
3700 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3701
3702         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3703         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3704         (possibly) work around broken /bin/sh.
3705
3706 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3707
3708         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3709         . as N64/N32 libgcc_s.so subdirs.
3710
3711 2002-05-10  David S. Miller  <davem@redhat.com>
3712
3713         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3714
3715         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3716         more accurately.
3717         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3718         comment.
3719         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3720         * doc/rtl.texi: Document these macros more accurately.
3721         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3722         JUMP_INSNs and CALL_INSNs.
3723         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3724         or INSN_FROM_TARGET_P if the code is appropriate.
3725
3726 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3727
3728         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3729         before using SYMBOL_REF_FLAG (addr).
3730
3731         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3732         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3733         Make non-static.  Update all callers.
3734         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3735         New insns to clear/set/test a single bit in I/O address space.
3736
3737 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3738
3739         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3740
3741 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3742
3743         * Makefile.in: Update.
3744         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3745         builtin_define_std): New.
3746         (c_common_init): Register CPP builtins callback.
3747         * c-common.h (flag_iso, flag_undef): New.
3748         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3749         * c-lex.c: Don't include target.h.
3750         (cb_register_builtins): Move to c-common.c.
3751         (init_c_lex): Don't register hook here.
3752         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3753         (cpp_define, cpp_assert): Remove.
3754         * gcc.c (cc1_options): Pass -undef to front end.
3755         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3756         (TARGET_INITIALIZER): Update.
3757         * target.h (struct cpp_reader): Don't predeclare.
3758         (struct gcc_target): Remove cpp builtin hook.
3759         * tree.c (default_register_cpp_builtins): Remove.
3760 doc:
3761         * tm.texi: Update.
3762
3763 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3764
3765         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3766
3767 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3768
3769         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3770         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3771
3772 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3773
3774         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3775         * config/sparc/libgcc-sparc-glibc.ver: New file.
3776         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3777         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3778
3779 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3780
3781         PR target/6429
3782         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3783         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3784         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3785         base multilibs.
3786         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3787         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3788         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3789         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3790
3791 2002-05-09  Richard Henderson  <rth@redhat.com>
3792
3793         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3794         * config/ia64/ia64.c: Likewise.
3795
3796 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3797
3798         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3799         (save_restore_insns): Likewise.
3800         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3801         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3802
3803 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3804
3805         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3806         * i386.md: Move scheduling information into new files.
3807
3808         * i386.md (type attribute): Add "rotate" for rotate insns.
3809         (rotate insns): Set type to "rotate".
3810         (various attributes and function units): Treat rotate like shift.
3811         (pent_pair attribute): Only rotates by one bit position are
3812         pairable.
3813         (sbb insns): Explicitly set pent_pair attribute on a couple
3814         that were missing it.
3815
3816 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3817
3818         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3819         make sure that buffer starts on odd word address.
3820         (sh_va_arg): Skip odd fp registers when reading a double precision
3821         value.
3822
3823 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3824
3825         * tree.h (preserve_data, object_permanent_p, type_precision):
3826         Remove.
3827
3828 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3829
3830         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3831         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3832 doc:
3833         * cpp.texi: Update for removal of obsolete features.
3834
3835 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
3836                           Jeffrey A Law  (law@redhat.com)
3837
3838         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
3839         the DFA interface for Pentium processors.
3840         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3841         (attr_pent_pair, ix86_pent_find_pair): Remove.
3842         (ix86_sched_reorder_pentium): Remove.
3843         (ix86_sched_reorder): Remove reordering for Pentium.
3844         * i386.md (Pentium scheduling): Rewrite using DFA description.
3845
3846 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3847
3848         * cfganal.c (can_fallthru): Fix fast path.
3849         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3850         with edges to the next block.
3851
3852 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3853                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
3854
3855         * final.c (end_final): Use C trees to output data structures for profiling.
3856
3857         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3858         (profile.o): New dependency profile.h
3859         (final.o): New dependency profile.h
3860         * profile.h: New file. New global structure profile_info.
3861         * final.h (count_edges_instrumented_now): Declare.
3862         (current_function_cfg_checksum): Declare.
3863         (function_list): New structure.
3864         (functions_head, functions_tail): New static variables.
3865         (end_final): Emits more data, removed some -ax stuff.
3866         (final): Stores function names and chcksums.
3867         * gcov-io.h (__write_gcov_string): New function.
3868         (__read_gcov_string): New function.
3869         * gcov.c (read_profile): New function.
3870         (create_program_flow_graph): Uses read_profile instead of reading
3871         da_file.
3872         (read_files): Removed da_file checking, it's done by read_profile now.
3873         * libgcc2.c (bb_function_info): New structure.
3874         (bb): New field in structure, removed some -ax stuff.
3875         (__bb_exit_func): Changed structure of da_file.
3876         * profile.c (count_edges_instrumented_now): New global variable.
3877         (current_function_cfg_checksum): New global variable.
3878         (max_counter_in_program): New global variable.
3879         (get_exec_counts): New function.
3880         (compute_checksum): New function.
3881         (instrument_edges): Sets count_edges_instrumented_now.
3882         (compute_branch_probabilities): Uses get_exec_counts instead of
3883         reading da_file.
3884         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3885         (init_branch_prob): Removed da_file checking, done in get_exec_counts
3886         now.
3887         (end_branch_prob): Removed da_file checking, done in get_exec_counts
3888         now.
3889         * gcov.texi: Updated information about gcov file format.
3890
3891 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3892
3893         * sbitmap.c: Fix formatting.
3894         * scan.c: Likewise.
3895         * scan-decls.c: Likewise.
3896         * sched-deps.c: Likewise.
3897         * sched-ebb.c: Likewise.
3898         * sched-rgn.c: Likewise.
3899         * sched-vis.c: Likewise.
3900         * sdbout.c: Likewise.
3901         * sibcall.c: Likewise.
3902         * simplify-rtx.c: Likewise.
3903         * ssa.c: Likewise.
3904         * ssa-ccp.c: Likewise.
3905         * ssa-dce.c: Likewise.
3906         * stmt.c: Likewise.
3907         * stor-layout.c: Likewise.
3908         * stringpool.c: Likewise.
3909
3910 2002-05-09  David S. Miller  <davem@redhat.com>
3911
3912         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3913
3914 2002-05-07  David S. Miller  <davem@redhat.com>
3915
3916         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3917         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3918         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3919         library implementation clobbers the output before the inputs
3920         are fully consumed, use stack temporary for the output.
3921
3922 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
3923
3924         * config/netbsd.h (CPP_SPEC): Remove.
3925         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3926         * config/i386/netbsd.h (CPP_SPEC): Define.
3927         * config/ns32k/netbsd.h (CPP_SPEC): Define.
3928         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3929         * config/sparc/netbsd.h (CPP_SPEC): Define.
3930         * config/vax/netbsd.h (CPP_SPEC): Define.
3931
3932 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3933
3934         * read-rtl.c: Fix formatting.
3935         * real.c: Likewise.
3936         * recog.c: Likewise.
3937         * regclass.c: Likewise.
3938         * regmove.c: Likewise.
3939         * reg-stack.c: Likewise.
3940         * reload1.c: Likewise.
3941         * reload.c: Likewise.
3942         * resource.c: Likewise.
3943         * rtlanal.c: Likewise.
3944         * rtl.c: Likewise.
3945         * rtl-error.c: Likewise.
3946
3947 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3948
3949         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3950         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3951
3952 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
3953
3954         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3955         use __SSE2__ macro instead.
3956         * config/i386/xmmintrin.h: Likewise.
3957
3958 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
3959
3960         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3961         and use it in all invocations of these macros.  Clean up comments.
3962         * rtl.c (rtl_check_failed_flag): Add an argument for the name
3963         of the flag access macro whose check failed.
3964         * doc/rtl.texi (Flags): Document additional flag uses.
3965
3966 2002-05-08  Robert Spier <rspier@pobox.com>
3967             Neil Booth  <neil@daikokuya.demon.co.uk>
3968
3969         PR preprocessor/6521
3970         * cppfiles.c (handle_missing_header): Don't do anything
3971         different for <> includes.
3972 doc:
3973         * cppopts.texi: Update documentation for -MG.
3974
3975 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3976
3977         * cpplex.c (cpp_interpret_charconst): Truncate as well as
3978         sign-extend.
3979 doc:
3980         * cpp.texi: Clarify multichar charconst valuation.
3981
3982 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3983
3984         * doc/invoke.texi: Document -mwindiss option.
3985
3986 2002-05-08  Jason Merrill  <jason@redhat.com>
3987
3988         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3989
3990         * dwarf2out.c (gen_type_die): Abort on broken recursion.
3991
3992         PR c++/6381
3993         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3994         REAL_CST.
3995
3996 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
3997
3998         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3999         little-endian multilibs to override arm/thumb multilibs.
4000         Do not build hardware floating point multilibs, nor apcs-26
4001         multilibs for the Thumb.
4002
4003 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4004
4005         PR c/6569.
4006         * varasm.c (mark_weak): New function.
4007         (merge_weak): Use it.  Do not call declare_weak.
4008         (declare_weak): Use merge_weak.
4009
4010 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4011
4012         * cse.c (dead_libcall_p): Update counts.
4013         (delete_trivially_dead_insns): Update call of dead_libcall_p.
4014
4015 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
4016
4017         * cfglayout.c (function_tail_eff_head): Rename to ...
4018         (function_footer): ... this one.
4019         (unlink_insn_chain): New functions.
4020         (label_for_bb): Only call block_label and emit debug message.
4021         (record_effective_endpoints): Actually unlink the headers and footers.
4022         (fixup_reorder_cahin): Re-insert the unlinked sequences.
4023         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
4024         * cfglayout.h (struct reorder_block_def): New fields footer/header;
4025         remove eff_head/eff_end.
4026         * rtl.h (set_first_insn): Declare.
4027         * emit-rtl.c (set_first_insn): New function.
4028
4029         * cfglayout.c (fixup_reorder_chain): Dump duplicated
4030         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4031         cfg_layout_duplicate_bb): New global function.
4032         (duplicate_insn_chain): New static function.
4033         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4034         cfg_layout_duplicate_bb): Declare.
4035         (struct reorder_block_def): Add "original" field.
4036         * emit-rtl.c (emit_copy_of_insn_after): New function.
4037         * rtl.h (emit_copy_of_insn_after): Declare.
4038
4039         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
4040         (fixup_reorder_chain): properly handle edges to exit block.
4041
4042 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4043                                Jan Hubicka  <jh@suse.cz>
4044
4045         * basic-block.h (note_prediction_to_br_prob): declare.
4046         * c-semantics.c: Inlucde predit.h
4047         (expand_stmt): predict GOTO_STMT as not taken.
4048         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4049         (cleanup_cfg): Do not free tail_recursion_list.
4050         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4051         (flow_delete_block): Kill predictions past end of basic block.
4052         * output.h (delete_unreachable_blocks): Declare.
4053         * predict.c (predicted_by_p, process_note_predictions,
4054         process_note_prediction, last_block_p): New function.
4055         (estimate_probability): Bypass loop on PRED_CONTINUE;
4056         do not handle noreturn heuristics; kill PRED_RETURN; add
4057         PRED_EARLY_RETURN.
4058         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4059         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4060         * predict.h (IS_TAKEN): New constant.
4061         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4062         * rtl.c (NOTE_INSN_PREDICTION): New.
4063         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4064         New macro.
4065         (insn_note): add NOTE_INSN_PREDICTION.
4066         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4067         CFG; free tail_recursion_label_list.
4068         * stmt.c: Include predict.h;
4069         (return_prediction): New.
4070         (expand_value_return): Use it.
4071         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4072
4073 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
4074
4075         * config/mips/mips.md: Name the unspecs with define_constant.
4076         (*HILO_delay): Rename to 'hilo_delay' (no star).
4077         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4078         (reload_outdi, reload_outsi): Likewise.
4079
4080 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
4081
4082         * toplev.c: Fix formatting.
4083
4084 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
4085
4086         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4087         * configure.in (ac_rtlflag_checking): New.
4088         * doc/install.texi (--enable-checking): Document RTL flag checking.
4089
4090 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4091
4092         * c-common.c (c_common_init): Set options->unsigned_wchar.
4093         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4094         group target dependencies.
4095         (init_builtins, cpp_handle_option): Update.
4096         * cpplex.c (cpp_interpret_charconst): Update.
4097         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4098         signed_char to unsigned_char, group target dependencies.
4099         * defaults.h (WCHAR_UNSIGNED): Remove.
4100         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4101 config:
4102         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4103         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4104         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4105         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4106         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4107 doc:
4108         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4109
4110 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4111
4112         * fixinc/inclhack.def (windiss_math1): New fix.
4113         (windiss_math2): Likewise.
4114         (windiss_valist): Likewise.
4115         * fixinc/fixincl.x: Regenerated.
4116
4117 2002-05-07  Andreas Jaeger  <aj@suse.de>
4118
4119         * genautomata.c (output_internal_min_issue_delay_func): Add
4120         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4121         (output_internal_trans_func): Likewise.
4122
4123 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
4124
4125         * pa.c (hppa_profile_hook): Use force_reg to get the address
4126         of the profile hook into an appropriate pseudo register.
4127
4128 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4129
4130         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4131         (LINK_START_SPEC): Handle it.
4132         (LINK_OS_SPEC): Likewise.
4133         (CPP_SPEC): Likewise.
4134         (STARTFILE_SPEC): Likewise.
4135         (LIB_SPEC): Likewise.
4136         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
4137         all platforms.
4138         (CRTSAVRES_DEFAULT_SPEC): New macro.
4139         (LIB_WINDISS_SPEC): New macro.
4140         (CPP_OS_WINDISS_SPEC): Likewise.
4141         (STARTFILE_WINDISS_SPEC): Likewise.
4142         (ENDFILE_WINDISS_SPEC): Likewise.
4143         (LINK_START_WINDISS_SPEC): Likewise.
4144         (LINK_OS_WINDISS_SPEC): Likewise.
4145         * config/rs6000/windiss.h: New file.
4146
4147 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
4148
4149         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4150
4151 2002-05-06  David S. Miller  <davem@redhat.com>
4152
4153         * config/sparc/sparc.md (shift insns): Do not mask off
4154         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4155         take care of it.
4156
4157 2002-05-06  Richard Henderson  <rth@redhat.com>
4158
4159         PR c++/6212
4160         * expr.c (highest_pow2_factor_for_type): New.
4161         (expand_assignment): Use it.
4162
4163 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
4164
4165         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4166         unspec_volatile.
4167         ("altivec_mfvscr"): Same.
4168
4169 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4170
4171         * rtl.h (struct rtx_def): Update comments.
4172         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
4173         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
4174         RTL_FLAG_CHECK macros with list of expected RTL codes.
4175         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4176         (rtl_check_failed_flag): New.
4177         * reload1.c (reload): Use REG macro before changing rtx to MEM.
4178         (reload_cse_noop_set_p): Check rtx code before using access macro.
4179         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4180         before using access macro.
4181
4182 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4183
4184         * doc/rtl.texi (Flags): Update to reflect current usage.
4185
4186 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4187
4188         PR opt/3995
4189         * fold-const.c (sign_bit_p): New function.
4190         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4191         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4192         Reapply fold when converting (A & C) == C into (A & C) != 0.
4193         (fold_binary_op_with_conditional_arg): Fix typo in comment.
4194
4195 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4196
4197         * c-common.c (warn_multichar): New.
4198         (c_common_init): Set CPP's warn_multichar.
4199         * c-common.h (warn_multichar): New.
4200         * c-decl.c (warn_multichar): Remove.
4201         * c-lex.c (lex_charconst): Update.
4202         * c-tree.h (warn_multichar): Remove.
4203         * cppexp.c (eval_token): Sign-extend charconst value.
4204         * cppinit.c (cpp_create_reader): Set warn_multichar.
4205         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4206         each character.  Update prototype.  Sign-extend the result.
4207         * cpplib.h: Fix conditions.
4208         (struct cpp_options): Add new warning flag.
4209         (cpp_interpret_charconst): Update prototype.
4210 doc:
4211         * cpp.texi: Update documentation.
4212
4213 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
4214
4215         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4216         Fix typo in usage of allof instead of unit.
4217
4218 2002-05-06  Richard Henderson  <rth@redhat.com>
4219
4220         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4221         and any jump or call for IN.
4222
4223 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
4224
4225         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4226         -msse2.
4227         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4228
4229 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4230
4231         * fold-const.c (lshift-double): Cast the high word to an unsigned
4232         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4233         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4234         avoid compiler warning.  (fold): Remove redundant code from
4235         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4236
4237 2002-05-06  Jeff Law  <law@redhat.com>
4238
4239         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4240         * pa.c (pa_adjust_cost): Remove all true dependency cost
4241         adjustments.  Also remove support for non-DFA scheduling.
4242         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4243         to adjust true dependency costs.  Update various comments.
4244         (7100lc, 7200, 7300 scheduling): Simplify by combining the
4245         FP ALU & MPY units into a single unit.
4246
4247 2002-05-06  Catherine Moore  <clm@redhat.com>
4248
4249         * config/v850/v850.c (compute_register_save_size): Make sure
4250         to count all of the registers that will be saved.
4251
4252 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4253
4254         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4255
4256 2002-05-06  David S. Miller  <davem@redhat.com>
4257
4258         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4259         allow result to overlap input operands in memory.
4260
4261 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4262
4263 doc:
4264         * cpp.texi: Update multichar charconst docs.
4265
4266 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4267
4268         * cpplex.c (cpp_interpret_charconst): Sign-extend each
4269         character.  Don't ignore excess characters.  Treat
4270         multicharacter character constants as signed.
4271         (cpp_parse_escape): Clarify diagnostic.
4272
4273 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4274
4275         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4276         use add instead of shift.
4277         (ashldi3_sp64): Likewise.
4278         (ashlsi3_const1, ashldi3_const1): Remove.
4279         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4280         * config/sparc/sparc.c (const1_operand): New.
4281
4282 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
4283
4284         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4285
4286 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4287
4288         PR target/6561
4289         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4290
4291 2002-05-05  Richard Henderson  <rth@redhat.com>
4292
4293         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4294         memory latency adjustments.
4295         (alpha_variable_issue): Remove.
4296         (alpha_use_dfa_pipeline_interface): New.
4297         (alpha_multipass_dfa_lookahead): New.
4298         * config/alpha/alpha.md: Remove define_function_unit scheduling;
4299         include new dfa scheduling.
4300         (attr type): Add none.
4301         (blockage): Use it.
4302         * config/alpha/ev4.md: New.
4303         * config/alpha/ev5.md: New.
4304         * config/alpha/ev6.md: New.
4305
4306 2002-05-05  David S. Miller  <davem@redhat.com>
4307
4308         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4309
4310 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
4311
4312         * cse.c: Fix formatting.
4313         * emit-rtl.c: Likewise.
4314
4315 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4316
4317         * genautomata.c (initiate_states): Add additional guard to
4318         initialize `units_array'.
4319
4320 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4321
4322         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4323         process_unit_to_form_the_same_automaton_unit_lists,
4324         form_the_same_automaton_unit_lists
4325         check_unit_distributions_to_automata): New prototypes and
4326         functions.
4327         (check_automata): Rename it into `check_automata_insn_issues'.
4328         (unit_decl): New fields `the_same_automaton_unit' and
4329         `the_same_automaton_message_reported_p'.
4330         (unit_decl_t): New typedef.
4331         (the_same_automaton_lists): New gloval variable.
4332         (unit_regexp, unit_set_el, units_array, units_cmp,
4333         output_get_cpu_unit_code_func): Use the typedef.
4334         (evaluate_max_reserv_cycles): Increment
4335         `description->max_insn_reserv_cycles'.
4336         (initiate_states): Don't increment `max_cycles_num'.
4337         (transform_insn_regexps): Move code around transformation of
4338         regexps from `generate'.
4339         (generate): Remove call of `transform_insn_regexps'.
4340         (expand_automata): Call `transform_insn_regexps' and
4341         `check_unit_distributions_to_automata'.  Check errors before
4342         `generate'.
4343
4344         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4345         automaton `ultrasparc3_1'.
4346
4347 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4348
4349         * c-common.c (c_common_init): Set up CPP arithmetic.
4350         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4351         something reasonable for the host.
4352         (sanity_checks): Add checks.
4353         (cpp_read_main_file): Call sanity_checks() from here...
4354         (cpp_post_options): ... not here.
4355         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4356         * cpplib.h (struct cpp_options): New member int_precision.
4357
4358 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4359
4360         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4361
4362 2002-05-04  David S. Miller  <davem@redhat.com>
4363
4364         * config/sparc/linux.h, config/sparc/linux64.h
4365         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4366
4367         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4368         more RTX codes.
4369         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4370
4371         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4372         of SETs.
4373
4374 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4375
4376         * treelang; New directory for new sample language treelang.
4377
4378 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4379
4380         * Makefile.in (c-lex.o): Update.
4381         * c-lex.c: Include target.h.
4382         (cb_register_builtins): New.
4383         (init_c_lex): Set builtins callback.
4384         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4385         * cppinit.c (init_builtins): Use callback, including for
4386         GXX_WEAK.
4387         * cpplib.h (struct cpp_callbacks): New member.
4388         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4389         (TARGET_INITIALIZER): Update.
4390         * target.h (struct gcc_target): New hook.
4391         * tree.c (default_register_cpp_builtins): New.
4392         * tree.h (default_register_cpp_builtins): New.
4393 doc:
4394         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4395
4396 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4397
4398         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4399         (cpp_post_options): Move sanity checks to...
4400         (sanity_checks): New.
4401         * cpplex.c (maybe_read_ucs): Fix prototype.
4402         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4403         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4404         if necessary.
4405
4406 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4407
4408         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4409         builtins.  Use V2DI patterns instead of TI for logical operations.
4410         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4411         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4412         (ix86_expand_builtins): Change the pattern used for movntdq.
4413         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4414         sse2_nandv2di3): New patterns.
4415         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4416         on operands.
4417         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4418         (cvtdq2pd): Correct mode on operand 1.
4419         (sse2_umulsidi3): Describe without unspec.
4420         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4421         machine modes.
4422         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4423         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4424         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4425         ashlv4si3, ashlv2di3): Use SImode for shift count.
4426         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4427         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4428         New patterns.
4429         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4430         New typedefs.
4431         (__m128i, __m128d): New macros.
4432         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4433         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4434         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4435         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4436         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4437         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4438         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4439         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4440         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4441         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4442         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4443         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4444         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4445         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4446         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4447         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4448         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4449         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4450         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4451         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4452         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4453         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4454         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4455         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4456         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4457         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4458         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4459         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4460         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4461         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4462         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4463         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4464         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4465         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4466         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4467         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4468         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4469         functions.
4470         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4471         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4472
4473 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4474
4475         * dwarf2out.c: Fix formatting.
4476         * varasm.c: Likewise.
4477
4478 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4479
4480         PR c/6543
4481         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4482         clobber and use result as temporary value.
4483
4484 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4485
4486         * expr.c (force_operand): Use expand_simple_* to handle more
4487         cases.
4488
4489 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4490
4491         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4492         and sign-extension.
4493         (lex_charconst): Update for change in prototype of
4494         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4495         appropriately.
4496         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4497         * cppinit.c (cpp_create_reader): Initialize them for no
4498         change in semantics.
4499         (cpp_post_options): Add sanity checks.
4500         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4501         and truncation issues.  Calculate in type cppchar_t.
4502         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4503         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4504         run-time dependent precision correctly.  Return whether the
4505         result is signed or not.
4506         * cpplib.c (dequote_string): Use cppchar_t; update.
4507         * cpplib.h (cppchar_signed_t): New.
4508         struct cpp_options): New precision members.
4509         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4510         * cppexp.c (eval_token): Update.
4511
4512 2002-05-03  David S. Miller  <davem@redhat.com>
4513
4514         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4515         * config/sparc/sparc.c (sparc_rtx_costs): New function
4516         implementing RTX_COSTS and CONST_COSTS.
4517         * config/sparc/sparc.h (CONST_COSTS): Delete.
4518         (RTX_COSTS_CASES): Define.
4519         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4520         the work.
4521
4522         * config/sparc/sparc.md (DFA schedulers): Split out...
4523         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4524         config/sparc/sparclet.md, config/sparc/supersparc.md,
4525         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4526
4527         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4528         checks on it, always defined for Sparc.
4529
4530         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4531         Tweak, and add more detailed comments.
4532
4533 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4534
4535         * Re-apply patch accidentally reverted with
4536         DFA scheduler merge: remove all rules and variables to slurp
4537         source files out of libiberty and rebuild them with HOST_CC.
4538         ($(HOST_PREFIX_1)varray.o): New rule.
4539         (genattrtab rule): Word wrap.
4540
4541 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4542
4543         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4544         (CPP_SUBTARGET_SPEC): Define.
4545         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4546         cpp_subtarget specs.
4547         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4548
4549 2002-05-03  David S. Miller  <davem@redhat.com>
4550
4551         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4552         * target.h (struct gcc_target): Delete cycle_display member.
4553
4554         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4555         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4556         (ia64_sched_reorder2): Mention need for cycle display handling
4557         once such notes exist.
4558
4559 2002-05-03  Richard Henderson  <rth@redhat.com>
4560
4561         * real.c (etoasc): Strip most trailing zeros for clarity.
4562         * sched-vis.c: Include real.h.
4563         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4564         * Makefile.in (sched-vis.o): Add real.h.
4565
4566 2002-05-03  David S. Miller  <davem@redhat.com>
4567
4568         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4569         no longer needed.
4570
4571 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4572
4573         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4574         when we get an out of range literal.
4575         (altivec_expand_ternop_builtin): Same.
4576         (altivec_expand_unop_builtin): Same.
4577         (altivec_expand_builtin): Same, for dss.
4578         (altivec_expand_builtin): Use trees instead of rtl when
4579         determining literal argument validity.
4580
4581 2002-05-03  David S. Miller  <davem@redhat.com>
4582
4583         Delete cycle display scheduling hook.
4584         * config/ia64/ia64.c (ia64_cycle_display,
4585         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4586         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4587         and use emit_insn_before instead of ia64_emit_insn_before.
4588         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4589         (cycle_display): Delete insn pattern.
4590         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4591         (cycle_display): Delete insn pattern.
4592         * config/sparc/sparc.c (sparc_cycle_display,
4593         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4594         * doc/md.texi (cycle_display): Don't mention.
4595         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4596
4597 2002-05-03  Richard Henderson  <rth@redhat.com>
4598
4599         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4600         * recog.h: Declare them.
4601
4602         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4603         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4604         * config/sparc/sparc-protos.h: Update.
4605
4606 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4607
4608         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4609         -D__arch64__.  Add -D_LP64.
4610         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4611         from sparc.h.
4612         (CPP_ARCH64_SPEC): Likewise.
4613         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4614         (NO_BUILTIN_SIZE_TYPE): Undef.
4615
4616 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4617
4618         * genautomata.c (min_issue_delay_pass_states): Change return type
4619         in the prototype.
4620         (min_issue_delay_pass_states): Change the algorithm.
4621         (min_issue_delay): Set up min_insn_issue_delay for the state.
4622         (output_min_issue_delay_table): Interchange the nested loops and
4623         and initiate min_insn_issue_delay for states.
4624
4625 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4626
4627         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4628         jump is simplejump.
4629
4630 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4631
4632         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4633         sequence.
4634
4635 2002-05-03  Richard Henderson  <rth@redhat.com>
4636
4637         PR opt/6534
4638         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4639         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4640         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4641         code before JUMP, not EARLIEST.
4642
4643 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4644
4645         * c-format.c (check_format_info_main): Don't check for presence of
4646         parameter for * width until after operand number has been read,
4647         and only check for it if format parameters are available.
4648         Fixes PR c/6547.
4649
4650 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4651
4652         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4653         (LINK_SPEC): Undef before defining.
4654
4655 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4656
4657         PR preprocessor/6489
4658         * tradcpp.c (fixup_newlines): New.
4659         (main, finclude): Use it.
4660
4661 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4662
4663         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4664         * config/mips/mips.c (mips_unique_section): Strip encoding from
4665         decl name.
4666
4667 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4668
4669         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4670         mode.
4671
4672 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4673
4674         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4675         (Specific): Removed buildstats references.
4676         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4677         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4678         Accomodate Solaris versions beyond 8.
4679         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4680         (Specific, *-*-solaris2.8): Removed, obsolete.
4681
4682 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4683
4684         PR target/6542
4685         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4686         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4687         fill leaf_reg_remap with identity.
4688         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4689
4690 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4691
4692         * config/h8300/crti.asm: Remove trailing spaces.
4693         * config/h8300/h8300.c: Likewise.
4694         * config/h8300/lib1funcs.asm: Likewise.
4695
4696 2002-05-02  Jason Merrill  <jason@redhat.com>
4697
4698         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4699         * c-decl.c (c_init_decl_processing): Use it.
4700         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4701         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4702         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4703
4704 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4705
4706         * regrename.c: Fix formatting.
4707         * tree.c: Likewise.
4708
4709 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4710
4711         * i386.md (attribute memory): Handle compares properly.
4712
4713 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4714
4715         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4716         to none.
4717
4718 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4719
4720         * function.c: Fix formatting.
4721
4722 2002-05-02  Jan Hubicka  <jh@suse.cz>
4723
4724         * haifa-sched.c (schedule_insn): Print table of instructions and
4725         reservations.
4726         (sched_block): Do not print ready list at verbosity level 1.
4727         * sched-vis.c (print_insn): Make global.
4728         * sched-ebb.c (ebb_print_insn): Rename from...
4729         (print_insn): ... this one.
4730         * sched-int.h (print_insn): Declare
4731
4732 2002-05-02  Richard Henderson  <rth@redhat.com>
4733
4734         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4735         emitted by cycle_display.
4736
4737 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4738
4739         * doc/install.texi (*-*-freebsd*): Update to latest status.
4740
4741 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4742
4743         PR target/6540
4744         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4745         * config/float-sparc.h: Assume 128-bit long double if
4746         __LONG_DOUBLE_128__ is defined.
4747
4748 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4749
4750         * genattrtab.c (write_function_unit_info): Add a dummy element
4751         when num_units == 0.
4752
4753 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4754
4755         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4756         TYPE_MODE (double_type_node) instead of DFmode.
4757
4758 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4759
4760         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4761         jumps post reload.
4762         * toplev.c (rest_of_compilation): Revert Richard's patch.
4763
4764 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4765
4766         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4767
4768 2002-05-02  Catherine Moore  <clm@redhat.com>
4769
4770         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4771
4772 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4773
4774         * combine.c: Fix comment typos.
4775         * expr.c: Likewise.
4776         * genautomata.c: Likewise.
4777         * stmt.c: Likewise.
4778         * tree.h: Likewise.
4779
4780 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4781
4782         * doc/install.texi: State GNAT version requirements.
4783
4784 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4785
4786         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4787         of the frame pointer or arg pointer register which strict register
4788         checking is not enabled.
4789
4790 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4791
4792         * gcc.dg/altivec-8.c: New.
4793
4794         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4795         PRE_INC and PRE_DEC for altivec modes.
4796
4797 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4798
4799         * fixinc/check.tpl(set-writable): make sure the function exists first
4800         * fixinc/inclhack.def(alpha_assert): fix test_text
4801         * fixinc/tests/base/assert.h: add in missing result
4802
4803 2002-05-01  Jeff Law  <law@redhat.com>
4804
4805         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4806         'T' constraint.
4807
4808 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4809
4810         * dbxout.c (dbxout_type): Emit size information for range types,
4811         as well, but only when using GDB extensions.
4812
4813 2002-05-01  Richard Henderson  <rth@redhat.com>
4814
4815         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4816         target-independent gnu binutils date test.
4817
4818 2002-05-01  Richard Henderson  <rth@redhat.com>
4819
4820         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4821         info before expunging the block.
4822
4823 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4824
4825         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4826         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4827         -M -or -MM is in effect.
4828
4829 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4830
4831         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4832         A29k configurations.
4833         * doc/install.texi: Update to match.
4834
4835 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4836
4837         PR bootstrap/6514
4838         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4839         for duplicates. Always loop over whole list.
4840
4841 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4842
4843         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4844
4845 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4846
4847         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4848         support routines.
4849
4850 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4851
4852         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4853
4854 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
4855
4856         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4857         (nabs_nopower): Same.
4858         (floatdisf2): New pattern.
4859         (absdi2): Convert to define_insn_and_split.
4860         (nabsdi2): Same.
4861         (trunctfsf2): Same.
4862         (floatditf2): Same.
4863         (floatsitf2): Same.
4864         (fix_trunctfdi2): Same.
4865         (fix_trunctfsi2): Same.
4866
4867 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4868
4869         * doc/install.texi: Update Texinfo version requirement
4870         documentation.
4871
4872 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4873
4874         PR target/6512, PR target/5628
4875         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4876         when memory is not aligned.
4877         (movdf_insn_v9only_vis): Likewise.
4878         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4879         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4880         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4881
4882 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
4883
4884         * gcc.dg/altivec-7.c: New.
4885
4886         * config/rs6000/altivec.h: Cleanup.
4887
4888 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
4889
4890         * doc/invoke.texi (Option Summary): Add -mvrsave=.
4891         (RS/6000 and PowerPC Options): Document -mvrsave=.
4892
4893         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4894         (rs6000_altivec_vrsave_string): Same.
4895         (rs6000_override_options): Call rs6000_parse_vrsave_option.
4896         (rs6000_parse_vrsave_option): New.
4897         (rs6000_stack_info): Only generate vrsave instructions when
4898         TARGET_ALTIVEC_VRSAVE.
4899
4900         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4901         (rs6000_altivec_vrsave_string): Define extern.
4902         (rs6000_altivec_vrsave): Same.
4903         (TARGET_ALTIVEC_VRSAVE): New.
4904
4905 2002-04-30  Richard Henderson  <rth@redhat.com>
4906
4907         PR opt/6516
4908         * toplev.c (rest_of_compilation): Don't run cross-jump before
4909         bb-reorder.
4910
4911 2002-04-30  Tom Rix  <trix@redhat.com>
4912
4913         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4914         check which_alternative.
4915
4916 2002-04-30  Kazu Hirata  <kazu@hxi.com>
4917
4918         * cpplex.c: Fix comment formatting.
4919         * function.c: Likewise.
4920         * integrate.c: Likewise.
4921         * regrename.c: Likewise.
4922         * sibcall.c: Likewise.
4923         * simplify-rtx.c: Likewise.
4924         * tree-inline.c: Likewise.
4925
4926 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4927
4928         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4929         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4930         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4931         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4932         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4933         * pa/x-ada: New file.  Define ADA_CFLAGS.
4934
4935 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
4936
4937         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4938         from MMIX_LAST_REGISTER_FILE_REGNUM.
4939         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4940         (struct machine_function): New member highest_saved_stack_register
4941         previously static variable in mmix.c.
4942         (MACHINE_DEPENDENT_REORG): Define.
4943         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4944         (MMIX_OUTPUT_REGNO): New.
4945         (mmix_target_asm_function_prologue): Move calculation of last used
4946         saved-stack-register into...
4947         (mmix_machine_dependent_reorg): New function.  Update to also handle
4948         !TARGET_ABI_GNU.
4949         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4950         register names, simplify somewhat by new variable regno.
4951         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
4952         register.
4953         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4954         emitting register names.
4955         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4956         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4957         Remove fixed FIXME.
4958         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4959         Declare.
4960
4961         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4962
4963 2002-04-30  Richard Henderson  <rth@redhat.com>
4964
4965         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4966         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4967         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4968         emit_tfmode_cvt): New.
4969         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4970         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4971         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4972         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4973         * config/sparc/sparc-protos.h: Update.
4974
4975 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
4976
4977         * install.texi (Final install): Add to the list of info to include
4978         in a report of a successful bootstrap, and add link to 3.1 list.
4979
4980 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
4981
4982         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4983         (mode): Add vector modes
4984         (i387): Kill attribute.
4985         (unit): New attribute.
4986         (length_immediate): Grok new types.
4987         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4988         (modrm): Use "unit".
4989         (memory): Handle MMX/SSE properly.
4990         (scheduling descriptions): Kill uses of fop1.
4991         (sse, mmx, fp patterns): Set type and mode properly.
4992
4993 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
4994
4995         * pa.c (override_options): Default to PA8000 scheduling.
4996         * doc/invoke.texi (HP-PA options): Mention newly added 7300
4997         scheduling parameter.
4998
4999         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
5000         handling of double precision multiplies.
5001
5002         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
5003         fpdiv and fpsqrt instructions.
5004         (7200 & 7300 scheduling): Fix typo in handling of
5005         store-load and store-store penalties.
5006
5007 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5008
5009         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
5010         mips.  Add two missing commas.
5011
5012 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
5013
5014         * doc/contrib.texi (Contributors): Update Paolo Carlini's
5015         and Benjamin Kosnik's entries.
5016
5017 2002-04-29  David S. Miller  <davem@redhat.com>
5018
5019         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
5020         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5021         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
5022         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5023
5024 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5025
5026         * combine.c (find_split_point): Use gen_int_mode.
5027
5028 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5029
5030         Merging code from dfa-branch:
5031
5032         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5033
5034         * genautomata.c (output_reserv_sets): Fix typo.
5035
5036         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
5037
5038         * genautomata.c (output_reserv_sets): Remove
5039         next_cycle_output_flag.
5040
5041         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
5042
5043         * sched-rgn.c (init_ready_list): Make the DFA code handle
5044         USE/CLOBBER insns in the same way as the traditional
5045         scheduler.
5046         (new_ready): Similarly..
5047
5048         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
5049
5050         * haifa-sched.c (schedule_block): Change the DFA state only after
5051         issuing insn.
5052
5053         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
5054
5055         * pa.c (hppa_use_dfa_pipeline_interface): New function.
5056         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5057         (override_options): Add PA7300 scheduling support.
5058         (pa_adjust_cost): Update various comments.  Properly
5059         handle anti and output dependencies when using the
5060         DFA scheduler.
5061         (pa_issue_rate): Add PA7300 scheduling support.
5062         (pa_can_combine_p): Call extract_insn before calling
5063         constrain_operands (taken from mainline tree).
5064         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5065         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
5066         descriptions using DFA descriptions.  Add PA7300
5067         scheduling support.
5068
5069         2002-03-30  David S. Miller  <davem@redhat.com>
5070
5071         Add UltraSPARC-III DFA scheduling support.
5072         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5073         Update FP conditional move on register insn patterns to use it, as
5074         appropriate.
5075         (define_attr cpu): Add ultrasparc3.
5076         (define_attr us3load_type): New, update integer load patterns to
5077         set it, as appropriate.
5078         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5079         (rest): Add UltraSPARC3 scheduling description.
5080         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5081         (PROCESSOR_ULTRASPARC3): New.
5082         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5083         ({ASM,CPP}_CPU_SPEC): Likewise.
5084         (REGISTER_MOVE_COST): Likewise.
5085         (RTX_COSTS): Likewise.
5086         * config/sparc/sparc.c (sparc_override_options,
5087         sparc_initialize_trampoline, sparc64_initialize_trampoline,
5088         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5089         sparc_issue_rate): Likewise.
5090         * config/sparc/sol2.h: Likewise.
5091         * config/sparc/sol2-sld-64.h: Likewise.
5092         * config/sparc/linux64.h: Likewise.
5093
5094         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
5095
5096         * doc/md.texi: Add comments about usage the latency time for the
5097         different dependencies and about case when two or more conditions
5098         in different define_insn_reservations returns TRUE for an insn.
5099
5100         * doc/md.texi: Add reference for automaton based pipeline
5101         description.
5102
5103         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
5104
5105         * doc/passes.texi: Add missed information about genattrtab.
5106
5107         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
5108
5109         * genautomata.c (output_automata_list_transition_code): Check
5110         automata_list on NULL.
5111
5112         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
5113
5114         * genautomata.c (output_insn_code_cases,
5115         output_automata_list_min_issue_delay_code,
5116         output_automata_list_transition_code,
5117         output_automata_list_state_alts_code): Comment the functions.
5118
5119         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
5120
5121         * genautomata.c (automata_list_el_t): New typedef.
5122         (get_free_automata_list_el,free_automata_list_el,
5123         free_automata_list, automata_list_hash, automata_list_eq_p,
5124         initiate_automata_lists, automata_list_start, automata_list_add,
5125         automata_list_finish, finish_automata_lists,
5126         output_insn_code_cases, output_automata_list_min_issue_delay_code,
5127         output_automata_list_transition_code,
5128         output_automata_list_state_alts_code, add_automaton_state,
5129         form_important_insn_automata_lists): New functions and prototypes.
5130         (insn_reserv_decl): Add members important_automata_list and
5131         processed_p.
5132         (ainsn): Add members important_p.
5133         (automata_list_el): New structure.
5134         (first_free_automata_list_el, current_automata_list,
5135         automata_list_table): New global variables.
5136         (create_ainsns): Initiate member important_p.
5137         (output_internal_min_issue_delay_func): Generate the switch and
5138         call output_insn_code_cases.
5139         (output_internal_trans_func, output_internal_state_alts_func):
5140         Ditto.
5141         (generate): Call initiate_automata_lists.
5142         (automaton_states): New global variable.
5143         (expand_automata): Call form_important_insn_automata_lists.
5144         (write_automata): Call finish_automata_lists.
5145
5146         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
5147
5148         * genautomata.c (add_excls, add_presence_absence): Check that
5149         cpu units in the sets belong the same automaton.
5150
5151         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5152         about that cpu units in the sets belong the same automaton.
5153
5154         * doc/md.texi: Ditto.
5155
5156         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
5157                     Nitin Gupta  <niting@noida.hcltech.com>
5158
5159         * config/sh/sh.c (sh_use_dfa_interface): New function.
5160
5161         (sh_issue_rate): New Function.
5162         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5163         TARGET_SCHED_ISSUE_RATE: define.
5164
5165         * config/sh/sh.md: Add DFA based pipeline description for SH4.
5166
5167         (define_attr insn_class): New attribute used for DFA
5168          scheduling.
5169         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5170         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5171          cmpeqdi_t): Likewise.
5172
5173         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5174          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5175          ex_group.
5176         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5177
5178         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5179
5180         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5181         break.
5182
5183         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5184
5185         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5186         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5187         necessary.
5188         (output_dfa_start_func): Initiate new variable insn_codes_length,
5189         (write_automata): Output definition of the new variable.
5190
5191         2001-10-02  David S. Miller  <davem@redhat.com>
5192
5193         * haifa-sched.c (advance_one_cycle): New function.
5194         (schedule_block): Use it.
5195         (queue_to_ready): Use it, and also make sure to advance the DFA
5196         state on all stall cycles, not just those where insn_queue links
5197         are found.
5198
5199         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
5200
5201         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
5202         non-zero if the highest-priority instruction could be scheduled.
5203         (choose_ready): Remove last argument from max_issue call.
5204
5205         2001-09-28  David S. Miller  <davem@redhat.com>
5206
5207         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5208         ultrasparc and 3 for other multi-issue sparcs.
5209
5210         2001-09-27  David S. Miller  <davem@redhat.com>
5211
5212         * config/sparc/sparc.md (cycle_display): New pattern.
5213         * config/sparc/sparc.c (sparc_cycle_display): New.
5214         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5215
5216         2001-09-25  David S. Miller  <davem@redhat.com>
5217
5218         Convert all of Sparc scheduling to DFA
5219         * config/sparc/sparc.md: Kill all define_function_unit
5220         directives and replace with DFA equivalent.
5221         * config/sparc/sparc.c (ultrasparc_adjust_cost,
5222         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5223         ultra_fpmode_conflict_exists, ultra_find_type,
5224         ultra_build_types_avail, ultra_flush_pipeline,
5225         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5226         ultrasparc_variable_issue, ultrasparc_sched_init,
5227         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5228         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5229         ultra_cur_hist, ultra_cycles_elapsed): Kill.
5230         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5231         ultrasparc_store_bypass_p): New.
5232         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5233         Declare.
5234
5235         2001-09-24  David S. Miller  <davem@redhat.com>
5236
5237         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5238         ready->vec[foo] not ready[foo].
5239
5240         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5241
5242         * doc/md.texi: Correct examples for define_insn_reservations
5243         `mult' and `div'.
5244
5245         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5246
5247         * genautomata.c (create_automata): Print message about creation of
5248         each automaton.
5249         (generate): Remove printing meease about creation of
5250         automata.
5251
5252         2001-09-05  David S. Miller  <davem@redhat.com>
5253
5254         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5255         * config/sparc/linux64.h: Likewise.
5256
5257         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
5258
5259         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5260         schedule_block, sched_init, sched_finish): Add missed calls of
5261         use_dfa_pipeline_interface.
5262
5263         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5264         Ditto.
5265
5266         * sched-vis.c (get_visual_tbl_length): Ditto.
5267
5268         2001-08-27  Richard Henderson  <rth@redhat.com>
5269
5270         * genattr.c (main): Emit state_t even when not doing scheduling.
5271
5272         2001-08-27  Richard Henderson  <rth@redhat.com>
5273
5274         * genautomata.c (expand_automata): Always create a description.
5275
5276         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5277
5278         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5279         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5280         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5281         RTL constructions.
5282
5283         * genattr.c (main): New variable num_insn_reservations.  Increase
5284         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5285         pipeline hazard recognizer interface.
5286
5287         * genattrtab.h: New file.
5288
5289         * genattrtab.c: Include genattrtab.h.
5290         (attr_printf, check_attr_test, make_internal_attr,
5291         make_numeric_value): Move protypes into genattrtab.h.  Define them
5292         as external.
5293         (num_dfa_decls): New global variable.
5294         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5295         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5296         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5297         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5298
5299         * genautomata.c: New file.
5300
5301         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5302
5303         * sched-int.h: (curr_state): Add the external definition for
5304         automaton pipeline interface.
5305         (haifa_insn_data): Add comments for members blockage and units.
5306
5307         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5308         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5309         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5310         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5311         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5312         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5313         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5314         macros.
5315         (TARGET_SCHED): Use the new macros.
5316
5317         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5318         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5319         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5320         dfa_bubble): New members in gcc_target.sched.
5321
5322         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5323         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5324         (insn_queue): Redefine it as pointer to array.
5325         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5326         INSN_QUEUE_SIZE.
5327         (max_insn_queue_index_macro_value): New variable.
5328         (curr_state, dfa_state_size, ready_try): New varaibles for
5329         automaton interface.
5330         (ready_element, ready_remove, max_issue): New function prototypes
5331         for automaton interface.
5332         (choose_ready): New function prototype.
5333         (insn_unit, blockage_range): Add comments.
5334         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5335         FUNCTION_UNITS_SIZE == 0.
5336         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5337         actual_hazard, potential_hazard): Add comments.
5338         (insn_cost): Use cost -1 as undefined value.  Remove
5339         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5340         pipeline interface.
5341         (ready_element, ready_remove): New functions for automaton
5342         interface.
5343         (schedule_insn): Add new code for automaton pipeline interface.
5344         (queue_to_ready): Add new code for automaton pipeline interface.
5345         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5346         (debug_ready_list): Print newline when the queue is empty.
5347         (max_issue): New function for automaton pipeline interface.
5348         (choose_ready): New function.
5349         (schedule_block): Add new code for automaton pipeline interface.
5350         Print ready list before scheduling each insn.
5351         (sched_init): Add new code for automaton pipeline interface.
5352         Initiate insn cost by -1.
5353         (sched_finish): Free the current automaton state and finalize
5354         automaton pipeline interface.
5355
5356         * sched-rgn.c: Include target.h.
5357         (init_ready_list, new_ready, debug_dependencies): Add new code for
5358         automaton pipeline interface.
5359
5360         * sched-vis.c: Include target.h.
5361         (get_visual_tbl_length): Add code for automaton interface.
5362         (target_units, print_block_visualization):  Add comments.
5363
5364         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5365         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5366         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5367         (getruntime.o, genautomata.o): New entries.
5368         (genattrtab.o): Add new dependency file genattrtab.h.
5369         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5370         (getruntime.o, hashtab.o): New entries for canadian cross.
5371
5372         * doc/md.texi: Description of automaton based model.
5373
5374         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5375         Add comments.
5376         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5377         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5378         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5379         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5380         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5381         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5382         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5383         hook descriptions.
5384         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5385         MAX_DFA_ISSUE_RATE): New macro descriptions.
5386
5387         * doc/contrib.texi: Add dfa based scheduler contribution.
5388
5389         * doc/gcc.texi: Add more information about genattrtab.
5390
5391 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5392
5393         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5394         adjust_address_nv call.
5395
5396 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5397
5398         * doc/install.texi (Testing): Provide additional information, and
5399         a stronger encouragement, for running the testsuites.
5400
5401 2002-04-29  DJ Delorie  <dj@redhat.com>
5402
5403         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5404         given in upper case.
5405
5406 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5407
5408         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5409         Solaris 2 <widec.h> if missing.
5410         * fixinc/fixincl.x: Regenerate.
5411         * fixinc/tests/base/widec.h: New file.
5412
5413 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5414
5415         * toplev.c (f_options): Add "profile" switch so that
5416         -fno-profile can be used to disable -p.
5417
5418 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5419
5420         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5421         UV2DImode.
5422         * tree.c (build_common_tree_nodes_2): Likewise.
5423         * tree.h (enum tree_index): Likewise.
5424         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5425
5426         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5427         entries.
5428         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5429         (ix86_expand_builtin): Add support for SSE2 builtins.
5430         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5431         (VALID_SSE_REG_MODE): Use it.
5432         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5433         (enum ix86_builtins): Add SSE2 builtins.
5434         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5435         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5436         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5437         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5438         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5439         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5440         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5441         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5442         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5443         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5444         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5445         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5446         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5447         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5448         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5449         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5450         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5451         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5452         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5453         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5454         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5455         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5456         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5457         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5458         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5459         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5460         lfence_insn): New patterns.
5461         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5462         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5463
5464 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5465
5466         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5467
5468 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5469
5470         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5471         Janis Johnson.
5472         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5473         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5474         and CPU instead of cpu.
5475
5476 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5477
5478         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5479         variables.
5480         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5481         (rest_of_compilation): Do if conversion only when asked for.
5482         (parse_options_and_default_flags): Set new variables to 1 for -O1
5483         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5484
5485 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5486
5487         * i386.c (dbx64_register_map): Fix typo.
5488
5489 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5490
5491         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5492         real_one_half, real_bb_freq_max): New static variables.
5493         (debug_profile_bbauxs): Kill.
5494         (process_note_predictions): Kill unused variable.
5495         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5496         volatile double.
5497         (propagate_freq): Use REAL_ARITHMETICS.
5498         (estimate_bb_frequencies): Likevise; init new static variables.
5499         * Makefile.in (predict.o): Add dependency on real.h
5500
5501 2002-04-28  David S. Miller  <davem@redhat.com>
5502
5503         PR target/6500
5504         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5505         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5506         several {reads,writes} instead.
5507         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5508         Define.
5509
5510 2002-04-27  David S. Miller  <davem@redhat.com>
5511
5512         PR target/6494
5513         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5514         of the stack bias.
5515
5516         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5517         including signal.h and sys/ucontext.h, not needed.
5518
5519 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5520
5521         * varasm.c (output_constant_def): Correct test for not calling
5522         ENCODE_SECTION_INFO for INTEGER_CST.
5523
5524 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5525
5526         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5527         keep most cases as function eval_token.
5528         (eval_token): New function.
5529         (_cpp_parse_expr): Read token here for improved diagnostics.
5530         Don't use op_as_text.  Detect bad ':' here.
5531         (reduce): Don't detect bad ':' here.
5532         (op_as_text): Remove.
5533         * cpphash.h (_cpp_test_assertion): Change prototype.
5534         * cpplib.c (_cpp_test_assertion): Change prototype.
5535
5536 2002-04-28  Richard Henderson  <rth@redhat.com>
5537
5538         PR c/5154
5539         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5540         (ggc_mark_rtx_children): New.
5541
5542 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5543
5544         PR target/6496
5545         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5546         after call peepholes for UltraSPARC.
5547         (call + jump 64-bit peepholes): Remove.
5548
5549 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5550
5551         PR c/6497
5552         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5553         result as temporary value.
5554
5555 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5556
5557         PR c++/6396
5558         * toplev.c (rest_of_compilation): Only run regrename and copy
5559         propagation if optimizing.
5560
5561 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5562
5563         PR optimization/6475
5564         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5565         register of REGNO_DECL (i).
5566         * Makefile.in (reload1.o): Add $(TREE_H).
5567
5568 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5569
5570         * cppexp.c (lex): Update to use state.skip_eval.
5571         (struct op): Remove prio and flags members.
5572         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5573         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5574         (LEFT_ASSOC): New macro.
5575         (optab): New table of operator priorities and flags.
5576         (SHIFT): Update.
5577         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5578         malloc-ed parser stack.
5579         (reduce): New; reduce the operator stack.
5580         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5581         * cpphash.h (struct op): Predeclare.
5582         (struct cpp_reader): New members op_stack, op_limit.
5583         (struct lexer_state): New member skip_eval.
5584         (_cpp_parse_expr): Update.
5585         (_cpp_expand_op_stack): New.
5586         * cpplib.c (do_if): Update.
5587         * cppinit.c (cpp_create_reader): Create op stack.
5588         (cpp_destroy): And destroy it.
5589         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5590         (TTYPE_TABLE): Correct.
5591
5592 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5593
5594         PR c/6343
5595         * c-decl.c (duplicate_decls): Call merge_weak.
5596         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5597         * output.h (merge_weak): Prototype merge_weak.
5598         * varasm.c (merge_weak): New function.
5599         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5600         Mark RTL with SYMBOL_REF_WEAK.
5601
5602 2002-04-27  Kurt Garloff <garloff@suse.de>
5603
5604         * tree-inline.c (inlinable_function_p): Improve heuristics
5605         by using a smoother function to cut down allowable inlinable size.
5606         * param.def: Add parameters max-inline-insns-single,
5607         max-inline-slope, min-inline-insns that determine the exact
5608         shape of the above function.
5609         * param.h: Likewise.
5610
5611 2002-04-26  Richard Henderson  <rth@redhat.com>
5612
5613         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5614         (yyoverflow): Re-add.  Set them.
5615         (free_parser_stacks): New.
5616         * c-common.h: Declare it.
5617         * c-lex.c (c_common_parse_file): Call it.
5618
5619 2002-04-26  Richard Henderson  <rth@redhat.com>
5620
5621         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5622         for fallthru search.
5623
5624 2002-04-26  Eric Christopher  <echristo@redhat.com>
5625
5626         PR optimization/3700
5627         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5628         (TARGET_SCHED_ISSUE_RATE): Use.
5629
5630 2002-04-25  David S. Miller  <davem@redhat.com>
5631
5632         PR target/6422
5633         * reorg.c (optimize_skip): Do not allow exception causing
5634         instructions to be considered for delay slots.
5635         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5636         (relax_delay_slots): Do not try to consider exception causing
5637         instructions as redundant.
5638
5639 2002-04-26  Richard Henderson  <rth@redhat.com>
5640
5641         PR c/5225
5642         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5643
5644 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5645
5646         PR bootstrap/6445
5647         * config/i386/i386.md (untyped_call): Return the value in a float
5648         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5649         TARGET_80387.
5650
5651 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5652
5653         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5654         in unsigned-ness correctly.
5655
5656 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5657
5658         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5659         portable runtime model.
5660
5661 2002-04-26  Richard Henderson  <rth@redhat.com>
5662
5663         * c-parse.in (yyoverflow): Revert.
5664
5665 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5666             Richard Henderson  <rth@redhat.com>
5667
5668         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5669         result as temporary value.
5670
5671 2002-04-26  Richard Henderson  <rth@redhat.com>
5672
5673         PR c/3581
5674         * c-common.c (fix_string_type): Split out of ...
5675         (combine_strings): ... here.  Take a varray, not a tree list.
5676         (c_expand_builtin_printf): Use fix_string_type.
5677         * c-common.h: Update decls.
5678         * c-parse.in (string): Remove.  Update all uses to use STRING
5679         instead, and not call combine_strings.
5680         (yylexstring): New.
5681         (_yylex): Use it.
5682         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5683         (build_asm_stmt): Likewise.
5684         * objc/objc-act.c (my_build_string): Use fix_string_type.
5685         (build_objc_string_object): Build varray for combine_strings.
5686
5687 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5688
5689         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5690         x86-64.
5691
5692 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5693
5694         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5695         (HAVE_NO_R_OPERAND): Remove.
5696         (HAVE_VALUE): Remove.
5697         (op_to_prio): Update.
5698         (UNARY): Don't alter flags.
5699         (_cpp_parse_expr): want_value used to indicate whether
5700         a number or unary operator is expected next.  Distinguish
5701         unary and binary +/-.
5702         (op_as_text): Update for unary operators.
5703
5704 2002-04-25  Richard Henderson  <rth@redhat.com>
5705
5706         PR c/2161
5707         * c-parse.in (yyoverflow): New.
5708
5709 2002-04-25  Richard Henderson  <rth@redhat.com>
5710
5711         PR c/2098
5712         * c-common.c (shorten_compare): Simplfy conditions leading to
5713         the generation of a warning.
5714
5715 2002-04-25  Richard Henderson  <rth@redhat.com>
5716
5717         PR c/2035
5718         * expmed.c (extract_bit_field): Fall through to generic code rather
5719         than aborting on subreg special case.
5720
5721 2002-04-25  David S. Miller  <davem@redhat.com>
5722
5723         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5724         for DECL being NULL.
5725
5726 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5727
5728         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5729
5730 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5731
5732         * c-decl.c (grokdeclarator): Remove outdated ??? note
5733         on invalid declaration of flexible array members.
5734
5735 2002-04-25  Richard Henderson  <rth@redhat.com>
5736
5737         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5738
5739 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5740
5741         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5742         needed by the compiler, even if they are used as global regs.
5743
5744 2002-04-25  Matt Hiller  <hiller@redhat.com>
5745
5746         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5747         functions.
5748         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5749         of the corresponding functions.
5750         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5751         New prototypes.
5752
5753 2002-04-25  Matt Hiller  <hiller@redhat.com>
5754
5755         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5756
5757         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5758         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5759         registers, adjust comment accordingly.
5760         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5761         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5762         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5763         for coprocessor registers.
5764         (ADDITIONAL_REGISTER_NAMES): Include
5765         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5766
5767         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5768         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5769         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5770         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5771         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5772
5773         (mips_char_to_class): Adjust comment to include coprocessor
5774         constraint letters.
5775
5776         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5777         New functions.
5778         (mips_reg_names, mips_regno_to_class): Include coprocessor
5779         information.
5780         (mips_sw_reg_names): Ditto, make non-static.
5781         (mips_move_1word): Handle moves to and from coprocessor registers.
5782         (mips_move_2words): Handle moves to and from coprocessor
5783         registers.
5784         (mips_class_max_nregs, mips_register_move_cost): Handle
5785         coprocessor register classes.
5786         (override_options): Initialize mips_char_to_class and
5787         mips_hard_regno_mode_ok properly for coprocessor registers.
5788
5789         * config/mips/mips.md (movdi_internal, movdi_internal2,
5790         movsi_internal1, movsi_internal2): Add constraint-sets for
5791         coprocessor registers.
5792         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5793         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5794         isn't mips.
5795         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5796         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5797         isn't mips.
5798         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5799         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5800         isn't mips.
5801         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5802         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5803         isn't mips.
5804
5805         * doc/tm.texi: Document feature.
5806
5807 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5808
5809         * integrate.c (function_attribute_inlinable_p): Simplify.
5810         Check the table pointer is not NULL.
5811
5812 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5813
5814         * doc/c-tree.texi: Fix typo in introduction.
5815
5816 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5817
5818         * c-common.h (c_common_parse_file): Update.
5819         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5820         * c-lex.c (YYDEBUG): Get from c-lex.h.
5821         (c_common_parse_file): Update.
5822         * c-lex.h (YYDEBUG, yydebug): New.
5823         * c-parse.in (YYDEBUG): Get from c-lex.h.
5824         (c_set_yydebug): Remove.
5825         * c-tree.h (c_set_yydebug): Remove.
5826         * langhooks-def.h (lhd_do_nothing_i): New.
5827         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5828         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5829         * langhooks.c  (lhd_do_nothing_i): New.
5830         (lhd_set_yydebug): Remove.
5831         * langhooks.h (struct lang_hooks): Update.
5832         * toplev.c (set_yydebug): New.
5833         (compile_file): Update call to parse_file hook.
5834         (decode_d_option): Update.
5835 objc:
5836         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5837
5838 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
5839
5840         * loop.c (load_mems): Don't change the interface of called functions.
5841
5842         * calls.c (expand_call): Take current_function_pretend_args_size
5843         into account when setting argblock for sibcalls.
5844
5845 2002-04-24  Matt Hiller  <hiller@redhat.com>
5846
5847         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5848         * c-lex.c: Ditto.
5849
5850         * cpplex.c (skip_line_comment): Process comment one multibyte
5851         character at a time rather than one char at a time, if
5852         appropriate.
5853         (parse_string): Process string one multibyte character at a time
5854         rather than one char at a time, if appropriate.
5855         * c-lex.c (lex_string): Lex and copy multibyte strings
5856         appropriately.
5857         * cpplib.h (cppchar_t): Change to unsigned.
5858
5859 2002-04-24  Richard Henderson  <rth@redhat.com>
5860
5861         PR c/3467
5862         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5863         for c99.
5864
5865 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
5866
5867         * sh.c (sh_va_arg): If argument was passed by reference,
5868         dereference the pointer.
5869
5870         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5871
5872         * sh.md (divsi3_i4_media): Use match_operand for input values
5873         rather than hard registers.
5874         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5875         unnecessarily through hard registers.  Keep copies of pseudo
5876         registers outside of the libcall sequence.
5877
5878         * sh.md (casesi_shift_media): Add modes.
5879
5880         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5881         values in memory.
5882
5883 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5884
5885         * attribs.c (c_common_attribute_table): Move table and handlers
5886         to c-common.c.
5887         (format_attribute_table, lang_attribute_table,
5888         lang_attribute_common): Remove.
5889         (init_attributes): Replace NULL pointers with pointers to the
5890         empty table.
5891         (handle_packed_attribute, handle_nocommon_attribute,
5892         handle_common_attribute, handle_noreturn_attribute,
5893         handle_noinline_attribute, handle_always_inline_attribute,
5894         handle_used_attribute, handle_unused_attribute,
5895         handle_const_attribute, handle_transparent_union_attribute,
5896         handle_constructor_attribute, handle_destructor_attribute,
5897         handle_mode_attribute, handle_section_attribute,
5898         handle_aligned_attribute, handle_weak_attribute,
5899         handle_alias_attribute, handle_visibility_attribute,
5900         handle_no_instrument_function_attribute, handle_malloc_attribute,
5901         handle_no_limit_stack_attribute, handle_pure_attribute,
5902         handle_deprecated_attribute, handle_vector_size_attribute,
5903         vector_size_helper): Move to c-common.c.
5904         * c-common.c (c_common_attribute_table,
5905         handle_packed_attribute, handle_nocommon_attribute,
5906         handle_common_attribute, handle_noreturn_attribute,
5907         handle_noinline_attribute, handle_always_inline_attribute,
5908         handle_used_attribute, handle_unused_attribute,
5909         handle_const_attribute, handle_transparent_union_attribute,
5910         handle_constructor_attribute, handle_destructor_attribute,
5911         handle_mode_attribute, handle_section_attribute,
5912         handle_aligned_attribute, handle_weak_attribute,
5913         handle_alias_attribute, handle_visibility_attribute,
5914         handle_no_instrument_function_attribute, handle_malloc_attribute,
5915         handle_no_limit_stack_attribute, handle_pure_attribute,
5916         handle_deprecated_attribute, handle_vector_size_attribute,
5917         vector_size_helper): Move from attribs.c.
5918         * c-common.h (c_common_attribute_table,
5919         c_common_format_attribute_table): New.
5920         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5921         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5922         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5923         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5924         (LANG_HOOKS_INITIALIZER): Update.
5925         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5926         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5927         * target.h: Update comment.
5928         * tree.c (default_target_attribute_table): Remove.
5929         * tree.h (default_target_attribute_table, format_attribute_table,
5930         lang_attribute_table, lang_attribute_common): Remove.
5931 objc:
5932         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5933         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5934
5935 2002-04-24  Jason Merrill  <jason@redhat.com>
5936
5937         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5938         * dwarf2out.c (dwarf_attr_name): Support it.
5939         (gen_array_type_die): Emit it.
5940         (lookup_type_die): No special handling for VECTOR_TYPE.
5941         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5942
5943 2002-04-24  Richard Henderson  <rth@redhat.com>
5944
5945         * config/mips/mips.md (movdi_usd): Renumber.
5946
5947 2002-04-24  David S. Miller  <davem@redhat.com>
5948
5949         PR target/6420
5950         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5951         32-bit Sparc and current_function_returns_struct is true.
5952
5953 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5954
5955         * loop.c (canonicalize_condition): Use gen_int_mode.
5956
5957 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
5958
5959         * config/rs6000/altivec.h: Cleanup file.  Add non individual
5960         variants.
5961         (vec_vaddubm): New.
5962         (vec_vadduhm): New.
5963         (vec_vadduwm): New.
5964         (vec_vaddfp): New.
5965         (vec_vaddcuw): New.
5966         (vec_vaddubs): New.
5967         (vec_vaddsbs): New.
5968         (vec_vadduhs): New.
5969         (vec_vadduws): New.
5970         (vec_vaddsws): New.
5971         (vec_vand): New.
5972         (vec_vandc): New.
5973         (vec_vavgub): New.
5974         (vec_vavgsb): New.
5975         (vec_vavguh): New.
5976         (vec_vavgsh): New.
5977         (vec_vavguw): New.
5978         (vec_vavgsw): New.
5979         (vec_vrfip): New.
5980         (vec_vcmpbfp): New.
5981         (vec_vcmpequb): New.
5982         (vec_vcmpequh): New.
5983         (vec_vcmpequw): New.
5984         (vec_vcmpeqfp): New.
5985         (vec_vcmpgefp): New.
5986         (vec_vcmpgtub): New.
5987         (vec_vcmpgtsb): New.
5988         (vec_vcmpgtuh): New.
5989         (vec_vcmpgtsh): New.
5990         (vec_vcmpgtuw): New.
5991         (vec_vcmpgtsw): New.
5992         (vec_vcmpgtfp): New.
5993         (vec_vcmpgefp): New.
5994         (vec_vcfux): New.
5995         (vec_vcfsx): New.
5996         (vec_vctsxs): New.
5997         (vec_vctuxs): New.
5998         (vec_vexptefp): New.
5999         (vec_vrfim): New.
6000         (vec_lvx): New.
6001         (vec_lvebx): New.
6002         (vec_lvehx): New.
6003         (vec_lde): Add vector float variant.
6004         (vec_lvewx): New.
6005         (vec_lvxl): New.
6006         (vec_vlogefp): New.
6007         (vec_vmaddfp): New.
6008         (vec_vmhaddshs): New.
6009         (vec_vmaxub): New.
6010         (vec_vmaxsb): New.
6011         (vec_vmaxuh): New.
6012         (vec_vmaxsh): New.
6013         (vec_vmaxuw): New.
6014         (vec_vmaxsw): New.
6015         (vec_vmaxsw): New.
6016         (vec_vmaxfp): New.
6017         (vec_vmrghb): New.
6018         (vec_vmrghh): New.
6019         (vec_vmrghw): New.
6020         (vec_vmrglb): New.
6021         (vec_vmrglh): New.
6022         (vec_vmrglw): New.
6023         (vec_vminub): New.
6024         (vec_vminsb): New.
6025         (vec_vminuh): New.
6026         (vec_vminsh): New.
6027         (vec_vminuw): New.
6028         (vec_vminsw): New.
6029         (vec_vminfp): New.
6030         (vec_vmladduhm): New.
6031         (vec_vmhraddshs): New.
6032         (vec_msumubm): New.
6033         (vec_vmsummbm): New.
6034         (vec_vmsumuhm): New.
6035         (vec_vmsumshm): New.
6036         (vec_vmsumuhs): New.
6037         (vec_vmsumshs): New.
6038         (vec_vmuleub): New.
6039         (vec_vmulesb): New.
6040         (vec_vmuleuh): New.
6041         (vec_vmulesh): New.
6042         (vec_vmuloub): New.
6043         (vec_mulosb): New.
6044         (vec_vmulouh): New.
6045         (vec_vmulosh): New.
6046         (vec_vnmsubfp): New.
6047         (vec_vnor): New.
6048         (vec_vor): New.
6049         (vec_vpkuhum): New.
6050         (vec_vpkuwum): New.
6051         (vec_vpkpx): New.
6052         (vec_vpkuhus): New.
6053         (vec_vpkshss): New.
6054         (vec_vpkuwus): New.
6055         (vec_vpkswss): New.
6056         (vec_vpkshus): New.
6057         (vec_vpkswus): New.
6058         (vec_vperm): New.
6059         (vec_vrefp): New.
6060         (vec_vrlb): New.
6061         (vec_vrlh): New.
6062         (vec_vrlw): New.
6063         (vec_vrfin): New.
6064         (vec_vrsqrtefp): New.
6065         (vec_vsel): New.
6066         (vec_vslb): New.
6067         (vec_vslh): New.
6068         (vec_vslw): New.
6069         (vec_vsldoi): New.
6070         (vec_vsl): New.
6071         (vec_vslo): New.
6072         (vec_vspltb): New.
6073         (vec_vsplth): New.
6074         (vec_vspltw): New.
6075         (vec_vspltisb): New.
6076         (vec_vspltish): New.
6077         (vec_vspltisw): New.
6078         (vec_vsrb): New.
6079         (vec_vsrh): New.
6080         (vec_vsrw): New.
6081         (vec_vsrab): New.
6082         (vec_vsrah): New.
6083         (vec_vsraw): New.
6084         (vec_vsr): New.
6085         (vec_vsro): New.
6086         (vec_stvx): New.
6087         (vec_stvebx): New.
6088         (vec_stvehx): New.
6089         (vec_stvewx): New.
6090         (vec_stvxl): New.
6091         (vec_vsububm): New.
6092         (vec_vsubuhm): New.
6093         (vec_vsubuwm): New.
6094         (vec_vsubfp): New.
6095         (vec_vsubcuw): New.
6096         (vec_vsububs): New.
6097         (vec_vsubsbs): New.
6098         (vec_vsubuhs): New.
6099         (vec_vsubshs): New.
6100         (vec_vsubuws): New.
6101         (vec_vsubsws): New.
6102         (vec_vsum4ubs): New.
6103         (vec_vsum4sbs): New.
6104         (vec_vsum4shs): New.
6105         (vec_vsum2sws): New.
6106         (vec_vsumsws): New.
6107         (vec_vrfiz): New.
6108         (vec_vupkhsb): New.
6109         (vec_vupkhpx): New.
6110         (vec_vupkhsh): New.
6111         (vec_vupklsb): New.
6112         (vec_vupklpx): New.
6113         (vec_vupklsh): New.
6114         (vec_vxor): New.
6115
6116 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
6117
6118         PR c/5430
6119         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6120         added literals from substracted literals.
6121         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6122         (fold) [associate]: Preserve MINUS_EXPR if needed.
6123
6124 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
6125
6126         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6127         are obsoleted.
6128
6129 2002-04-23  Tom Tromey  <tromey@redhat.com>
6130
6131         * gcc.c: Added --resource.  For PR java/6314.
6132
6133 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6134
6135         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6136         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6137         these libraries.
6138
6139 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6140
6141         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6142
6143 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6144
6145         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6146         workaround.
6147         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6148         (ix86_expand_clrstr): Fix typo.
6149         * loop.c (gen_load_of_final_value): New.
6150         (loop_givs_rescan, strength_reduce, check_dbra_loop):
6151         Use it.
6152
6153 2002-04-23  Roger Sayle  <roger@eyesopen.com>
6154
6155         * builtins.c (builtin_memset_gen_str): New function.
6156         (expand_builtin_memset): Optimize the case of constant length, but
6157         unknown value.
6158
6159 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
6160
6161         * config/rs6000/altivec.h (vec_step): Remove extraneous
6162         parentheses.
6163         (vec_ctu): Cast return.
6164
6165 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
6166
6167         PR target/6413
6168         * function.h: (struct function): Add profile_label_no field.
6169         (current_function_profile_label_no): Define.
6170         * function.c: (profile_label_no): New static var.
6171         (expand_function_start): Increment it, and copy to
6172         current_function_profile_label_no.
6173         * output.h (profile_label_no): Delete.
6174         * final.c (profile_label_no): Delete.
6175         (profile_function): Use current_function_profile_label_no.
6176         (final_end_function): Don't increment profile_label_no here.
6177         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6178         profile_label_no with current_function_profile_label_no.
6179         * config/pa/pa.c (current_function_number): Delete.
6180         (pa_output_function_prologue): Don't output profile label here.
6181         (hppa_profile_hook): Use label_no param rather than
6182         current_function_number.
6183         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6184         * config/pa/pa.h: .. here.
6185         (FUNCTION_PROFILER): Output profile label here.
6186
6187 2002-04-22  Eric Christopher  <echristo@redhat.com>
6188
6189         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6190         patch of 2002-04-09 due to binutils issues.
6191         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6192
6193 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6194
6195         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6196         constraint to 'o' for m=r and r=m alternatives.
6197         ("*movv8hi_internal1"): Same.
6198         ("*movv16qi_internal1"): Same.
6199         ("*movv4sf_internal1"): Same.
6200
6201 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
6202
6203         * rtl.h (RTX_FLAG): New macro.
6204         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6205         * final.c (alter_subreg): Use macro to access rtx flag.
6206         * integrate.c (copy_rtx_and_substitute): Use new access macro.
6207         * print-rtl.c (print_rtx): Use new access macro.
6208
6209         * cse.c (insert): Check rtx code before accessing flag.
6210
6211         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6212         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6213         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6214         convert_const_symbol_ref, make_canonical, make_alternative_compare,
6215         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6216         simplify_test_exp, optimize_attrs, simplify_by_exploding,
6217         find_and_mark_used_attributes, unmark_used_attributes,
6218         add_values_to_cover, simplify_with_current_value,
6219         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6220         copy_rtx_unchanging, main): Use new access macros.
6221
6222 2002-04-22  Tom Rix  <trix@redhat.com>
6223
6224         * expmed.c (init_expmed): Generate shifted constant once.
6225
6226 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
6227
6228         * c-lex.c (lex_charconst): Call convert to get constant in
6229         proper type; don't just smash the type field.
6230         Fixes PR c/6300.
6231
6232         * config.gcc: Add list of obsolete configurations.  Disallow
6233         building these without --enable-obsolete.
6234         * doc/install.texi: Document --enable-obsolete and obsoletion
6235         policy.  Mention obsoletion of individual targets in
6236         appropriate places.
6237
6238 2002-04-22  Richard Henderson  <rth@redhat.com>
6239
6240         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6241
6242 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
6243
6244         PR f/6138.
6245         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6246         (walk_fixup_memory_subreg): Likewise.
6247         (fixup_var_refs_insn): Adjust accordingly.
6248         (fixup_var_refs_1): Likewise.
6249
6250 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
6251
6252         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6253         LIBPATH_ARCH64_SPEC): Define.
6254         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6255         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6256         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6257         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6258
6259 2002-04-22      Joel Sherrill <joel@OARcorp.com>
6260
6261         * gthr-rtems.h: Correct prototypes to remove warnings.
6262
6263 2002-04-22  Richard Henderson  <rth@redhat.com>
6264
6265         PR c/6344
6266         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6267
6268         * gcse.c (free_insn_expr_list_list): New.
6269         (clear_modify_mem_tables): Use it.  Fix bit set usage.
6270         (canon_list_insert): Use EXPR_LISTs for expressions.
6271         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6272
6273 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6274
6275         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
6276         file change and include code to _cpp_pop_buffer.
6277         * cpphash.h (struct pending_option): Predeclare.
6278         (struct cpp_reader): New member next_include_file.
6279         (_cpp_pop_file_buffer): Update.
6280         (_cpp_push_next_buffer): Update, rename.
6281         * cppinit.c (cpp_destroy): Free include chain and pending here.
6282         (cpp_finish_options): Simplify.
6283         (_cpp_push_next_buffer): Rename and clean up.
6284         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6285         Clarify.
6286         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6287
6288 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6289
6290         * config/rs6000/altivec.h (vec_xor): Add variant for both args
6291         being vector signed int.
6292         (vec_andc): Same.
6293         (vec_xor): Add variant for both args being vector signed char.
6294         Remove redundant variant.
6295         (vec_andc): Same.
6296
6297 2002-04-21  David S. Miller  <davem@redhat.com>
6298
6299         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6300         compare mode in output RTL.
6301
6302 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
6303
6304         * config/rs6000/rs6000.c (rs6000_override_options): Correct
6305         style and formatting of previous patch.
6306
6307 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
6308
6309         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6310         flag_pic for ABI_AIX.
6311
6312 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6313
6314         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6315         * cppfiles.c (read_include_file): Similarly.
6316         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6317         uxstrdup ustrchr, ufputs): Similarly.
6318         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6319         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6320         cpp_ideq, parse_identifier, parse_number): Similarly.
6321         * cpplib.c (struct directive, dequote_string, D, run_directive,
6322         cpp_push_buffer): Similarly.
6323         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6324         _cpp_create_definition, check_trad_stringification,
6325         cpp_macro_definition): Similarly.
6326
6327 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6328
6329         * cppmacro.c (funlike_invocation_p): Don't step back
6330         over CPP_EOF.
6331
6332 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
6333
6334         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6335         labelno.
6336
6337 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6338
6339         * doc/invoke.texi: Remove Chill references.
6340         * doc/gcc.texi: Update last modified date.
6341
6342 2002-04-20  Kazu Hirata  <kazu@hxi.com>
6343
6344         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6345         push and pop.  Replace add.l with add.w.
6346
6347 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6348
6349         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6350         multiply instructions for H8/300H case.
6351
6352 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6353
6354         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6355         Bum three instructions from each routine.
6356
6357 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6358
6359         * Makefile.in: Update.
6360         * decl.c (push_c_function_context, pop_c_function_context,
6361         mark_c_function_context): Rename for consistency.
6362         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6363         * c-tree.h (push_c_function_context, pop_c_function_context,
6364         mark_c_function_context): Rename for consistency.
6365         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6366         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6367         * function.c (init_lang_status, save_lang_status,
6368         restore_lang_status, mark_lang_status, free_lang_status):
6369         Move to langhooks.h.
6370         (push_function_context_to, pop_function_context_from,
6371         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6372         Update.
6373         * function.h (init_lang_status, save_lang_status,
6374         restore_lang_status, mark_lang_status, free_lang_status):
6375         Move to langhooks.h.
6376         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6377         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6378         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6379         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6380         (LANG_HOOKS_INITIALIZER): Update.
6381         (lhd_do_nothing_f): New.
6382         * langhooks.h (struct lang_hooks_for_functions): New.
6383         (struct lang_hooks): New hooks.
6384         * langhooks.c (lhd_do_nothing_f): New.
6385 objc:
6386         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6387         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6388
6389 2002-04-19  David S. Miller  <davem@redhat.com>
6390
6391         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6392         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6393
6394 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6395
6396         PR optimization/3756
6397         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6398         x = ((int) y < 0) ? cst1 : cst2.
6399
6400 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6401
6402         PR c/6358
6403         * function.c: Reapply patch for c/6358.
6404         (expand_function_end): Copy decl_rtl's mode, not
6405         current_function_return_rtx mode.
6406
6407 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6408
6409         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6410         targets.
6411
6412 2002-04-19  Tom Tromey  <tromey@redhat.com>
6413
6414         * doc/install.texi (Specific): Update status of Solaris 2.8.
6415         For PR libgcj/6158.
6416
6417 2002-04-19  Andreas Schwab  <schwab@suse.de>
6418
6419         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6420         (PUT_REAL): Restore old definition.
6421
6422 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6423             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6424
6425         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6426         binutils 2.11.2 and higher generate smaller binaries than Sun's
6427         native tools.
6428
6429 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6430
6431         PR c++/6352
6432         * toplev.c (rest_of_compilation): Do not defer functions for which
6433         TREE_SYMBOL_REFERENCED has already been set.
6434
6435 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6436
6437         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6438         alternative.
6439
6440 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6441
6442         * builtins.c: Include langhooks.h.
6443         (lang_type_promotes_to): Remove.
6444         (expand_builtin_va_arg): Use new hook.
6445         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6446         (simple_type_promotes_to): Move to c-typeck.c.
6447         * c-common.h (simple_type_promotes_to): Remove.
6448         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6449         * c-format.c: Include langhooks.h.
6450         (check_format_types): Update.
6451         * c-tree.h (c_type_promotes_to): New.
6452         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6453         (type_lists_compatible_p): Update.
6454         * langhooks-def.h (lhd_type_promotes_to): New.
6455         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6456         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6457         * langhooks.c (lhd_type_promotes_to): New.
6458         * langhooks.h (struct lang_hooks_for_types): New hook.
6459         * tree.h (lang_type_promotes_to): Remove.
6460 objc:
6461         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6462
6463 2002-04-18  Richard Henderson  <rth@redhat.com>
6464
6465         * function.c: Revert patch for c/6358.
6466
6467 2002-04-18  Richard Henderson  <rth@redhat.com>
6468
6469         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6470         blocks.  Handle multiple references to the TRAP block.  Handle
6471         non-adjacent THEN and OTHER blocks.
6472
6473 2002-04-18  Richard Henderson  <rth@redhat.com>
6474
6475         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6476         crash with no type for by-mode libcalls.
6477
6478         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6479
6480 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6481
6482         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6483         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6484         the register windows.
6485
6486 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6487
6488         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6489         appropriate.  Document need for extended precision even when
6490         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6491         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6492         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6493         instead of relying on later syntax error when REAL_WIDTH > 5.
6494         * real.c: Define NE based only on whether or not we have a
6495         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6496         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6497         define GET_REAL and PUT_REAL as simple memcpy operations; no
6498         need to byteswap or round.
6499         Use #error instead of #ifdef-ing out the entire file, for
6500         prompt error detection.
6501
6502         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6503
6504 2002-04-18  David S. Miller  <davem@redhat.com>
6505
6506         * config/sparc/sparc.h (BRANCH_COST): Define.
6507
6508         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6509         does it.
6510
6511 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6512
6513         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6514         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6515         propagate_block calls after relaxation loop using new variable
6516         stabilized_prop_flags.
6517
6518 2002-04-18  Richard Henderson  <rth@redhat.com>
6519
6520         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6521         (ia64_va_arg): Expect variable sized types by reference.
6522         * config/ia64/ia64-protos.h: Update.
6523         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6524         ia64_function_arg_pass_by_reference.
6525
6526 2002-04-18  Richard Henderson  <rth@redhat.com>
6527
6528         * ifcvt.c: Include except.h.
6529         (block_has_only_trap): Break out from find_cond_trap.
6530         (find_cond_trap): Use it.  Always delete the trap block.
6531         (merge_if_block): Allow then block null.  Be less simplistic about
6532         what insns can end a block.
6533         * Makefile.in (ifcvt.o): Depend on except.h.
6534
6535         * config/ia64/ia64.md (trap, conditional_trap): New.
6536
6537 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6538
6539         PR c/6358
6540         * function.c (assign_parms): Assign hard current_function_return_rtx
6541         register here...
6542         (expand_function_end): ...not here.
6543
6544 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6545
6546         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6547         * c-tree.h (c_incomplete_type_error): New.
6548         * c-typeck.c (require_complete_type, build_component_ref): Update.
6549         (incomplete_type_error): Rename.
6550         * langhooks-def.h (lhd_incomplete_type_error): New.
6551         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6552         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6553         * langhooks.c (lhd_incomplete_type_error): New.
6554         * langhooks.h (struct lang_hooks_for_types): New hook.
6555         * tree.c (size_in_bytes): Use new hook.
6556         * tree.h (incomplete_type_error): Remove.
6557 objc:
6558         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6559
6560 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6561
6562         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6563         TARGET_FLOAT_FORMAT blocks.
6564
6565 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6566
6567         * doc/install.texi (Downloading the source): Do not mention Chill
6568         any longer, but mention Ada.
6569         (Configuration): Do not mention Chill any longer.
6570
6571 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6572
6573         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6574
6575 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6576
6577         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6578         in last patch.
6579
6580 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6581
6582         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6583         instead of unsigned_type.
6584
6585 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6586
6587         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6588         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6589         later.
6590
6591 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6592
6593         * attribs.c (vector_type_node_list): New static variable.
6594         (handle_vector_size_attribute): Use it to avoid generating a
6595         new type node each time we are called.
6596
6597         * combine.c (subst): Avoid trying to make a vector mode subreg of
6598         an integer constant.
6599         (gen_lowpart_for_combine): Likewise.
6600
6601 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6602             Jakub Jelinek  <jakub@redhat.com>
6603
6604         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6605         for integer constant c (if x has unsigned type or sign bit is not
6606         set in c).  This folds the zero/sign extension into the bit-wise and
6607         operation.
6608
6609 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6610
6611         PR middle-end/6205
6612         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6613         otherwise xorps.
6614
6615 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6616
6617         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6618
6619 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6620
6621         * gcc.c (read_specs): Detect and fail if an attempt is made to
6622         rename a spec string to an already existing string.
6623
6624 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6625
6626         * config/s390/s390.c (legitimize_pic_address): Do not generate
6627         illegal address constant without CONST.
6628
6629 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6630
6631         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6632         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6633
6634 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6635
6636         PR optimization/6305
6637         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6638         to make sure previous reloads are taken into account.  Generate
6639         better code if one operand is an in-range immediate constant.
6640
6641 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6642
6643         * doc/install.texi (Building): libgcj requires GNU make.
6644
6645 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6646
6647         PR bootstrap/6315
6648         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6649         even if hard quad and register is not floating.
6650         (movtf reg<-mem split): Disallow splitting if hard quad and
6651         register is floating.
6652         (movtf mem<-reg split): Likewise.
6653         * config/sparc/sparc.c (fp_register_operand): New predicate.
6654         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6655
6656 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6657
6658         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6659         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6660         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6661         UNPROTOIZE on command line.
6662         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6663         (in_system_include_dir): Use cpp_include_defaults (defined in
6664         cppdefault.o).
6665         * unprotoize.c: Delete file.
6666
6667 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6668
6669         * config/rs6000/altivec.h (vec_ld): Add array variants.
6670         (vec_lde): Same.
6671         (vec_ldl): Same.
6672
6673 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6674             Aldy Hernandez <aldyh@redhat.com>
6675
6676         * config/rs6000/altivec.h: Define __ALTIVEC__.
6677         (bool): New.
6678         (__pixel): New.
6679         (pixel): New.
6680         (vec_cfux): New.
6681         (vec_vmaddfp): New.
6682         (vec_vsldoi): New.
6683         Add parentheses to all macro arguments.
6684
6685 2002-04-16  Richard Henderson  <rth@redhat.com>
6686
6687         PR c++/6320
6688         * except.c (remove_eh_handler): Insert inner regions at beginning
6689         of sibling chain.  Refactor expressions.
6690
6691 2002-04-16  Richard Henderson  <rth@redhat.com>
6692
6693         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6694         * config/sparc/sol2-gas-bi.h: New file.
6695         * config.gcc (sparc*-solaris): Add it as needed.
6696         * configure.in (AS_SPARC64_FLAG): Remove check.
6697         * config.in, configure: Regenerate.
6698
6699         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6700
6701 2002-04-16  Richard Henderson  <rth@redhat.com>
6702
6703         * config/mips/mips.c (override_options): Don't override N32 for
6704         a 64-bit ISA.
6705
6706         PR 6202
6707         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6708         (HILO_delay): Set can_delay false.
6709
6710 2002-04-16  Dale Johannesen <dalej@apple.com>
6711
6712         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6713         instruction addresses.
6714         (rs6000_output_function_epilogue): Likewise.
6715
6716 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6717
6718         * c-parse.in (poplevel, compstmt_start,
6719         compstmt_primary_start): Add ending ';', in accordance
6720         with POSIX.
6721
6722 2002-04-16  Richard Henderson  <rth@redhat.com>
6723
6724         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6725         Adjust tm_file order to get TARGET_DEFAULT set properly.
6726         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6727         * doc/install.texi (sparc-solaris): Update.
6728
6729 2002-04-16  Dale Johannesen <dalej@apple.com>
6730
6731         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6732         comparison operands do not match each other or if modes of
6733         conditions do not match result.
6734
6735 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6736
6737         PR target/6305
6738         * config/s390/s390.md (mulsidi3): Set both subregs of the
6739         multiword register.
6740
6741 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6742
6743         * config/rs6000/altivec.h (vec_addc): Type check.
6744
6745 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6746
6747         PR middle-end/6279
6748         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6749
6750         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6751
6752 2002-04-15  Richard Henderson  <rth@redhat.com>
6753
6754         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6755         call_really_used_regs too.
6756
6757 2002-04-15  Richard Henderson  <rth@redhat.com>
6758
6759         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6760
6761 2002-04-15  David S. Miller  <davem@redhat.com>
6762
6763         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6764         as being CLOBBERed.
6765
6766 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6767
6768         PR c/6290
6769         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6770         CONST_VECTOR is { 0, ... 0 }.
6771
6772 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6773
6774         * doc/install.texi (Installing GCC: Configuration): Clarify
6775         the only supported ways to configure gcc.
6776
6777 2002-04-15  Roland McGrath  <roland@frob.com>
6778
6779         * config.gcc (alpha*-*-gnu*): New target configuration.
6780         * config/alpha/gnu.h: New file for it.
6781         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6782
6783 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6784
6785         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6786         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6787         * tree.h (expand_start_stmt_expr): Update prototype.
6788         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6789         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6790         on the STMT_EXPR created for the inline function.
6791
6792 2002-04-15  Richard Henderson  <rth@redhat.com>
6793
6794         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6795         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6796         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6797         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6798         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6799         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6800         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6801         Define __gnu_linux__, not gnu_linux.
6802         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6803
6804 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6805
6806         Remove Chill front end.
6807         * gcc.c (default_compilers): Remove Chill entries.
6808         * ch: Remove directory.
6809         * doc/frontends.texi: Remove information about Chill.
6810         * doc/sourcebuild.texi: Likewise.
6811         * doc/standards.texi: Likewise.
6812
6813 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6814
6815         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6816         (LONGLONG_STANDALONE): Define.
6817
6818 2002-04-15  David S. Miller  <davem@redhat.com>
6819
6820         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6821         Call emit_library_call with LCT_NORMAL.
6822         (sparc_initialize_trampoline): Use LCT_foo instead of
6823         magic constant in emit_library_call invocations.
6824         (sparc64_initialize_trampoline): Likewise.
6825         (sparc_profile_hook): Likewise.
6826         * config/sparc/sparc.md: Likewise.
6827
6828         * config/sparc/sparc.c (sparc_extra_constraint_check):
6829         Fix type of argument 'c'.
6830         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6831         Likewise.
6832
6833 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6834
6835         * diagnostic.h (output_buffer_state): Redefine.
6836         (output_format_decoder): New macro.
6837         (output_prefixing_rule): Likewise.
6838         (output_line_cutoff): Likewise.
6839         (diagnostic_format_decoder): Adjust.
6840         (diagnostic_prefixing_rule): Likewise.
6841         (diagnostic_line_cutoff): Likewise.
6842         (diagnostic_state): Likewise.
6843         (diagnostic_kind_count): Likewise.
6844         (diagnostic_buffer): Now a macro.
6845
6846         * diagnostic.c (diagnostic_buffer): Remove definition.
6847         (output_is_line_wrapping): Adjust.
6848         (set_real_maximum_length): Likewise.
6849         (output_set_maximum_length): Likewise.
6850         (init_output_buffer): Likewise.
6851         (lhd_print_error_function): Likewise.
6852         (output_do_verbatim): Likewise.
6853
6854 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6855
6856         * cpperror.c (print_location): Don't print include chain
6857         if line == 0.
6858         (cpp_begin_message): Update to use DL_ macros.
6859         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6860         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6861         cpp_notice, cpp_notice_from_errno): Remove.
6862         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6863         level.
6864         (cpp_errno): New.
6865         * cppexp.c (CPP_ICE): Remove.
6866         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6867         lex, integer_overflow, _cpp_parse_expr): Update.
6868         * cppfiles.c (read_include_file, find_include_file,
6869         handle_missing_header, _cpp_read_file, remap_filename): Update.
6870         * cpphash.h (enum error_type): Remove.
6871         (_cpp_begin_message): Update.
6872         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6873         cpp_handle_option, cpp_post_options): Update.
6874         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6875         skip_whitespace, parse_identifier, parse_slow, parse_string,
6876         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6877         cpp_interpret_charconst): Update.
6878         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6879         lex_macro_node, do_undef, glue_header_name, parse_include,
6880         do_include_common, read_flag, do_line, do_linemarker, do_ident,
6881         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6882         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6883         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6884         _cpp_pop_buffer, do_diagnostic): Update.
6885         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6886         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6887         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6888         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6889         cpp_notice, cpp_notice_from_errno): Remove.
6890         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6891         level.
6892         (cpp_errno): New.
6893         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6894         collect_args, enter_macro_context, save_parameter, parse_params,
6895         _cpp_create_definition, check_trad_stringification,
6896         cpp_macro_definition): Update.
6897         * cppmain.c (cpp_preprocess_file): Update.
6898         * fix-header.c (read_scan_file): Update.
6899
6900 2002-04-14  Andreas Schwab  <schwab@suse.de>
6901
6902         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6903
6904 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6905
6906         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6907
6908 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6909
6910         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6911         not gnu_hurd.
6912
6913 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
6914
6915         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6916
6917 2002-04-13      Joel Sherrill <joel@OARcorp.com>
6918
6919         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
6920         sparc-elf and sparc-rtems targets.
6921
6922 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6923
6924         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6925         defined, and __gnu_hurd__ wherever __GNU__ is defined.
6926         * arm/linux-elf.h: Likewise.
6927         * cris/aout.h: Likewise.
6928         * cris/linux.h: Likewise.
6929         * i370/linux.h: Likewise.
6930         * i386/gnu.h: Likewise.
6931         * i386/linux-aout.h: Likewise.
6932         * i386/linux-oldld.h: Likewise.
6933         * i386/linux.h: Likewise.
6934         * i386/linux64.h: Likewise.
6935         * ia64/linux.h: Likewise.
6936         * m68k/linux-aout.h: Likewise.
6937         * m68k/linux.h: Likewise.
6938         * mips/linux.h: Likewise.
6939         * pa/pa-linux.h: Likewise.
6940         * pj/linux.h: Likewise.
6941         * rs6000/sysv4.h: Likewise.
6942         * s390/linux.h: Likewise.
6943         * sh/linux.h: Likewise.
6944         * sparc/linux-aout.h: Likewise.
6945         * sparc/linux.h: Likewise.
6946         * sparc/linux64.h: Likewise.
6947         * xtensa/linux.h: Likewise.
6948
6949 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
6950
6951         * stmt.c (check_unique_operand_names): Expect operand names to
6952         be strings rather than identifiers.  Use simple_cst_equal to
6953         compare them.
6954         (resolve_operand_name_1): Make same identifier to string change here.
6955         * c-parse.in (asm_operand): Convert a named operand into a string.
6956         * cp/parse.y (asm_operand): Likewise.
6957
6958 2002-04-13  Andreas Schwab  <schwab@suse.de>
6959
6960         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6961
6962 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
6963
6964         Revert these changes:
6965
6966         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
6967
6968         PR c++/5571
6969         * stor-layout.c (layout_decl): Reset the RTL for the decl.
6970
6971 2002-04-12  Richard Henderson  <rth@redhat.com>
6972
6973         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6974         (sparc*-*-solaris): Clean up header files.
6975         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6976         and plan on generating 64-bit code.
6977         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6978         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6979         * config/sparc/sol2-sld-64.h: Rename ...
6980         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
6981         for AS_SPARC64_FLAG not defined.
6982         * config/sparc/sol2-gld-bi.h: New.
6983         * config/sparc/sol2-sld.h: Remove.
6984         * config/sparc/sol26-sld.h: New.
6985         * config/sparc/sol2.h: Tidy comments.
6986         * doc/install.texi: Document sparc-solaris configury changes.
6987
6988 2002-04-12  Richard Henderson  <rth@redhat.com>
6989
6990         * recog.c (offsettable_address_p): Match the logic in adjust_address.
6991
6992         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6993         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
6994
6995 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6996
6997         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6998
6999 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
7000
7001         * pa.c (pa_can_combine_p): Call extract_insn before calling
7002         constrain_operands.
7003
7004 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
7005
7006         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
7007         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
7008         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7009         (CPP_PREDEFINES): Handle __declspec.
7010         * config/i386/t-interix (USER_H): Remove.
7011
7012 2002-04-12  DJ Delorie  <dj@redhat.com>
7013
7014         * integrate.c (compare_blocks): Make comparisons safe for when
7015         sizeof(int) < sizeof(char *).
7016         (find_block): Likewise.
7017
7018 2002-04-12  Jan Hubicka  <jh@suse.cz>
7019             David Edelsohn  <edelsohn@gnu.org>
7020
7021         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
7022         registers.
7023         (symbol_ref_operand): New.
7024         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
7025         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
7026
7027 2002-04-12  Andreas Schwab  <schwab@suse.de>
7028
7029         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
7030         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
7031         overrides the definition in config/svr4.h.
7032
7033 2002-04-12      Eric Norum <eric.norum@usask.ca>
7034
7035         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
7036         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
7037         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
7038         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
7039         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
7040         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
7041         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
7042         definitions to config/rtems.h and make the targets more similar.
7043
7044 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7045
7046         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7047         POINTERS_EXTEND_UNSIGNED.
7048         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7049         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7050
7051         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7052         not specified.
7053
7054 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
7055
7056         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7057         depends on TARGET_SHMEDIA, not TARGET_SH5.
7058
7059 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
7060
7061         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7062         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7063
7064 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
7065
7066         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7067         no r0 clobber.
7068
7069 2002-04-12  Andreas Schwab  <schwab@suse.de>
7070
7071         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7072
7073 2002-04-12  Richard Henderson  <rth@redhat.com>
7074
7075         PR bootstrap/4191
7076         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7077
7078         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7079         modes spanning multiple hard regs.
7080
7081         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7082
7083 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7084
7085         * pa.c (pa_output_function_prologue): Don't accumulate the total
7086         number of code bytes when using TARGET_64BIT, or gas, SOM and not
7087         the portable runtime.
7088         (output_deferred_plabels): Handle 64bit plabels.
7089         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7090         generating pic code using the GAS assembler for object formats that
7091         are not SOM (ie., ELF32 and ELF64).
7092         (output_millicode_call): Check attribute type if attribute length is 28.
7093         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
7094         dbr_sequence_length once.
7095         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7096         dbr_sequence_length once.
7097         * pa.h (TARGET_SOM): Define if not defined.
7098         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7099         with GAS and not SOM.
7100         (jump, call_internal_reg, call_value_internal_reg): Likewise.
7101         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
7102
7103 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7104
7105         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7106         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7107         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7108         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7109         elfos.h and dbxelf.h values are fine now.
7110         * config/i386/freebsd.h, config/alpha/freebsd.h
7111         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7112
7113 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7114
7115         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7116         or set Acpu or Amachine.  Reformat.
7117         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7118         define.
7119         (LINK_SPEC): Do not need to undef.
7120         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7121         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7122         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7123         define.
7124         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7125         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7126         (LINK_SPEC): Do not need to undef.
7127         (DONT_USE_BUILTIN_SETJMP): Do not define.
7128         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7129         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
7130         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7131         Remove trailing spaces.
7132         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7133         __ELF__, or set Acpu or Amachine.  Reformat.
7134         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7135         define.
7136
7137 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7138
7139         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7140         all other *-*-freebsd* targets.
7141
7142 2002-04-11  Richard Henderson  <rth@redhat.com>
7143
7144         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7145
7146 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7147
7148         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7149         Include {cpu}/{cpu}.h thru tm_file.
7150         (alpha*-*-linux*ecoff): Remove target.
7151         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7152         (LINK_SPEC): Remove, is not OS independent.
7153         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7154         (LINK_SPEC): Do not need to #undef any longer.
7155         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7156         any longer.
7157         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7158         __ELF__.
7159         (LINK_SPEC): Moved here from alpha/elf.h.
7160         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7161         SUB_CPP_PREDEFINES.
7162         * config/alpha/linux-ecoff.h: Remove.
7163         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7164         (CPP_SPEC): Define _POSIX_SOURCE as needed.
7165         (CPP_SUBTARGET_SPEC): Do not define.
7166         (LINK_SPEC): Do not need to #undef any longer.
7167         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7168         * config/alpha/vms.h: Likewise.
7169
7170 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
7171
7172         * doc/extend.texi: Remove old claim that typedefs cannot have
7173         an alignment attribute.
7174
7175 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7176
7177         PR optimization/6177
7178         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7179         bitpos is 0 and bitsize CONCAT size.
7180
7181 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7182
7183         PR c/6223
7184         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7185
7186 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
7187
7188         * config/alpha/freebsd.h: Minor reformatting.
7189         (CPP_SPEC): Define ELF and add cpp_subtarget.
7190         (ASM_SPEC): No longer needed.
7191
7192 2002-04-11  Richard Henderson  <rth@redhat.com>
7193
7194         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7195         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
7196         (dimode mem/zero splitter): New.
7197
7198 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
7199
7200         * config/cris/cris.c (cris_override_options): Tweak error message
7201         for PIC not implemented.
7202
7203         * config/cris/cris.h: Tweak comments related to parameter-passing.
7204
7205         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7206
7207 2002-04-10  Richard Henderson  <rth@redhat.com>
7208
7209         * except.c (add_ehl_entry): Allow duplicates after landing pad
7210         creation.
7211
7212 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
7213
7214         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7215
7216 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
7217
7218         * c-decl.c (c_init_decl_processing): Move generation of
7219         decls for g77_integer_type_node and friends from here ...
7220         * c-common.c (c_common_nodes_and_builtins): ... to here.
7221
7222 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
7223
7224         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7225         is only used as frame pointer when frame_pointer_needed is true.
7226
7227 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
7228
7229         PR target/817
7230         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7231         for the fact that the pool entry uses two words.
7232         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
7233         1k bytes.
7234         (movdf_soft_insn): Similarly.
7235         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7236         for the fact that the pool entry uses three words.
7237
7238 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
7239
7240         * config/mips/mips.c (mips_va_arg): When using the struct version
7241         of the EABI va_list, allow arguments in the register save area to
7242         take up less room than a stack argument.
7243
7244 2002-04-10  Richard Henderson  <rth@redhat.com>
7245
7246         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7247         if EXPAND_INITIALIZER.
7248
7249 2002-04-09  Richard Henderson  <rth@redhat.com>
7250
7251         * config/alpha/alpha.md (movdi_er_maybe_g): New.
7252         * config/alpha/alpha.c (alpha_expand_mov): Use it.
7253
7254 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
7255
7256         PR optimization/6233
7257         * rtlanal.c (pure_call_p): New function.
7258         * rtl.h (pure_call_p): Declare.
7259         * loop.c (prescan_loop): Use it to set has_nonconst_call.
7260         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7261
7262 2002-04-09  Eric Christopher  <echristo@redhat.com>
7263
7264         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7265         information to .comm directive.
7266
7267 2002-04-09  Richard Henderson  <rth@redhat.com>
7268
7269         PR c/5078
7270         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7271
7272 2002-04-09  Richard Henderson  <rth@redhat.com>
7273
7274         * basic-block.h (flow_delete_block_noexpunge): Declare.
7275         (expunge_block_nocompact): Declare.
7276         * cfg.c (expunge_block_nocompact): Split out from ...
7277         (expunge_block): ... here.
7278         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7279         (flow_delete_block_noexpunge): Split out from ...
7280         (flow_delete_block): ... here.
7281         * cfgcleanup.c (delete_unreachable_blocks): Compact while
7282         removing dead blocks.
7283         * except.c (exception_handler_labels): Remove.
7284         (exception_handler_label_map): New.
7285         (struct eh_region): Add aka member.
7286         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7287         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7288         (for_each_eh_label, for_each_eh_label_1): New.
7289         (init_eh): Register exception_handler_label_map.
7290         (free_eh_status): Use free_region.
7291         (find_exception_handler_labels): Use the map, not the list.
7292         (remove_exception_handler_label): Likewise.
7293         (maybe_remove_eh_handler): Likewise.
7294         (remove_eh_handler): Use the region aka bitmap.
7295         * except.h (exception_handler_labels): Remove.
7296         (for_each_eh_label): Declare.
7297         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7298         * loop.c (invalidate_loops_containing_label): New.
7299         (find_and_verify_loops): Use it.  Use for_each_eh_label.
7300         * sched-rgn.c (is_cfg_nonregular): Use
7301         current_function_has_exception_handlers.
7302
7303 2002-04-09  Richard Henderson  <rth@redhat.com>
7304
7305         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7306         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7307         Do not return changed status.
7308         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7309         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7310         New functions that do return changed status.
7311         * sbitmap.h: Update decls.
7312         * gcse.c, lcm.c: Use _cg functions as needed.
7313
7314 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7315
7316         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7317         (sh64-*-elf*, sh-*-rtemself*): Likewise.
7318         * config/sh/embed_bb.c: New file.
7319         * config/sh/embed-elf.h: New file.
7320         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7321         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
7322         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7323         __PTRDIFF_TYPE__ .
7324         (SUBTARGET_CPP_PTR_SPEC): Don't define.
7325         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7326         Add subtarget_asm_endian_spec.
7327         (ASM_SPEC): Use subtarget_asm_endian_spec.
7328         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7329         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7330         (WCHAR_UNSIGNED): Define.
7331         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7332         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7333         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7334         Fix value.
7335         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7336         (sh_adjust_cost): Likewise.
7337         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7338         __PTRDIFF_TYPE__ .
7339         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7340         (WCHAR_TYPE_SIZE): Likewise.
7341         (ASM_SPEC): Use subtarget_asm_endian_spec.
7342         (SH_ELF_WCHAR_TYPE): #undef/ #define.
7343         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7344         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7345         (MAX_WCHAR_TYPE_SIZE): Don't #define .
7346         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7347         (USER_LABEL_PREFIX): Don't #undef /#define .
7348         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7349         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7350         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7351         (ASM_SPEC): Likewise.
7352         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7353         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7354         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7355         (LIB2FUNCS_EXTRA): Define.
7356         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7357         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7358         (LIB1ASMFUNCS_CACHE): Define.
7359         (LIB2FUNCS_EXTRA): Redefine empty.
7360
7361 2002-04-08  Richard Henderson  <rth@redhat.com>
7362
7363         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7364
7365 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7366
7367         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7368         and optimize for size.
7369         (__do_global_ctors): Fix pointer comparison.
7370         (__do_global_dtors): Likewise.
7371
7372 2002-04-09  David S. Miller  <davem@redhat.com>
7373
7374         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7375         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7376         allow reloading pseudos.
7377         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7378         * config/sparc/sparc-protos.h: Declare it.
7379
7380         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7381         unsigned comparison warning.
7382         (output_restore_regs): Mark leaf_function as unused.
7383
7384 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7385
7386         * expr.c (is_aligning_offset): New function.
7387         (expand_expr, case COMPONENT_EXPR): Call it.
7388
7389 2002-04-08  David S. Miller  <davem@redhat.com>
7390
7391         PR target/6082
7392         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7393
7394         Make init_priority work on Sparc when using GNU ld.
7395         * config/sparc/linux.h, config/sparc/linux64.h,
7396         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7397         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7398         * config/sparc/sol2-gld.h: New file to do the same.
7399         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7400         sparc/sol2-gld.h to tm_file.
7401
7402         PR optimization/4328
7403         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7404         * doc/md.texi: Document it.
7405         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7406         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7407         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7408         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7409         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7410
7411 2002-04-08  Andreas Jaeger  <aj@suse.de>
7412
7413         * stmt.c (expand_asm_operands): Revert last patch from Richard
7414         Henderson.
7415
7416 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7417
7418         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7419         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7420
7421 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7422
7423         * doc/contrib.texi (Contributors): Add David O'Brien.
7424
7425 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7426
7427         * configure.in (auto-build.h): Use target_alias and build_alias
7428         when running configure.
7429         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7430         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7431         * configure: Regenerate.
7432
7433 2002-04-07  David S. Miller  <davem@redhat.com>
7434
7435         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7436
7437 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7438
7439         PR 5933
7440         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7441         generating 32-bit pic code.
7442
7443 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7444
7445         * cppinit.c (cpp_create_reader): Initialize
7446         discard_comments_in_macro_exp.
7447         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7448         (cpp_handle_option): Handle "-CC" option.
7449         * cpplex.c (save_comment): If saving a C++ comment in
7450         a directive, convert it to a C comment.
7451         (_cpp_lex_direct): Pass second comment start character to
7452         save_comment to indicate comment type.
7453         * cpplib.c (_cpp_handle_directive): If processing
7454         a "#define" directive and discard_comments_in_macro_exp
7455         is false,  re-enable saving of comments.
7456         (lex_macro_node): If discard_comments_in_macro_exp is false,
7457         discard any comments before the macro identifier.
7458         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7459         member.
7460         * cppmacro.c (cpp_get_token): If expanding a macro while
7461         processing a directive, discard any comments we might encounter.
7462         (parse_params): If discard_comments_in_macro_exp is false,
7463         ignore comments in the macro parameter list.
7464         * gcc.c (cpp_unique_options): Add "-CC" option.
7465         (option_map): Map "--comments-in-macros" to "-CC".
7466         * doc/cppopts.texi: Document "-CC" option.
7467         * f/lang-specs.h: Add "-CC" option.
7468         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7469         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7470         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7471         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7472         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7473         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7474
7475 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7476
7477         PR middle-end/6180
7478         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7479
7480 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7481
7482         PR c++/5571
7483         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7484
7485         PR opt/5120
7486         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7487         RTX_UNCHANGING_P for the functions arguments when a tail call
7488         is made.
7489
7490 2002-04-06  Jason Merrill  <jason@redhat.com>
7491
7492         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7493         (parse_options_and_default_flags): Set them appropriately.
7494         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7495
7496 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7497
7498         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7499         here.
7500
7501         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7502         semicolon.
7503
7504         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7505         types come in by-reference.  Fix typo in comment.
7506
7507 2002-04-05  David S. Miller  <davem@redhat.com>
7508
7509         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7510         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7511         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7512         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7513
7514 2002-04-05  David S. Miller  <davem@redhat.com>
7515
7516         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7517         are not going to emit return instructions, emit at least a nop
7518         for the sake of sane backtraces.
7519
7520 2002-04-05  Richard Henderson  <rth@redhat.com>
7521
7522         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7523
7524 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7525
7526         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7527
7528 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7529
7530         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7531         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7532         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7533
7534 2002-04-05  Andreas Schwab  <schwab@suse.de>
7535
7536         * c-convert.c: Include c-common.h.
7537         * Makefile.in (c-convert.o): Updated.
7538
7539 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7540
7541         * mklibgcc.in: Use separate libgcc.map for each multilib.
7542         * Makefile.in (distclean): Don't remove libgcc.map here.
7543
7544 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7545
7546         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7547         genmultilib invocation.
7548
7549 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7550
7551         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7552         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7553         to num_gprs for symmetry.
7554         * config/mips/mips.c: Adjust accordingly.
7555
7556 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7557
7558         * c-common.c (truthvalue_conversion): Rename, update.
7559         * c-common.h (c_common_truthvalue_conversion): New.
7560         * c-convert.c (convert): Update.
7561         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7562         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7563         * c-typeck.c (build_binary_op, build_unary_op,
7564         build_conditional_expr): Update.
7565         * fold-const.c (constant_boolean_node, fold): Use langhook.
7566         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7567         * langhooks.h (struct lang_hooks): New hook.
7568         * stmt.c (expand_decl_cleanup): Use langhook.
7569         * tree.h (truthvalue_conversion): Remove.
7570 objc:
7571         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7572
7573 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7574
7575         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7576         Add rules to make null object file.
7577
7578 2002-04-04  Jim Blandy  <jimb@redhat.com>
7579
7580         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7581         macro formal parameter names.
7582
7583 2002-04-04  David S. Miller  <davem@redhat.com>
7584
7585         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7586
7587 2002-04-04  Richard Henderson  <rth@redhat.com>
7588
7589         PR middle-end/5099
7590         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7591         Support copies into and out of memory.  Don't accept allows_reg
7592         and allows_mem as gospel.
7593
7594 2002-04-04  Richard Henderson  <rth@redhat.com>
7595
7596         PR opt/6165
7597         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7598         (write_dependence_p): Likewise.
7599
7600 2002-04-04  Richard Henderson  <rth@redhat.com>
7601
7602         * predict.c (estimate_bb_frequencies): Do frequency calculation
7603         with a volatile temporary.
7604
7605 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7606
7607         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7608
7609 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7610
7611         PR c++/6119
7612         * final.c (final_start_function): Don't bump profile_label_no here...
7613         (final_end_function): ...but here.
7614
7615 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7616
7617         * config/sparc/sparc.md (pic): New attribute.
7618         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7619         into stack slots.
7620         (split after do_builtin_setjmp_setup): New.
7621
7622 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7623
7624         PR fortran/6106
7625         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7626         change.
7627
7628 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7629
7630         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7631         UNITS_PER_WORD for zero sized aggregates.
7632
7633 2002-04-03  David S. Miller  <davem@redhat.com>
7634
7635         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7636         one-character spec for this, just use %(link_gcc_c_sequence).
7637
7638 2002-04-03  David S. Miller  <davem@redhat.com>
7639
7640         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7641         handling.
7642
7643 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7644
7645         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7646         (DWARF_FRAME_RETURN_COLUMN): Move.
7647         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7648         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7649         * pa.c (except.h, predict.h): Include.
7650         (FRP): Delete.
7651         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7652         (output_ascii): Add cast.
7653         (store_reg_modify): Revise to add frame notes.
7654         (set_reg_plus_d): Likewise.
7655         (compute_frame_size): Include space for eh data registers in frame if
7656         the current function calls eh_return.
7657         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7658         function calls eh_return.  Save eh data registers if the current
7659         function calls eh_return.  Fix code to add frame notes.  Emit
7660         blockage to prevent insns with frame notes being scheduled in the
7661         delay slot of calls.
7662         (hppa_expand_epilogue): Restore eh data registers and do final stack
7663         adjustment if the current function calls eh_return.  Don't add frame
7664         notes.
7665         (output_call): Revise for change in length of call insn.  Don't do
7666         return pointer adjustment for an unconditional jump in the delay slot
7667         of a call when using frame notes.
7668         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7669         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7670         (ARG_POINTER_CFA_OFFSET): Define.
7671         * pa.md (return_external_pic): New pattern.
7672         (prologue): Correct formatting.  Use return_external_pic if current
7673         function calls eh_return.
7674         (call_internal_symref, call_value_internal_symref,
7675         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7676         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7677         respectively.
7678         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7679
7680         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7681         list of targets to check using "nop" insn.
7682         * configure: Rebuilt.
7683
7684 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7685
7686         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7687
7688 2002-04-03  David S. Miller  <davem@redhat.com>
7689
7690         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7691         library sequence passed to the linker.
7692         (LINK_COMMAND_SPEC): Use it.
7693         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7694         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7695         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7696
7697 2002-04-03  Jason Merrill  <jason@redhat.com>
7698
7699         * except.c (struct eh_status): Remove protect_list.
7700         (begin_protect_partials, end_protect_partials): Remove.
7701         (add_partial_entry): Remove.
7702         * except.h: Remove prototypes.
7703
7704         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7705         expand_decl_cleanup_eh.
7706
7707         PR c++/5636
7708         * tree.h (CLEANUP_EH_ONLY): New macro.
7709         * stmt.c (expand_decl_cleanup_eh): New fn.
7710         (expand_cleanups): Check CLEANUP_EH_ONLY.
7711         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7712         Use expand_decl_cleanup_eh.
7713         (expand_stmt): Adjust.
7714         * c-common.h: Adjust prototype.
7715
7716 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7717
7718         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7719         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7720         (cris_target_asm_function_epilogue): Ditto.
7721         (cris_initial_frame_pointer_offset): Ditto.
7722         (cris_simple_epilogue): Ditto.
7723         (cris_expand_builtin_va_arg): Variable-size types come in
7724         by-reference.
7725
7726 2002-04-03  David S. Miller  <davem@redhat.com>
7727
7728         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7729         little-endian.
7730         (set_fast_math): Correct 'fsr' type.
7731
7732 2002-04-03  Richard Henderson  <rth@redhat.com>
7733
7734         PR opt/3569
7735         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7736         * toplev.c (check_global_declarations): Use it.
7737         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7738         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7739         (LANG_HOOKS_DECLS): Add it.
7740         * langhooks.c (lhd_warn_unused_global_decl): New.
7741         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7742         * c-objc-common.c (c_warn_unused_global_decl): New.
7743         * c-tree.h (c_warn_unused_global_decl): Declare.
7744         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7745
7746 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7747
7748         * langhooks-def.h (lhd_set_decl_assembler_name,
7749         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7750         (LANG_HOOKS_INITIALIZER): Update.
7751         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7752         * langhooks.h (struct lang_hooks): New hook.
7753         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7754         (lang_set_decl_assembler_name): Remove.
7755         (init_obstacks): Don't set hook.
7756         (decl_assembler_name): New function.
7757         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7758         (decl_assembler_name): New.
7759         (lang_set_decl_assembler_name): Remove.
7760
7761 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7762
7763         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7764         works properly with .hidden symbols.
7765         * configure: Rebuilt.
7766         * config.in: Rebuilt.
7767         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7768         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7769         properly with .hidden symbols.
7770
7771 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7772
7773         PR middle-end/6102
7774         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7775         USE argument.
7776
7777 2002-04-03  Richard Henderson  <rth@redhat.com>
7778
7779         PR opt/4120
7780         * sched-rgn.c (sets_likely_spilled): New.
7781         (sets_likely_spilled_1): New.
7782         (add_branch_dependences): Use it.
7783
7784 2002-04-02  Richard Henderson  <rth@redhat.com>
7785
7786         PR opt/4311
7787         * loop.h (LOOP_FIRST_PASS): New.
7788         * loop.c (strength_reduce): Mind it when deciding to unroll.
7789         * toplev.c (rest_of_compilation): Set it.
7790
7791 2002-04-02  David S. Miller  <davem@redhat.com>
7792
7793         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7794         mems_ok_for_ldd_peep when the order of the loads being examined
7795         is reversed.
7796         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7797         existing comment to increase comprehension of this situation.
7798
7799 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7800
7801         * config/sh/sh.md: Don't use union real_extract.
7802
7803 2002-04-02  Richard Henderson  <rth@redhat.com>
7804
7805         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7806
7807 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7808
7809         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7810         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7811         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7812         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7813         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7814         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7815         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7816         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7817         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7818         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7819         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7820         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7821         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7822         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7823         Include as many configury headers via tm_file as possible.  This
7824         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7825         * config/openbsd-oldgas.h: New file.
7826         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7827         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7828         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7829         config/i386/i386-coff.h, config/i386/i386-interix.h,
7830         config/i386/iscdbx.h, config/i386/linux-aout.h,
7831         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7832         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7833         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7834         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7835         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7836         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7837         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7838         config/i386/vxi386.h: Do not directly include configury headers.
7839         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7840         Directly include configury headers that are no longer automatically
7841         included by the above headers.
7842         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7843         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7844         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7845         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7846         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7847         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7848         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7849         (TARGET_VERSION): Define.
7850         * config/i386/beos-elf.h, config/i386/freebsd.h,
7851         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7852         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7853         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7854         config/i386/sco5.h, config/i386/sysv4.h
7855         (TARGET_VERSION): Do not need to protect.
7856         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7857         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7858         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7859         config/i386/i386-interix.h, config/i386/linux-aout.h,
7860         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7861         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7862         (YES_UNDERSCORES): Do not define - not needed.
7863         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7864         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7865         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7866         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7867         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7868         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7869         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7870         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7871
7872 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
7873             Richard Henderson  <rth@redhat.com>
7874
7875         PR c/5484
7876         * function.c (assign_temp): Accept either type or decl argument.
7877         Detect variables whose size is too large to fit into an integer.
7878         * stmt.c (expand_decl): Pass the decl, not the type.
7879
7880 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7881
7882         * protoize.c: Match include directory usage with cppdefault.c.
7883
7884 2002-04-03  Jeffrey A Law  (law@redhat.com)
7885             Hans-Peter Nilsson  <hp@bitrange.com>
7886
7887         * combine.c (simplify_comparison): Avoid narrowing a comparison
7888         with a paradoxical subreg when doing so would drop signficant bits.
7889
7890 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
7891
7892         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7893         if POINTERS_EXTEND_UNSIGNED is defined.
7894
7895 2002-04-02  Richard Henderson  <rth@redhat.com>
7896
7897         PR opt/3967
7898         * local-alloc.c (contains_replace_regs): LO_SUM may contain
7899         replace regs.
7900
7901 2002-04-02  Richard Henderson  <rth@redhat.com>
7902
7903         * doc/standards.texi: Document required freestanding libc entry points.
7904
7905 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
7906
7907         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7908         associated splitter.  Remove MQ constraint.
7909         (ctrdi_internal4): Correct CCmode clobber.
7910
7911 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7912
7913         * milli64.S ($$dyncall): New function.
7914         * t-linux (LIB1ASMFUNCS): Revise module list.
7915         (LIB1ASMSRC): Use pa/milli64.S.
7916
7917 2002-04-02  Richard Henderson  <rth@redhat.com>
7918
7919         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7920         rename solaris_sys_varargs_h.
7921
7922 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7923
7924         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7925         the same mode as its component.
7926
7927 2002-04-02  Richard Henderson  <rth@redhat.com>
7928
7929         PR opt/190
7930         * final.c (this_is_asm_operands): Export.
7931         * output.h (this_is_asm_operands): Declare.
7932         * config/i386/i386.c (print_operand): Error odd asm operands.
7933
7934 2002-04-02  Richard Henderson  <rth@redhat.com>
7935
7936         PR opt/420
7937         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7938
7939 2002-04-01  Richard Henderson  <rth@redhat.com>
7940
7941         PR target/1538
7942         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7943         * fixinc/fixincl.x: Rebuild.
7944
7945 2002-04-01  Richard Henderson  <rth@redhat.com>
7946
7947         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7948         (atomic_alloc, atomic_free): New.
7949         (SIZE, MASK_FOR, PTR_IN): New.
7950         (emergency_reg_state, emergency_reg_state_free): New.
7951         (emergency_labeled_state, emergency_labeled_state_free): New.
7952         (reg_state_alloced, labeled_state_alloced): New.
7953         (alloc_reg_state, free_reg_state): New.
7954         (alloc_label_state, free_label_state, free_label_states): New.
7955         (push, pop, dup_state_stack, free_state_stack): Use them.
7956         (desc_label_state): Likewise.
7957         (uw_frame_state_for): Free label states and state stack.
7958         (uw_update_reg_address): Eliminate warnings.
7959
7960 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
7961
7962         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7963         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7964
7965 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7966
7967         * c-decl.c (grokdeclarator): Update.
7968         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7969         * c-tree.h (c_mark_addressable): New.
7970         * c-typeck.c (default_function_array_conversion, build_unary_op,
7971         build_array_ref, convert_for_assignment): Update.
7972         (mark_addressable): Rename.
7973         * calls.c (try_to_integrate, expand_call): Use langhook.
7974         * expr.c (expand_expr): Use langhook.
7975         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7976         * langhooks.h (struct lang_hooks): New hook.
7977         * stmt.c (expand_asm_operands): Use langhook.
7978         * tree.h (mark_addressable): Remove.
7979 objc:
7980         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7981
7982 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7983
7984         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7985         in previous change.
7986
7987 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7988
7989         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7990         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7991
7992 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7993
7994         * c-common.c (unsigned_conversion_warning, convert_and_check,
7995         unsigned_type, signed_type, shorten_compare,
7996         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7997         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7998         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7999         New.
8000         * c-decl.c (grokdeclarator): Update.
8001         * c-format.c (check_format_types): Update.
8002         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8003         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8004         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
8005         * convert.c (convert_to_integer): Use new hooks.
8006         * expmed.c (make_tree): Use new hooks.
8007         * expr.c (store_expr): Use new hooks.
8008         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
8009         all_ones_mask_p, unextend, fold): Use new hooks.
8010         * langhooks.h (struct lang_hooks_for_types): New hooks.
8011         * tree.h (signed_or_unsigned_type, signed_type,
8012         unsigned_type): Remove.
8013 objc:
8014         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8015         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8016
8017 2002-03-31  Richard Henderson  <rth@redhat.com>
8018
8019         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
8020         (desc_frgr_mem): Fix reference to f16-f31.
8021
8022 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8023
8024         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
8025         RTVEC_ELT): Const-ify.
8026         * varray.h (VARRAY_CHECK): Const-ify.
8027         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
8028         ggc_mark_rtvec, ggc_mark): Const-ify.
8029
8030 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8031
8032         * diagnostic.c: Include langhooks-def.h.
8033         * Makefile.in (diagnostic.o): Update.
8034
8035 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8036
8037         * c-common.c (c_unsafe_for_reeval): Rename.
8038         * c-common.h (c_unsafe_for_reeval): Rename.
8039         * c-decl.c (finish_incomplete_decl): Rename.
8040         (c_init_decl_processing): Don't set langhook.
8041         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8042         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8043         * c-objc-common.c (c_objc_common_init): Don't set langhook.
8044         * c-tree.h (finish_incomplete_decl): Rename.
8045         * langhooks-def.h (lhd_unsafe_for_reeval): New.
8046         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8047         (LANG_HOOKS_INITIALIZER): Update.
8048         * langhooks.c (lhd_unsafe_For_reeval): New.
8049         * langhooks.h (struct langhooks): New hooks.
8050         * toplev.c (incomplete_decl_finalize_hook): Remove.
8051         (wrapup_global_declarations): Update.
8052         * tree.c (lang_unsafe_for_reeval): Remove.
8053         (unsafe_for_reeval): Update.
8054         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8055         Remove.
8056 objc:
8057         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8058         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8059
8060 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8061
8062         * diagnostic.c (print_error_function): Remove.
8063         (default_print_error_function): Rename.
8064         (report_error_function): Update.
8065         * diagnostic.h (print_error_function): Remove.
8066         (default_print_error_function): Remove.
8067         * langhooks-def.h (struct diagnostic_context): Predeclare.
8068         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8069         (LANG_HOOKS_INITIALIZER): Update.
8070         * langhooks.h (struct diagnostic context): Predeclare.
8071         (struct lang_hooks): New hook.
8072
8073 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8074
8075         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8076         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8077         !flag_pic.
8078         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8079         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8080         of PIC_OFFSET_TABLE_REGNUM thruout.
8081         * config/rs6000/rs6000.md: Likewise.
8082         * config/rs6000/darwin.h: Likewise.
8083
8084 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8085
8086         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8087         unsigned HOST_WIDE_INT, not unsigned int.
8088
8089 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8090
8091         PR middle-end/6096, middle-end/6098, middle-end/6099
8092         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8093         CODE_LABELs.
8094         (fill_slots_from_thread): Likewise.
8095
8096 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8097
8098         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8099         floating fields in float regs.
8100         (function_arg_record_value_2): Likewise.
8101
8102 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8103
8104         * config/mmix/mmix.md (define_constants): Remove misleading
8105         FIXME.  Add MMIX_fp_rO_OFFSET.
8106         ("nonlocal_goto_receiver"): Don't have stack-frame address of
8107         saved rO as part of the pattern.  Remove FIXME.
8108         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
8109         here, at output-time.
8110
8111 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8112
8113         PR middle-end/6100
8114         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8115         REG_BR_PRED.
8116         (output_v9branch): Likewise.
8117
8118 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8119
8120         * gcc.c: Revert previous patch for now.
8121         * config/i386/djgpp.h: Likewise.
8122
8123 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8124
8125         * config/mmix/crti.asm (_init): Register _fini with atexit.
8126         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8127
8128 2002-03-31  Richard Henderson  <rth@redhat.com>
8129
8130         PR target/3997
8131         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8132         (ASM_OUTPUT_DEF_FROM_DECLS): New.
8133
8134 2002-03-31  Richard Henderson  <rth@redhat.com>
8135
8136         * libgcc2.c (__bb_exit_func): Make static.
8137
8138         * config/alpha/alpha.md (trap): New.
8139
8140 2002-03-31  Richard Henderson  <rth@redhat.com>
8141
8142         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8143         promoted argument types; build trap.
8144         (expand_builtin_trap): New.
8145         (expand_builtin): Use it.
8146         * stmt.c (expand_nl_goto_receivers): Likewise.
8147         * expr.h (expand_builtin_trap): Declare.
8148         * libfuncs.h (LTI_abort, abort_libfunc): New.
8149         * optabs.c (init_optabs): Init abort_libfunc.
8150
8151 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8152
8153         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8154         (LINK_COMMAND_SPEC): ... from here.
8155         (init_gcc_specs): Duplicate it here too, omitting
8156         shared_name in the second copy.
8157         (init_spec): Test for duplicate
8158         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8159
8160 2002-03-30  David S. Miller  <davem@redhat.com>
8161
8162         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8163         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8164
8165 2002-03-30  Roger Sayle <roger@eyesopen.com>
8166             Richard Henderson  <rth@redhat.com>
8167
8168         * regmove.c (combine_stack_adjustments_for_block): Avoid
8169         emitting a stack adjustment of zero bytes.  Let delete_insn
8170         update bb->head.
8171
8172 2002-03-30  Richard Henderson  <rth@redhat.com>
8173
8174         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8175         (sparc_emitting_epilogue): New.
8176         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8177         * config/sparc/sparc-protos.h: Update.
8178         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8179         (TARGET_SWITCHES): Update.
8180         * config/sparc/sparc.md (return): Remove.
8181         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8182         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8183         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8184         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8185         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8186         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8187         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8188         Remove MASK_EPILOGUE.
8189         * doc/invoke.texi: Update.
8190
8191 2002-03-30  Daniel Berlin  <dan@dberlin.org>
8192
8193         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8194         CPP will start the file for us.
8195
8196 2002-03-30  Richard Henderson  <rth@redhat.com>
8197
8198         PR target/5446
8199         * config/ia64/ia64.c (group_barrier_needed_p): Special case
8200         prologue_allocate_stack.
8201         (ia64_single_set): Use insn codes for recognition of special
8202         cases, not rtl matching.
8203         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8204
8205 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
8206
8207         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8208
8209 2002-03-30  Richard Henderson  <rth@redhat.com>
8210
8211         PR target/6032
8212         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8213         or -fomit-frame-pointer with profiling.
8214         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8215         (FUNCTION_PROFILER): Do nothing.
8216         (PROFILE_HOOK): New.
8217         * config/sparc/sparc.c (sparc_override_options): Don't check
8218         code models for profiling.
8219         (sparc_function_profiler): Remove.
8220         (sparc_profile_hook): New.
8221         * config/sparc/sparc-protos.h: Update.
8222
8223 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8224
8225         PR optimization/6086
8226         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8227         of SUBREG of volatile MEM or because the MEM was mode dependent,
8228         return CLOBBER instead of unmodified SUBREG.
8229
8230 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
8231
8232         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8233         when not optimizing.
8234
8235         * toplev.c (rest_of_compilation): Cann mark_constant_function
8236         only when optimizing.
8237
8238         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8239         are NULL.
8240
8241         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8242         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8243         (try_optimize_cfg): clear all AUX fields.
8244
8245         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8246         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8247         (ix86_address_cost): Be prepared for SUBREGed registers.
8248         (legitimate_address_p): Accept SUBREGed registers.
8249
8250 2002-03-29  Richard Henderson  <rth@redhat.com>
8251
8252         PR target/5672
8253         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8254
8255 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8256
8257         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8258         for aggregate and TFmode types.
8259
8260 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8261
8262         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8263
8264 2002-03-29  Richard Henderson  <rth@redhat.com>
8265
8266         PR target/5886
8267         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8268         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8269
8270 2002-03-29  Richard Henderson  <rth@redhat.com>
8271
8272         PR target/6041
8273         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8274         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8275         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8276         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8277         conditional.
8278         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8279
8280 2002-03-29  Dale Johannesen <dalej@apple.com>
8281
8282         * loop.c (combine_movables): Do allow combination of pseudos.
8283
8284 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
8285
8286         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8287         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8288         No functional change except ...
8289         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
8290         * doc/install.texi (*-*-freebsd*): Document port configuration.
8291
8292 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8293
8294         * Makefile.in (convert.o, calls.o, expmed.o): Update.
8295         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8296         Use new hooks.
8297         * builtin-types.def (BT_PTRMODE): Update.
8298         * c-common.c (type_for_size): Rename c_common_type_for_size.
8299         (type_for_mode): Similarly.
8300         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8301         Use new hook.
8302         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8303         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8304         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8305         Redefine.
8306         * c-typeck.c (common_type, comptypes, default_conversion):
8307         Use new hooks.
8308         * calls.c: Include langhooks.h.
8309         (emit_library_call_value_1): Use new hooks.  Avoid redundant
8310         calls.
8311         * convert.c: Include langhooks.h
8312         (convert_to_pointer, convert_to_integer): Use new hooks.
8313         * except.c (init_eh): Similarly.
8314         * expmed.c: Include langhooks.h.
8315         (expand_mult_add): Use new hooks.
8316         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8317         try_casesi): Similarly.
8318         * fold-const.c (optimize_bit_field_compare, make_range,
8319         decode_field_reference, fold_truthop, fold): Similarly.
8320         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8321         put_var_into_stack): Similarly.
8322         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8323         LANG_HOOKS_TYPE_FOR_SIZE): New.
8324         (LANG_HOOKS_TYPES_INITIALIZER): Update.
8325         * langhooks.h (lang_hooks_for_types): New hooks.
8326         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8327         * tree.c (get_unwidened, get_narrower): Similarly.
8328         * tree.h (type_for_mode, type_for_size): Remove.
8329         * varasm.c (force_const_mem): Use new hooks.
8330         * utils2.c (nonbinary_modular_operation): Update.
8331 objc:
8332         * objc-act.c (handle_impent): Update.
8333         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8334         Redefine.
8335
8336 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
8337
8338         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8339         * config/ia64/ia64.c (basereg_operand): New.
8340         * config/ia64/ia64-protos.h (basereg_operand): Declare.
8341         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8342
8343 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8344
8345         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8346         unwind information when frame_pointer_needed.
8347         (mmix_assemble_integer): Tweak wording in comment.
8348
8349 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8350
8351         * Makefile.in (except.o): Update.
8352         * except.c: Include langhooks.h.
8353         (init_eh): Use langhook.
8354         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8355         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8356         (LANG_HOOKS_INITIALIZER): Update.
8357         * langhooks.h (lang_hooks_for_types): New.
8358         (struct lang_hooks): Add it.
8359         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8360         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8361 config:
8362         * alpha/alpha.c: Include langhooks.h.
8363         (alpha_build_va_list): Use langhook.
8364         * d30v/d30v.c: Include langhooks.h.
8365         (d30v_build_va_list): Use langhook.
8366         * i386/i386.c: Include langhooks.h.
8367         (ix86_build_va_list): Use langhook.
8368         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8369         * s390/s390.c: Include langhooks.h.
8370         (s390_build_va_list): Use langhook.
8371         * stormy16/stormy16.c: Include langhooks.h.
8372         (stormy16_build_va_list): Use langhook.
8373
8374 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8375
8376         PR c++/5964
8377         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8378         attributes.
8379         (length): Compute variable length for branches/calls/jumps here.
8380         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8381         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8382         define branch_type attribute.
8383         (divsi3_sp32): Maximum length is 6 not 7.
8384         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8385         call_address_untyped_struct_value_sp32,
8386         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8387         * config/sparc/sparc.c (empty_delay_slot): New function.
8388         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8389         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8390
8391 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8392
8393         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8394         nonzero_bits if not needed.
8395         (nonzero_bits) [XOR]: Likewise.
8396         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8397         reg_last_set_mode and mode are both MODE_INT, but not equal.
8398         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8399         in nonzero_bits_mode for MODE_INT modes.
8400
8401 2002-03-28  Richard Henderson  <rth@redhat.com>
8402
8403         PR target/5715
8404         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8405         to GAS.  Correct drift between alternatives.
8406
8407 2002-03-28  Richard Henderson  <rth@redhat.com>
8408
8409         PR target/6087
8410         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8411
8412 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8413
8414         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8415         emulation to the linker.
8416
8417 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8418
8419         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8420         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8421
8422 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8423
8424         * combine.c (simplify_and_const_int): Make sure to apply mask
8425         when force_to_mode returns a constant integer.  PR3311.
8426
8427 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8428
8429         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8430
8431 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8432
8433         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8434         and Objective-C Dialect Options.
8435
8436 2002-03-28  Richard Henderson  <rth@redhat.com>
8437
8438         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8439         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8440
8441 2002-03-28  Richard Henderson  <rth@redhat.com>
8442
8443         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8444         on to c_expand_body.
8445         * c-tree.h (finish_function): Update decl.
8446         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8447
8448 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8449
8450         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8451
8452 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8453
8454         * rtlanal.c: Include flags.h
8455         (may_trap_p): Do not mark FP operations if trapping
8456         if !flag_trapping_math
8457         * Makefile.in (rtlanal.o): Add dependency on flag.h
8458         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8459
8460 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8461
8462         * mips.md: Use dconst1, not 1.0, as first argument of
8463         REAL_VALUE_LDEXP.  Don't use union real_extract.
8464
8465 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8466
8467         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8468         rather than $target.  Heed program_prefix and
8469         program_transform_name.  Search for gas in cross-compiler case too.
8470         "test -x" rather than "test -f".
8471         (gcc_cv_ld): Likewise.
8472         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8473         (gcc_cv_objdump): Likewise.
8474         * configure: Regenerate.
8475
8476 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8477
8478         * Makefile.in (attribs.o): Update.
8479         * attribs.c: Include langhooks.h.
8480         (decl_attributes): Use langhook.
8481         * c-decl.c (insert_default_attributes): Rename.
8482         * c-tree.h (c_insert_default_attributes): New.
8483         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8484         (LANG_HOOKS_INITIALIZER): Update.
8485         * langhooks.h (struct lang_hooks): New hook.
8486         * tree.h (insert_default_attributes): Remove.
8487 objc:
8488         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8489
8490 2002-03-27  Andreas Schwab  <schwab@suse.de>
8491
8492         * config/i386/i386.c (classify_argument): Also check for
8493         QUAL_UNION_TYPE.
8494
8495 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8496
8497         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8498         any more.
8499
8500 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8501
8502         * i960.md (ret): Set PC.
8503         (nonlocal_goto): Fix expander.
8504         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8505         some jump or call.
8506
8507 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8508
8509         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8510         of libcall regions.
8511
8512 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8513
8514         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8515         assigning to BLOCK_FOR_INSN directly.
8516
8517 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8518
8519         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8520
8521 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8522
8523         * c-common.c (c_expand_expr): Fix prototype.
8524         * c-common.h (c_expand_expr): Always declare, update.
8525         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8526         * c-objc-common.c (c_objc_common_init): No global hook.
8527         * expr.c (expand_expr): Use langhook.
8528         * expr.h (enum expand_modifier): Conditionally declare.
8529         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8530         (LANG_HOOKS_INITIALIZER): Update.
8531         * langhooks.c (lhd_expand_expr): New.
8532         * langhooks.h (struct lang_hooks): New hook.
8533         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8534         (lang_independent_init): Don't default hook.
8535 objc:
8536         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8537
8538 2002-03-27  Richard Henderson  <rth@redhat.com>
8539
8540         PR target/6054
8541         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8542         TARGET_CONST_GP.  Simplify conditions.
8543
8544 2002-03-27  Richard Henderson  <rth@redhat.com>
8545
8546         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8547         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8548         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8549
8550 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8551
8552         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8553         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8554         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8555         Remove unnecessary masks.
8556         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8557         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8558         -mwindows, -mdll switches and their negations.
8559
8560 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8561
8562         * gcc-common.c (lang_mark_false_label_stack): Remove.
8563         * ggc.h (lang_mark_false_label_stack): Similarly.
8564
8565 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8566
8567         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8568
8569         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8570         or __rtems_ is defined.
8571
8572 2002-03-26  Richard Henderson  <rth@redhat.com>
8573
8574         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8575         if a non-trivial load was emitted.
8576         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8577         in high+extra+low case.
8578
8579 2002-03-26  Richard Henderson  <rth@redhat.com>
8580
8581         * config.gcc (sparc*-solaris): Use float_format=sparc.
8582
8583 2002-03-26  Richard Henderson  <rth@redhat.com>
8584
8585         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8586         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8587         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8588         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8589         (WINT_TYPE_SIZE): Fix at 32.
8590
8591 2002-03-26  Richard Henderson  <rth@redhat.com>
8592
8593         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8594         until after eh landing pad generation.
8595         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8596         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8597
8598 2002-03-26  Richard Henderson  <rth@redhat.com>
8599
8600         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8601
8602 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8603
8604         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8605         and warning switches.
8606         (cc1_options):  Likewise.
8607
8608 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8609
8610         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8611         Restore more of the signal context.  Set no_reg_stack_frame.
8612         * config/ia64/unwind-ia64.c (unw_state_record):
8613         Add no_reg_stack_frame, comments.
8614         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8615         (uw_update_context): Adjust bsp when unwinding from leaf,
8616         but not signal frame.
8617
8618 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8619
8620         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8621
8622 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8623
8624         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8625
8626 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8627
8628         PR target/5621
8629         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8630         "Add a pool_range attribute", which was lost during the ARM/Thumb
8631         merge.
8632
8633 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8634
8635         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8636         a register into the MAC16 accumulator.
8637
8638 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8639
8640         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8641         (Warning Options): Document -Wswitch-enum.
8642         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8643         -Wswitch.
8644         (warn_switch_enum): Define variables.
8645         * flags.h (warn_switch_enum): Declare variables.
8646         * stmt.c (expand_end_case_type): When warn_switch_enum /
8647         -Wswitch-enum, perform switch checks.
8648         Fix PR c/5044.
8649
8650 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8651
8652         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8653         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8654         (reload_muladdsi_compare0_scratch): Delete.
8655
8656 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8657
8658         * doc/install.texi (*-*-freebsd*): Update.
8659
8660 2002-03-26  Richard Henderson  <rth@redhat.com>
8661
8662         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8663         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8664
8665         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8666         types from the normal argument frame.
8667
8668         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8669         variable sized objects by reference.
8670         (sparc_va_arg): Receive them by reference too.
8671
8672 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8673
8674         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8675         code to not restoring global registers.
8676
8677 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8678
8679         * Makefile.in (ggc-common.o): Update.
8680         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8681         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8682         * c-tree.h (c_mark_tree): New.
8683         * ggc-common.c: Include langhooks.h.
8684         (gcc_mark_trees): Use new langhook.
8685         * ggc-callbacks.c: Delete file.
8686         * ggc.h (lang_mark_tree): Remove.
8687         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8688         (LANG_HOOKS_INITIALIZER): Update.
8689         * langhooks.h (struct lang_hooks): New hook.
8690 objc:
8691         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8692
8693 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8694
8695         * doc/cpp.texi: Exclude entire Top node from printed manual.
8696         Move option index after directive index.  Insert page breaks
8697         before GFDL and concept index.  Index environment variables
8698         with command line options.
8699         * doc/cppenv.texi: Use @vtable for environment variable list.
8700         Add paragraph explaining semantics of empty elements in path
8701         variables.  Exclude a cross-reference to Fishkill from the
8702         manpage.  Remove an unnecessary cross-reference of the entry
8703         right above the referer.  Don't use @anchor in text that goes
8704         into manpage.
8705         * doc/cppopts.texi: Cross-reference the environment variables
8706         section, not the specific environment variable, for consistency.
8707
8708 2002-03-25  Richard Henderson  <rth@redhat.com>
8709
8710         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8711         anywhere in the block.  Don't refer to insns that have been
8712         removed from the chain.  Iterate backward through the new insns.
8713         Don't refer to edges that have been removed.
8714
8715 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8716
8717         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8718         test for overflow of constant.
8719
8720 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8721
8722         PR target/2623
8723         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8724         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8725         these patterns on arm_archv4.
8726
8727 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8728
8729         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8730         int".
8731
8732 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8733
8734         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8735         float_handled, float_handler, float_signal, set_float_handler,
8736         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8737         * toplev.h: Don't prototype do_float_handler.
8738
8739         * c-lex.c: Fold parse_float into lex_number.  Make warning
8740         about portability of hex float constants more informative, and
8741         don't issue it on top of a syntax error.
8742         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8743         their callers.
8744         * real.h: Define REAL_VALUE_ABS here...
8745         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8746         simplify_unary_real, simplify_binary_real, and
8747         simplify_binary_is2orm1 into their callers.
8748         * tree.c: Fold build_real_from_int_cst_1 into caller.
8749
8750         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8751
8752         * tsystem.h: Include float.h here...
8753         * libgcc2.c: ... not here.
8754
8755 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8756
8757         Fixes for: PR bootstrap/3591, target/5676
8758         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8759         defined.  Do not disable exceptions or rtti.
8760         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8761         mcore.h.  Disable exceptions and rtti, since they are not
8762         supported by EPOC.
8763
8764 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8765
8766         * c-decl.c (maybe_build_cleanup): Remove.
8767         * expr.c (expand_expr): Use langhook.
8768         * langhooks-def.h (lhd_return_null_tree,
8769         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8770         (LANGHOOKS_INITIALIZER): Update.
8771         * langhooks.c (lhd_return_null_tree): New.
8772         * langhooks.h (struct lang_hooks): New hook.
8773         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8774         * tree.h (maybe_build_cleanup): Remove.
8775
8776 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8777
8778         * regrename.c (build_def_use): Move recog_memoized
8779         before extract_insn.
8780
8781 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8782
8783         PR target/6043
8784         * expr.c (emit_group_store): Handle storing into CONCAT.
8785
8786 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8787
8788         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8789         corresponding MATCH_DUP.
8790
8791 2002-03-24  Richard Henderson  <rth@redhat.com>
8792
8793         * unroll.c (unroll_loop): Zero label_map.
8794
8795         * gcse.c: Include except.h.
8796         * Makefile.in (gcse.o): Update.
8797
8798 2002-03-24  Richard Henderson  <rth@redhat.com>
8799
8800         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8801         Do resolve_unique_section before shared data clause.
8802
8803 2002-03-24  Richard Henderson  <rth@redhat.com>
8804
8805         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8806
8807 2002-03-24  Richard Henderson  <rth@redhat.com>
8808
8809         * recog.c (peephole2_optimize): Split blocks when EH insns are
8810         generated in the middle of a block.  Do global life update if
8811         zapped EH edges.
8812
8813 2002-03-24  Richard Henderson  <rth@redhat.com>
8814
8815         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8816
8817 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8818
8819         preprocessor/3951
8820         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8821         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8822         (init_dependency_output): Don't make no_output decision here.
8823
8824 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8825
8826         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8827         warn_switch.  Update description.
8828         (expand_end_case_type): Call check_for_full_enumeration_handling
8829         when warn_switch.
8830
8831 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8832
8833         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8834         (m68hc11_split_move): Call it to see if the source and destination
8835         operands use the same direction auto inc/dec mode, otherwise make the
8836         source an offsetable memory operand and generate an add.
8837
8838 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8839
8840         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8841         register for operand 2.
8842         ("*subsi3_zero_extendqi"): Likewise.
8843         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8844         bits so that it is compatible with a pop.
8845         ("*andhi3_gen"): Likewise.
8846         ("xorhi3"): Likewise.
8847
8848 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8849
8850         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8851         -pedantic here...
8852         (cpp_post_options): ... not here.
8853
8854 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8855             Aldy Hernandez  <aldyh@redhat.com>
8856
8857         Removal of separate preprocessor cpp0.
8858
8859         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8860         cpp0, install-common): Update.
8861         * c-common.c (flag_preprocess_only): New.
8862         (c_common_init): Preprocess for -E.
8863         * c-common.h (flag_preprocess_only): New.
8864         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8865         * c-objc-common.c (c_init_decl_processing): Exit quickly
8866         for NULL return from c_common_init.
8867         * cpplib.h (cpp_preprocess_file): New.
8868         * cppmain.c (main, general_init, pfile, progname): Remove.
8869         (do_preprocessing): Rename cpp_preprocess_file, don't call
8870         cpp_finish.  Don't close stdout here.
8871         (setup_callbacks): Update prototype.
8872         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8873         Update.
8874         * tradcpp.c (main): Ignore -quiet.
8875 objc:
8876         * lang-specs.h (default_compilers): Preprocess with cc1obj.
8877
8878 2002-03-24  Richard Henderson  <rth@redhat.com>
8879
8880         PR optimization/5742
8881         * machmode.def: Add inner mode field to complex modes.
8882         * config/mips/mips.c (mips_function_value): Always define.  Add
8883         new argument to handle libcalls.
8884         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8885         (FUNCTION_VALUE): Likewise.
8886         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8887         * config/mips/mips-protos.h: Update.
8888
8889 2002-03-23  Richard Henderson  <rth@redhat.com>
8890
8891         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8892         * config/sparc/sparc-protos.h: Update.
8893         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8894
8895 2002-03-23  Richard Henderson  <rth@redhat.com>
8896
8897         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8898         _start or _init begins the text segment.
8899
8900 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
8901
8902         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
8903         not HOST_WIDEST_INT.
8904         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8905
8906 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
8907
8908         PR java/5489
8909         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8910         operand argument to output_return_instruction.
8911         * arm.c (arm_print_operand, case 'd'): If the operand is
8912         const_true_rtx then just return.
8913         (arm_print_operand, case 'D'): If the operand is const_true_rtx
8914         then abort.
8915
8916 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8917
8918         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8919         (Warning Options): Document -Wswitch-default.
8920         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
8921         -Wswitch.
8922         (warn_switch_default): Define variable.
8923         (warn_switch): Update comment.
8924         * flags.h (warn_switch_default): Declare variable.
8925         (warn_switch): Update comment.
8926         * stmt.c (expand_end_case): Check for and, when
8927         warn_switch_no_default, warn of a missing default case.
8928
8929 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
8930
8931         * real.h (N): Special case 128 bit doubles.
8932
8933         * combine.c (simplify_comparison): When widening modes, ignore
8934         sign extension on CONST_INTs.
8935
8936 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8937
8938         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8939         passed to adjust_address.  Fix comment formatting.
8940
8941
8942 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
8943
8944         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8945         Always make REAL_VALUE_TYPE a struct containing an array of
8946         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
8947         big it is.  Don't declare or use union real_extract.
8948
8949         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8950         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8951         (print_operand), config/arm/arm.c (output_move_double),
8952         config/arm/arm.md (consttable_4, consttable_8),
8953         config/romp/romp.c (output_fpops), config/s390/s390.h
8954         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8955         (xtensa_output_literal): Don't use union real_extract.
8956
8957         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8958         (sfmode_constant_to_ulong), config/ns32k/merlin.h
8959         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8960         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8961         (PRINT_OPERAND): Don't use local version of union
8962         real_extract.
8963
8964         * config/convex/convex.c (check_float_value), config/vax/vax.c
8965         (vax_float_literal), config/m88k/m88k.md (divdf3),
8966         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8967         config/pdp11/pdp11.c (output_move_quad): Don't do host
8968         arithmetic on target floating point quantities.
8969
8970         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8971         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8972
8973         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8974         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8975
8976         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8977         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8978         INFINITY.
8979         * print-rtl.c (print_rtx): Disable code which needs
8980         floating-point emulator.
8981         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8982         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8983         depending on HOST_FLOAT_FORMAT to be defined properly.
8984
8985         * config/1750a/1750a.c (get_double, float_label): Delete.
8986         (print_operand): Delete huge commented-out chunk.  Use
8987         REAL_VALUE_TO_DECIMAL.
8988         * config/1750a/1750a-protos.h: Delete prototypes of deleted
8989         functions.
8990         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8991         IEEE_FLOAT_FORMAT.
8992         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8993         Use REAL_VALUE_TO_DECIMAL as ELF version does.
8994         * config/m88k/m88k.c (real_power_of_2_operand,
8995         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8996         real_extract out of the union; run the input through
8997         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8998         from that into the union.
8999         * config/pdp11/pdp11.c (output_move_double): Rearrange
9000         parentheses to make automatic indenter happy.
9001
9002         * doc/tm.texi (Cross-compilation): Rename node to "Floating
9003         Point" and rewrite to describe current situation.  Also adjust
9004         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
9005         match code.
9006         * doc/rtl.texi: Adjust cross reference.
9007
9008 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
9009
9010         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
9011         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
9012         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
9013         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
9014         prevent use of sp as a reload register.
9015         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
9016         non_acc_reg_operand.
9017         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
9018         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
9019         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
9020         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
9021
9022 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9023
9024         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
9025         * cpplex.c (unterminated): Delete.
9026         (parse_string): No string literal may extend over multiple
9027         lines.  Suppress the error when preprocessing assembly.
9028         * cppmain.c (scan_translation_unit): Strings are single-line.
9029
9030         * doc/cpp.texi: Update to match.
9031
9032 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9033
9034         PR optimization/5854
9035         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
9036         Shut up warnings.
9037         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
9038         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
9039         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
9040         const0 if scratch register was not allocated.
9041         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
9042         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
9043         with GEN_INT (...).
9044         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
9045         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
9046         with GEN_INT (...) everywhere.  Remove constraints in define_split
9047         patterns.
9048         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9049         require scratch register for setting 0 into regs/non-pushable memory.
9050
9051 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9052
9053         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9054         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9055
9056 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
9057
9058         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
9059         * cppinit.c (cpp_create_reader):  On by default.
9060         (cpp_handle_option):  Handle -W[no-]endif-labels.
9061         (cpp_post_options):  Also enable if -pedantic.
9062         * cpplib.c (do_else):  Use it.
9063         (do_endif):  Likewise.
9064         * doc/cppopts.texi:  Document new option.
9065         * doc/invoke.texi:  Document new option.
9066
9067 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
9068
9069         * config/i386/i386.c, config/i386/i386.md: Change all occurences
9070         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9071
9072 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9073
9074         * flow.c (calculate_global_regs_live): Clear aux fields of
9075         ENTRY and EXIT.
9076
9077 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9078
9079         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9080         REG or MEM subregs, pass rtx * instead of rtx to it.
9081         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9082         rtx * instead of rtx to alter_subreg.
9083         * config/m32r/m32r.c (gen_split_move_double): Likewise.
9084         * config/pj/pj.c (pj_output_rval): Likewise.
9085
9086 2002-03-22  Richard Henderson  <rth@redhat.com>
9087
9088         PR target/3177
9089         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9090         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9091         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9092         (ia64_expand_prologue): Look at int_regs, not words, for number
9093         of incomming int regs.
9094
9095 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
9096
9097         * expr.c (expand_expr): A RESULT_DECL is part of a call.
9098
9099 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
9100
9101         * toplev.c (flag_loop_optimize, flag_crossjumping):
9102         New static variables.
9103         (rest_of_compilation): Conditionalize crossjumping and
9104         loop optimizer.
9105         (parse_options_and_default_flags): Default loop_optimize and
9106         crossjumping.
9107         (lang_independent_options): Add -fcrossjumping and -floop-optimize
9108         * invoke.texi (crossjumping, loop-optimize): Document.
9109
9110 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9111
9112         * real.c (eiisneg): Move outside #ifdef NANS.
9113
9114 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
9115
9116         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9117         frequencies match; avoid match on different loop depths.
9118         (try_crossjump_to_bb): Kill tests that no longer brings time
9119         savings.
9120         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9121         updating code.
9122         (split_edge): Likewise.
9123
9124         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9125         variable.
9126
9127         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9128         * cfgrtl.c: Include insn-config.h
9129         (split_block) Dirtify block in presence of conditional execution
9130
9131 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9132
9133         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9134         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9135         (function_arg): Constify CUMULATIVE_ARGS.
9136         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9137         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9138         (UNITS_PER_DOUBLE): New macro.
9139         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
9140         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
9141         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
9142         fp_regs and stack_words.
9143         (EABI_FLOAT_VARARGS_P): New macro.
9144         * config/mips/mips.c (struct mips_arg_info): New.
9145         (mips_arg_info): New function.
9146         (function_arg_advance): Use it.  Add adjustment instructions here
9147         rather than in function_arg.
9148         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
9149         for VOIDmode at the beginning of the function.
9150         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
9151         (function_arg_pass_by_reference): Likewise.
9152         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9153         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9154         (mips_va_start): Likewise.  Use the new stack_words field of
9155         CUMULATIVE_ARGS to set up overflow area.  Reformat.
9156         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
9157         doubles and other types, aligning the overflow pointer for non-doubles
9158         too.  Remove some code duplication.  Replace hard-coded constants.
9159
9160 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9161
9162         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9163         (CLASS_UNITS): Undefine.
9164         (CLASS_MAX_NREGS): Use FP_INC.
9165         * config/mips/mips.c (compute_frame_size): Likewise.
9166         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9167
9168 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9169
9170         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9171         prototype, and handle lexing numbers and identifiers.
9172         (parse_identifier): Update to new form of parse_slow.
9173         (parse_number): Fast path only, use parse_slow otherwise.
9174         (_cpp_lex_direct): Update calls to parse_number.
9175
9176 2002-03-21  DJ Delorie  <dj@redhat.com>
9177
9178         * bb-reorder.c (make_reorder_chain_1): Protect against
9179         when redundant edges are omitted.
9180         * predict.c (dump_prediction): Likewise.
9181
9182 2002-03-21  Richard Henderson  <rth@redhat.com>
9183
9184         PR target/5996
9185         * fixinc/inclhack.def (solaris_stdio_tag): New.
9186         * fixinc/fixincl.x: Regenerate.
9187
9188 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9189
9190         PR c/5597
9191         * c-typeck.c (process_init_element): Flag non-static
9192         initialization of a flexible array member as illegal.
9193
9194 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
9195
9196         * config/rs6000/t-linux64: New.
9197         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9198         t-ppccomm.  Use t-rs6000 and t-linux64.
9199         (powerpc64-*-gnu* <tmake_file>): Likewise.
9200         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9201         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9202         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9203
9204 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
9205
9206         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9207         flag_really_no_inline instead of optimize == 0.
9208
9209         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9210
9211         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9212
9213         * flags.h (flag_really_no_inline): New.
9214
9215         * c-common.c (c_common_post_options): Initialize
9216         flag_really_no_inline.
9217
9218         * toplev.c (flag_really_no_inline): New.
9219
9220 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9221
9222         * config/avr/avr.md (length): Fix length computation for
9223         conditional branches.
9224
9225 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9226
9227         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9228         sdbout.o, profile.o): Update.
9229         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9230         langhook.
9231         * c-common.h (gettags): Move here from tree.h.
9232         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9233         insert_block, getdecls, kept_level_p, global_bindings_p): New.
9234         * dbxout.c (dbxout_init): Use getdecls langhook.
9235         * expr.c (expand_expr): Use insert_block langhook.
9236         * fold-const.c: Include langhooks.h.
9237         (fold_range_test, fold_binary_op_with_conditional_arg,
9238         fold): Use global_bindings_p langhook.
9239         * integrate.c (expand_inline_function): Use insert_block langhook.
9240         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9241         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9242         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9243         LANG_HOOKS_GETDECLS): New.
9244         (LANG_HOOKS_INITIALIZER): Update.
9245         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9246         langhook.
9247         * langhooks.h (struct lang_hooks_for_decls): New.
9248         (struct lang_hooks): Update.
9249         * profile.c: Include langhooks.h.
9250         (output_func_start_profiler): Use new langhooks.
9251         * sdbout.c: Include langhooks.h.
9252         (sdbout_init, sdbout_finish): Use getdecls langhook.
9253         * stmt.c: Include langhooks.h.
9254         (expand_fixup, fixup_gotos): Use new langhooks.
9255         * stor-layout.c: Include langhooks.h.
9256         (variable_size): Use global_bindings_p langhook.
9257         * toplev.c (compile_file): Use getdecls langhook.
9258         * tree-inline.c (remap_block): Use insert_block langhook.
9259         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9260         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9261
9262 2002-03-21  Richard Henderson  <rth@redhat.com>
9263
9264         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9265         constants in .data when -fpic.
9266
9267 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9268
9269         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9270         where appropriate.
9271
9272 2002-03-21  Tom Tromey  <tromey@redhat.com>
9273
9274         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
9275
9276 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9277
9278         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9279
9280         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9281
9282 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9283             Richard Henderson  <rth@redhat.com>
9284
9285         PR c/5354
9286         * c-common.c (c_expand_expr): Preserve result of a statement
9287         expression if needed.
9288
9289 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9290
9291         PR bootstrap/4195
9292         * genrecog.c (maybe_both_true_mode): Remove.
9293         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9294         * machmode.def (Pmode): Likewise.
9295
9296 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
9297
9298         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9299         (nonlocal_mentioned_p_1): New function.
9300         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9301         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9302         (mark_constant_function): Recognize pure functions.
9303         * rtl.h (global_reg_mentioned_p): New prototype.
9304         * rtlanal.c (global_reg_mentioned_p,
9305         global_reg_mentioned_p_1): New function.
9306
9307 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9308
9309         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9310         UNIX assert.h.
9311         * fixinc/fixincl.x: Regenerate.
9312
9313 2002-03-20  Jason Merrill  <jason@redhat.com>
9314
9315         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9316
9317 2002-03-20  Michael Meissner  <meissner@redhat.com>
9318
9319         * doc/invoke.texi (Optimize Options): Document that -O2 sets
9320         -fstrict-aliasing.
9321
9322 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9323
9324         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9325         ".literal_position" directive before the constant pool.
9326
9327 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9328
9329         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9330         Add Craig Rodrigues.
9331         Add Brad Lucier to testers.
9332
9333 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9334
9335         PR target/4792
9336         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9337         to if_then_else.
9338         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9339         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9340         instead of insn_extract.
9341
9342 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9343
9344         PR bootstrap/4192
9345         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9346
9347         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9348         stmt if some case has been output.
9349
9350 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9351
9352         PR c/5972
9353         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9354         movsfcc_1, movdfcc_1): Add %O2.
9355         * config/i386/i386.c (print_operand): Handle %ON.
9356         Print . before float condition codes in Sun as cmov syntax.
9357         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9358         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9359         no longer true.
9360
9361 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9362
9363         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9364         return instruction if PC was popped.
9365
9366 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9367
9368         * config/xtensa/xtensa.md: Remove unused type attributes.
9369         (adddi_carry, subddi_carry): Change type attribute to "multi".
9370
9371 2002-03-19  Dale Johannesen  <dalej@apple.com>
9372
9373         PR optimization/5999, middle-end/5731
9374         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9375         multiplications by reciprocals.
9376
9377 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9378
9379         * Makefile.in: Update.
9380         * c-common.c: Include langhooks.h.
9381         (inline_forbidden_p): Use new hook.
9382         * diagnostic.c: Include langhooks.h.
9383         (format_with_decl, announce_function,
9384         default_print_error_function): Use new hook.
9385         * dwarf2out.c (dwarf2_name): Use new hook.
9386         * function.c: Include langhooks.h.
9387         (init_function_start): Use new hook.
9388         * langhooks-def.h (lhd_decl_printable_name): New.
9389         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9390         (LANGHOOKS_INITIALIZER): Update.
9391         * langhooks.c (lhd_decl_printable_name): New.
9392         * langhooks.h (struct lang_hooks): New hook.
9393         * toplev.c (decl_name, decl_printable_name): Remove.
9394         (open_dump_file): Use new hook.
9395         (process_options): Remove old hook.
9396         * tree.h (decl_printable_name): Remove.
9397 objc:
9398         * objc-act.c (objc_init): Remove old hook.
9399         (objc_printable_name): Export.
9400         * objc-act.h (objc_printable_name): New.
9401         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9402
9403 2002-03-19  Jim Blandy  <jimb@redhat.com>
9404
9405         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9406         the start_source_file debug hook, not the current line number.
9407
9408 2002-03-19  Richard Henderson  <rth@redhat.com>
9409
9410         * flow.c (EH_USES): Provide default.
9411         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9412         * doc/tm.texi (EH_USES): New.
9413
9414         * config/ia64/ia64.c (ia64_eh_uses): New.
9415         * config/ia64/ia64-protos.h: Update.
9416         * config/ia64/ia64.h (EH_USES): New.
9417
9418 2002-03-19  Richard Henderson  <rth@redhat.com>
9419
9420         * varasm.c (output_constant_def): Fix stupid typo.
9421
9422 2002-03-19  Richard Henderson  <rth@redhat.com>
9423
9424         PR 5879
9425         * except.c (current_function_has_exception_handlers): New.
9426         * except.h: Declare it.
9427         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9428         Combine tests that disable all sibcalls for the function.
9429
9430 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9431
9432         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9433         for INTEGER_CST.
9434
9435 2002-03-19  Richard Henderson  <rth@redhat.com>
9436
9437         PR 5977, 5991
9438         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9439         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9440
9441 2002-03-19  Jim Blandy  <jimb@redhat.com>
9442
9443         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9444         name, even if the replacement list contains no tokens, as required
9445         by Dwarf.
9446
9447 2002-03-19  Jason Merrill  <jason@redhat.com>
9448
9449         * varasm.c (globalize_decl): Get the name from the RTL, not
9450         DECL_ASSEMBLER_NAME.
9451
9452         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9453
9454 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9455
9456         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9457         subdi_carry): Define.
9458
9459 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9460
9461         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9462         about -fpic/-fPIC if extra_warnings set.
9463
9464 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9465
9466         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9467         TREE_STRING_POINTER.
9468         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9469
9470 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9471
9472         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9473         in favor of SP if FRAME_POINTER_REQUIRED is false.
9474
9475 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9476
9477         * emit-rtl.c (gen_int_mode): New function.
9478         * rtl.h: Prototype for it.
9479         * combine.c (make_extraction, simplify_comparison), expmed.c
9480         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9481         (convert_modes, store_field), optabs.c (expand_fix),
9482         simplify-rtx.c (neg_const_int, simplify_unary_real),
9483
9484         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9485         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9486
9487 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9488
9489         PR c/5656
9490         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9491         convert_parm_for_inlining.
9492         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9493         Define.
9494         * langhooks-def.h: Likewise.
9495         * objc/objc-lang.c: Likewise.
9496         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9497         function.
9498         * tree-inline.c (initialize_inlined_parameters):
9499         Call convert_parm_for_inlining lang hook if needed.
9500         * c-typeck.c (c_convert_parm_for_inlining): New function.
9501         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9502
9503 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9504
9505         * calls.c (precompute_arguments): Do not assume that temporaries
9506         can be destroyed after expanding the argument.
9507         (expand_call): Likewise.
9508
9509 2002-03-15  Eric Christopher  <echristo@redhat.com>
9510
9511         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9512         Fix register preference on last change.
9513         * config/mips/mips.c (mips_return_in_memory): New function.
9514         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9515         * config/mips/mips-protos.h: Declare.
9516         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9517         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9518
9519 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9520
9521         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9522         a register too.
9523         (anddi3, iorsi3): Likewise.
9524
9525         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9526         use %gprel for symbols that are going to be placed in linkonce
9527         sections.
9528
9529         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9530         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9531         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9532         not needed.  Disregard leaf_function_p().
9533         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9534         mips16 frame pointer.
9535         * config/mips/mips.md (store ra): Only to small SP offsets.
9536         2001-08-22  Graham Stott  <grahams@redhat.com>
9537         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9538         return a REG rtx for the return address register.
9539
9540 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9541
9542         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9543         constant-pool addresses as "mode-dependent".
9544         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9545
9546 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9547
9548         PR target/5740
9549         * expr.c (emit_group_load): Use extract_bit_field if
9550         needed for CONCAT arguments.
9551
9552 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9553
9554         PR target/4863
9555         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9556         offset to the base of the table.
9557         (thumb_tablejump): Matcher for Thumb tablejump insn.
9558         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9559         as the difference of two labels.
9560         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9561         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9562         tables in the code.
9563         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9564         * arm.c (get_jump_table_size): If the table is not in the text
9565         section, return zero.
9566
9567 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9568
9569         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9570         of gen_rtx_SUBREG.
9571         (arm_reload_out_hi): Use gen_lowpart instead of
9572         gen_rtx_SUBREG to access QImode components.
9573         * config/arm/arm.md: Disable zero_extend split for QImode
9574         subregs in BIG_ENDIAN mode.
9575         (storehi_bigend): Match use of least significant byte.
9576         (storeinthi): Remove extraneous SUBREG.
9577         Add missing construction of operands[2].
9578         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9579         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9580         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9581
9582 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9583
9584         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9585         any_operand.
9586
9587 2002-03-17  Richard Henderson  <rth@redhat.com>
9588
9589         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9590         explicitly.
9591
9592 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9593
9594         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9595         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9596
9597 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9598
9599         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9600
9601         * predict.c (estimate_bb_frequencies): Delete unused variables.
9602
9603 2002-03-17  Richard Henderson  <rth@redhat.com>
9604
9605         * config/ia64/ia64.c (ia64_attribute_table): Move before
9606         targetm definition.  Make static.
9607
9608 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9609
9610         * c-common.h (yyparse, c_common_parse_file): New.
9611         * c-lang.c: Include c-common.h.
9612         (LANG_HOOKS_PARSE_FILE): Redefine.
9613         * c-lex.c: Include c-common.h.
9614         (yyparse): Rename c_common_parse_file.  Call yyparse.
9615         * c-parse.in (yyparse): Remove macro.
9616         * c-tree.h (yyparse_1): Remove.
9617         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9618         (LANG_HOOKS_INITIALIZER): Update.
9619         * langhooks.h (struct lang_hoooks): New hook parse_file.
9620         * toplev.c (compile_file): Use parse_file hook.
9621         * tree.h (yyparse): Remove.
9622         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9623
9624 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9625
9626         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9627         float_truncate, not fix.
9628         ("*truncdfsf2_real"): Ditto.
9629         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9630
9631         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9632
9633 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9634
9635         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9636         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9637         where appropriate.  Make the second reference to
9638         leaf_function_p a function call, as intended.  Reindented.
9639
9640         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9641         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9642
9643         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9644         add register to non-constant into sp.
9645
9646         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9647         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9648         (mips16_gp_pseudo_rtx): Lose.
9649         (INIT_EXPANDERS): Deleted.
9650         * config/mips/mips.c (mips_init_machine_status): New.
9651         (mips_free_machine_status): New.
9652         (mips_mark_machine_status): New.
9653         (override_options): Set them.
9654         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9655         (struct machine_function): ... new.  Replaced all references.
9656         (mips_add_gc_roots): Don't mark them.
9657         (embedded_pic_fnaddr_reg): New, extracted from...
9658         (embedded_pic_offset): ... here.
9659         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9660         (movsi): Likewise.
9661
9662 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9663
9664         * cppinit.c: Revert -MD removal.
9665
9666 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9667
9668         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9669         soft registers by default for 68HC12.
9670         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9671         when compiling with -fomit-frame-pointer.
9672         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9673         (expand_epilogue): Likewise.
9674         (m68hc11_gen_rotate): Use exg when rotating by 8.
9675
9676 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9677
9678         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9679         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9680         (splits): Remove unused add splits.
9681         ("*addhi3_68hc12"): Tune constraints.
9682         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9683         constant fits in 8-bits and D is dead use abx/aby instructions.
9684         ("*addhi3"): Remove extern declaration of ix_reg.
9685         ("*subsi3"): Optimize and provide new split.
9686         ("subhi3"): Cleanup.
9687         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9688         (arith splits): For 68hc12 save the address register on the stack
9689         and do the arithmetic operation with a pop.
9690
9691 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9692
9693         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9694         allocating QImode in address registers.
9695         ("*movqi_m68hc11"): Likewise.
9696
9697 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9698
9699         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9700
9701 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9702
9703         * cppinit.c (print_help): Display -MD and -MMD.
9704         Don't display usage string.  Update assertion syntax and
9705         typo.
9706         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9707         (cpp_handle_option): Update.
9708
9709 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9710
9711         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9712         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9713         and define it so that regardless of target CPU size,
9714         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9715         of "int" rather than "long."
9716
9717 2002-03-15  Richard Henderson  <rth@redhat.com>
9718
9719         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9720         size as a tree.
9721
9722 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9723
9724         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9725         ("tstqi" split): Avoid using memory for tstqi on address register.
9726         (splits): Remove constraints.
9727         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9728         ("cmpdf", "cmpsf"): Remove since not used.
9729         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9730         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9731
9732 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9733
9734         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9735         ("neghi2"): Tighten constraints.
9736         ("one_cmplsi2"): Optimize and simplify split.
9737         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9738
9739 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9740
9741         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9742         and split of AND operation to clear the upper bits.
9743         ("*logicalsi3_zextqi"): Likewise.
9744         ("*logicallhi3_zexthi_ashift8"): Likewise.
9745         ("*logicalsi3_silshr16"): Likewise.
9746         ("logicalsi3_silshl16"): Likewise.
9747         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9748
9749 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9750
9751         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9752         (m68hc11_indirect_p): New function.
9753         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9754         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9755         TARGET_M6812.
9756         (asm_print_register): Likewise.
9757         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9758         (m68hc11_indirect_p): Declare.
9759         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9760         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9761         (TARGET_SWITCHES): New option -mrelax.
9762         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9763         destination.
9764         ("iorsi3", "xorsi3"): Likewise.
9765         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9766         ("*andhi3_mem"): New to handle destination in memory with bclr
9767         and a scratch register.
9768         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9769         ("*andhi3_const"): New when operand2 is constant.
9770         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9771         ("*andhi3_gen"): Cleanup of the old "andhi3".
9772         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9773         ("xorqi3"): Update constraints.
9774
9775 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9776
9777         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9778         for reg_equiv_memory_loc when the operand is a register that does
9779         not get a hard register (stack location).
9780         (tst_operand): After reload, accept all memory operand.
9781         (symbolic_memory_operand): Fix detection of symbolic references.
9782         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9783         accept symbols and any constant.
9784
9785 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9786
9787         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9788         note on the insn that sets the soft frame register.
9789         (must_parenthesize): ix and iy are also reserved names.
9790         (print_operand_address): One more place where parenthesis are required
9791         to avoid confusion with register names.
9792         (m68hc11_gen_movhi): Allow push of stack pointer.
9793         (m68hc11_check_z_replacement): Fix handling of parallel with a
9794         clobber.
9795         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9796         the replacement register is.
9797         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9798         and D8_REGS classes.
9799         (MODES_TIEABLE_P): All modes are tieable except QImode.
9800
9801 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9802
9803         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9804         (___subdi3): Likewise.
9805         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9806         (__map_data_section): Optimize 68hc11 case.
9807
9808 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9809
9810         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9811         than a shift to avoid adding a register with itself.
9812         (m68hc11_memory_move_cost): Take into account NO_REGS.
9813         (m68hc11_register_move_cost): Update and use memory move cost
9814         for soft registers.
9815         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9816         it gives more opportunities to cse to optimize.
9817         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9818         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9819
9820 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9821
9822         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9823         * c-common.def (CLEANUP_STMT): New tree node.
9824         * c-common.h (CLEANUP_DECL): New macro.
9825         (CLEANUP_EXPR): Likewise.
9826         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9827         * expr.c (expand_expr): Tidy.
9828         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9829         * tree-inline.c (initialize_inlined_parameters): Clean up
9830         new local variables.
9831
9832 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9833
9834         PR bootstrap/4128
9835         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9836         before movrXX only, use reg_overlap_mentioned_p.
9837         Only special case NE if just one insn can be generated.
9838
9839 2002-03-15  Jason Merrill  <jason@redhat.com>
9840
9841         * varasm.c (assemble_variable): Call resolve_unique_section before
9842         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
9843         of error_mark_node.
9844
9845 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9846
9847         PR target/5170
9848         * arm.md (split pattern for thumb shiftable immediates): Add comment
9849         explaining non-obvious test.
9850
9851 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9852
9853         PR target/5712
9854         * arm.md (movaddr, movaddr_insn): Delete.
9855
9856 2002-03-15  Jason Merrill  <jason@redhat.com>
9857
9858         * toplev.c (wrapup_global_declarations): Clarify variable handling.
9859         -fkeep-static-consts doesn't apply to comdats.
9860
9861 2002-03-14  Richard Henderson  <rth@redhat.com>
9862
9863         * c-decl.c: Include c-pragma.h.
9864         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9865         (finish_function): Tidy.
9866         * c-pragma.c: Include c-common.h.
9867         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9868         (handle_pragma_weak): Use them.
9869         (init_pragma): Register pending_weaks.
9870         * c-pragma.h (maybe_apply_pragma_weak): Declare.
9871         * print-tree.c (print_node): Print DECL_WEAK.
9872         * varasm.c (mark_weak_decls): Remove.
9873         (remove_from_pending_weak_list): Remove.
9874         (add_weak): Remove.
9875         (asm_emit_uninitialised): Call globalize_decl for weak commons.
9876         (weak_decls): Make a tree_list.
9877         (declare_weak): Cons weak_decls directly.
9878         (globalize_decl): Remove weak_decls elements directly.
9879         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
9880         symbols.  Don't pretend to handle aliases.
9881         (init_varasm_once): Update weak_decls registry.
9882         * Makefile.in: Update dependencies.
9883
9884 2002-03-14  Richard Henderson  <rth@redhat.com>
9885
9886         PR target/5312
9887         * config/ia64/ia64.c: Include tm_p.h last.
9888         (gen_nop_type): Remove duplicate definition.
9889         (cycle_end_fill_slots): Set sched_data for second L slot.
9890         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9891         (nop_cycles_until): Fix typos.
9892
9893 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9894
9895         PR optimization/5891
9896         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9897
9898 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9899
9900         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9901           descriptors correctly.
9902
9903 2002-03-14  Michael Meissner  <meissner@redhat.com>
9904
9905         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9906         100, allowing MAX_UNROLLED_INSNS to be overridden.
9907
9908         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9909         --param.
9910
9911         * unroll.c (params.h): Include.
9912         (MAX_UNROLLED_INSNS): Delete, now in params.h.
9913
9914         * doc/invoke.texi (--param max-unroll-insns): Document.
9915
9916         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9917
9918 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9919
9920         * arm.md: Fix warnings about constraints in peepholes and splits.
9921
9922 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
9923
9924         * cpphash.h (struct lexer_state): Remove line_extension member.
9925         * cpplib.c (dequote_string, do_linemarker): New functions.
9926         (linemarker_dir): New data object.
9927         (DIRECTIVE_TABLE): No longer need to interpret #line in
9928         preprocessed source.  Delete obsolete comment about return
9929         values of handlers.
9930         (end_directive, directive_diagnostics, _cpp_handle_directive):
9931         Don't muck with line_extension.
9932         (directive_diagnostics): No need to issue warnings for
9933         linemarkers here.
9934         (_cpp_handle_directive): Issue warnings for linemarkers here,
9935         when appropriate.  Dispatch linemarkers to do_linemarker, not
9936         do_line.
9937         (do_line): Code to handle linemarkers split out to do_linemarker.
9938         Convert escape sequences in filename argument, both places.
9939
9940         * cppmacro.c (quote_string): Rename cpp_quote_string and
9941         export.  All callers changed.
9942         * cpplib.h (cpp_quote_string): Prototype.
9943         * cppmain.c (print_line): Call cpp_quote_string on to_file
9944         before printing it.
9945
9946         * doc/cpp.texi: Document that escapes are now interpreted in
9947         #line and in linemarkers, and that non-printing characters are
9948         converted to octal escapes when linemarkers are generated.
9949
9950 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
9951
9952         * emit-rtl.c (try_split): Use delete_insns.
9953         * recog.c (split_all_insns): Fix terminating condition.
9954
9955 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9956             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9957
9958         PR target/5828
9959         * arm.c (arm_output_epilogue): Fix floating-point register save
9960         adjustment when using a frame pointer.
9961
9962 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
9963
9964         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9965         * config/mips/mips.c (compute_frame_size): Retrofit them here.
9966         (save_restore_insns, mips_expand_epilogue): And here.
9967         (build_mips16_call_stub): And here.
9968         (mips_function_value): Use the new macros to decide whether a single
9969         or complex float can be returned in floating-point registers.  Return
9970         a parallel rtx in the complex case.
9971
9972 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9973
9974         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9975         call after liveness analysis.
9976
9977         * recog.c (split_insn): Use delete_insn_and_edges.
9978
9979         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9980         instructions to have branch prediction notes.
9981         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9982
9983 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
9984
9985         * configure.in: Don't pass -Wno-long-long to a ADA compiler
9986         that doesn't support it.
9987         * configure: Regenerate.
9988
9989 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9990
9991         PR target/5626
9992         * config/sparc/sparc.md (normal_branch, inverted_branch,
9993         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9994         inverted_fp_branch): Adjust calls to output_cbranch.
9995         Set length attribute.
9996         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9997         output_v9branch.  Set length attribute.
9998         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9999         predicates.
10000         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
10001         (output_cbranch): Likewise.  Handle far branches.
10002         (output_v9branch): Handle far branches.
10003         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
10004         Adjust prototypes.
10005         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
10006         noov_compare64_op predicates.
10007
10008 2002-03-13  Jason Merrill  <jason@redhat.com>
10009
10010         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
10011         into the function and constify it.
10012         * gthr-dce.h, gthr-solaris.h: Likewise.
10013
10014 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
10015
10016         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
10017         * config/rs6000/rs6000.c (rs6000_va_arg): Use
10018         std_expand_builtin_va_arg if not ABI_V4.
10019
10020 2002-03-13  Jason Merrill  <jason@redhat.com>
10021
10022         * varasm.c (globalize_decl): New fn.
10023         (assemble_start_function): Use it.
10024         (asm_emit_uninitialized): Use it.
10025         (assemble_alias): Use it.
10026         (assemble_variable): Use it.
10027
10028 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
10029
10030         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
10031         2002-03-12 internal visibility change.
10032         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
10033         visibility into SYMBOL_REF_FLAG.
10034
10035 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
10036
10037         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
10038         VOIDmode operand.  Add compile-time optimization for constant results.
10039
10040 2002-03-12  Jason Merrill  <jason@redhat.com>
10041
10042         * c-typeck.c (convert_for_assignment): Don't allow conversions
10043         between pointers and references.  Only allow lvalues to convert to
10044         reference.
10045
10046 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
10047
10048         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10049         before prologue, to avoid scheduling problems.
10050
10051 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10052
10053         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10054         (ELIMINABLE_REGS): Add sfp->sp.
10055         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10056
10057 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10058
10059         PR optimization/5892
10060         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10061
10062 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10063
10064         * loop.c (basic_induction_var): Don't call convert_modes if mode
10065         classes are different.
10066
10067 2002-03-12  Richard Henderson  <rth@redhat.com>
10068
10069         PR optimization/5901
10070         * function.c (reposition_prologue_and_epilogue_notes): Position
10071         the markers after/before the last/first insn not deleted.
10072
10073 2002-03-12  Richard Henderson  <rth@redhat.com>
10074
10075         PR optimization/5878
10076         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10077         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10078         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10079
10080         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10081         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10082         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10083
10084         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10085         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10086         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10087         also.  Don't set it if not flag_pic.
10088         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10089         to be INVALID_REGNUM when not used.
10090
10091 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
10092
10093         * expmed.c (store_bit_field): Reset alias set for memory.
10094         (extract_bit_field): Same.
10095
10096 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10097
10098         * c-common.c (c_tree_code_type, c_tree_code_length,
10099         c_tree_code_name, add_c_tree_codes): Delete.
10100         * c-common.h (add_c_tree_codes): Delete.
10101         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10102         Define.
10103         * c-objc-common.c (c_objc_common_init): Don't call
10104         add_c_tree_codes, instead set lang_unsafe_for_reeval.
10105         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10106         objc_tree_code_name, add_objc_tree_codes): Delete.
10107         (objc_init): Don't call add_objc_tree_codes.
10108         * objc/objc-lang.c (tree_code_type, tree_code_length,
10109         tree_code_name): Define.
10110         * toplev.c (lang_independent_init): Don't set
10111         tree_code_length[IDENTIFIER_NODE].
10112         * tree.c (tree_code_type, tree_code_length, tree_code_name):
10113         Delete definitions, moved to language front-ends.
10114         * tree.def (IDENTIFIER_NODE): Hardwire the length.
10115         * tree.h (tree_code_type, tree_code_length, tree_code_name):
10116         Const-ify.
10117         (tree_code_length): Change type to unsigned char.
10118
10119 2002-03-12  Richard Henderson  <rth@redhat.com>
10120
10121         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10122         internal visibility change.
10123
10124 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10125
10126         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10127         validize_mem() instead of change_address to avoid clobbering
10128         memory attributes.
10129
10130 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10131
10132         * c-lex.h (position_after_whitespace): Remove.
10133
10134 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
10135
10136         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10137         (lex_string): Use unsigned char pointers.
10138
10139 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10140
10141         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10142         is not a valid memory_operand.
10143
10144 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10145
10146         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10147         * config/xtensa/lib1funcs.asm: Fix copyright to include
10148         special case for libgcc files.
10149         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10150         (__divsi3): Likewise.
10151         (__umodsi3): Likewise.
10152         (__modsi3): Likewise.
10153         * config/xtensa/lib2funcs.S: Fix copyright to include
10154         special case for libgcc files.
10155
10156 2002-03-12  Tom Rix  <trix@redhat.com>
10157
10158         * collect2.c (resolve_lib_name): Move outside of
10159         OBJECT_FORMAT_COFF ifdef.
10160         (ignore_library): Same.
10161
10162 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10163
10164         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10165
10166 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10167
10168         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10169         to function_section before writing out the constant pool.
10170
10171 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
10172
10173         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10174         zero_constant.
10175         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10176
10177 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
10178
10179         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10180         (adddi3): Likewise.
10181         (movdf): Likewise.
10182         (movdi): Likewise.
10183         (cmpsi splitter): Likewise.
10184         (modsi3): Fail if <= 0.
10185         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10186         redundant test when HOST_BITS_PER_WIDE_INT != 32.
10187         (reg_or_sub_cint64_operand): Likewise.
10188         (num_insns_constant_wide): Optimize sign extension.
10189         (rs6000_legitimize_address): Likewise.
10190
10191 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10192
10193         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10194         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10195
10196 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10197
10198         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10199         address calculation.
10200
10201 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10202
10203         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10204         scratch register to DImode / TImode.
10205         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10206         register used does not overlap the target.
10207
10208 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10209
10210         * Makefile.in (debug.o): Depend on debug.h.
10211         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10212         * debug.c (do_nothing_debug_hooks): Likewise.
10213         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10214         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10215         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10216         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10217         * dwarfout.c (dwarf_debug_hooks): Likewise.
10218         * integrate.c (output_inline_function): Likewise.
10219         * objc/objc-act.c (synth_module_prologue): Likewise.
10220         * sdbout.c (sdb_debug_hooks): Likewise.
10221         * toplev.c (debug_hooks): Likewise.
10222         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10223
10224 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10225
10226         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10227         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10228         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10229         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10230         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10231         * defaults.h (POINTER_SIZE): Define.
10232         * doc/tm.texi (POINTER_SIZE): Document default.
10233
10234 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10235
10236         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10237
10238 2002-03-11  Richard Henderson  <rth@redhat.com>
10239
10240         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10241         if rebuild_label_notes_after_reload.
10242
10243 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
10244
10245         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
10246         emit pic register load if "internal" visibility.
10247         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10248         (cris_expand_builtin_va_arg): Do all computations on trees.
10249
10250 2002-03-11  Richard Henderson  <rth@redhat.com>
10251
10252         * rtlanal.c: Include recog.h.
10253         (keep_with_call_p): Fix thinko.
10254         * Makefile.in (rtlanal.o): Update dependencies.
10255
10256 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
10257
10258         * genflags.c (gen_insn): Use IS_VSPACE.
10259         * genoutput.c (output_insn_data): Likewise.
10260         (process_template): Likewise.
10261
10262 2002-03-11  Richard Henderson  <rth@redhat.com>
10263
10264         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10265
10266 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10267
10268         * Makefile.in: Update.
10269         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10270         Update documentation.
10271         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10272         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10273
10274 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
10275
10276         * Makefile.in: Give texi2pod its input file as a command line
10277         argument, not on stdin.
10278
10279 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
10280             Daniel Berlin  <dan@dberlin.org>
10281
10282         C++ alias analysis improvement.
10283         * alias.c (record_component_aliases): Record aliases for base
10284         classes too.
10285
10286 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
10287
10288         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10289
10290 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
10291
10292         * toplev.c (vms_fopen): Remove, not needed.
10293
10294         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10295
10296         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10297
10298         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10299         for FP, already done later.
10300
10301         * toplev.c (debug_args): Add entry for VMS_DEBUG.
10302         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10303
10304 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
10305
10306         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10307         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10308         LARGEST_EXPONENT_IS_NORMAL for the given mode.
10309         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10310         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10311         (ediv, emul, eldexp, esqrt): Likewise.
10312         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10313         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10314         (saturate): New function.
10315         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10316         (make_nan): Use a saturation value instead of a NaN if
10317         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
10318         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10319         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
10320         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
10321         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10322         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10323         !ROUND_TOWARDS_ZERO.
10324         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10325         (ROUND_TOWARDS_ZERO): Document.
10326
10327 2002-03-11  Andreas Jaeger  <aj@suse.de>
10328
10329         * cfg.c (dump_flow_info): Remove unused variable.
10330
10331 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
10332
10333         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10334         computations on trees.
10335
10336 2002-03-10  Richard Henderson  <rth@redhat.com>
10337
10338         PR 5693:
10339         * reload.c (copy_replacements_1): New.
10340         (copy_replacements): Use it to recurse through the rtx.
10341
10342 2002-03-10  Richard Henderson  <rth@redhat.com>
10343
10344         * loop.c (strength_reduce): Compute number of iterations as
10345         unsigned HOST_WIDE_INT.
10346
10347 2002-03-10  Richard Henderson  <rth@redhat.com>
10348
10349         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10350         to move away from the end of the block.
10351
10352 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10353
10354         PR preprocessor/5899
10355         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10356
10357 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10358
10359         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10360
10361         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10362
10363 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10364
10365         * config/mmix/mmix.c: Improve comments.
10366         (mmix_target_asm_function_prologue): Drop variable
10367         empty_stack_frame.  Don't allocate unused slot above fp.
10368         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10369         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10370         brace in first column.
10371         (enum reg_class): Ditto.
10372         (FIRST_PARM_OFFSET): Now 0.
10373         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10374
10375 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10376
10377         * combine.c (make_extraction): Fix error in last change.
10378
10379 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10380
10381         * c4x.c (c4x_fp_reglist): Const-ify.
10382         * cris.c (cris_print_operand): Likewise.
10383         * i386.c (ix86_va_arg): Likewise.
10384         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10385         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10386         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10387         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10388         * mcore.h (regno_reg_class): Likewise.
10389         * mips.c (gen_int_relational): Likewise.
10390         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10391         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10392         * pdp11.c (move_costs): Likewise.
10393         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10394         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10395         Likewise.
10396         * s390.h (regclass_map): Likewise.
10397         * sh.c (shift_amounts): Likewise.
10398         * sh.md (rotlsi3): Likewise.
10399
10400 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10401
10402         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10403         (ne0+5): Use new clobber to generate proper shift pattern.
10404         Patch by Michael Matz <matz@kde.org>.
10405
10406 2002-03-09  Andreas Schwab  <schwab@suse.de>
10407
10408         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10409
10410 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10411
10412         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10413
10414 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10415
10416         PR middle-end/5877
10417         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10418         even for non-representable constants.
10419
10420 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10421
10422         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10423         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10424         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10425         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10426         (pop_function_context): Compute MAY_SHARE parameter for
10427         fixup_var_refs.
10428         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10429         (gen_mem_addressof): Call fixup_var_refs with new parm.
10430
10431         * combine.c (make_extraction): Don't make extension of CONST_INT.
10432
10433 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10434
10435         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10436         in o32 and o64 ABIs.
10437         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10438         but getting fixed-size structs passed in registers regardless of
10439         padding in o32 and o64 ABIs.
10440
10441         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10442         offset before loading address of argument passed by transparent
10443         reference.
10444
10445 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10446
10447         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10448
10449 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10450
10451         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10452         marker such that registers after it are saved.
10453
10454 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10455
10456         * sparc.c (arith_4096_operand): Fix error in last change.
10457
10458 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10459
10460         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10461         defaults for MEABI.
10462
10463 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10464
10465         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10466         vectors.
10467
10468 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10469
10470         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10471
10472 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10473
10474         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10475         removed; fix return value.
10476         * combine.c (combine_instructions): Dirtify blocks where we failed to
10477         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10478         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10479
10480 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10481
10482         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10483
10484 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10485
10486         * recog.c (peephole2_optimize): Re-distribute EH edges.
10487
10488 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10489
10490         * expr.c (expand_expr): Use unsave lang hook.
10491         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10492         (LANG_HOOKS_INITIALIZER): Update.
10493         * langhooks.h (struct lang_hooks): New hook unsave.
10494         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10495         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10496         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10497         (unsave_expr_now): Remove.
10498         * tree.h (unsave_expr_now, lang_unsave,
10499         lang_unsave_expr_now): Remove.
10500         (lhd_unsave): New.
10501
10502 2002-03-08  Andreas Jaeger  <aj@suse.de>
10503
10504         * flow.c (propagate_block_delete_insn): Remove unused variable.
10505
10506 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10507
10508         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10509         insn length for memory load/store.
10510
10511 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10512
10513         * doc/install.texi (--with-libiconv-prefix): Document.
10514
10515 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10516
10517         * doc/sourcebuild.texi: Fix typo.
10518
10519 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10520
10521         PR c/3711
10522         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10523         trees.
10524
10525 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10526
10527         * rtl.c (copy_most_rtx): Move from here ...
10528         * emit-rtl.c (copy_most_rtx): ... to here.
10529
10530 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10531
10532         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10533         SUBTARGET_CPP_SIZE_SPEC.
10534         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10535
10536         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10537
10538 2002-03-07  Matt Hiller  <hiller@redhat.com>
10539
10540         * gensupport.c (first_dir_md_include): Renamed from include;
10541         change all references.
10542         (last_dir_md_include): Renamed from last_include; change all
10543         references.
10544         (init_md_reader): Unconditionally initialize base_dir whether or
10545         not filename is a relative path.
10546
10547 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10548
10549         * config/fp-bit.c (_unord_f2): Compile it in even if
10550         US_SOFTWARE_GOFAST is enabled.
10551
10552         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10553         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10554         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10555         NULL_RTX, try reversing the comparison and the operands.
10556
10557 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10558
10559         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10560         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10561         and MATCH_OP_DUP.
10562
10563 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10564
10565         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10566
10567 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10568
10569         * basic-block.h (fixup_abnormal_edges): Declare.
10570         * reload1.c (fixup_abnormal_edges): New function.
10571         * reg-stack.c (convert_regs): Use it.
10572
10573         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10574
10575         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10576
10577 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10578
10579         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10580         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10581         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10582         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10583         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10584         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10585         unless x and y could be infinite.
10586         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10587         Check that the common type of both arguments is a real, even for
10588         targets without unordered comparisons.  Allow an integer argument
10589         to be compared against a real.
10590         (expand_tree_builtin): Use expand_unordered_cmp.
10591         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10592         * cse.c (fold_rtx): Likewise.  Fix indentation.
10593         * fold-const.c (fold_real_zero_addition_p): New.
10594         (fold): Use it, and the new HONOR_... macros.
10595         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10596         * jump.c (reversed_comparison_code_parts): After searching for
10597         the true comparison mode, use HONOR_NANS to decide whether it
10598         can be safely reversed.
10599         (reverse_condition_maybe_unordered): Remove IEEE check.
10600         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10601         to decide which simplifications are valid.  Allow the following
10602         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10603         and (a - -b) to (a + b).
10604         (simplify_relational_operation): Use HONOR_NANS.
10605         * doc/tm.texi: Document the MODE_HAS_... macros.
10606
10607 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10608
10609         * combine.c (simplify_comparison): If simplifying a logical shift
10610         right and compare with constant, force the comparison to unsigned.
10611
10612 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10613
10614         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10615
10616         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10617         -mabi=no-altivec
10618         (alt_reg_names): Remove % for vrsave.
10619
10620 2002-03-06  Richard Henderson  <rth@redhat.com>
10621
10622         PR optimization/5844
10623         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10624         if used indicates we've already emitted one copy of an operand.
10625         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10626         (gen_split): Supply a non-null used.
10627
10628 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10629
10630         * reload1.c (reload): Unshare all rtl after reload is done.
10631
10632         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10633         but simply fail if the expression is too complex to simplify.
10634         (simplify_gen_binary): Handle simplify_plus_minus failures.
10635
10636 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10637
10638         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10639         consistently call delete_trivially_dead_insns after CSE and GCSE;
10640         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10641         after liveness2; update comment in last crossjumping.
10642         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10643
10644 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10645
10646         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10647         after completing fast dead code elimination.
10648
10649         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10650         COMPARE operator.
10651
10652 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10653
10654         * version.c:  Fix misplaced leading blanks on first line.
10655
10656 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10657
10658         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10659
10660 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10661
10662         * cfgcleanup.c (mentions_nonequal_regs): New function.
10663         (thread_jump): Use it.
10664         * toplev.c (rest_of_compilation): Run jump threading after
10665         liveness.
10666
10667 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10668
10669         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10670         patch.
10671
10672 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10673
10674         * predict.c (estimate_bb_frequencies): Do not reload the
10675         frequencies from notes.
10676
10677 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10678
10679         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10680         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10681
10682         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10683         delete_noop_moves): Return indeger.
10684         * flow.c (ndead): New variable.
10685         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10686         BB argument; update callers.
10687         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10688         (life_analysis): Do not call purge_all_dead_edges.
10689         (update_life_info): Return number of deleted insns; print statistics.
10690         (update_life_info_in_dirty_blocks): likewise.
10691         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10692         return number of insns deleted.
10693
10694         * cse.c: Include timevar.h
10695         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10696         iterate until stabilizes; print statistics; return number of killed
10697         insns.
10698         * Makefile.in: (cse.o): Add timevar.h dependency
10699         * rtl.h (delete_trivially_dead_insns): New.
10700         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10701         * toplev.c (rest_of_compilation): Update callers.
10702
10703         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10704         (try_optimize_cfg): Do not update liveness.
10705         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10706         removal stabilizes; use delete_trivially_dead_insns.
10707
10708         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10709
10710 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10711
10712         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10713         callbacks when processing assembly language.
10714
10715 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10716
10717         * pa.h (ASM_FILE_END): Define.
10718         * som.h (ASM_FILE_END): Delete.
10719
10720         * pa.c (function_arg): Don't pass floats in general registers in
10721         indirect calls if TARGET_ELF32.
10722
10723 2002-03-05  Richard Henderson  <rth@redhat.com>
10724
10725         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10726
10727 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10728
10729         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10730
10731 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10732
10733         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10734         -r command line.  Don't hide any symbols if not building
10735         shared libgcc.
10736
10737 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10738
10739         * cfg.c (dump_flow_info): Warn about profile mismatches.
10740         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10741         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10742
10743 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10744
10745         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10746         wide volatile memory by parts.
10747
10748 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10749
10750         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10751         is NULL.
10752
10753 2002-03-05  Richard Henderson  <rth@redhat.com>
10754
10755         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10756
10757 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10758
10759         * toplev.c (documented_lang_options): Document more
10760         language-specific options.
10761         * doc/invoke.texi (Warning Options): Correct documentation for
10762         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10763         * c-decl.c (c_decode_option): Use a table to handle warning options.
10764
10765 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10766
10767         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10768         parameter to mmix_encode_section_info.
10769         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10770         relocatably.  Always produce ELF, not mmo if linking relocatably.
10771         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10772         first is non-zero, don't add symbol prefix.
10773         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10774         prototype accordingly.
10775
10776 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10777
10778         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10779
10780 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10781
10782         * configure.in: Increase required makeinfo version to 4.1.
10783         * configure: Regenerate.
10784
10785 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10786
10787         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10788         elsewhere now.
10789
10790 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10791
10792         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10793         * doc/invoke.texi: Fix @math uses.
10794
10795 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10796
10797         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10798         removal
10799
10800 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10801
10802         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10803         (powerpc-*-eabisimaltivec*): Same.
10804
10805         * config/rs6000/t-ppcendian: New.
10806
10807 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10808
10809         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10810         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10811         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10812
10813 2002-03-03  Richard Henderson  <rth@redhat.com>
10814
10815         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10816
10817 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10818
10819         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10820         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10821         tree.c, config/m68k/m68k.c:
10822         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10823         REAL_ARITHMETIC blocks unconditional.  Delete some further
10824         #ifdef blocks predicated on REAL_ARITHMETIC.
10825         * flags.h, toplev.c: Delete remaining references to
10826         flag_pretend_float.
10827
10828         * doc/invoke.texi: Remove documentation of -fpretend-float.
10829         * doc/tm.texi: Describe the various REAL_* macros as provided by
10830         real.h, not by the target configuration files.
10831
10832         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10833         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10834         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10835         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10836         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10837         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10838         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10839         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10840         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10841         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10842         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10843         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10844         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10845         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10846         config/xtensa/xtensa.h:
10847         Do not define, undefine, or mention in comments any of
10848         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10849         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10850         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10851         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10852         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10853         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10854         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10855         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10856         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10857
10858 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10859
10860         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10861         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10862         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10863         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10864         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10865         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10866         Delete.
10867         * defaults.h (BITS_PER_WORD): Define.
10868         * doc/tm.texi (BITS_PER_WORD): Document default value.
10869
10870         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10871         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10872         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10873
10874 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10875
10876         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10877         lieu of explicit sizeof/sizeof.
10878         * i386.c (override_options, ix86_init_mmx_sse_builtins,
10879         ix86_expand_builtin): Likewise.
10880         * mips.c (mips_add_gc_roots): Likewise.
10881         * mmix.c (mmix_output_condition): Likewise.
10882         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10883         altivec_init_builtins): Likewise.
10884         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10885         * cppexp.c (Nsuff, parse_number): Likewise.
10886         * cppinit.c (builtin_array_end): Likewise.
10887         * gcc.c (n_default_compilers, process_command): Likewise.
10888         * genpreds.c (output_predicate_decls): Likewise.
10889         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10890         * lcm.c (N_ENTITIES): Likewise.
10891         * stor-layout.c (set_sizetype): Likewise.
10892
10893 2002-03-03  Richard Henderson  <rth@redhat.com>
10894
10895         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10896         for types or labels.
10897
10898 2002-03-03  Richard Henderson  <rth@redhat.com>
10899
10900         * c-decl.c (start_decl): Initialized variables are not common.
10901
10902 2002-03-02  Per Bothner  <per@bothner.com>
10903
10904         * gcc.c (option_map):  Suport new --bootclasspath option.
10905         --CLASSPATH is now just an alias for --classpath.
10906
10907 2002-03-02  Richard Henderson  <rth@redhat.com>
10908
10909         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10910         load if "internal" visibility.
10911         * doc/extend.texi: Document visibility meanings.
10912
10913 2002-03-02  Richard Henderson  <rth@redhat.com>
10914
10915         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10916         to functions as well.
10917
10918 2002-03-02  Richard Henderson  <rth@redhat.com>
10919
10920         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10921         (handle_visibility_attribute): Don't call assemble_visibility.
10922         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10923         without asmspec.  Invoke assemble_alias when needed.
10924         * varasm.c (maybe_assemble_visibility): New.
10925         (assemble_start_function, assemble_variable, assemble_alias): Use it.
10926
10927 2002-03-02  Richard Henderson  <rth@redhat.com>
10928
10929         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10930         invoke ENCODE_SECTION_INFO with first call flag.
10931
10932         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10933         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10934         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10935         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10936         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10937         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10938         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10939         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10940         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10941         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10942         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10943         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10944         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10945         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10946         config/mcore/mcore-protos.h, config/mcore/mcore.c,
10947         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10948         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10949         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10950         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10951         config/sh/sh.h, config/sparc/sparc.h,
10952         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10953         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10954         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10955         FIRST argument.  As needed, examine it and do nothing.
10956
10957         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10958         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10959         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10960
10961         * config/arm/t-pe (pe.o): Add dependencies.
10962
10963 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10964
10965         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10966         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10967         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10968         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10969         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10970         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10971         * defaults.h (BITS_PER_UNIT): Define.
10972         * doc/tm.texi (BITS_PER_UNIT): Document default value.
10973
10974 2002-03-02  Kazu Hirata  <kazu@hxi.com>
10975
10976         * config/h8300/h8300-protos.h: Add a prototype for
10977         compute_a_shift_length.
10978         * config/h8300/h8300.c (h8300_asm_insn_count): New.
10979         (compute_a_shift_length): Likewise.
10980         (h8300_adjust_insn_length): Do not adjust insn length of shift
10981         insns.
10982         * config/h8300/h8300.md (anonymous shift patterns): Use
10983         compute_a_shift_length.
10984
10985 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10986
10987         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10988         trunc_int_for_mode.
10989
10990         * emit-rtl.c (offset_address): Call update_temp_slot_address.
10991
10992 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10993
10994         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10995         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10996         * flags.h (flag_zero_initialized_in_bss): Declare.
10997         * toplev.c (flag_zero_initialized_in_bss): New flag.
10998         (lang_independent_options): Add flag_zero_initialized_in_bss.
10999         * tree.c (initializer_zerop): New function.
11000         * tree.h (initializer_zerop): Declare.
11001         * varasm.c (assemble_variable): If we can emit bss, put zero
11002         initializers in the bss section.
11003
11004 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
11005
11006         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
11007         like more than one symbol per .weak directive.
11008
11009 2002-03-01  Richard Henderson  <rth@redhat.com>
11010
11011         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
11012         adjust argument_pointer by pretend_args_size.
11013         (ia64_va_start): Adjust va_start address by -pretend_args_size.
11014
11015 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11016
11017         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
11018
11019 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
11020
11021         * toplev.c (rest_of_compilation): Delete dead jumptables before
11022         loop.
11023         * flow.c (delete_dead_jumptables): Make global.
11024         * rtl.h (delete_dead_jumptables): Declare.
11025
11026 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
11027
11028         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
11029         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
11030         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
11031
11032 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11033
11034         * config/h8300/h8300-protos.h: Fix formatting.
11035         * config/h8300/h8300.c: Likewise.
11036         * config/h8300/h8300.h: Likewise.
11037
11038 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11039
11040         * config/h8300/h8300.c (print_operand): Support 16-bit
11041         constant addresses.
11042         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
11043
11044 2002-02-28  Richard Henderson  <rth@redhat.com>
11045
11046         * expmed.c (store_bit_field): Prevent generation of CONCATs;
11047         pun complex values as integers; use gen_lowpart instead of
11048         gen_rtx_SUBREG.
11049         (extract_bit_field): Likewise.
11050
11051 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
11052             David Edelsohn  <edelsohn@gnu.org>
11053
11054         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11055         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11056         (SUPPORTS_WEAK): Likewise.
11057         * output.h (add_weak): Add tree param.
11058         * varasm.c (add_weak): Likewise.  Save decl.
11059         (struct weak_syms): Add decl field.
11060         (mark_weak_decls): New function.
11061         (init_varasm_once): ggc_add_root mark_weak_decls.
11062         (assemble_start_function): Use ASM_WEAKEN_DECL.
11063         (assemble_variable): Likewise.
11064         (assemble_alias): Likewise.
11065         (declare_weak): Pass decl to add_weak.
11066         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11067         (remove_from_pending_weak_list): Declare and define for
11068         ASM_WEAKEN_DECL.
11069         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11070         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11071         * defaults.h (SUPPORTS_WEAK): Likewise.
11072         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11073         .weak for code sym.  Do emit .size for descriptor sym.
11074         (ASM_DECLARE_FUNCTION_SIZE): Define.
11075         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11076         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
11077         .lglobl unless TARGET_XCOFF.  Formatting fixes.
11078         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11079         .weak for code sym.
11080         (HANDLE_PRAGMA_WEAK): Remove.
11081         (ASM_WEAKEN_LABEL): Remove.
11082         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11083
11084 2002-03-01  Jason Merrill  <jason@redhat.com>
11085
11086         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11087         (TARGET_EXPR_CLEANUP): New macro.
11088
11089 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
11090
11091         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11092         to take ptr_extend into account as third type of extension.
11093         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11094         fields used by SUBREG_PROMOTED_UNSIGNED_P.
11095         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11096         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11097         * calls.c (precompute_arguments): Use new macro.
11098         (expand_call): Ditto.
11099         * combine.c (nonzero_bits): Ditto.
11100         (record_promoted_value): Ditto.
11101         * expr.c (store_expr): Ditto.
11102         (expand_expr): Ditto.
11103         * function.c (assign_parms): Ditto.
11104
11105 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
11106
11107         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11108         override -shared and -shared-libgcc.
11109
11110 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
11111
11112         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11113         of "ultrasparc".
11114         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
11115         to be broken.
11116
11117 2002-02-28  Richard Henderson  <rth@redhat.com>
11118
11119         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11120         4 cycle latency from MM producers.
11121         (ia64_internal_sched_reorder): Likewise with pipeline flush.
11122
11123 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
11124
11125         * mklibgcc.in: Don't use GNU make extension.
11126
11127 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11128
11129         * c-parse.in (STATIC): New terminal.
11130         (scspec): New non-terminal.  Update productions accordingly.
11131         (program): Remove bogus ifc / end ifc.
11132         (array_declarator): Simplify production using STATIC.
11133
11134 2002-02-28  Jim Meyering  <meyering@lucent.com>
11135
11136         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11137         \a still means TARGET_BELL.
11138
11139 2002-02-28  Richard Henderson  <rth@redhat.com>
11140
11141         * haifa-sched.c (sched_emit_insn): New.
11142         (schedule_block): Use last_scheduled_insn to track last insn.
11143         * sched-int.h (sched_emit_insn): Prototype.
11144         * config/ia64/ia64.c (last_issued): Remove.
11145         (ia64_variable_issue): Don't set it.
11146         (nop_cycles_until): Use sched_emit_insn.
11147
11148 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
11149
11150         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11151         extended constants.
11152
11153 2002-02-28  Kazu Hirata  <kazu@hxi.com>
11154
11155         * config/h8300/h8300.c: Fix formatting.
11156         * config/h8300/h8300.h: Likewise.
11157
11158 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11159
11160         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11161         which may overwrite the high byte of the frame pointer.
11162
11163 2002-02-28  Bo Thorsen  <bo@suse.de>
11164
11165         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11166         (STARTFILE_SPEC): Add 64 bit files.
11167         (ENDFILE_SPEC): Likewise.
11168
11169 2002-02-28  Jason Merrill  <jason@redhat.com>
11170
11171         * c-decl.c (finish_function): Only warn about missing return
11172         statement with -Wreturn-type.
11173
11174 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11175
11176         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11177
11178         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11179         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11180
11181 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11182
11183         * basic-block.h (BB_REACHABLE): Renumber.
11184         (BB_DIRTY, BB_NEW): New flags.
11185         (clear_bb_flags): Declare.
11186         (update_life_info_in_dirty_blocks): Declare.
11187         * cfg.c (clear_bb_flags): New function.
11188         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11189         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11190         reorder_insns, emit_insn_after): Mark block as dirty.
11191         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11192         (update_life_info_in_dirty_blocks): New function.
11193         * recog.c (apply_change_group): Dirtify block.
11194
11195         * cse.c (cse_insn): Reorder emitting of jump insn to keep
11196         cfg consistent.
11197         * gcse.c (delete_null_pointer_checks): Likewise.
11198
11199         * toplev.c (dump_file_index): Move cse2 after bp,
11200         add DFI_null
11201         (dump_file_info): Similary.
11202         (rest_of_compilation): Avoid most of CFG rebuilds;
11203         do first if converision after null pointer checks, do cse2
11204         after branch prediction; avoid full liveness rebuild after
11205         initializing subregs.
11206         * invoke.texi (-d options): Document -du, renumber.
11207
11208         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11209         (notice_new_block): Do not set BB_UPDATE_LIFE.
11210         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11211          merge_blocks_move_successor_nojumps, merge_blocks,
11212          try_crossjump_to_edge): Likewise.
11213         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11214         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11215         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11216         (merge_of_block): Do not use life_data_ok.
11217         (find_if_case_1): Do not use SET_UPDATE_LIFE.
11218         (if_convert): Use BB_DIRTY mechanizm to update life.
11219         * lcm.c (optimize_mode_switching): Update
11220         update_life_info_in_dirty_blocks
11221
11222 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11223
11224         * Makefile.in (integrate.o): Update.
11225         * c-decl.c (copy_lang_decl): Rename.
11226         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11227         * integrate.c: Include langhooks.h.
11228         (copy_decl_for_inlining): Update to use langhook.
11229         * langhooks-def.h (lhd_do_nothing_t,
11230         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11231         (LANG_HOOKS_INITIALIZER): Update.
11232         * langhooks.c (lhd_do_nothing_t): New.
11233         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11234         * tree.h (copy_lang_decl): Remove.
11235 objc:
11236         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11237
11238 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
11239
11240         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11241         POST_DEC, and POST_MODIFY.
11242
11243 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11244
11245         * c-typeck.c (digest_init): Remove unused parameter; all
11246         callers changed.
11247
11248 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
11249
11250         * expmed.c (expand_shift): Correctly test for low part of a
11251         subreg.
11252
11253 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
11254
11255         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11256         insn UIDs with insn addresses.
11257
11258 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11259
11260         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11261         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11262         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11263         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11264         gcc.c, toplev.c: Delete code implementing -traditional mode.
11265
11266         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11267         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11268         Document removal of -traditional mode for compilation, and
11269         remove documentation only relevant to that mode.
11270
11271         * config/nextstep.h, config/ptx4.h, config/svr4.h,
11272         config/convex/convex.h, config/d30v/d30v.h,
11273         config/i386/dgux.h, config/i386/osf1elf.h,
11274         config/i386/osfelf.h, config/i386/osfrose.h,
11275         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11276         config/m68k/hp310.h, config/m88k/dgux.h,
11277         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11278         config/m88k/m88k.h, config/m88k/openbsd.h,
11279         config/mips/abi64.h, config/mips/osfrose.h,
11280         config/mips/svr4-5.h, config/mips/svr4-t.h,
11281         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11282         config/stormy16/stormy16.h: Remove all references to
11283         -traditional from target specs.  Delete all mention of the
11284         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
11285         delete a couple of commented-out definitions of
11286         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11287         to -traditional.
11288
11289         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11290         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11291
11292 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11293
11294         * mklibgcc.in: Don't use \n in a line subject to
11295         interpretation by echo.
11296
11297 2002-02-27  Graham Stott  <grahams@redhat.com>
11298
11299         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11300         Constify NAME.
11301
11302         * loop.c (prescan_loop): Handle PARALLEL.
11303
11304         * unroll.c (loop_iterations): Return 0 if the add_val for
11305         a BIV is REG.
11306
11307         * final.c (output_operand_lossage): Constify PFX_STR.
11308
11309         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11310
11311 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11312
11313         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11314         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11315
11316 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
11317
11318         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11319
11320 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11321
11322         * cpplex.c (_cpp_lex_token): Handle directives in macro
11323         arguments.
11324         * cpplib.c (_cpp_handle_directive): Save and restore state
11325         if parsing macro args when entering a directive.
11326         * cppmacro.c (collect_args): No need to handle directives
11327         in macro arguments.
11328         (enter_macro_context, replace_args): Use the original macro
11329         definition in case it was redefined whilst collecting arguments.
11330 doc:
11331         * cpp.texi: Update.
11332
11333 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
11334
11335         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11336         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11337         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11338         method on AIX.
11339         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11340         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11341         (load_toc_v4_PIC_2): Same.
11342
11343 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
11344
11345         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11346
11347 2002-02-26  Richard Henderson  <rth@redhat.com>
11348
11349         * config/alpha/alpha.md (ashldi_se): Re-enable.
11350
11351 2002-02-26  Richard Henderson  <rth@redhat.com>
11352
11353         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11354         MODULE_LOCAL_P; improve commentary.
11355
11356 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11357
11358         * doc/cpp.texi: Clarify documentation of relationship between
11359         #line and #include.
11360
11361 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11362
11363         * config/h8300/h8300-protos.h: Update the prototype for
11364         compute_logical_op_length.  Add the prototype for
11365         compute_logical_op_cc.
11366         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11367         code from operands.
11368         (compute_logical_op_cc): New.
11369         * config/h8300/h8300.md: Combine all the logical op patterns
11370         in HImode and SImode.  Use compute_logical_op_cc.
11371
11372 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11373
11374         * config/i386/i386.c (print_operand): Don't append ATT-style
11375         length suffixs to x87 opcodes when in Intel mode.
11376
11377 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11378
11379         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11380         (init_emit_once): Update calls.
11381         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11382         (init_syntax_once): Prototype.
11383
11384 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11385
11386         * pa-linux.h (LIB_SPEC): Update definition.
11387         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11388
11389 2002-02-26  Richard Henderson  <rth@redhat.com>
11390
11391         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11392         if we emitted a stop bit.
11393
11394 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11395
11396         * configure.in (libgcc_visibility): Substitute.
11397         * configure: Rebuilt.
11398         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11399         defined symbols .hidden.
11400
11401 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11402
11403         * attribs.c (c_common_attribute_table): Add visibility.
11404         (handle_visibility_attribute): New function.
11405         * varasm.c (assemble_visibility): New function.
11406         * output.h (assemble_visibility): Add prototype.
11407         * tree.h (MODULE_LOCAL_P): Define.
11408         * crtstuff.c (__dso_handle): Use visibility attribute.
11409         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11410         for MODULE_LOCAL_P symbols too.
11411         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11412         MODULE_LOCAL_P symbols the same way as local symbols.
11413         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11414         into .sdata/.sbss by the user.
11415         * doc/extend.texi (Function Attributes): Document visibility
11416         attribute.
11417
11418 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11419
11420         PR debug/5770
11421         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11422         STRING_CST initializer spanning the whole variable without
11423         embedded zeros.
11424         If expand_expr returned MEM, don't use it.
11425
11426 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11427
11428         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11429         generate a die for the lexical block.
11430
11431 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11432
11433         * config/h8300/h8300-protos.h: Add a prototype for
11434         compute_logical_op_length.
11435         * config/h8300/h8300.c (compute_logical_op_length): New.
11436         * config/h8300/h8300.md (anonymous logical patterns): Use
11437         compute_logical_op_length for length.
11438
11439 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11440
11441         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11442         for vectors.
11443         (gen_type_die): Same.
11444
11445         * attribs.c (handle_vector_size_attribute): Set debug information.
11446
11447 2002-02-26  Daniel Egger  <degger@fhm.edu>
11448
11449         * config/rs6000/rs6000.md: Swap define_insn attributes to
11450         fix incorrect generation of merge high instructions instead
11451         of merge low.
11452
11453 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11454
11455         * c-typeck.c (really_start_incremental_init): Use
11456         bitsize_zero_node for vectors.
11457
11458 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11459
11460         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11461         ("*set_vrsave_internal"): Same.
11462
11463 2002-02-25  Richard Henderson  <rth@redhat.com>
11464
11465         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11466         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11467
11468 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11469
11470         PR target/5755
11471         * config/i386/i386.c (ix86_return_pops_args): Only pop
11472         fake structure return argument if it was passed on the stack.
11473
11474 2002-02-25  Jason Merrill  <jason@redhat.com>
11475
11476         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11477         RESULT_DECL.
11478
11479 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11480
11481         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11482         link with shared_name only.
11483         * doc/invoke.texi (Link Options): Document new behavior.
11484
11485 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11486
11487         * c-typeck.c (push_init_level): Handle vectors.
11488
11489 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11490
11491         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11492         operands of SPARC_SETHI_P.
11493         (input_operand): Likewise.
11494         (sparc_emit_set_const32): Likewise.
11495         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11496         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11497         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11498         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11499         (movdi_insn_sp64_vis): Likewise.
11500         (movdi split, movdf split): Use SETHI32.
11501         * doc/md.texi: Document SPARC constraints L, M and N.
11502
11503 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11504
11505         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11506         ("*set_vrsave_internal"): use mfspr for Darwin.
11507
11508         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11509         gen_get_vrsave_internal.
11510
11511 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11512
11513         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11514
11515 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11516
11517         * cpplex.c (cpp_interpret_charconst): Get signedness or
11518         otherwise of wide character constants correct.
11519         * cppexp.c (lex): Get signedness of wide charconsts correct.
11520
11521 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11522
11523         * optabs.c (widen_operand): Only call convert_modes for
11524         promoted SUBREG if signedness matches.
11525         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11526
11527 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11528
11529         * cpplib.c (glue_header_name): Use local buffer to build up
11530         header name.
11531
11532 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11533
11534         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11535
11536 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11537
11538         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11539         H8/300[HS] separately.
11540         * config/h8300/h8300.md: Remove the early clobber constraint
11541         from bit field patterns.
11542
11543 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11544
11545         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11546         register_operand.
11547         (mulhisi3): Likewise.
11548         (umulqisi3): Likewise.
11549         (umulhisi3): Likewise.
11550
11551 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11552
11553         * cppinit.c (output_deps): Correct test for stdout output.
11554         (init_dependency_output): Cure warning.
11555
11556 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11557
11558         * expr.c (store_expr): When converting expression to promoted
11559         equivalent type, allow using SUBREG_REG of TARGET as the target
11560         of the expansion of EXP.
11561         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11562         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11563         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11564         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11565         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11566
11567 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11568
11569         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11570         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11571         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11572
11573 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11574
11575         PR optimization/5747
11576         * loop.c (scan_loop): Update reg info if move_movables created new
11577         pseudos.
11578
11579 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11580
11581         * gcc.c (init_gcc_spec): Revert last change.
11582
11583 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11584
11585         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11586         gpc_reg_operand constraint.
11587
11588 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11589
11590         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11591         Simplify comparison of `low'.
11592         (add_operand): Fix formatting.
11593         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11594         (mask_operand): Disallow mask to wrap in 64-bit mode.
11595         (rs6000_stack_info): Remove redundant test setting push_p.
11596         (output_toc): Fix formatting.
11597         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11598         cc_reg_not_cr0_operand constraint.
11599         (booldi3, boolcdi3 splitters): Same.
11600
11601 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11602
11603         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11604
11605 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11606
11607         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11608         gcc invoked with -shared-libgcc.
11609
11610 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11611
11612         PR c++/5748
11613         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11614         decl if any of elements was TREE_USED.
11615
11616 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11617
11618         * config/sparc/sol2.h: Don't include sys/mman.h.
11619         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11620         (arith_4096_operand): Don't throw high bits away.
11621         (const64_operand): Take sign extension of CONST_INTs into account.
11622         (const64_high_operand, sparc_emit_set_const32): Likewise.
11623         (GEN_HIGHINT64): Likewise.
11624         (sparc_emit_set_const64_quick1): Likewise.
11625         (const64_is_2insns): Likewise.
11626         (print_operand): Use trunc_int_for_mode for sign extension.
11627         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11628         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11629         chars.  Assume CONST_INT is already properly sign-extended.
11630         (movdi split): Sign-extend each SImode part.
11631         (andsi3 split): Don't mask high bits off, so that result
11632         remains properly sign-extend.
11633         (iorsi3 split): Likewise.
11634         (xorsi3 split): Likewise.
11635
11636 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11637
11638         * fold-const.c (fold): Fix typo in comments.
11639
11640 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11641
11642         * Makefile.in (langhooks.o): Update dependencies.
11643
11644 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11645
11646         * langhooks.c: Include flags.h.
11647
11648 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11649
11650         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11651
11652         * c-common.c (c_common_post_options): Set inline trees by
11653         default.
11654
11655         * doc/extend.texi (Function Attributes): Document always_inline
11656         attribute.
11657         Update documentation about inlining when not optimizing.
11658
11659         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11660
11661         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11662         unless DECL_ALWAYS_INLINE.
11663
11664         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11665         unless DECL_ALWAYS_INLINE.
11666         (c_disregard_inline_limits): Disregard if always_inline set.
11667
11668         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11669         Disregard if always_inline set.
11670         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11671         unless DECL_ALWAYS_INLINE.
11672
11673         * attribs.c (handle_always_inline_attribute): New.
11674         (c_common_attribute_table): Add always_inline.
11675
11676         * config/rs6000/altivec.h: Add prototypes for builtins
11677         requiring the always_inline attribute.
11678
11679 2002-02-21  Eric Christopher  <echristo@redhat.com>
11680
11681         * expmed.c (store_bit_field): Try to simplify the subreg
11682         before generating a new one when when the mode size of
11683         value is less than maxmode.
11684
11685 2002-02-21  Richard Henderson  <rth@redhat.com>
11686
11687         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11688         than gen_rtx_PLUS to form the sum.
11689         * explow.c (force_reg): Rearrange to not allocate new pseudo
11690         when force_operand returns a register.
11691         * expr.c (expand_assignment): Allow offset_rtx expansion to
11692         return a sum.  Do not force addresses into registers.
11693         (expand_expr): Likewise.
11694         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11695         to canonicalize arithmetic that didn't simpify.
11696         (simplify_plus_minus): New argument force; update
11697         all callers.  Don't split CONST unless we can do something with it,
11698         and wouldn't lose the constness of the operands.
11699
11700         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11701         that we generated earlier.
11702
11703 2002-02-21  Tom Tromey  <tromey@redhat.com>
11704
11705         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11706         (output_line_info): Use constant `1', with a long explanatory
11707         comment.
11708         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11709
11710 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11711
11712         * jump.c (redirect_jump): If old label has no UID, don't try to
11713         delete it.
11714
11715 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11716
11717         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11718         If input is constant, do shifts at compile time.
11719
11720 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11721
11722         * doc/extend.texi: Fix some more overfull hboxes.
11723
11724 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11725
11726         PR optimization/4994
11727         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11728         register moves.
11729
11730 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11731
11732         PR c++/4574
11733         * expr.h (expand_and): Add mode argument.
11734         * expmed.c (expand_and): Add mode argument.
11735         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11736         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11737         * except.c (expand_builtin_extract_return_addr): Likewise.
11738         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11739         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11740         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11741         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11742         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11743         gen_rtx (CONST_INT, VOIDmode, x).
11744
11745 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11746
11747         PR c/4697:
11748         * stmt.c (warn_if_unused_value): Move side effects test once more.
11749
11750 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11751
11752         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11753         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11754
11755 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11756
11757         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11758         SUBREG or ZERO_EXTEND.
11759
11760 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11761
11762         * sh.h (current_function_anonymous_args): Remove.
11763         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11764         of current_function_varargs and current_function_stdarg is set.
11765         * sh.c (sh_expand_prologue): Check current_function_varargs /
11766         current_function_stdarg / TARGET_SH5 instead of
11767         current_function_anonymous_args.
11768
11769         * sh64.h (TARGET_VERSION): Define.
11770
11771 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11772
11773         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11774         VRSAVE_REGNO on TARGET_ALTIVEC.
11775
11776 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11777
11778         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11779         bits of SImode const_int.
11780         (includes_rshift_p): Likewise.
11781         (print_operand): Call mask_operand and mask64_operand with correct
11782         mode.
11783         (rs6000_output_function_epilogue): Pad traceback table to word.
11784         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11785         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11786         mask64_operand with correct mode.
11787         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11788
11789 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11790
11791         PR debug/4461
11792         * varasm.c (get_pool_constant_mark): New.
11793         * rtl.h (get_pool_constant_mark): Add prototype.
11794         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11795         be represented if it has not been output.
11796
11797 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11798
11799         * combine.c (do_SUBST): Sanity check substitutions of
11800         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11801         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11802         CONST_INT into its operand.
11803         (known_cond): Likewise, for ZERO_EXTEND.
11804         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11805         allow for simplification of wide modes.  Reject CONST_INTs in
11806         ZERO_EXTEND when their actual mode is not given.
11807
11808 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11809
11810         * c-decl.c (pushdecl): If no global declaration is found for an
11811         extern declaration in block scope, try a limbo one.
11812
11813 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11814
11815         PR c++/4401
11816         * c-common.c (pointer_int_sum): Moved from...
11817         * c-typeck.c (pointer_int_sum): ...here.
11818         * c-common.h (pointer_int_sum): Add prototype.
11819
11820 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11821
11822         PR c++/5713
11823         * c-decl.c (duplicate_decls): Return 0 if issued error about
11824         redeclaration.
11825
11826 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11827             Jakub Jelinek  <jakub@redhat.com>
11828
11829         PR c/4389
11830         * tree.c (host_integerp): Ensure that the constant integer is
11831         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11832         when pos is zero or non-zero respectively.  Clarify comment.
11833         * c-format.c (check_format_info_recurse): Fix host_integerp
11834         usage; the pos argument should be zero when assigning to a
11835         signed HOST_WIDE_INT.
11836
11837 2002-02-20  Richard Henderson  <rth@redhat.com>
11838
11839         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11840         of the operand, rather than assuming TImode.
11841         (ix86_expand_binop_builtin): Cope with commutative patterns
11842         using nonimmediate_operand for both operands.
11843         (ix86_expand_timode_binop_builtin): Likewise.
11844         (ix86_expand_store_builtin): Validate operand 1.
11845         (ix86_expand_unop1_builtin): Likewise.
11846
11847 2002-02-20  Philip Blundell  <philb@gnu.org>
11848
11849         PR 5705
11850         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11851
11852 2002-02-20  Richard Henderson  <rth@redhat.com>
11853
11854         PR c/5615
11855         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11856
11857 2002-02-20  Tom Tromey  <tromey@redhat.com>
11858
11859         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11860         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11861         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11862         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11863         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11864         unconditionally.
11865
11866 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11867
11868         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11869           for (const_int 0) in X not just INTVAL.
11870
11871 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11872
11873         * doc/extend.texi: Avoid or reduce overfull hboxes.
11874
11875 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
11876
11877         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11878         operations if the field does not start at a mode boundary.
11879
11880 2001-02-20      Joel Sherrill <joel@OARcorp.com>
11881
11882         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11883         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11884         Also done for -Acpu and -Amachine.
11885
11886 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11887
11888         * cppinit.c (init_dependency_output): Take deps output file
11889         from -o if none given with -MF.  Suppress normal output.
11890         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11891         * doc/cpp.texi, doc/invoke.texi: Update.
11892
11893 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11894
11895         * toplev.c (output_quoted_string): Write unprintable
11896         characters with octal escapes.
11897
11898 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11899
11900         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11901         really_call_used[VRSAVE_REGNO] if not Altivec.
11902
11903 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
11904
11905         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11906         MODE_MASK.
11907         (constant_pool_expr_1): Fix formatting.
11908         (rs6000_legitimize_reload_address): Likewise.
11909
11910 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11911
11912         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11913         now that we have one.
11914
11915 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11916
11917         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
11918         end of first block of bitfields (which was only seven bits);
11919         rename dummy to unused_1; remove comment which is no longer true.
11920
11921 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11922
11923         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11924
11925 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11926
11927         PR 5399
11928         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11929         if generating PIC.
11930
11931         PR 5054
11932         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11933         arm_is_longcall_p rather than inspecting call-type cookie
11934         directly.
11935         (call_value_insn) [TARGET_THUMB]: Likewise.
11936
11937 2002-02-19  Graham Stott  <grahams@redhat.com>
11938
11939         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11940
11941 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11942
11943         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11944         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11945         (FP_SAVE_INLINE): Delete.
11946
11947         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11948         * config/rs6000/eabi.asm: Remove ABI save restore routines.
11949         * config/rs6000/t-ppccomm: Build crtsavres.o.
11950         * config/rs6000/crtsavres.asm: New file.
11951
11952 2002-02-19  Philip Blundell  <philb@gnu.org>
11953
11954         * config/arm/arm.c (use_return_insn): Don't reject interrupt
11955         functions.
11956         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11957         (output_return_instruction): Allow interrupt functions to return with
11958         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
11959         (arm_expand_prologue): Subtract 4 before stacking LR in an
11960         interrupt function.
11961
11962 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11963
11964         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11965         decl, not just FUNCTION_DECL.
11966         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11967         (arm_assemble_integer): Likewise.
11968         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11969         marked local.
11970
11971 2002-02-19  matthew green  <mrg@eterna.com.au>
11972
11973         * config.gcc (sparc-*-netbsdelf*): Enable target.
11974         (sparc64-*-netbsd*): New target.
11975         * config/sparc/netbsd-elf.h: New file.
11976         * config/sparc/t-netbsd64: New file.
11977
11978 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11979
11980         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11981
11982 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
11983
11984         * doc/invoke.texi: explicitly list the style guidelines that
11985         -Weffc++ checks for.
11986
11987 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
11988
11989         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11990
11991 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11992
11993         PR other/5718
11994         * gcc.c (cpp_unique_options): Treat -o as indicating object file
11995         only if not -E.  If -E, pass -o through to the preprocessor.
11996
11997 2002-02-19  Kazu Hirata  <kazu@hxi.com>
11998
11999         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
12000         register number with an appropriate macro.
12001
12002 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12003
12004         * doc/rtl.texi (Constants): Close @code tag.
12005
12006 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
12007
12008         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
12009         ("mmx_uavgv4hi3"): Same.
12010         ("pmulhrwv4hi3"): Same.
12011
12012         * tree-inline.c (walk_tree): Handle vectors.
12013
12014         * c-common.c (constant_expression_warning): Handle vectors.
12015         (overflow_warning): Same.
12016
12017         * sched-deps.c (sched_analyze_2): Handle vectors.
12018
12019         * rtlanal.c (rtx_unstable_p): Handle vectors.
12020         (rtx_varies_p): Same.
12021         (count_occurrences): Same.
12022         (regs_set_between_p): Same.
12023         (modified_between_p): Same.
12024         (modified_in_p): Same.
12025         (volatile_insn_p): Same.
12026         (volatile_refs_p): Same.
12027         (side_effects_p): Same.
12028         (may_trap_p): Same.
12029         (inequality_comparisons_p): Same.
12030         (replace_regs): Same.
12031         (computed_jump_p_1): Same.
12032
12033         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
12034         argument.
12035         (inner_mode_array): New.
12036         (copy_rtx): Handle vectors.
12037         (copy_most_rtx): Same.
12038         (rtx_equal_p): Same.
12039         (get_mode_alignment): Adjust for vectors.
12040
12041         * resource.c (mark_referenced_resources): Handle vectors.
12042         (mark_set_resources): Same.
12043
12044         * reload1.c (eliminate_regs): Handle vectors.
12045         (elimination_effects): Same.
12046         (scan_paradoxical_subregs): Same.
12047
12048         * reload.c (subst_reg_equivs): Handle vectors.
12049
12050         * regrename.c (scan_rtx): Handle vectors.
12051
12052         * regclass.c (reg_scan_mark_refs): Handle vectors.
12053
12054         * recog.c (find_single_use_1): Handle vectors.
12055
12056         * local-alloc.c (equiv_init_varies_p): Handle vectors.
12057         (contains_replace_regs): Same.
12058         (memref_referenced_p): Same.
12059
12060         * integrate.c (copy_rtx_and_substitute): Handle vectors.
12061         (subst_constants): Same.
12062
12063         * genattrtab.c (attr_copy_rtx): Handle vectors.
12064         (encode_units_mask): Same.
12065         (clear_struct_flag): Same.
12066         (count_sub_rtxs): Same.
12067
12068         * gcse.c (want_to_gcse_p): Handle vectors.
12069         (oprs_unchanged_p): Same.
12070         (hash_expr_1): Same.
12071         (oprs_not_set_p): Same.
12072         (expr_killed_p): Same.
12073         (compute_transp): Same.
12074         (store_ops_ok): Same.
12075
12076         * function.c (purge_addressof_1): Do not allow paradoxical subregs
12077         of vectors.
12078         (fixup_var_refs_1): Same.
12079         (instantiate_virtual_regs_1): Same.
12080
12081         * fold-const.c (operand_equal_p): Handle vectors.
12082         (fold): Same.
12083         (rtl_expr_nonnegative_p): Same.
12084
12085         * flow.c (mark_used_regs): Handle vectors.
12086
12087         * df.c (df_uses_record): Handle vectors.
12088
12089         * cselib.c (cselib_subst_to_values): Handle vectors.
12090         (cselib_mem_conflict_p): Same.
12091         (hash_rtx): Same.
12092
12093         * cse.c (canon_reg): Handle vectors.
12094         (fold_rt): Same.
12095         (cse_process_notes): Same.
12096         (count_reg_usage): Same.
12097         (canon_hash): Same.
12098
12099         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12100
12101         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12102
12103         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12104         (gen_rtx): Handle CONST_VECTOR.
12105         (gen_const_vector_0): New.
12106         (copy_rtx_if_shared): CONST_VECTORs can be shared.
12107         (reset_used_flags): Same.
12108         (copy_insn_1): Same.
12109         (initializer_constant_valid_p): Handle VECTOR_CST.
12110
12111         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12112
12113         * doc/rtl.texi (Constants): Document const_vector.
12114         (CONST0_RTX): Update for vectors.
12115         (RTL sharing): Same.
12116
12117         * print-tree.c (print_node): Add case for VECTOR_CST.
12118
12119         * tree.h (TREE_VECTOR_CST_ELTS): New.
12120         (struct tree_vector): New.
12121         (union tree_node): Add vector node.
12122         (build_vector): Add prototype.
12123
12124         * tree.def (VECTOR_CST): New.
12125
12126         * tree.c (build_vector): New.
12127
12128         * expmed.c (make_tree): Handle CONST_VECTOR.
12129
12130         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12131         (CONST_VECTOR_ELT): New.
12132         (CONST_VECTOR_NUNITS): New.
12133
12134         * machmode.h (GET_MODE_INNER): New.
12135         (DEF_MACHMODE): Accept 8th arg.
12136
12137         * machmode.def: Add 8th argument for vector inner mode.
12138         Add inner vector modes for vectors.
12139
12140         * rtl.def (VEC_CONST): Remove.
12141         (CONST_VECTOR): New.
12142
12143         * expr.c (clear_storage): Allow vectors.
12144         (is_zeros_p): Handle VECTOR_CST.
12145
12146         * varasm.c (output_constant_pool): Handle vectors.
12147         (rtx_const): Add veclo and vechi fields.
12148         (kind): Add RTX_VECTOR.
12149         (decode_rtx_const): Add case for vector.
12150
12151         * config/rs6000/rs6000-protos.h: Add zero_constant.
12152
12153         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12154         constants.  Force easy vector constants into memory.
12155         (easy_vector_constant): New.
12156         (emit_easy_vector_constant): New.
12157         (rs6000_legitimize_reload_address): Do not generate bad reloads on
12158         darwin.
12159
12160         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12161         instruction does.
12162         ("altivec_lvxl"): Same.
12163         (altivec_lvebx): Same.
12164         (altivec_lvehx): Same.
12165         (altivec_lvewx): Same.
12166         ("*movv4si_const0"): New.
12167         ("*movv4sf_const0"): New.
12168         ("*movv8hi_const0"): New.
12169         ("*movv16qi_const0"): New.
12170
12171 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12172
12173         * config/h8300/h8300.c (notice_update_cc): Use
12174         cc_status.value2.
12175
12176 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12177
12178         * config/h8300/h8300.md (divmod patterns): Change the
12179         constraints for operands[1] to register_operand.
12180
12181 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12182
12183         * config/h8300/h8300-protos.h: Remove the prototype for
12184         p_operand.
12185         * config/h8300/h8300.c (p_operand): Remove.
12186         * config/h8300/h8300.md: Replace p_operand with
12187         const_int_operand.
12188
12189 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12190
12191         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12192         comment.
12193         (output_return_instruction): Allow use of LDR to unstack
12194         return addresss even for interrupt handlers or when
12195         interworking.  If compiling for ARMv5, use interworking-safe
12196         return instructions by default.  Remove duplicated code and
12197         lengthy "strcat" sequences.
12198
12199 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12200
12201         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12202         (LINK_EH_SPEC): Define.
12203         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12204
12205 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
12206
12207         * config/s390/s390.c (s390_emit_prologue): Do not set the
12208         frame_related flag for call-clobbered registers.
12209
12210 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12211
12212         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12213         (construct_container): Fix handling of SSE operands.
12214         (ix86_expand_builtin): Fix handling of 64bit pointers.
12215         (mmx_maskmovq_rex): New pattern.
12216
12217 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12218
12219         * regrename.c (kill_set_value): Handle subregs properly.
12220
12221 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
12222
12223         * objc/objc-act.c (handle_impent): Remove leading '*'
12224         from objc_class_name.
12225
12226 2002-02-17  Richard Henderson  <rth@redhat.com>
12227
12228         * config/alpha/alpha.c (some_small_symbolic_operand,
12229         some_small_symbolic_operand_1, split_small_symbolic_operand,
12230         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12231         Handle small SYMBOL_REFs anywhere, not just inside memories.
12232         * config/alpha/alpha-protos.h: Update.
12233         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12234         * config/alpha/alpha.md (small symbolic operand splitter): Update.
12235
12236 2002-02-17  Roland McGrath  <roland@frob.com>
12237
12238         * config.gcc (powerpc-*-gnu-gnualtivec*,
12239         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12240         * config/rs6000/gnu.h: New file.
12241         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12242         Grok "gnu" in rs6000_abi_name.
12243         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12244         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12245         Grok -mcall-gnu analogous to -mcall-linux et al.
12246         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12247         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12248         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12249
12250 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
12251
12252         PR c/3444:
12253         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12254         shortening.
12255
12256 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12257
12258         * config/cris/cris.h: Undefine STARTFILE_SPEC and
12259         ENDFILE_SPEC before (re)defining them.
12260
12261 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12262
12263         * config/h8300/h8300.c: Fix formatting.
12264         * config/h8300/h8300.h: Likewise.
12265
12266 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12267
12268         * doc/tm.texi: Explain why empty strings should not be
12269         marked for translation.
12270
12271 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12272
12273         * final.c (output_operand_lossage): Changed to accept
12274         printf style arguments. Change calls where necessary.
12275         * output.h (output_operand_lossage): Change declaration
12276         accordingly. Update copyright.
12277         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12278         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12279         Update copyright date where necessary.
12280
12281         * config/i386/i386.c (print_operand): Likewise. Remove use of
12282         sprintf.
12283
12284         * config/cris/cris.c (cris_operand_lossage): Likewise.
12285         Rename parameter so that exgettext recognizes it as
12286         translatable message.
12287         (LOSE_AND_RETURN): Rename parameter to msgid.
12288
12289 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12290
12291         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12292         hard coded register number with an appropriate macro.
12293         (HARD_REGNO_MODE_OK): Likewise.
12294         (ARG_POINTER_REGNUM): Likewise.
12295         (STATIC_CHAIN_REGNUM): Likewise.
12296         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12297         * config/h8300/h8300.md (define_constants): Define more
12298         register numbers.
12299
12300 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12301
12302         * config/i386/i386.h: Don't mark empty strings for translation.
12303
12304 2002-02-16  H.J. Lu <hjl@gnu.org>
12305
12306         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12307
12308 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
12309
12310         * cppinit.c (merge_include_chains): Check for brack being
12311         NULL before attempting to merge it with qtail.
12312
12313 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12314
12315         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12316         DBX_DEBUG.
12317
12318 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12319
12320         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12321
12322 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12323
12324         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12325         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12326         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12327
12328 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12329
12330         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12331         now only if !TARGET_FIX.
12332         (*movsi_nt_vms_fix): New pattern.
12333
12334 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
12335
12336         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12337         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12338         (alpha_sa_mask, alpha_sa_size): Reflect above change.
12339         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12340         (alpha_start_function, alpha_expand_epilogue): Likewise.
12341         (unicosmk_gen_dsib): Likewise.
12342
12343 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12344
12345         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12346
12347 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
12348
12349         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12350         check_and_change_labels, s390_final_chunkify): Delete.
12351         (s390_split_branches, s390_chunkify_pool): New functions.
12352         (s390_function_prologue): Call them.
12353
12354         * config/s390/s390.h (S390_REL_MAX): Delete.
12355         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12356
12357         * config/s390/s390.md (cjump, icjump, jump): Fix length
12358         attribute calculation.
12359
12360
12361 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12362
12363         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12364         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12365
12366 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12367
12368         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12369         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12370         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12371
12372 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12373
12374         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12375
12376 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12377
12378         * reload.c (find_dummy_reload): Check that an output register
12379         is valid for its mode.
12380
12381 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12382
12383         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12384         to simplify it.
12385
12386         * function.c (assign_parms): Demote promoted argument passed by
12387         transparent reference.
12388
12389 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12390
12391         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12392         -Acpu() and -Amachine() to eliminate warnings.
12393
12394 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12395
12396         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12397
12398 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12399
12400         * config/h8300/h8300-protos.h: Update the prototype for
12401         const_costs.
12402         * config/h8300/h8300.c (const_costs): Treat SET as a little
12403         more expensive operation.
12404         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12405         reference to const_costs.
12406
12407 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12408
12409         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12410
12411 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12412
12413         PR c/5503:
12414         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12415         use arguments from newtype.
12416
12417 2002-02-13  Eric Christopher  <echristo@redhat.com>
12418
12419         * config/mips/mips.c (override_options): Add check for march/mipsX
12420         on the same command line. Fix error message in cpu processing.
12421         Remove architecture and ISA checks.
12422
12423 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12424
12425         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12426
12427         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12428
12429 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12430
12431         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12432         alternatives.
12433         ("*movv8hi_internal1"): Same.
12434         ("*movv16qi_internal1"): Same.
12435         ("*movv4sf_internal1"): Same.
12436
12437         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12438         not push_reload for altivec modes.
12439
12440 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12441
12442         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12443         all RTEMS targets including removal of #includes from config/*/rtems*.h
12444         file and adding them to tm_file setting. Added xm_defines=POSIX to
12445         many targets.
12446         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12447         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12448         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12449         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12450         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12451         config/m68k/rtemself.h: Ditto.
12452         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12453         config/mips/rtems64.h: Ditto.
12454         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12455         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12456         Ditto.
12457         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12458         config/sparc/rtemself.h: Ditto.
12459         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12460         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12461         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12462         more like arm-elf.
12463         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12464         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12465         target made more similar to i386-elf.
12466         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12467         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12468         be similar to config/m68k/t-m68kelf.
12469         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12470
12471 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12472
12473         * regmove.c (kill_value): Handle subregs.
12474
12475 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12476
12477         * i386.md (mul patterns): Allow memory operand to be first;
12478         add expanders where needed; fix constraints.
12479         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12480         Allow memory operand to be the first.
12481
12482         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12483         operands.
12484
12485 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12486
12487         PR c/5681:
12488         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12489         GET_MODE (x).
12490
12491 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12492
12493         PR optimization/5547:
12494         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12495         all valid IA-32 address modes involving non-scaled %ebx and
12496         GOT/GOTOFF as displacement.
12497
12498 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12499
12500         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12501         after emitting ltorg insns.
12502
12503         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12504         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12505         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12506         *abssf2): Fix "op_type" attribute.
12507
12508 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12509
12510         * mkconfig.sh: Avoid using a subshell redirect.
12511         ($output.T): Change to $(output)T.
12512         (ENABLE_NLS): Remove unneeded undef.
12513
12514         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12515         * config/alpha/x-vms (libsubdir): Define.
12516
12517         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12518         register frame procedures. Optimize retrieving context.
12519
12520         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12521         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12522         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12523
12524 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12525
12526         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12527         Make same change as for find_base_value.
12528
12529 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12530
12531         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12532         of QImode and SImode.
12533
12534 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12535
12536         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12537         length computation of movsi.
12538         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12539
12540 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12541
12542         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12543         operands[2] to register_operand.
12544
12545 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12546
12547         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12548
12549 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12550
12551         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12552         for altivec_lvx* and altivec_stvx*.
12553         ("*movv4si_internal"): Add constraint for loading from GPRs.
12554         ("*movv8hi_internal1"): Same.
12555         ("*movv16qi_internal1"): Same.
12556         ("*movv4sf_internal1"): Same.
12557
12558         * config/rs6000/rs6000.c (altivec_register_operand): New.
12559
12560         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12561         altivec_register_operand.
12562
12563 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12564
12565         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12566         handle SYMBOL_REF.
12567
12568 2002-02-13  Stan Shebs  <shebs@apple.com>
12569
12570         * c-typeck.c (digest_init): Handle vectors.
12571         (really_start_incremental_init): Same.
12572         (pop_init_level): Same.
12573         (process_init_element): Same.
12574
12575         * varasm.c (output_constant): Same.
12576
12577         * expr.c (clear_storage): Same.
12578         (store_constructor): Same.
12579
12580 2002-02-12  Eric Christopher  <echristo@redhat.com>
12581
12582         * explow.c (hard_function_value): Add comment explaining
12583         signed/unsigned comparison.
12584
12585 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12586
12587         * jump.c (never_reached_warning): Add finish argument.
12588         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12589         real insn after end.
12590         * rtl.h (never_reached_warning): Adjust prototype.
12591         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12592         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12593         never_reached_warning.
12594
12595 2002-02-12  Graham Stott  <grahams@redhat.com>
12596
12597         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12598
12599 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12600
12601         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12602         logical shifts on H8/300.
12603         (shift_alg_si): Improve several shifts on H8/300.
12604         (get_shift_alg): Likewise.
12605
12606 2002-02-12  Graham Stott  <grahams@redhat.com>
12607
12608         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12609
12610 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12611
12612         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12613         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12614
12615 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12616
12617         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12618         non-CONST_INT through default_assemble_integer.
12619         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12620         <case 8>: Abort for CONST_DOUBLE.
12621
12622 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12623
12624         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12625         is specified.
12626         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12627         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12628
12629 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12630
12631         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12632
12633 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12634
12635         * regrename.c (regrename_optimize): Don't accept a
12636         part-clobbered register if the replaced register is not part
12637         clobbered.
12638
12639         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12640         take padding into account when computing the argument value.
12641
12642         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12643
12644         * combine.c (try_combine): Apply substitutions in
12645         CALL_INSN_FUNCTION_USAGE too.
12646
12647 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12648
12649         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12650         __builtin_altivec_abs*.
12651         (bdesc_abs): New.
12652
12653         * config/rs6000/rs6000.h (rs6000_builtins): Add
12654         ALTIVEC_BUILTIN_ABS*.
12655
12656         * config/rs6000/altivec.h: Use const char for builtins expecting
12657         literals.
12658         (vec_abs): New versions for C and C++.
12659         (vec_abss): Same.
12660
12661 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12662
12663         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12664         using Pmode.
12665
12666 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12667
12668         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12669         constant definition from h8300.md.
12670         (FRAME_POINTER_REGNUM): Likewise.
12671         * config/h8300/h8300.md (define_constants): Add FP_REG.
12672
12673 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12674
12675         * config/h8300/h8300.c (print_operand): Remove redundant code.
12676
12677 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12678
12679         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12680         * config/h8300/h8300.c (byte_reg): Make it static.
12681
12682 2002-02-10  Richard Henderson  <rth@redhat.com>
12683
12684         PR c/5623
12685         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12686
12687 2002-02-10  Richard Henderson  <rth@redhat.com>
12688
12689         PR c++/5624
12690         * tree.c (append_random_chars): Don't abort if main_input_filename
12691         does not exist.
12692
12693 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12694
12695         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12696
12697 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12698
12699         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12700         (pushhi1): Likewise.
12701
12702 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12703
12704         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12705         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12706
12707 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12708
12709         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12710         remove MASK_VIS.
12711         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12712
12713 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12714
12715         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12716         a half of an SImode register on H8/300.
12717
12718 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12719
12720         * i386.md (movdi_2): Add missing '!'.
12721
12722 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12723
12724         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12725         definitions.
12726
12727 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12728
12729         * config/h8300/h8300.md (length): Correct the distance valid
12730         for the short branch.
12731
12732 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12733
12734         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12735
12736 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12737
12738         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12739         registers in SImode.
12740         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12741         part-clobbered.
12742
12743         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12744         patch.
12745
12746         Contribute sh64-elf.
12747         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12748         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12749         (sh_cannot_modify_jumps_p): New function.
12750         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12751         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12752         (sh_ms_bitfield_layout_p): New function.
12753         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12754                     Zack Weinberg  <zack@codesourcery.com>
12755         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12756         expand_simple_binop instead of expand_binop.
12757         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12758         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12759         use of .quad and .uaquad.
12760         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12761         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12762         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12763         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12764         movdi_const_16bit): Make sure all CONSTs have modes.
12765         (sym2PIC): Ditto, but by adjusting all callers.
12766         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12767         if the prologue calls the SHmedia argument decoder or register
12768         saver.
12769         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12770         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12771         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12772         (sh_expand_epilogue): Don't emit USE of return target register.
12773         (prepare_move_operands): Legitimize DImode PIC addresses.
12774         (sh_media_register_for_return): Skip tr0, used to initialize the
12775         PIC register.
12776         (sh_expand_prologue): Remove explicit USE of return register.
12777         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12778         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12779         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12780         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12781         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12782         EXTRA_CONSTRAINT_T.
12783         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12784         (MOVI_SHORI_BASE_OPERAND_P): New.
12785         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12786         (EXTRA_CONSTRAINT_T): Define in terms of them.
12787         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12788         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12789         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12790         alternatives supporting TARGET_REGS.
12791         (UNSPEC_GOTPLT): New constant.
12792         (movdi split): Move incrementing of LABEL_NUSES...
12793         (movdi_const, movdi_const_32bit): Here.  Use
12794         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12795         (movdi_const_16bit): New.
12796         (call, call_value) [flag_pic]: Use GOTPLT.
12797         (call_pop, call_value_pop): New expands.
12798         (call_pop_compact, call_pop_rettramp): New insns.
12799         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12800         (sibcall) [flag_pic]: Use GOT.
12801         (builtint_setjmp_receiver): Remove bogus, unused expand.
12802         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12803         (*pt, *ptb, ptrel): New insns.
12804         (sym2GOT): Handle DImode GOT.
12805         (sym2GOTPLT, symGOTPLT2reg): New expands.
12806         (sym2PIC): New expand.
12807         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12808         (shcompact_return_tramp_i): Use return register explicitly.
12809         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12810         disable flag_reorder_blocks.
12811         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12812         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12813         clobbers, for clarity.
12814         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12815         restoring of r0 in macl as MAYBE_DEAD.
12816         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12817         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12818         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12819         alter_subreg all over.
12820         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12821         reload, instead of emitting instructions that would require
12822         reloading.
12823         (casesi_load_media): Add missing modes.
12824         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12825         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12826         as used if the argument decoder is called.
12827         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12828         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12829         Pmode, then extend it to DImode if necessary.
12830         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12831         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12832         constants in FPU-enabled SHmedia, let them be loaded from memory.
12833         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12834         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12835         Adjust whitespace in assembly output templates.
12836         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12837         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12838         mode of if_then_else.
12839         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
12840         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12841         sh.h.
12842         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
12843                     Joern Rennecke <amylaar@redhat.com>
12844         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12845         (SUBTARGET_CPP_PTR_SPEC): New.
12846         (SUBTARGET_CPP_SPEC): Remove.
12847         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12848         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12849         Fix typo in previous checkin.
12850         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
12851         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12852         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
12853                     Alexandre Oliva  <aoliva@redhat.com>
12854         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12855         what single FP register can hold for SHmedia target.
12856         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12857                     Alexandre Oliva  <aoliva@redhat.com>
12858         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12859         Do not split into SUBREG.
12860         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
12861         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12862         and added new functions as specified in SH5 ABI r9.
12863         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
12864         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12865         8-byte boundary.
12866         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
12867         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12868         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
12869         and consttable_window_ends.
12870         2001-06-03  Graham Stott  <grahams@redhat,com>
12871         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12872         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
12873         * config/sh/sh.c (print_operand): Handle floating-point pair,
12874         vector and matrix registers.
12875         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12876         vector modes into account.
12877         * config/sh/sh.md (movv2sf): Split move between registers into
12878         movdf.
12879         (movv4sf, movv16sf): Introduce insns that get split only after
12880         reload.
12881         * config/sh/shmedia.h: Fix Copyright dates.
12882         * config/sh/ushmedia.h: Likewise.  Move loop counter
12883         declarations into conditionals that uses them.
12884         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12885         loop boundary.
12886         * config/sh/sshmedia.h: Fix Copyright dates.
12887         (sh_media_PUTCFG): Fix constraints.
12888         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
12889         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12890         ptrmemfunc_vbit_in_delta for SH5.
12891         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
12892         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12893         * invoke.texi: Likewise.
12894         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12895         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12896         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12897         GCC_pop_shmedia_regs_nofpu): New global symbols.
12898         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12899         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12900         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12901         compact function with nonlocal labels.
12902         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12903         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12904         (initial_elimination_offset): Account for their stack space.
12905         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12906         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12907         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12908         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12909         least one of the operands to be a register.
12910         (movv2sf): Likewise.  Renamed to movv2sf_i.
12911         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12912         prepare_move_operands() before emitting SHmedia insns.
12913         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
12914         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12915         Don't save nor initialize r12.  Don't mis-align the stack.
12916         Pad the code with a nop.
12917         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
12918         stack.
12919         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
12920         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12921         [__SHMEDIA__]: Implement.
12922         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
12923         * config/sh/sh.md: Set latency of `pt' closer to reality.
12924         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12925         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12926         Set move, load and store type attributes.
12927         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12928         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12929         profiling.
12930         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12931         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12932         * config/sh/sh.c (sh_media_register_for_return): New function.
12933         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12934         branch-target register.
12935         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12936         * config/sh/sh.md (return_media_i): Use any call-clobbered
12937         branch-target register.
12938         (return_media): If r18 wasn't copied in the prologue, copy it
12939         here.
12940         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12941         Clear class FP0_REGS.
12942         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12943         from elf.h.
12944         2001-03-08  DJ Delorie  <dj@redhat.com>
12945         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12946         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
12947         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12948         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
12949         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12950         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
12951         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12952         return value correctly for call_cookie.
12953         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
12954         * config/sh/crt1.asm (start): Modified so as to call
12955         ___setup_argv_and_call_main.
12956         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
12957         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12958         SHmedia mode.
12959         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
12960         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12961         (STRIP_NAME_ENCODING): Use it.
12962         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
12963         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
12964         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12965         prepare_scc_operands().
12966         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12967         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12968         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
12969         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12970         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
12971         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12972         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12973         used in shcompact_incoming_args.
12974         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12975         change.
12976         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12977         mode.
12978         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12979         Adjust accordingly.
12980         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12981         Simplify.  Adjust.  Add sanity check.
12982         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12983         FPU_SINGLE_BIT.
12984         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12985         TARGET_SHCOMPACT.
12986         (udivsi3, divsi3): Use them.
12987         (force_mode_for_call): New insn.
12988         (call, call_value, sibcall_value): Emit it before SHcompact
12989         calls.
12990         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
12991         * config/sh/sh.md (call, call_value, sibcall): Make sure the
12992         call cookie is non-NULL before taking its value.
12993         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
12994         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12995         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
12996         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12997         block.
12998         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12999         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
13000         temporary for stack adjusts.  Use MACL and MACH to pass
13001         arguments to shcompact_incoming_args.
13002         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
13003         clobber r1.
13004         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
13005         (nested_trampoline): Load static chain address into r1.
13006         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
13007         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
13008         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
13009         fp_arith_reg_operand().
13010         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
13011         * config/sh/sh.md (casesi): Sign-extend the first two operands,
13012         and use signed compares for them.
13013         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
13014         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
13015         ones properly aligned.
13016         (find_barrier): Account for extra alignment needed for 8-byte wide
13017         constants.
13018         (machine_dependent_reorg): Require a label for the second 4-byte
13019         constant after an 8-byte one.
13020         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
13021         change.
13022         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13023         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
13024         last_float when switching float modes.
13025         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
13026         auto-increment for general-purpose registers.
13027         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
13028         result.
13029         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
13030         for stack adjust.
13031         * config/sh/sh.c (sh_builtin_saveregs): Support using all
13032         registers for varargs.
13033         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
13034         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
13035         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
13036         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
13037         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
13038         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
13039         call_cookie accordingly.
13040         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
13041         (SHCOMPACT_BYREF): Likewise.
13042         (SHCOMPACT_FORCE_ON_STACK): New macro.
13043         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
13044         (sh_builtin_saveregs): Likewise.
13045         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13046         shcompact_incoming_args): Use new shift values.  Support
13047         sequences of consecutive and non-consecutive pushes/pops.
13048         * config/sh/sh.md (return): Don't explicitly use PR_REG.
13049         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
13050         * config/sh/sh.h (TEXT_SECTION): Define.
13051         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13052         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13053         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13054         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13055         return values on FPU-enabled SHmedia.
13056         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13057         FPU-enabled SHmedia.
13058         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13059         value is returned in a non-FP reg and is not returned by
13060         reference.
13061         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13062         jump_ind.
13063         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
13064         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13065         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13066         quad-aligned to be passed by callee-copy reference.
13067         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
13068         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13069         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13070         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
13071         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13072         copying low-numbered FP regs to r7 and r8.
13073         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13074         FP regs to general-purpose regs only if the copy was passed on the
13075         stack.
13076         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13077         copying FP reg to r9.
13078         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13079         copy FP regs to general-purpose regs only in outgoing calls.
13080         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13081         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
13082         HOST_WIDE_INT.
13083         * config/sh/sh.h (struct sh_args): Document all fields.
13084         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13085         passed partially on the stack should not consider making
13086         sibcalls.
13087         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13088         stack_regs only for incoming calls.  When passing FP args,
13089         make sure there are FP regs available before modifying
13090         call_cookie.
13091         (SHCOMPACT_BYREF): Pass double args in general-purpose
13092         registers by reference.
13093         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
13094         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13095         attempt to generate sibcalls if the caller got any arguments
13096         by reference.
13097         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13098         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13099         to 8-byte boundaries.
13100         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13101         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13102         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13103         stored in the stack.
13104         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13105         for the offsets to have the ISA bit set.
13106         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
13107         invocation.  Use beq instead of bgt to mark end of sequence of
13108         loads.
13109         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
13110         bgt to mark end of sequence of stores.
13111         * config/sh/sh.c (arith_operand): Don't check whether
13112         CONST_OK_FOR_J for now.
13113         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13114         instead of long for conversion.
13115         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
13116         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13117         before passing it to fprintf.
13118         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
13119         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13120         Call set_fpscr before reading/writing SR.
13121         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13122         Call set_fpscr.
13123         * config/sh/lib1funcs.asm: Add `.align 2' directives before
13124         SHmedia code.
13125         (FMOVD_WORKS): Define on SH5 with FPU.
13126         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
13127         setting.
13128         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13129         _fpscr_values.
13130         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
13131         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13132         address.
13133         (ia_main_table): Ditto.
13134         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
13135         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13136         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13137         the definitions from sh.h.
13138         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13139         TARGET_SH5.
13140         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13141         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13142         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13143         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
13144         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13145         Increment LABEL_NUSES.
13146
13147         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13148         TARGET_SH5.
13149         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13150         defined.
13151         * config/sh/elf.h (SIZE_TYPE): Likewise.
13152         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13153         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13154         shcompact_incoming_args): Load switch table addresses using
13155         datalabel.
13156         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13157         (NO_BUILTIN_SIZE_TYPE): Define.
13158         (SIZE_TYPE): Don't define.
13159         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13160         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13161         definition of __SH5__=32 for -m5-compact-nofpu.
13162         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13163         ADDR_DIFF_VEC.
13164         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
13165         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13166         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
13167         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13168         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13169         (INSN_LENGTH_ALIGNMENT): Likewise.
13170         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13171         * config/sh/sh.md (call, call_value, sibcall): Simplify
13172         copying of non-branch-target register.
13173         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13174         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
13175         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13176         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13177         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13178         floating-point values as structs.
13179         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13180         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13181         general-purpose register.
13182         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13183         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13184         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13185         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13186         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13187         (ENCODE_SECTION_INFO): Enclose variables and constants in
13188         DATALABEL unspecs.
13189         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13190         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13191         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13192         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13193         only for LABEL_REFs.  For SYMBOL_REFs, prepend
13194         SH_DATALABEL_ENCODING to the symbol name.
13195         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13196         convert_mode().
13197         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13198         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13199         UNSPEC_DATALABEL.
13200         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13201         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13202         (DATALABEL_REF_P): Don't require CONST.
13203         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13204         REL label.
13205         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
13206         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13207         right.
13208         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13209         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13210         Use shallow_copy_rtx and PUT_MODE to change the mode of
13211         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13212         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13213         on SHmedia using GENERAL_REGs.
13214         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13215         bltu_media_i): Fix reversion of conditions.
13216         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13217         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13218         * config/sh/sh.c (output_far_jump): Save r13 in macl.
13219         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
13220         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13221         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13222         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13223         (GCC_nested_trampoline): Likewise.
13224         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13225         * config/sh/sh.c (gen_datalabel_ref): Define.
13226         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13227         (INITIALIZE_TRAMPOLINE): Likewise.
13228         (TRAMPOLINE_ADJUST_ADDRESS): Define.
13229         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13230         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13231         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13232         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13233         (ic_invalidate): Adjust for SH5.
13234         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13235         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13236         _nested_trampoline.
13237         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
13238         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13239         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13240         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13241         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13242         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13243         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13244         * config/sh/sh.c (target_reg_operand): Match only target-branch
13245         registers and pseudos that aren't virtual registers.
13246         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13247         Copy operands that don't match target_reg_operand to pseudos.
13248         (call_media, call_value_media, sibcall_media): Use
13249         target_reg_operand instead of target_operand.
13250         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
13251         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13252         * config/sh/sh.c (target_reg_operand): Match hardware registers
13253         other than branch-target registers.
13254         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13255         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13256         (fpscr_values) [SH5 == 32]: Define.
13257         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13258         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13259         Handle function addresses coming in SUBREGs.
13260         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
13261         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13262         shcompact_return_trampoline): Use datalabel where appropriate.
13263         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
13264         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13265         general-purpose register to copy one branch-target register to
13266         another.
13267         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13268         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13269         SYMBOL_REFs with VOIDmode.
13270         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13271         bltu_media_i): New insns.
13272         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13273         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13274         (INIT_CUMULATIVE_ARGS): Likewise.
13275         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13276         * machmode.def (V16SFmode): New mode.
13277         * c-common.c (type_for_mode): Support V2SF and V16SF.
13278         * tree.c (build_common_tree_nodes_2): Likewise.
13279         * tree.h (tree_index): Likewise.
13280         * calls.c (emit_call_1): Take args_so_far.  Adjust all
13281         callers.  Introduce CALL_POPS_ARGS.
13282         * tm.texi (CALL_POPS_ARGS): Document.
13283         * config/sh/crt1.asm: Implement in SHmedia mode.
13284         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13285         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13286         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13287         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13288         Implement divsi and udivsi in SHmedia mode.  Introduce
13289         SHcompact trampolines.
13290         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13291         only in SHmedia64.
13292         (regno_reg_class): Rewrite.
13293         (fp_reg_names): Remove.
13294         (sh_register_names, sh_additional_register_names): New.
13295         (print_operand): Added `u'.  Support SUBREGs in addresses.
13296         Add parentheses around shifted CONSTs.
13297         (output_file_start): Output .mode and .abi directives.
13298         (shiftcosts, addsubcosts, multcosts): Adjust.
13299         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
13300         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
13301         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
13302         bytes, not registers.  Take into account the need for the
13303         SHcompact incoming args trampoline.  Adjust all callers.
13304         (sh_expand_prologue): Take stack_regs into account.  Call
13305         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
13306         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
13307         stack aligned as per SH5 ABI.
13308         (sh_builtin_saveregs): Support SH5 ABI.
13309         (sh_build_va_list, sh_va_start): Likewise.
13310         (initial_elimination_offset): Take alignment into account.
13311         Compute location of PR according to the SH5 stack frame.
13312         (arith_reg_operand): Reject branch-target registers.
13313         (shmedia_6bit_operand): New.
13314         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13315         (target_reg_operand): Match DImode only.  Accept SUBREGs.
13316         (target_operand): New.
13317         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13318         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
13319         SIBCALL_REGS for SHmedia.
13320         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13321         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13322         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13323         (TARGET_SWITCHES): New SH5 flags.
13324         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
13325         VALID_REGISTER_P to disable unsupported registers.
13326         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13327         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13328         (FUNCTION_ARG_PADDING): Define.
13329         (FASTEST_ALIGNMENT): Adjust.
13330         (SH_REGISTER_NAMES_INITIALIZER): New.
13331         (sh_register_names): Declare.
13332         (DEBUG_REGISTER_NAMES): Define.
13333         (REGISTER_NAMES): Define based on sh_register_names.
13334         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13335         (sh_additional_register_names): Declare.
13336         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13337         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13338         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13339         (REGISTER_NATURAL_MODE): Define.
13340         (FIRST_PSEUDO_REGISTER): Adjust.
13341         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13342         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13343         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13344         (VECTOR_MODE_SUPPORTED_P): Define.
13345         (REG_CLASS_CONTENTS): Adjust.
13346         (SMALL_REGISTER_CLASSES): Adjust.
13347         (REG_ALLOC_ORDER): Adjust.
13348         (INDEX_REG_CLASS): Adjust.
13349         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13350         (CONST_OK_FOR_LETTER_P): Adjust.
13351         (PREFERRED_RELOAD_CLASS): Adjust.
13352         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13353         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13354         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13355         (FIRST_FP_PARM_REG): Adjust.
13356         (CALL_POPS_ARGS): Define.
13357         (FUNCTION_ARG_REGNO_P): Adjust.
13358         (struct sh_args): New fields.
13359         (GET_SH_ARG_CLASS): Adjust.
13360         (INIT_CUMULATIVE_ARGS): Adjust.
13361         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13362         (FUNCTION_ARG_ADVANCE): Adjust.
13363         (FUNCTION_ARG): Adjust.
13364         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13365         (FUNCTION_ARG_CALLEE_COPIES): Define.
13366         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13367         (STRICT_ARGUMENT_NAMING): Define.
13368         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13369         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13370         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13371         (SETUP_INCOMING_VARARGS): Adjust.
13372         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13373         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13374         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13375         (SUBREG_OK_FOR_INDEX_P): Adjust.
13376         (EXTRA_CONSTRAINT_S): Update.
13377         (EXTRA_CONSTRAINT_T): New.
13378         (EXTRA_CONSTRAINT): Adjust.
13379         (GO_IF_LEGITIMATE_INDEX): Adjust.
13380         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13381         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13382         (MOVE_MAX): Adjust.
13383         (MAX_MOVE_MAX): Define.
13384         (Pmode): Adjust.
13385         (CONST_COSTS): Adjust.
13386         (REGISTER_MOVE_COST): Adjust.
13387         (BRANCH_COST): Adjust.
13388         (TEXT_SECTION_ASM_OP): Adjust.
13389         (DBX_REGISTER_NUMBER): Adjust.
13390         (ASM_OUTPUT_DOUBLE_INT): New.
13391         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13392         (PREDICATE_CODES): Adjust.
13393         (PROMOTE_MODE): Adjust.
13394         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13395         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13396         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13397         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13398         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13399         (TR0_REG, TR1_REG, TR2_REG): New.
13400         (XD0_REG): Renumber.
13401         (UNSPEC_COMPACT_ARGS): New.
13402         (type): Added pt and ptabs.
13403         (length): Default to 4 on SHmedia.  Default pt length to 12
13404         and     20 on SHmedia32 and SHmedia64, respectively.
13405         (pt): New function unit.
13406         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13407         Add whitespace between operands of SHmedia instructions.
13408         (movdicc): Fix.
13409         (adddi3_media, addsi3_media): Adjust constraints.
13410         (subsi3) [SHmedia]: Force operand 1 into a register.
13411         (udivsi3_i1_media, udivsi3_i4_media): New.
13412         (udivsi3): Support SHmedia.
13413         (divsi3_i1_media, divsi3_i4_media): New.
13414         (divsi3): Support SHmedia.
13415         (anddi3, iordi3, xordi3): Adjust constraints.
13416         (zero_extendhidi2, zero_extendqidi2): New.
13417         (extendsidi2, extendhidi2, extendqidi2): New.
13418         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13419         (pop_e, pop_fpul, pop_4): Likewise.
13420         (movsi_media): Support FP and BT registers.
13421         (movsi_media_nofpu): New.  Adjust splits to DImode.
13422         (lduw, ldub): Renamed to zero_extend* above.
13423         (movqi_media): Fix typo.
13424         (movdi_media): Support FP and BT registers.
13425         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13426         (movdi_const_32bit): New.
13427         (shori_media): Require immediate operand.  Use `u' for output.
13428         (movdf_media, movsf_media): Simplified.
13429         (movdf_media_nofpu, movsf_media_nofpu): New.
13430         (movdf, movsf): Adjust
13431         (movv2sf, movv2sf, movv16sf): New.
13432         (beq_media, beq_media_i): Adjust constraints.  Don't use
13433         scratch BT register.
13434         (bne_media, bne_media_i): Likewise.
13435         (bgt_media, bgt_media_i): Likewise.
13436         (bge_media, bge_media_i): Likewise.
13437         (bgtu_media, bgtu_media_i): Likewise.
13438         (bgeu_media, bgeu_media_i): Likewise.
13439         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13440         bunordered): Emit jump insn.  Force operands to registers when
13441         needed.
13442         (jump_media, jump): Simplify.
13443         (call_compact, call_compact_rettramp): New.
13444         (call_value_compact, call_value_compact_rettramp): New.
13445         (call_media, call_value_media): Simplify.
13446         (sibcall_compact, sibcall_media): New.
13447         (call, call_value): Adjust for SHmedia and SHcompact.
13448         (sibcall, sibcall_value, untyped_call): Likewise.
13449         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13450         (indirect_jump): Adjust for SHmedia.
13451         (casesi_jump_media): New.
13452         (nop): Re-enable for SHmedia.
13453         (call_site): Restrict to SH1.
13454         (casesi): Adjust for SHmedia.
13455         (casesi_shift_media, casesi_load_media): New.
13456         (return): Explicitly use PR register.  Call return trampoline
13457         on SHcompact.
13458         (return_i): Explicitly use PR register.
13459         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13460         (return_media): Adjust.
13461         (shcompact_incoming_args): New.
13462         (epilogue): Adjust.
13463         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13464         (movstrsi): Disable on SH5.
13465         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13466         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13467         (subsf3, subsf3_media): Likewise.
13468         (mulsf3, mulsf3_media, mac_media): Likewise.
13469         (divsf3, divsf3_media): Likewise.
13470         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13471         (floatsisf2, fux_truncsfsi2): Likewise.
13472         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13473         constraints.
13474         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13475         (cmpunsf_media, cmpsf): Likewise.
13476         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13477         (abssf2, abssf2_media): Likewise.
13478         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13479         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13480         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13481         (floatsidf2, fix_truncdfsi2): Likewise.
13482         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13483         constraints.
13484         (cmpeqdf_media, cmpgtdf_media): Likewise.
13485         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13486         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13487         (absdf2, absdf2_media): Likewise.
13488         (extendsfdf2, extendsfdf2_media): Likewise.
13489         (truncsfdf2, truncsfdf2_media): Likewise.
13490         * config/sh/sh64.h: New file.
13491         * config/sh/t-sh64: New file.
13492         * config/sh/shmedia.h: New file.
13493         * config/sh/ushmedia.h: New file.
13494         * config/sh/sshmedia.h: New file.
13495         * configure.in: Added sh64-*-elf.
13496         * configure: Rebuilt.
13497         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13498         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13499         (reg_class_from_letter): Use `b' for TARGET_REGS.
13500         (print_operand): Support `%M', `%m', `AND' and
13501         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13502         (andcosts): Adjust for SHmedia.
13503         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13504         Likewise.
13505         (target_reg_operand): New function.
13506         * config/sh/sh-protos.h (target_reg_operand): Declare.
13507         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13508         FP registers on SH5.
13509         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13510         on SH4.
13511         (TARGET_REGISTER_P): New macro.
13512         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13513         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13514         (EXTRA_CONSTRAINT_S): New macro.
13515         (EXTRA_CONSTRAINT): Adjust.
13516         (FLOAT_TYPE_SIZE): Define to 32.
13517         (Pmode): DImode on SHmedia.
13518         (CONST_COSTS): Adjust for SHmedia literals.
13519         (PREDICATE_CODES): Added target_reg_operand.
13520         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13521         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13522         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13523         (cmpdi): Accept SHmedia.
13524         (movdicc_false, movdicc_true): New insns.
13525         (movdicc): New expand.
13526         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13527         no_new_pseudos.
13528         (addsi3_media): Match `S' constraint.
13529         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13530         (negdi2): Expand for SHmedia.
13531         (one_cmpldi2): New expand.
13532         (zero_extendsidi2): Change from expand to insn.
13533         (extendsidi2): Add constraints.
13534         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13535         LD/ST address.  Fix SI immediate loading split.
13536         (movhi_media, movqi_media, lduw, ldub): New insns.
13537         (movhi, movqi): Accept SHmedia.
13538         (shori_media, movdi_media): Relax input constraints.  Split
13539         symbolic constants.
13540         (movdf_media, movsf_media): New insn.  New split to movdi.
13541         (movdf, movsf): Match on SHmedia.
13542         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13543         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13544         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13545         (bunordered): New expand.
13546         (jump_compact): Renamed from `jump'.
13547         (jump_media): New insn.
13548         (jump): New expand.
13549         (call_media, call_value_media): New insns.
13550         (call, call_value): Adjust.
13551         (indirect_jump_compact): Renamed from `indirect_jump'.
13552         (indirect_jump_media): New insn.
13553         (indirect_jump): New expand.
13554         (untyped_call, return): Accept SHmedia.
13555         (return_media): New insn.
13556         (prologue, epilogue, blockage): Accept SHmedia.
13557         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13558         (sunordered): New expand.
13559         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13560         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13561         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13562         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13563         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13564         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13565         abssf2_media): New insns.
13566         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13567         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13568         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13569         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13570         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13571         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13572         absdf2_media): New insns.
13573         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13574         (extendsfdf2_media, truncdfsf2_media): New insns.
13575         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13576         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13577         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13578         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13579         * config/sh/sh.md (adddi3): New expand.
13580         (adddi3_media, adddi3z_media): New insns.
13581         (adddi3_compact): Renamed from adddi3.
13582         (addsi3_media): Use add.l r63 to add constant zero.
13583         (subdi3): New expand.
13584         (subdi3_media): New insn.
13585         (subdi3_compact): Renamed from subdi3.
13586         (mulsidi3): New expand.
13587         (mulsidi3_media): New insn.
13588         (mulsidi3_compact): Renamed from mulsidi3.
13589         (umulsidi3): New expand.
13590         (umulsidi3_media): New insn.
13591         (umulsidi3_compact): Renamed from umulsidi3.
13592         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13593         (ashlsi3, ashrsi3, lshrsi3): Use them.
13594         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13595         (ashldi3, ashrdi3, lshrdi3): Use them.
13596         (zero_extendsidi2): New expand.
13597         (extendsidi2): New insn.
13598         (movsi_media): New insn.  Split to movdi to load constants.
13599         (movsi): Enable for shmedia.
13600         (movdi_media): New insn.  Use shori_media to load wide constants.
13601         (short_media): New insn.
13602         (movdi): Enable for shmedia.
13603         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13604         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13605         (SUBTARGET_CPP_SPEC): Added `!m5'.
13606         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13607         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13608         to all other SH variants.
13609         (TARGET_DEFAULT): Set to SH1_BIT.
13610         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13611         (BITS_PER_WORD): Raise to 64 on shmedia.
13612         (MAX_BITS_PER_WORD): Change to 64.
13613         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13614         (INT_TYPE_SIZE): Keep as 32.
13615         (UNITS_PER_WORD): Raise to 8 on shmedia.
13616         (MIN_UNITS_PER_WORD): Keep as 4.
13617         (POINTER_SIZE): Raise to 64 on shmedia.
13618         (CONST_OK_FOR_J): New macro.
13619         (CONST_OK_FOR_LETTER_P): Use it.
13620         (processor_type): Add PROCESSOR_SH5.
13621         * config/sh/sh.md: Conditionalize all expands, insns and
13622         splits to TARGET_SH1.
13623         (cpu): Added sh5.
13624         (addsi3_compact): Renamed from...
13625         (addsi3): Now an expand.
13626         (addsi3_media, subsi3_media): New insns.
13627         (subsi3): Don't negate constants with SHmedia.
13628
13629         * hooks.c: New file.
13630         * hooks.h: New file.
13631         * Makefile.in (HOOKS_H): New.
13632         (TARGET_DEF_H): Added $(HOOKS_H).
13633         (OBJS): Added hooks.o.
13634         (cfgcleanup.o, bb-reorder.o): Added target.h.
13635         (hooks.o): Added dependencies.
13636         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13637         (TARGET_INITIALIZER): this.
13638         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13639         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13640         * bb-reorder.c: Include target.h.
13641         (reorder_basic_blocks): Skip if cannot modify jumps.
13642         * cfgcleanup.c: Include target.h.
13643         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13644
13645 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13646
13647         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13648         Protect jump delay slot instructions with .set noreorder and
13649         .set nomacro.
13650
13651 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13652
13653         * config/mips/mips.md (casesi_internal_di): Calculate
13654         the index into the target offset table correctly.
13655
13656 2002-02-08  Richard Henderson  <rth@redhat.com>
13657
13658         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13659         * final.c (output_addr_const): Accept and discard SUBREG.
13660         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13661         mark them unknown instead.
13662         (simplify_subtraction): Handle RTX_UNKNOWN.
13663         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13664
13665 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13666
13667         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13668
13669 2002-02-08  Richard Henderson  <rth@redhat.com>
13670
13671         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13672
13673 2002-02-08  Andreas Jaeger  <aj@suse.de>
13674
13675         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13676         * config/i386/t-linux64: New file.
13677
13678 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13679
13680         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13681         * c-parse.in (compstmt): Clear last_expr_type.
13682
13683 2002-02-07  Richard Henderson  <rth@redhat.com>
13684
13685         * loop.c (strength_reduce): Sink final_value when not
13686         eliminating a biv.
13687
13688 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13689
13690         * config/sparc/freebsd.h: Fix mismatched spec {.
13691
13692 2002-02-07  Richard Henderson  <rth@redhat.com>
13693
13694         * cfgrtl.c: Include recog.h and insn-config.h.
13695         (keep_with_call_p): Fix general_operand invocation.
13696         * Makefile.in (cfgrtl.o): Update dependencies.
13697
13698 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13699
13700         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13701         comment.  Accept HImode only if TARGET_H8300.
13702
13703 2002-02-07  Eric Christopher  <echristo@redhat.com>
13704
13705         * config/mips/crtn.asm: Cleanup #ifdefs.
13706
13707 2002-02-07  Eric Christopher  <echristo@redhat.com>
13708
13709         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13710         register 7 as RA instead of $31.
13711         * config/mips/crtn.asm: Ditto.
13712         * config/mips/mips.c (mips_move_2words): Add case for
13713         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13714         (compute_frame_size): Fix typo.
13715         (save_restore_insns): Ditto.  Make documentation about using
13716         register $7 as return register more precise.
13717         (mips_expand_epilogue): Fix comment. Add code to work around not
13718         being able to add to the stack pointer directly.
13719         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13720         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13721         epilogue.
13722
13723 2002-02-07  Tom Rix  <trix@redhat.com>
13724
13725         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13726         immediates in ldu and stdu DS opcode field.
13727         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13728         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13729         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13730
13731 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13732
13733         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13734         offset for stack bias.
13735
13736 2002-02-07  H.J. Lu <hjl@gnu.org>
13737
13738         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13739
13740 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13741
13742         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13743
13744 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13745
13746         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13747         * i386.c (x86_order_regs_for_local_alloc): New global function.
13748         * i386.h (REG_ALLOC_ORDER): CLeanup.
13749         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13750
13751 2002-02-07  Richard Henderson  <rth@redhat.com>
13752
13753         PR optimization/2463
13754         * alias.c (find_base_value): Recall base values for fixed hard regs.
13755         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13756
13757 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13758
13759         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13760         length.
13761
13762 2002-02-06  Richard Henderson  <rth@redhat.com>
13763
13764         PR c/5609
13765         * stmt.c (resolve_operand_name_1): Take more care with mixed
13766         named and unnamed operands.
13767
13768 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13769             Jan Hubicka  <jh@suse.cz>
13770
13771         * loop.c (remove_constant_addition): Avoid clobbering a shared
13772         CONST expression.
13773
13774 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13775
13776         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13777         * config/s390/t-linux64: New file.
13778         * config/s390/libgcc-glibc.ver: New file.
13779
13780 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13781
13782         * config/s390/linux64.h: Delete file.
13783         * config/s390/s390x.h: New file.
13784         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13785         as target header file.
13786         * config/s390/linux.h (TARGET_VERSION): Define depending on
13787         DEFAULT_TARGET_64BIT.
13788         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13789         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13790         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13791         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13792         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13793         (EXTRA_SPEC): New define.
13794         * config/s390/s390.h (TARGET_VERSION): Define depending on
13795         DEFAULT_TARGET_64BIT.
13796         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13797
13798 2002-02-06  Jason Merrill  <jason@redhat.com>
13799
13800         * c-decl.c (finish_function): Warn about a non-void function with
13801         no return statement and no abnormal exit.
13802         (current_function_returns_abnormally): New variable.
13803         (start_function): Clear it.
13804         (struct c_language_function): Add returns_abnormally.
13805         (push_c_function_context): Save it.
13806         (pop_c_function_context): Restore it.
13807         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13808         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13809         an explicit return type.
13810         * c-tree.h: Declare current_function_returns_abnormally.
13811         (C_FUNCTION_IMPLICIT_INT): New macro.
13812         * c-typeck.c (build_function_call): Set it.
13813         (c_expand_return): Set current_function_returns_value even if the
13814         value is erroneous.
13815
13816 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13817
13818         PR c/5420:
13819         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13820         unsafe for reevaluation.
13821
13822 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13823
13824         PR c/5482:
13825         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13826         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13827
13828 2002-02-06  Richard Henderson  <rth@redhat.com>
13829
13830         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13831         be a general_operand.  Dest for function value must be a pseudo.
13832
13833 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13834
13835         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13836         as SYMBOL_REFs from the constant pool.
13837
13838 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
13839
13840         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13841         passed by invisible reference.
13842
13843 2002-02-05  Richard Henderson  <rth@redhat.com>
13844
13845         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13846
13847 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
13848
13849         Implement using "base addresses" in insn operands as default.
13850         * config/mmix/mmix.c (mmix_conditional_register_usage): if
13851         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13852         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13853         used to read the rtx value.
13854         (mmix_target_asm_function_epilogue): Fix spacing.
13855         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13856         (mmix_legitimate_address): Ditto.
13857         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13858         should be loaded with a GETA insn.  Don't allocate needless extra
13859         char for nul termination and fix misleading comment.
13860         (mmix_print_operand_address): Handle constants if
13861         TARGET_BASE_ADDRESSES.
13862         (mmix_output_register_setting): Use base addressing if
13863         TARGET_BASE_ADDRESSES and the number of insns is 3.
13864         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13865         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13866         to use R as constraint, add LDA to match s.
13867         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13868         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13869         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13870         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13871         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13872         order with other fixed registers.
13873         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13874         other parameter/call-clobbered registers.
13875         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13876         -mbase-addresses, -mno-base-addresses.
13877         (MMIX Options): Ditto.
13878
13879 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13880
13881         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13882
13883 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
13884
13885         * config/rs6000/altivec.h: Change elem to _S_elem.
13886
13887 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13888
13889         * config/netbsd.h (WCHAR_TYPE): Define.
13890         (WCHAR_TYPE_SIZE): Ditto.
13891         (WINT_TYPE): Ditto.
13892         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13893         (WCHAR_UNSIGNED): Ditto.
13894         (WCHAR_TYPE_SIZE): Ditto.
13895         (WINT_TYPE): Ditto.
13896         * config/arm/netbsd.h: Likewise.
13897         * config/i386/netbsd-elf.h: Likewise.
13898         * config/i386/netbsd.h: Likewise.
13899         * config/m68k/netbsd-elf.h: Likewise.
13900         * config/m68k/netbsd.h: Likewise.
13901         * config/ns32k/netbsd.h: Likewise.
13902         * config/sparc/netbsd.h: Likewise.
13903         * config/vax/netbsd.: Likewise.
13904
13905 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
13906
13907         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13908         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
13909         (TARGET_INITIALIZER): this.
13910         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13911         (BITFIELD_NBYTES_LIMITED): Markup fix.
13912         * tree.h (default_ms_bitfield_layout_p): Declare.
13913         (record_layout_info): Added prev_field.
13914         * tree.c (default_ms_bitfield_layout_p): New fn.
13915         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13916         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13917         * stor-layout.c: Include target.h.
13918         (start_record_layout): Initialize prev_field.
13919         (place_field): Handle MS bit-field layout, and disregard
13920         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13921         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
13922         * Makefile.in (stor-layout.o): Adjust dependencies.
13923
13924 2002-02-05  Jason Merrill  <jason@redhat.com>
13925
13926         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13927
13928 2002-02-05  Andreas Jaeger  <aj@suse.de>
13929
13930         * crtstuff.c: Fix comments.
13931
13932 2002-02-05  Richard Henderson  <rth@redhat.com>
13933
13934         PR fortran/3393
13935         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13936         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13937
13938         PR fortran/3392
13939         * config/mips/mips.c (function_arg): Handle TImode.
13940         (function_arg_advance): Likewise.
13941
13942 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13943
13944         * config/rs6000/altivec.h (vec_step_help): Rename to
13945         __vec_step_help.
13946
13947 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13948
13949         * config/rs6000/altivec.h: Fix typos.
13950
13951 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13952
13953         * config/arm/netbsd.h: Correct a comment.
13954
13955 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13956
13957         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13958         building void typed builtins.
13959
13960         * config/rs6000/altivec.h (vec_ld*): Fix typos.
13961         (vec_step): Implement for C++.
13962
13963 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13964
13965         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13966
13967 2002-02-04  Richard Henderson  <rth@redhat.com>
13968
13969         * combine.c (nonzero_bits): Re-introduce special case for
13970         sp/fp/ap wrt REGNO_POINTER_ALIGN.
13971
13972 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13973
13974         * doc/extend.texi: Warn about unsupported usage of altivec
13975         builtins.
13976
13977         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13978         (altivec_predicate_*): New.
13979
13980         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13981         Add C++ version of vec_*() functions.
13982
13983         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13984         (bdesc_2arg): Remove altivec predicates.
13985         (altivec_expand_builtin): Handle predicates.
13986         (altivec_init_builtins): Handle predicates.
13987         (altivec_expand_predicate_builtin): New.
13988
13989 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13990
13991         * pa.c (DO_FRAME_NOTES): Move forward.
13992         (store_reg): Revise handling of frame notes.
13993         (load_reg): Likewise.
13994         (set_reg_plus_d): Likewise.
13995         (hppa_expand_prologue): Likewise.
13996         (hppa_expand_epilogue): Likewise.
13997
13998 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13999
14000         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
14001
14002 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14003
14004         PR c/4475, c++/3780:
14005         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
14006         * c-common.h (SWITCH_TYPE): Define.
14007         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
14008         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
14009         Rename spareness variable to sparseness.
14010         (expand_end_case_type): Renamed from expand_end_case, use orig_type
14011         if non-NULL instead of TREE_TYPE (orig_index).
14012         * tree.h (expand_end_case_type): Renamed from expand_end_case.
14013         (expand_end_case): Define using expand_end_case_type.
14014         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
14015         to expand_end_case_type.
14016         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
14017
14018 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14019
14020         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
14021         (BIGGEST_ALIGNMENT): Change to 128.
14022
14023 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14024
14025         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
14026
14027 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14028
14029         * pa.md (call_internal_reg_64bit): Remove unused variable.
14030
14031 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
14032
14033         * config/arm/arm.h (machine_function): Add uses_anonymous_args
14034         field.
14035         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
14036         * config/arm/arm.c (current_function_anonymous_args): Delete,
14037         replace uses with cfun->machine->uses_anonymous_args.
14038         (arm_reorg): Do not reset uses_anonymous_args.
14039
14040         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
14041         any geenral register.
14042
14043 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
14044
14045         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
14046         the entry block.
14047
14048 2002-02-04  Richard Henderson  <rth@redhat.com>
14049
14050         * combine.c (force_to_mode): Remove STACK_BIAS code.
14051         (nonzero_bits): Likewise.  Replace sp/fp special case with
14052         REGNO_POINTER_ALIGN.
14053
14054         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14055         (HARD_FRAME_POINTER_REGNUM): New.
14056         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14057         (FIXED_REGS, CALL_USED_REGS): Update.
14058         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14059         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14060         (HARD_REGNO_NREGS): Update for SFP.
14061         (STACK_POINTER_OFFSET): Include bias here ...
14062         (FIRST_PARM_OFFSET): ... not here.
14063         (STACK_BIAS): Remove.
14064         (INIT_EXPANDERS): New.
14065         (STARTING_FRAME_OFFSET): Do not include bias.
14066         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14067         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14068         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14069         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14070         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14071         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14072         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14073         (MUST_SAVE_REGISTER): Likewise.
14074         (sparc_flat_function_prologue): Likewise.
14075         (sparc_flat_function_epilogue): Likewise.
14076         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14077         (sparc_init_modes): SFP is GENERAL_REGS.
14078         (sparc_builtin_saveregs): SFP does not have bias applied.
14079
14080 2002-02-04  Richard Henderson  <rth@redhat.com>
14081
14082         * config/alpha/alpha.c (current_function_is_thunk): Don't check
14083         current_function_is_thunk.
14084         (alpha_sa_mask): Distinguish between current_function_is_thunk
14085         called from ASM_OUTPUT_MI_THUNK and not.
14086         (alpha_does_function_need_gp): Thunks always need gp.
14087         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14088         (alpha_output_mi_thunk_osf): New.
14089         * config/alpha/alpha-protos.h: Update.
14090         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14091
14092 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
14093
14094         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14095         function types, not when they're taken away.
14096
14097 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
14098
14099         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14100         CODE_LABEL and jump table when replacing a table jump with a
14101         simple jump.
14102
14103 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14104
14105         * config/s390/s390-protos.h (legitimize_la_operand,
14106         s390_secondary_input_reload_class, s390_plus_operand,
14107         s390_expand_plus_operand): Add prototypes.
14108
14109         config/s390/s390.c (s390_secondary_input_reload_class,
14110         s390_plus_operand, s390_expand_plus_operand): New functions.
14111
14112         (struct s390_address): New member 'pointer'.
14113         (s390_decompose_address): Compute it.
14114         (legitimate_la_operand_p): Use it.
14115         (legitimize_la_operand): New function.
14116         (movti, movdi, movdf splitters): Call it.
14117
14118         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14119         (PREDICATE_CODES): Add s390_plus_operand.
14120
14121         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14122         (la_ccclobber): Allow GENERAL_REGS as output operand.
14123
14124         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14125         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14126         (*la_64, *la_31, reload_indi, reload_insi): ... these.
14127
14128 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14129
14130         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14131         register names for regular asm () construct.
14132
14133 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14134
14135         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14136         registers.
14137
14138 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14139
14140         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14141         pat for recog.
14142
14143 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
14144
14145         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14146         constant pool to be identical by string address and index.
14147
14148 2002-02-04  Anthony Green  <green@redhat.com>
14149
14150         * output.h (SECTION_OVERRIDE): Define.
14151         * varasm.c (named_section): Obey SECTION_OVERRIDE.
14152
14153 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14154
14155         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14156         by existing arm*-*-netbsd* (a.out) target.
14157         (ns32k-*-netbsdelf*): Likewise.
14158         (sparc-*-netbsdelf*): Likewise.
14159         (vax-*-netbsdelf*): Likewise.
14160
14161 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
14162
14163         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14164         headers and libobjc headers.
14165
14166 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
14167
14168         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14169         (_mingw.h): Remove duplicate include.
14170
14171 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14172
14173         * config.gcc: Set cpu_type to m68k for 68010, as well.
14174         (m68010-*-netbsdelf*): New...
14175         (m68k*-*-netbsdelf*): ...targets.
14176         * config/m68k/netbsd-elf.h: New file.
14177
14178 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14179
14180         * config/h8300/h8300.c (hand_list): Move inside function_arg.
14181
14182 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14183
14184         * config/h8300/h8300.c (h8_push_ops): Move inside
14185         h8300_init_once.
14186         (h8_pop_ops): Likewise.
14187         (h8_move_ops): Likewise.
14188
14189 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14190
14191         * config/h8300/h8300.c (os_task): Make it static.
14192         (monitor): Likewise.
14193         (pragma_saveall): Likewise.
14194
14195 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
14196
14197         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14198         constant is a valid sign-extension for Pmode.
14199
14200 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14201
14202         * config/h8300/h8300.c: Fix formatting.
14203
14204 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14205
14206         * config/h8300/h8300.md: Fix formatting.
14207
14208 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14209
14210         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14211         predicates of operands[1].  Split the patterns for each
14212         processor variant.
14213
14214 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14215
14216         * config/h8300/h8300.md (xor patterns): Tighten the predicates
14217         of operands[1] to register_operand.
14218
14219 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14220
14221         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14222         * cpphash.c (_cpp_init_hashtable): Similarly.
14223         * cppinit.c (cpp_create_reader): Default the signed_char flag.
14224         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14225         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14226         (cpp_handle_option): Handle the new options.
14227         * cpplex.c (cpp_interpret_charconst): Use new flag.
14228         * cpplib.h (struct cpp_options): New member signed_char.
14229         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14230         (cpp_options): Handle -fsigned-char and -funsigned-char.
14231         (static_specs): Remove signed_char_spec.
14232         (do_spec1): Don't handle %c.
14233         * system.h: Poison SIGNED_CHAR_SPEC.
14234         * tradcif.y (yylex): Use flag_signed_char.
14235         * tradcpp.h (flag_signed_char): New.
14236         * tradcpp.c (flag_signed_char): New.
14237         (main): Handle new command-line options.
14238         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14239 config:
14240         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14241         * avr/avr.h: Remove old comments.
14242         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14243         (CC1_SPEC): Pass -fsigned-char if -mic*.
14244         (SIGNED_CHAR_SPEC): Remove.
14245 doc:
14246         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14247
14248 2002-02-01  Eric Christopher  <echristo@redhat.com>
14249
14250         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14251         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14252         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14253         (ASM_OUTPUT_REG_POP): Ditto.
14254
14255 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14256
14257         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14258         patch.
14259
14260 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14261
14262         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14263
14264 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14265
14266         PR c/5304:
14267         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14268         unconditionally.
14269
14270 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14271
14272         * cfganal.c: Include tm_p.h.
14273         (keep_with_call_p): Fix the test that determines if a register holds
14274         the return value of a call.
14275
14276 2002-02-01  DJ Delorie  <dj@redhat.com>
14277
14278         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14279         we are given conflicting registers, switch to the other one we
14280         had allocated for us.
14281         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14282         as TImode so we know when the "other" register is available.
14283
14284 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
14285
14286         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14287         sparc/sparc_bi.h.
14288
14289 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14290
14291         * cfganal.c (keep_with_call_p): New function.
14292         (flow_call_edges_add): Prevent splitting a block between a call and
14293         a single-set instruction that should be kept in the same block.
14294
14295 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14296
14297         * doc/install.texi (avr): Update outdated URL.
14298
14299 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
14300
14301         * config/stormy16/stormy16.md (pushqi): New.
14302         (popqi): New.
14303         (pushhi): New.
14304         (pophi): New.
14305         (movhi): Remove stack operands.
14306         (movqi): Likewise.
14307         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14308         nonimmediate_nonstack_operand.
14309         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14310         New.
14311         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14312         New.
14313
14314 2002-01-31  Jason Merrill  <jason@redhat.com>
14315
14316         * Makefile.in (c-parse.c): Handle .output file.
14317         * objc/Make-lang.in (objc-parse.c): Likewise.
14318
14319 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
14320
14321         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14322         the -me[lb] option is given.  Don't output the default flag
14323         twice.
14324
14325 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
14326
14327         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14328         the primary source file; this has not been done yet.
14329         * c-decl.c (c_expand_body): Reset input_filename from
14330         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14331
14332 2002-01-31  Kazu Hirata  <kazu@hxi.com>
14333
14334         * rtlanal.c (subreg_regno_offset): Do not use
14335         SUBREG_REGNO_OFFSET.
14336         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14337         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14338
14339 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14340
14341         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
14342         version rather than GNATS version in --version output.
14343
14344 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
14345
14346         * ifcvt.c (noce_process_if_block): Make a copy of the destination
14347         when copying back from a temporary.
14348
14349 2002-01-30  Richard Henderson  <rth@redhat.com>
14350
14351         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14352         and new_dest are the same.
14353
14354 2002-01-30  Richard Henderson  <rth@redhat.com>
14355
14356         PR opt/5076
14357         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14358         * rtl.c (note_insn_name): Update.
14359         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14360         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14361         to perform loop rotation.
14362         (expand_exit_loop_top_cond): New.
14363         * tree.h (expand_exit_loop_top_cond): Declare it.
14364         * c-semantics.c (genrtl_while_stmt): Use it.
14365         (genrtl_for_stmt): Likewise.
14366
14367 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14368
14369         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14370         arguments to 64-bit boundaries on 64-bit ABIs.
14371
14372 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14373
14374         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14375
14376 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14377
14378         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14379         invalid type.
14380
14381 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14382
14383         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14384         * config/sparc/sparc_bi.h: Remove file.
14385         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14386
14387 2002-01-30  Richard Henderson  <rth@redhat.com>
14388
14389         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14390
14391 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14392
14393         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14394
14395 2002-01-30  Jason Merrill  <jason@redhat.com>
14396
14397         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14398         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14399         (reg_save): Use DW_CFA_offset_extended_sf instead.
14400
14401         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14402
14403 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14404
14405         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14406         in cselib_lookup.
14407
14408 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14409
14410         * rs6000.md ("*call_value_local32"): Remove constraints.
14411         ("*call_value_local64"): Same.
14412         ("*call_value_indirect_nonlocal_aix32"): Same.
14413         ("*call_value_nonlocal_aix32"): Same.
14414         ("*call_value_indirect_nonlocal_aix64"): Same.
14415         ("*call_value_nonlocal_aix64"): Same.
14416         ("*call_value_nonlocal_sysv"): Same.
14417
14418 2002-01-29  Richard Henderson  <rth@redhat.com>
14419
14420         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14421
14422 2002-01-29  Richard Henderson  <rth@redhat.com>
14423
14424         * expr.c (force_operand): Ignore flag_pic for detecting pic
14425         address loads.
14426         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14427         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14428         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14429         instead of open-coded loop.
14430         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14431         be fixed when in use.
14432
14433 2002-01-29  Richard Henderson  <rth@redhat.com>
14434
14435         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14436         * sched-rgn.c (propagate_deps): Update them.
14437         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14438         clobbers list when either gets too long.
14439
14440 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14441
14442         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14443         and INDEX_REGS the same as GENERAL_REGS.
14444         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14445
14446 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14447
14448         * tree.c (build_nonstandard_integer_type): Correct prototype.
14449
14450 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14451
14452         * config/s390/s390.md (movstrsico, movstrdix_64,
14453         movstrsix_31): Remove, replace by ...
14454         (movstrdi_short, movstrsi_short, movstrdi_long,
14455         movstrsi_long): ... these.  New.
14456         (movstrdi, movstrsi): Adapt.
14457
14458         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14459         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14460         Remove unnecessary CC clobber.
14461         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14462         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14463
14464         (divmoddi4): Don't partially initialize TImode register.
14465
14466 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14467
14468         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14469
14470 2002-01-29  Richard Henderson  <rth@redhat.com>
14471
14472         * flow.c (print_rtl_and_abort): Remove.
14473         (print_rtl_and_abort_fcn): Remove.
14474         (verify_local_live_at_start): Use dump_bb instead.
14475         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14476         (verify_wide_reg_1): Return 2 on mode test failure.
14477
14478 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14479
14480         PR c/3325, c/3326, c/2511, c/3347
14481         * c-decl.c (enum_decl_context): Remove BITFIELD.
14482         (grokdeclarator): Take bitfield width as an input.
14483         Ensure bitfields are given the correct type.  Perform
14484         bitfield width validation with build_bitfield_integer_type
14485         rather than waiting for finish_struct.
14486         (grok_typename, grok_typename_in_parm_context, start_decl,
14487         push_parmdecl, grokfield, start_function): Update calls to
14488         grokdeclarator.
14489         (build_bitfield_integer_type): New function.
14490         (finish_struct): Move bitfield validation to grokdeclarator
14491         and build_bitfield_integer_type.
14492         * tree.c (build_nonstandard_integer_type): New function.
14493         * tree.h (build_nonstandard_integer_type): New prototype.
14494 objc:
14495         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14496
14497 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14498
14499         PR other/1502:
14500         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14501         don't ignore unrecognized -W* options.
14502         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14503         * cpplib.h (cpp_handle_option): Adjust prototype.
14504         * c-decl.c (c_decode_options): Pass 0 as last argument to
14505         cpp_handle_option.
14506
14507         PR c/2896:
14508         * gcc.c (cpp_unique_options): Split from cpp_options.
14509         (cpp_options): Source cpp_unique_options.
14510         (default_compilers): Use cpp_unique_options instead of cpp_options
14511         when used together with cc1_options.
14512         (static_specs): Add cpp_unique_options.
14513         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14514         when used together with cc1_options.
14515
14516 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14517
14518         * config/h8300/h8300-protos.h: Update the prototype of
14519         output_a_shift.
14520         * config/h8300/h8300.c (output_a_shift): Remove an unused
14521         argument 'insn'.  Remove redundant code.
14522         * config/h8300/h8300.md: Adust to the new prototype of
14523         output_a_shift.
14524
14525 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14526
14527         * config/h8300/h8300-protos.h: Update the prototypes of
14528         emit_a_rotate and expand_a_rotate.
14529         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14530         first argument to 'enum rtx_code'.
14531         (expand_a_rotate): Likewise.
14532
14533 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14534
14535         * config/h8300/h8300-protos.h: Update the prototype of
14536         output_simode_bld.
14537         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14538         'log2'.
14539         * config/h8300/h8300.md: Adjust to the new prototype.
14540
14541 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14542
14543         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14544         redundant code.
14545
14546 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14547
14548         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14549         is a fixed register before returning pic_offset_table_rtx.
14550         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14551         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14552
14553 2002-01-28  Jason Merrill  <jason@redhat.com>
14554
14555         * dwarf2.h: Sync with src version.
14556
14557 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14558
14559         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14560         BT_FN_VOID_PTR_VAR.
14561         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14562         * doc/extend.texi (__builtin_prefetch): Update documentation:
14563         first argument is now const void ptr.
14564
14565 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14566
14567         * config/h8300/h8300-protos.h: Remove an unused prototype.
14568
14569 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14570
14571         * toplev.c (lang_independent_init): Round up identifier size.
14572
14573 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14574
14575         * config.gcc: Revert previous change.
14576
14577 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14578
14579         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14580
14581 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14582
14583         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14584         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14585         other non-elf netbsd config frags.
14586         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14587         collect2 will does that.
14588         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14589         shared-lib frobbing will work.
14590
14591 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14592
14593         * config/h8300/h8300.h: Fix formatting.
14594         * config/h8300/h8300.md: Likewise.
14595
14596 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14597
14598         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14599         the old, removed AAA_standards fix.
14600         * fixinc/fixincl.x: Rebuilt.
14601
14602 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14603
14604         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14605         atexit call in crtbegin, hooked in after call to frame_dummy;
14606         register EH before registering __fini__start.
14607
14608 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14609
14610         * config/rs6000/altivec.h: Remove spurious semicolons.
14611
14612 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14613
14614         * config/h8300/h8300.md: Replace dead bit extraction patterns
14615         with ones that work.
14616
14617 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14618
14619         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14620         if not STRICT_ALIGNMENT.
14621         * rtl.h (MEM_ALIGN): Likewise.
14622
14623 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14624
14625         * doc/invoke.texi (-fdump-translation-unit): Revert this
14626         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14627
14628 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14629
14630         * config/h8300/h8300.md (define_constants): New.
14631         (anonymous patterns) Use defined constants appropriately.
14632
14633 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14634
14635         * config/h8300/h8300.c (function_arg): Remove redundant code.
14636
14637 2002-01-26  Richard Henderson  <rth@redhat.com>
14638
14639         * sched-deps.c (reg_pending_uses_head): New.
14640         (reg_pending_barrier): Rename from reg_pending_sets_all.
14641         (find_insn_list): Don't mark inline.
14642         (find_insn_mem_list): Remove.
14643         (add_dependence_list, add_dependence_list_and_free): New.
14644         (flush_pending_lists): Replace only_write param with separate
14645         for_read and for_write parameters.  Update all callers.  Use
14646         add_dependence_list_and_free.
14647         (sched_analyze_1): Do not add reg dependencies here; just set
14648         the pending bits.  Use add_dependence_list.
14649         (sched_analyze_2): Likewise.
14650         (sched_analyze_insn): Replace schedule_barrier_found with
14651         reg_pending_barrier.  Add all dependencies for pending reg
14652         uses, sets, and clobbers.
14653         (sched_analyze): Don't add reg dependencies for calls, just
14654         set pending bits.  Use regs_invalidated_by_call.  Treat
14655         sched_before_next_call as a normal list, not a fake insn.
14656         (init_deps): No funny init for sched_before_next_call.
14657         (free_deps): Free pending mems lists.  Don't zero reg_last.
14658         (init_deps_global): Init reg_pending_uses.
14659         (finish_deps_global): Free it.
14660         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14661         (find_insn_mem_list): Remove.
14662         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14663         (propagate_deps): Use them.  Zero temp mem lists.
14664
14665 2002-01-26  Richard Henderson  <rth@redhat.com>
14666
14667         * Makefile.in (CRTSTUFF_CFLAGS): New.
14668         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14669         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14670         crtstuff.c instead of alpha assembly version.
14671         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14672         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14673         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14674         (__do_global_dtors_aux): Mark used.
14675         (frame_dummy, __do_global_ctors_aux): Mark used.
14676         (fini_dummy, init_dummy): Remove.
14677
14678         * config/alpha/crtbegin.asm: Remove file.
14679         * config/alpha/crtend.asm: Remove file.
14680         * config/alpha/t-crtbe: Remove file.
14681         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14682         (LINK_EH_SPEC): New.
14683
14684         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14685         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14686         calling constructors.
14687         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14688
14689         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14690         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14691         CRT_END_INIT_DUMMY hack.
14692         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14693         FORCE_{INIT,FINI}_SECTION_ALIGN.
14694
14695         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14696         FORCE_{INIT,FINI}_SECTION_ALIGN.
14697
14698         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14699         invocation sequence.
14700         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14701
14702         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14703         (FORCE_CODE_SECTION_ALIGN): New.
14704
14705 2002-01-26  Richard Henderson  <rth@redhat.com>
14706
14707         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14708
14709 2002-01-26  Richard Henderson  <rth@redhat.com>
14710
14711         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14712         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14713
14714 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14715
14716         * config/h8300/h8300.md: Remove bit extraction patterns that
14717         cannot be triggered.
14718         Restrict each bit extraction pattern to a variant on which the
14719         pattern is tested.
14720
14721 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14722
14723         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14724
14725 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14726
14727         * config/h8300/h8300.md: Remove bit test patterns that cannot
14728         be triggered.
14729         Restrict each bit test pattern to a variant on which the
14730         pattern is tested.
14731
14732 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14733
14734         * builtins.c (expand_builtin_strncat): Remove redundant check for
14735         INTEGER_CST.
14736
14737 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14738
14739         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14740         default setting.
14741         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14742         existing setting.
14743
14744 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14745
14746         * dbxout.c (dbxout_init): Use assemble_name rather than just
14747         stripping off the first character.
14748         (dbxout_source_file): Likewise.
14749
14750 2002-01-25  DJ Delorie  <dj@redhat.com>
14751
14752         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14753         using rtx_equal_p, not by comparing pointers.
14754
14755 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14756
14757         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14758         for PIC_OFFSET_TABLE_REGNUM.
14759         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14760
14761 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14762
14763         * config.gcc (x86_64-*-freebsd*): New target.
14764         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14765         value.
14766         (i[34567]86-*-freebsd*): Don't include svr4.h.
14767         * config/i386/freebsd64.h: New file.
14768
14769 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14770
14771         * config/alpha/x-vms (version): Make static.
14772
14773         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14774         in previous checkin.
14775
14776         * Makefile.in (install-headers-cp): New target.
14777         * config.gcc (alpha-dec-*vms*): Install headers with
14778         install-headers-cp
14779
14780 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14781
14782         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14783         avoid it's copies.
14784
14785 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14786
14787         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14788         of compare_tree_int.
14789         (expand_builtin_strncat): Likewise.
14790         * c-decl.c (finish_struct): Use tree_low_cst.
14791         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14792         * tree.c (compare_tree_int): Likewise.
14793
14794 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14795
14796         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14797         adjustments even if they are implemented by more than two insns.
14798
14799 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14800
14801         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14802         * df.h (struct ref): Kill B.
14803         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14804
14805         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14806         * flow.c (propagate_one_insn): Use it.
14807         (mark_used_regs): Handle NIL.
14808
14809 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14810
14811         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14812         to help folding.
14813
14814 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14815
14816         * rs6000.md (prefetch): Make address V4SI mode so that the address
14817         is restricted to legitimate form for instruction.
14818
14819 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14820
14821         * doc/install.texi (xtensa-*-elf): New target.
14822         (xtensa-*-linux*): New target.
14823         * doc/contrib.texi: Add myself.
14824
14825 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14826
14827         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14828         purpose register to hold an SImode (or smaller) value.
14829
14830 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14831
14832         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14833         registry only.
14834         * crtstuff.c: Likewise.
14835
14836 2002-01-25  Kazu Hirata  <kazu@hxi.com>
14837
14838         * config/h8300/h8300.md (negation patterns): Tighten
14839         predicates to register_operand.
14840
14841 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
14842
14843         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14844         mode, not Pmode.
14845
14846         * builtins.c (expand_builtin_prefetch): Same.
14847
14848 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14849
14850         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14851         modes.
14852
14853 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14854
14855         * config/h8300/h8300.c (print_operand): Remove support for
14856         operand character 'A'.
14857         * config/h8300/h8300.md (three anonymous patterns): Replace
14858         operand character 'A' with either 'T' or 'S'.
14859
14860 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14861
14862         * config/h8300/h8300.c (print_operand): Remove support for
14863         operand character 'U'.
14864
14865 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
14866
14867         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14868
14869 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
14870
14871         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14872         values to be assigned to the stack pointer.
14873
14874 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
14875
14876         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14877         to const_double needs to be done right for big-endian systems.
14878
14879 2002-01-24  Jason Merrill  <jason@redhat.com>
14880
14881         PR c++/2432
14882         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14883         to can_throw_internal.
14884
14885 2002-01-23  Richard Henderson  <rth@redhat.com>
14886
14887         * fold-const.c (fold): Change UINT_MAX test to check vs precision
14888         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
14889
14890 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14891
14892         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14893         (symGOT2reg): Use them, then set as GOT value as unchanging.
14894         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
14895         as a temporary, if possible.
14896         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
14897         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14898
14899 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14900
14901         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14902         accept to accept 0x80 as operands[2].
14903
14904 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14905
14906         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14907
14908 2002-01-23  Richard Henderson  <rth@redhat.com>
14909
14910         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14911
14912 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
14913
14914         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14915         (parmlist_or_identifiers_1): Verify that only a parmlist follows
14916         an attribute.
14917
14918 2002-01-23  Richard Henderson  <rth@redhat.com>
14919
14920         * expr.c (move_by_pieces_1): Extend size before negation.
14921
14922         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14923         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14924         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14925         * config/m68k/t-m68kelf: Likewise.
14926
14927 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
14928
14929         * config/xtensa/elf.h: New file.
14930         * config/xtensa/lib1funcs.asm: New file.
14931         * config/xtensa/lib2funcs.S: New file.
14932         * config/xtensa/linux.h: New file.
14933         * config/xtensa/t-xtensa: New file.
14934         * config/xtensa/xtensa-config.h: New file.
14935         * config/xtensa/xtensa-protos.h: New file.
14936         * config/xtensa/xtensa.c: New file.
14937         * config/xtensa/xtensa.h: New file.
14938         * config/xtensa/xtensa.md: New file.
14939         * config.gcc (xtensa-*-elf*): New target.
14940         (xtensa-*-linux*): New target.
14941         * cse.c (canon_hash): Compare rtx pointers instead of register
14942         numbers.  This is required for the Xtensa port.
14943         * integrate.c (copy_insn_list): Handle case where the static
14944         chain is in memory and the memory address has to be copied to
14945         a register.
14946         * doc/invoke.texi (Option Summary): Add Xtensa options.
14947         (Xtensa Options): New node.
14948         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14949
14950 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14951
14952         * diagnostic.c (internal_error): Do ICE suppression only
14953         when ENABLE_CHECKING is not defined.
14954
14955         * c-typeck.c (require_complete_type): Return error_mark_node
14956         if type is error_mark_node.
14957
14958 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
14959
14960         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14961         -Os and issue a warning.
14962
14963 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14964
14965         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14966         current (lack of) need for host configuration by hand.
14967
14968         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14969         references.  Documentation of some target macros moved from
14970         hostconfig.texi to tm.texi.
14971
14972 2002-01-23  Will Cohen  <wcohen@redhat.com>
14973
14974         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14975         defined.
14976
14977 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14978
14979         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14980         operand[3].
14981
14982 2002-01-23  Jason Merrill  <jason@redhat.com>
14983
14984         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14985
14986         * function.c (assign_parms): Don't put args of inline functions
14987         into registers when not optimizing.
14988
14989 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
14990
14991         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14992         (prologue_use): New pattern.
14993         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14994         preference to gen_rtx_USE.
14995         (thumb_expand_prologue): Use gen_prologue_use in preference to
14996         gen_rtx_USE.
14997         (thumb_expand_epilogue): Use gen_prologue_use in preference to
14998         gen_rtx_USE.
14999
15000 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
15001
15002         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
15003
15004 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15005
15006         PR c/3504
15007         * doc/extend.texi: Correct documentation of __alignof__.
15008
15009 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
15010
15011         * params.h: Rename arguments of DEFPARAM so that it will be
15012         recognized as a translation keyword.
15013
15014 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15015
15016         * extend.texi: Document altivec functions.
15017         Fix N-bit adjectives in X86 builtin documentation.
15018
15019 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15020
15021         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
15022         auto_inc_dec values.
15023
15024 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
15025
15026         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
15027         after backslash.
15028         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
15029
15030 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15031
15032         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
15033
15034 2002-01-22  Richard Henderson  <rth@redhat.com>
15035
15036         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
15037         copy_insn not copy_rtx.
15038
15039 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
15040
15041         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
15042         "nonzero" as that might add "1" bits.  Ensure "constop" is
15043         properly sign extened.
15044         (force_to_mode): Tweak for sign extended constop.
15045
15046 2002-01-22  Richard Henderson  <rth@redhat.com>
15047
15048         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15049         for_each_rtx instead of assuming we're already looking at the MEM.
15050         (split_small_symbolic_mem_operand): Likewise.
15051         * config/alpha/alpha.h (PREDICATE_CODES): Update.
15052         * config/alpha/alpha.md (small symbolic memory splitters): Update.
15053
15054 2002-01-22  Richard Henderson  <rth@redhat.com>
15055
15056         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15057         sequence number for the literal.
15058         (divmoddi_internal_er): Likewise.
15059
15060 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15061
15062         PR java/4972
15063         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15064         in LIBICONV variable.
15065         * configure: Regenerated.
15066
15067 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
15068
15069         * dependence.c (build_def_use): Remove array_idx.
15070
15071         * dwarfout.c (last_filename): Remove.
15072         (output_compile_unit_die): Remove last_filename.
15073
15074 2002-01-22  Roger Sayle  <roger@eyesopen.com>
15075             Richard Henderson  <rth@redhat.com>
15076
15077         PR opt/3640
15078         * fold-const.c (fold): Optimize unsigned comparisons against
15079         UINT_MAX (and similar unsigned constants).
15080
15081 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
15082
15083         * Makefile.in (loop.o): Depend on OPTABS_H.
15084         * loop.c (emit_prefetch_instructions): Check the prefetch operand
15085         against the predicate.
15086
15087         PR target/5379
15088         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15089         for the address operand.
15090
15091 2002-01-22  Richard Henderson  <rth@redhat.com>
15092
15093         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15094
15095 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15096
15097         PR other/5450
15098         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15099         preprocessor flags.
15100
15101 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
15102
15103         * config.gcc (x86_64-*-netbsd*): New target.
15104         * config/i386/netbsd64.h: New file.
15105
15106 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15107
15108         * regrename.c (kill_value): Fix typo.
15109
15110 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15111
15112         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15113
15114         * config/rs6000/rs6000.h: Same.
15115
15116         * function.c (instantiate_virtual_regs): Remove
15117         STARTING_FRAME_PHASE.
15118         (assign_stack_local_1): Same.
15119         Calculate frame phase.
15120
15121 2002-01-22  Nick Clifton  <nickc@redhat.com>
15122
15123         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15124         variable declaration to outer scope in order to simplify
15125         future extensions.
15126         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15127         arm_hard_regno_mode_ok.
15128         * config/arm/arm-protos.h: Add a prototype for
15129         arm_hard_regno_mode_ok.
15130         * config/arm/arm.c (soft_df_operand): Remove now redundant
15131         check for DImode values using IP_REGNUM.
15132         (nonimmediate_soft_df_operand): Remove now redundant check for
15133         DImode values using IP_REGNUM.
15134         (arm_hard_regno_mode_ok): New function. New check: make sure
15135         that DImode values are not stored in IP_REGNUM.
15136
15137         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15138         note with a USE.
15139         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15140
15141 2002-01-22  Jason Merrill  <jason@redhat.com>
15142
15143         * c-semantics.c (genrtl_compound_stmt): Only check nesting
15144         consistency if this COMPOUND_STMT is scoped.
15145
15146 2002-01-22  Kazu Hirata  <kazu@hxi.com>
15147
15148         * predict.c: Fix formatting.
15149         * print-tree.c: Likewise.
15150         * protoize.c: Likewise.
15151         * real.h: Likewise.
15152         * rtl.h: Likewise.
15153         * sbitmap.h: Likewise.
15154         * scan.c: Likewise.
15155         * sched-deps.c: Likewise.
15156         * sched-vis.c: Likewise.
15157         * sdbout.c: Likewise.
15158         * sibcall.c: Likewise.
15159         * ssa.c: Likewise.
15160         * ssa-ccp.c: Likewise.
15161         * ssa-dce.c: Likewise.
15162         * stmt.c: Likewise.
15163         * stor-layout.c: Likewise.
15164         * system.h: Likewise.
15165
15166 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15167
15168         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15169         if fits in bounds of base type.
15170
15171         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15172         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15173         (add_bound_info, default): If can't find a context, make a
15174         SAVE_EXPR.
15175         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15176
15177 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
15178
15179         * c-typeck.c (parser_build_binary_op): If result from
15180         build_binary_op is ERROR_MARK just return error_mark_node without
15181         further processing.
15182
15183 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
15184
15185         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15186         Split a.out-specific bits into...
15187         * config/netbsd-aout.h: ...this.
15188         * config/netbsd-elf.h: New file.
15189         * config/alpha/netbsd-elf.h: Remove.
15190         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15191         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15192         (STARTFILE_SPEC): Remove redundant definition.
15193         (ENDFILE_SPEC): Likewise.
15194         (LINK_SPEC): Likewise.
15195         (CPP_SPEC): Likewise.
15196         (ASM_SPEC): Likewise.
15197         (LIB_SPEC): Likewise.
15198         (SWITCH_TAKES_ARG): Likewise.
15199         (TARGET_MEM_FUNCTIONS): Likewise.
15200         (CPP_PREDEFINES): Redefine.
15201         (ASM_FINAL_SPEC): Remove redefinition.
15202         (ASM_COMMENT_START): Redefine.
15203         (FUNCTION_PROFILER): Define.
15204         (TARGET_VERSION): Redefine.
15205         Comment and formatting cleanup.
15206         * config/i386/netbsd.h: Include <netbsd-aout.h>.
15207         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15208         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15209         big- or little-endian.
15210         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15211         * config.gcc (*-*-netbsd*): Add definitions common to all
15212         NetBSD configs.
15213         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15214         gnu_ld definitions.  Add netbsd-elf.h to and remove
15215         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
15216         tmake_file, and don't lose previous tmake_file contents.
15217         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15218         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15219         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
15220         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15221         (mipsel-*-netbsd*): Rename this to...
15222         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
15223         mips/little.h to tm_file for mips*el-*.
15224         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15225         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15226         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15227
15228 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15229
15230         * pa-protos.h (reg_before_reload_operand): New function prototype.
15231         * pa.c (reg_before_reload_operand): New function implementation.
15232         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
15233         contraints to "*m".
15234
15235 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15236
15237         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15238
15239 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15240
15241         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15242         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15243         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15244         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15245         (ENDFILE_SPEC): Undefine.
15246         (STARTFILE_SPEC): Redefine for PA.
15247
15248 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15249
15250         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15251
15252 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
15253
15254         * config.gcc: Add entries to supported PowerPC --with-cpu
15255         types.
15256
15257 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
15258
15259         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15260         true for 64-bit mode only SSE registers in 32-bit mode.
15261
15262 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15263
15264         * unwind-dw2.c: Fix formatting.
15265         * unwind-dw2-fde.c: Likewise.
15266         * unwind-dw2-fde.h: Likewise.
15267         * unwind-pe.h: Likewise.
15268         * varasm.c: Likewise.
15269         * varray.h: Likewise.
15270
15271 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
15272
15273         Remove workaround for register stack overwrite bug in mmix.
15274         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15275         support for TARGET_REG_STACK_FILL_BUG.
15276         * config/mmix/mmix.h: Remove member has_call_without_parameters.
15277         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15278         Delete.
15279         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15280         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15281         -mno-reg-stack-fill-bug-workaround.
15282         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15283         machine member has_call_without_parameters.
15284         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15285         -mreg-stack-fill-bug-workaround and
15286         -mno-reg-stack-fill-bug-workaround.
15287         (MMIX Options): Ditto.
15288
15289 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15290
15291         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15292         as appropriate.
15293         Remove redundant code.
15294
15295 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15296
15297         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15298         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15299         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15300         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15301         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15302         out target macro definitions and non-target-specific comments
15303         mostly taken from old versions of the manual.
15304
15305 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15306
15307         * config/h8300/h8300.h: Fix comment formatting.
15308         * config/ia64/aix.h: Likewise.
15309         * config/ia64/ia64-protos.h: Likewise.
15310         * config/ia64/ia64.c: Likewise.
15311         * config/ia64/ia64.h: Likewise.
15312         * config/ia64/ia64intrin.h: Likewise.
15313         * config/ia64/linux.h: Likewise.
15314         * config/ia64/unwind-aix.c: Likewise.
15315         * config/ia64/unwind-ia64.c: Likewise.
15316
15317 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15318
15319         * config/h8300/h8300.c: Revise comments about shift code.
15320
15321 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15322
15323         * config/h8300/h8300.c (function_arg): Update a comment.
15324
15325 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15326
15327         * config/h8300/h8300.md: Update the comments at the beginning
15328         of the file.
15329
15330 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15331
15332         * config/i370/i370.c: Fix comment formatting.
15333         * config/i370/i370.h: Likewise.
15334         * config/i370/i370.md: Likewise.
15335         * config/i370/linux.h: Likewise.
15336
15337 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15338
15339         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15340
15341         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15342         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15343         in incomplete case.
15344
15345 2002-01-20  Graham Stott  <grahams@redhat.com>
15346
15347         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15348
15349 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15350
15351         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15352
15353 2002-01-19  Tom Rix  <trix@redhat.com>
15354
15355         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15356
15357 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15358
15359         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15360
15361         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15362         STARTING_FRAME_PHASE.
15363         (STARTING_FRAME_PHASE): New.
15364         (instantiate_virtual_regs): Check saneness of
15365         STARTING_FRAME_PHASE.
15366
15367         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15368
15369 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15370
15371         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15372
15373 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15374
15375         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15376         be used for bootstrapping GCC 3.0.
15377
15378 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15379
15380         * config/h8300/h8300.md: Fix an insn length.
15381
15382 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15383
15384         * bitmap.h: Fix comment formatting.
15385         * combine.c: Likewise.
15386         * cppfiles.c: Likewise.
15387         * c-pragma.h: Likewise.
15388         * c-typeck.c: Likewise.
15389         * df.c: Likewise.
15390         * dwarf2out.c: Likewise.
15391         * function.c: Likewise.
15392         * gcc.c: Likewise.
15393         * genattrtab.c: Likewise.
15394         * gthr-win32.h: Likewise.
15395         * haifa-sched.c: Likewise.
15396         * predict.c: Likewise.
15397         * rtlanal.c: Likewise.
15398         * rtl.h: Likewise.
15399         * unwind-dw2-fde.h: Likewise.
15400         * unwind-pe.h: Likewise.
15401         * vmsdbgout.c: Likewise.
15402
15403 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15404
15405         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15406         if type_required and passed decl.
15407
15408 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15409
15410         * config.gcc (cpu_type): Include altivec.h in powerpc
15411         extra_headers.
15412         Same for darwin.
15413
15414         * config/rs6000/altivec.h: New.
15415
15416 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15417
15418         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15419         handling information.
15420         * doc/trouble.texi (Interoperation): Add libstdc++ information
15421         for AIX.
15422         (Misunderstandings): Add template instantiation and static template
15423         member information for AIX.
15424
15425 2002-01-17  Jason Merrill  <jason@redhat.com>
15426
15427         * dbxout.c (dbxout_type): Support const and volatile.
15428
15429         * except.c (add_partial_entry): Remove backwards compatibility code.
15430         (end_protect_partials): Likewise.
15431
15432 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15433
15434         * config/ia64/ia64.md (prologue_use): New.
15435         * config/ia64/ia64.c (ia64_expand_prologue): Use
15436         gen_prologue_use instead of gen_rtx_USE.
15437         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15438         as CODE_FOR_pred_rel_mutex.
15439         (ia64_sched_reorder2): Likewise.
15440
15441 2002-01-16  Eric Christopher  <echristo@redhat.com>
15442
15443         * config/mips/r3900.h: Reformat.
15444         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15445         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15446         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15447         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15448         * config/mips/t-elf: Remove mips3 multilib.
15449
15450 2002-01-16  H.J. Lu <hjl@gnu.org>
15451
15452         * config/mips/linux.h: Include "mips/abi64.h".
15453
15454 2002-01-16  H.J. Lu <hjl@gnu.org>
15455
15456         * config/mips/t-linux: New.
15457
15458         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15459
15460         * config/mips/linux.h: Don't include "gofast.h".
15461         (INIT_SUBTARGET_OPTABS): Removed.
15462
15463 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15464
15465         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15466         output_a_shift.
15467         * config/h8300/h8300.c: Likewise.
15468         * config/h8300/h8300.md: Likewise.
15469
15470 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15471
15472         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15473         spaces after an opcode name.
15474         (pushqi1_h8300hs): Likewise.
15475         (pushhi1_h8300hs): Likewise.
15476
15477 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15478
15479         * doc/extend.texi: Replace "option" with "attribute"
15480         appropriately.
15481
15482 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15483
15484         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15485         (and:DI () (const_int -8)).
15486         (split_small_symbolic_mem_operand): Split
15487         (mem (and:DI () (const_int -8)).
15488
15489 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15490
15491         PR target/5309:
15492         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15493         same way as TYPE_IMUL.
15494         (ultrasparc_sched_reorder): Likewise.
15495         * config/sparc/sparc.md (type): Add comment to update
15496         ultrasparc_sched_reorder when making changes.
15497
15498 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15499
15500         * doc/invoke.texi: Change the dump file name of block
15501         reordering pass from 28.bbro to 29.bbro.
15502         Mention -dk option.
15503
15504 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15505
15506         * i386.md (minsf splitter): Fix pasto.
15507
15508 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15509
15510         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15511         to frame pointer initialisation instruction.
15512         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15513         initialisation instruction.
15514         (soft_df_operand): Do not accept the IP register.
15515         (nonimmediate_soft_df_operand): Do not accept the IP register.
15516
15517 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15518
15519         PR target/5357:
15520         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15521         MASK_V8 being both set.
15522
15523 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15524
15525         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15526         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15527         config/s390/s390.md (call, call_value): Add GOT register to
15528         CALL_INSN_FUNCTION_USAGE where needed.
15529         (call_exp, call_value_exp): New.
15530
15531 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15532
15533         * config/arm/arm.c: General formatting tidy up.
15534
15535 2002-01-16  Graham Stott  <grahams@redhat.com>
15536
15537         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15538         cast and when casting an integer literal to "rtx" pointer.
15539         (expand_call): Likewise.
15540         * flow.c (try_pre_increment): Likewise.
15541         (find_use_as_address): Likewise.
15542         * integrate.c (expand_iline_function): Likewise.
15543         * regmove.c (try_auto_increment): Likewise.
15544
15545 2002-01-16  Graham Stott  <grahams@redhat.com>
15546
15547         * sched-rgn.c (passed): Use sbitmap_free.
15548         (header): Likewise.
15549         (inner): Likewise.
15550         (in_queue): Likewise.
15551         (in_stack): Likewise.
15552
15553 2002-01-15  Eric Christopher  <echristo@redhat.com>
15554
15555         * flow.c (propagate_one_insn): Change to use fatal_insn.
15556
15557 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15558
15559         * expmed.c (extract_fixed_bit_field): Remove unused code.
15560         * system.h: Poison SLOW_ZERO_EXTEND.
15561         * doc/tm.texi: Remove.
15562         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15563         * config/arm/arm.h: Likewise.
15564         * config/avr/avr.h: Likewise.
15565         * config/clipper/clipper.h: Likewise.
15566         * config/convex/convex.h: Likewise.
15567         * config/d30v/d30v.h: Likewise.
15568         * config/dsp16xx/dsp16xx.h: Likewise.
15569         * config/elxsi/elxsi.h: Likewise.
15570         * config/fr30/fr30.h: Likewise.
15571         * config/h8300/h8300.h: Likewise.
15572         * config/i370/i370.h: Likewise.
15573         * config/i386/i386.h: Likewise.
15574         * config/m68k/m68k.h: Likewise.
15575         * config/mips/mips.h: Likewise.
15576         * config/ns32k/ns32k.h: Likewise.
15577         * config/pdp11/pdp11.h: Likewise.
15578         * config/pj/pj.h: Likewise.
15579         * config/s390/s390.h: Likewise.
15580         * config/sh/sh.h: Likewise.
15581         * config/stormy16/stormy16.h: Likewise.
15582         * config/v850/v850.h: Likewise.
15583         * config/vax/vax.h: Likewise.
15584         * config/we32k/we32k.h: Likewise.
15585
15586 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15587
15588         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15589         (altivec_lvsl): Change constraint to b.
15590         (altivec_lvsr): Same.
15591         (altivec_lvebx): Same.
15592         (altivec_lvehx): Same.
15593         (altivec_lvewx): Same.
15594         (altivec_lvxl): Same.
15595         (altivec_lvx): Same.
15596         (altivec_stvx): Add parallel.
15597         (altivec_stvxl): Same.
15598         (altivec_stvehx): Same.
15599         (altivec_stvebx): Same.
15600         (altivec_stvebx): Same.
15601
15602 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15603
15604         * config.gcc: Change altivec.h to altivec-defs.h.
15605
15606         * config/rs6000/altivec.h: Delete.
15607
15608         * config/rs6000/altivec-defs.h: Add.
15609
15610 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15611
15612         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15613         and UMOD modes.
15614
15615         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15616         less than or equal to eight bytes.
15617
15618         * vax.md (andsi3): Remove constraints and change SET destination
15619         operand type to nonimmediate_operand.
15620         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15621         when it is a CONST_INT.
15622
15623 2002-01-15  Jason Merrill  <jason@redhat.com>
15624
15625         * c-common.def (FILE_STMT): New code.
15626         * c-common.c (statement_code_p): It's a statement.
15627         * c-common.h (stmt_tree_s): Add x_last_filename.
15628         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15629         (last_expr_filename): New macro.
15630         * c-semantics.c (begin_stmt_tree): Initialize it.
15631         (add_stmt): If the filename changed, also insert a
15632         FILE_STMT.
15633         (expand_stmt): Handle seeing one.
15634
15635 2002-01-15  Eric Christopher  <echristo@redhat.com>
15636
15637         * flow.c (propagate_one_insn): Add error message and print out
15638         insn for debugging.
15639
15640 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15641
15642         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15643         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15644         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15645         TRAMPOLINE_ALIGNMENT.
15646         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15647         to be in bits.
15648         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15649         PCC_BITFIELD_TYPE_MATTERS.
15650         * config/interix.h (STDC_VALUE): Remove.  Use
15651         STDC_0_IN_SYSTEM_HEADERS.
15652         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15653         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15654         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15655
15656 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15657
15658         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15659         not work on this platform currently.
15660
15661 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15662
15663         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15664         readonly_warning in _().
15665
15666 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15667
15668         * gcc.c (delete_if_ordinary): Backout previous change.
15669
15670 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15671
15672         * config/h8300/h8300.c (print_operand): Remove support for
15673         unused operand characters.
15674
15675         * read-rtl.c: Fix formatting.
15676         * real.c: Likewise.
15677         * recog.c: Likewise.
15678         * regclass.c: Likewise.
15679         * regmove.c: Likewise.
15680         * reg-stack.c: Likewise.
15681         * reload1.c: Likewise.
15682         * rtlanal.c: Likewise.
15683
15684 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15685
15686         * config/i386/i386.c: Fix formatting.
15687
15688 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15689
15690         * c-typeck.c (process_init_element): Don't save_expr
15691         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15692
15693 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15694
15695         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15696         emit optional traceback table if optimize_size or TARGET_ELF.
15697         * config/rs6000/rs6000.md (prefetch): New.
15698
15699 2002-01-15  Andreas Jaeger  <aj@suse.de>
15700
15701         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15702
15703 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15704
15705         * mips-tfile.c: Fix formatting.
15706
15707 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15708
15709         * unroll.c (final_reg_note_copy): Fix previous commit.
15710
15711 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15712
15713         * config/h8300/h8300-protos.h: Remove the prototype for
15714         eq_operator.
15715         * config/h8300/h8300.c (eq_operator): Remove.
15716
15717 2002-01-14  Richard Henderson  <rth@redhat.com>
15718
15719         * config/i386/i386.md (prefetch): Tidy.
15720         (prefetch_3dnow): Fix locality operand.
15721
15722 2002-01-14  Richard Henderson  <rth@redhat.com>
15723
15724         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15725         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15726
15727 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15728
15729         * reload1.c (reload_combine): Pass reg_sum replacement through
15730         copy_rtx in loop performing multiple changes.
15731
15732 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15733
15734         * except.c (remove_unreachable_regions): New.
15735         (free_eh_status): Clear exception_handler_labels.
15736         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15737         (find_exception_handler_labels): Don't add the same label more than
15738         once.
15739         (remove_exception_handler_label): Don't die if
15740         find_exception_handler_labels hasn't been called for the current
15741         function yet.
15742
15743 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15744
15745         * toplev.c (rest_of_compilation): Rebuild jump labels after
15746         gcse.
15747
15748 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15749
15750         * doc/extend.texi: Move documentation of X86 built-in functions
15751         here.
15752         * doc/invoke.texi: From here.
15753         * doc/sourcebuild.texi: Document location of documentation for
15754         machine built-in functions.
15755
15756 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15757
15758         * cppfiles.c (TEST_THRESHOLD): New macro.
15759         (SHOULD_MMAP): Ditto.
15760         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15761         be used.
15762
15763 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15764
15765         * unroll.c (final_reg_note_copy): Properly handle
15766         REG_LABEL
15767         (unroll_loops): Fix LOOP_CONDITION heuristics.
15768
15769 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15770
15771         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15772         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15773
15774 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15775
15776         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15777         threaded loop.
15778
15779 2002-01-14  Tom Rix  <trix@redhat.com>
15780
15781         * config/rs6000/rs6000.md: Fix typo with sradi.
15782
15783 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15784
15785         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15786         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15787         (clrstrdi, clrstrsi): Adapt callers.
15788
15789         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15790
15791         (movti splitter): Never use register 0 as base register.
15792
15793 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15794
15795         * combine.c (simplify_shift_const): Always generate new rtx
15796         for shift expression instead of reusing given expression.
15797
15798 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15799
15800         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15801         alpha_legitimize_address unless mode is Pmode.
15802
15803 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15804
15805         * doc/md.texi (Modifiers): Document the '*' constraint for the
15806         user.
15807
15808         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15809         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15810         for xstormy16 too.
15811
15812 2002-01-13  Richard Henderson  <rth@redhat.com>
15813
15814         * reload.c (find_reloads): Use a hard reg destination as reload reg
15815         for an input reload of the source.
15816
15817 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15818
15819         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15820         more generic.
15821
15822 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15823
15824         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15825         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15826
15827         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15828
15829 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15830
15831         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15832
15833 2002-01-12  Tom Rix  <trix@redhat.com>
15834
15835         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15836         TARGET_POWERPC64.
15837
15838 2002-01-12  Richard Henderson  <rth@redhat.com>
15839
15840         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15841
15842         * doc/invoke.texi: Update Alpha options.
15843
15844         * doc/invoke.texi: Update i386 built-in function lists.
15845
15846 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15847
15848         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15849         referencing outside.
15850
15851 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15852
15853         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15854         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15855         offsets, and change line folding.
15856         * optabs.c (expand_binop): Remove warnings.
15857         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15858
15859 2002-01-12  Graham Stott <grahams@redhat.com>
15860
15861         * attribs.c (handle_deprecated_attribute): constify WHAT.
15862         * diagnostic.c (warn_deprecated_use): Add braces, fixes
15863         dangling else warning and constify WHAT.
15864         * except.h (struct function, struct inline_remap): Move
15865         struct tag forward defs before all prototypes.
15866         (duplicate_eh_regions): Whitespace.
15867
15868 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
15869
15870         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15871         MODE_BASE_REG_CLASS.
15872         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15873
15874 2002-01-12  Richard Henderson  <rth@redhat.com>
15875
15876         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15877         (ix86_expand_vector_move): New.
15878         (bdesc_2arg): Remove andps, andnps, orps, xorps.
15879         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
15880         Remove old prefetch builtins.  Special case the logicals removed above.
15881         (ix86_expand_builtin): Likewise.
15882         (safe_vector_operand): Use V4SFmode, not TImode.
15883         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
15884         (ix86_expand_timode_binop_builtin): New.
15885         * config/i386/i386-protos.h: Update.
15886         * config/i386/i386.h (enum ix86_builtins): Update.
15887         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15888         Use ix86_expand_vector_move in vector move expanders.
15889         (movti_internal, movti_rex64): Add xorps alternative.
15890         (sse_clrv4sf): Rename and adjust from sse_clrti.
15891         (prefetch): Don't work so hard.
15892         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15893         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15894         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15895
15896 2002-01-11  Richard Henderson  <rth@redhat.com>
15897
15898         * config/i386/mmintrin.h: New file.
15899         * config/i386/xmmintrin.h: New file.
15900         * config.gcc (i?86-*-*): Add extra_headers.
15901         * simplify-rtx.c (simplify_unary_operation): Handle saturating
15902         truncation codes.
15903         (simplify_binary_operation): Handle saturating arithmetic codes.
15904         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15905         not the lowpart subreg.
15906         (ix86_expand_builtin): Return a TImode dummy register instead of 0
15907         on error.
15908         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15909
15910 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15911
15912         * conflict.c (conflict_graph_compute): Free regsets when finished.
15913         * ssa.c (compute_coalesced_reg_partition): Likewise.
15914
15915 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15916
15917         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15918         every where we allocate a register.
15919
15920 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15921
15922         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15923         * lcm.c (compute_earliest, compute_farthest): Likewise.
15924
15925 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15926
15927         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15928
15929 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15930
15931         * doc/rtl.texi (Insns): Fix 2 typos.
15932
15933 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
15934
15935         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
15936         options.  Use @table @gcctabopt for MMIX options.  Add index
15937         entries for MMIX options.  Start new paragraph with first
15938         heading of the machine-dependent options.
15939
15940 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15941
15942         PR other/5299
15943         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15944         * combine.c (force_to_mode): Same.
15945         * reload1.c (clear_reload_reg_in_use): Same.
15946
15947 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
15948
15949         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15950         and 'subtargets'.
15951
15952 2002-01-11  Andreas Jaeger  <aj@suse.de>,
15953             Brad Lucier <lucier@math.purdue.edu>
15954
15955         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15956         mcpu.
15957
15958 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
15959
15960         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15961         Protect with IN_LIBGCC.
15962         (LINK_EH_SPEC): Add required trailing space.
15963
15964 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15965
15966         * c-tree.h: Move function declarations so that they are listed
15967         under the filename which contains them.
15968         (check_identifier, finish_decl_top_level,
15969         lookup_name_current_level_global, shadow_record_fields): Remove.
15970
15971 2002-01-11  Andreas Jaeger  <aj@suse.de>
15972
15973         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15974         march.
15975
15976 2002-01-10  Richard Henderson  <rth@redhat.com>
15977
15978         * config/alpha/alpha.c (print_operand): Add 'J'.
15979         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15980         new operand with the sequence number for the lituse.  When splitting
15981         the insns, use gen_movdi_er_high_g and generate a sequence number.
15982         (gen_movdi_er_high_g): Print the sequence number if non-zero.
15983
15984 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
15985
15986         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15987         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15988         stvxl.
15989         (altivec_expand_builtin): Same.
15990         (altivec_expand_stv_builtin): New.
15991
15992         * config/rs6000/rs6000.h (rs6000_builtins): Same.
15993
15994         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15995         ("altivec_lvehx"): New.
15996         ("altivec_lvewx"): New.
15997         ("altivec_lvxl"): New.
15998         ("altivec_lvx"): New.
15999         ("altivec_stvx"): New.
16000         ("altivec_stvebx"): New.
16001         ("altivec_stvehx"): New.
16002         ("altivec_stvewx"): New.
16003         ("altivec_stvxl"): New.
16004
16005 2002-01-10  Richard Henderson  <rth@redhat.com>
16006
16007         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
16008         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
16009         care not to delete instructions twice.
16010
16011 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16012
16013         * toplev.c: Don't declare environ (it's not used anywhere).
16014         * configure.in: Don't check for declaration of environ.
16015         * config/i386/xm-mingw32.h: Don't #define environ.
16016         * config.in, configure: Regenerate.
16017
16018 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16019
16020         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
16021         * configure: Regenerate.
16022
16023         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
16024         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
16025         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
16026         alpha/xm-vms.h.
16027         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
16028         LIMITS_H_TEST here, not in m68k/x-next.
16029         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
16030         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
16031
16032         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
16033         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
16034         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
16035
16036         * config/i386/x-djgpp: Renamed i386/t-djgpp.
16037         * config/m88k/x-dolph: Renamed m88k/t-dolph.
16038         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
16039         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
16040         replacement of quadlib.asm with quadlib.c.
16041
16042         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
16043         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
16044         config/rs6000/xm-beos.h: Delete file.
16045
16046         * config.gcc: Update to match above changes.
16047
16048 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16049
16050         * config/h8300/h8300.h: Fix comment typos.
16051         * config/h8300/h8300.md: Likewise.
16052         * config/h8300/lib1funcs.asm: Likewise.
16053
16054 2002-01-10  Dale Johannesen  <dalej@apple.com>
16055
16056         PR optimization/5269
16057         * unroll.c (precondition_loop_p): Make *increment be the correct
16058         sign when n_iterations known, to avoid confusing caller.
16059
16060 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16061
16062         * doc/extend.texi (deprecated): Fix a typo.
16063
16064 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16065
16066         * basic-block.h (update_br_prob_note): Declare.
16067         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16068         (try_forward_edges): Care negative frequencies and update note.
16069         (outgoing_edges_match): Tweek conditional merging heuristics.
16070         (try_crossjump_to_edge): use update_br_prob_note.
16071         * cfglayout.c (fixup_reorder_chain): Likewise.
16072         * cfrtl.c (update_br_prob_note): New.
16073         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16074
16075         * i386.c (ix86_decompose_address): Return -1 if address contains
16076         shift.
16077         (legitimate_address_p): Require ix86_decompose_address to return 1.
16078
16079         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16080         (cprop_insn): Likewise.
16081
16082 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16083
16084         * toplev.c: Fix formatting.
16085         * tree.c: Likewise.
16086         * tree-dump.c: Likewise.
16087         * unroll.c: Likewise.
16088         * unwind-dw2.c: Likewise.
16089         * unwind-dw2-fde.c: Likewise.
16090         * unwind-dw2-fde-glibc.c: Likewise.
16091         * unwind-sjlj.c: Likewise.
16092
16093 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16094
16095         * doc/invoke.texi: Document PDP-11 options.
16096
16097 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16098
16099         * config/h8300/h8300.h: Fix formatting.
16100
16101 2002-01-10  Ira Ruben   <ira@apple.com>
16102
16103         Add __attribute__ ((deprecated)).
16104         * extend.texi: Document __attribute__ ((deprecated)).
16105         * invoke.texi: Document -Wno-deprecated-declarations.
16106         * testsuite/g++.dg/other/deprecated.C: New C++ test.
16107         * testsuite/gcc.dg/deprecated.c: New C test.
16108         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16109         (c_common_attribute_table): Add "deprecated" entry.
16110         (handle_deprecated_attribute): New function.
16111         * c-decl.c (deprecated_states): New enum.
16112         deprecated_state: State of "deprecated" handling.
16113         (start_decl): Set deprecated_state based on attributes.
16114         (grokdeclarator): Test for deprecated uses, propagate attribute.
16115         * c-typeck.c (build_component_ref): Test for deprecated fields.
16116         (build_external_ref): Test for deprecated primaries.
16117         * diagnostic.c (warn_deprecated_use) New function to issue
16118         warnings about __attribute__ ((depricated)) references.
16119         * flags.h (warn_deprecated_decl): Extern declared for
16120         -W[no-]deprecated-declarations option.
16121         * print-tree.c (print_node): Show deprecated flag status.
16122         * toplev.c (warn_deprecated_decl): Defined.
16123         (W_options): Added "deprecated-declaration".
16124         * toplev.h (warn_deprecated_use): Extern declared.
16125         * tree.h (struct tree_common): Define deprecated_flag.
16126         (TREE_DEPRECATED): New macro to access flag.
16127         * cp/call.c (build_call): Test for deprecated calls.
16128         * cp/class.c (add_implicitly_declared_members): Set global
16129         flag to tell grokdeclarator to not issue deprecated warnings.
16130         * cp/cp-tree.h: Add extern for adding_implicit_members.
16131         * cp/decl.c (deprecated_states): New enum.
16132         (start_decl): Set deprecated_state based on attributes.
16133         (grokdeclarator): Test for deprecated uses, propagate attribute.
16134         * cp/lex.c (do_identifier): Test for deprecated primaries.
16135         * cp/typeck.c (build_component_ref): Test for deprecated fields.
16136
16137 2002-01-10  Ira Ruben   <ira@apple.com>
16138
16139         Fix to assign attributes to inline member functions.
16140         * cp/decl.c (start_method): Handle attrlist.
16141
16142 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16143
16144         * combine.c (expand_field_assignment): Use subreg_lsb().
16145
16146 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
16147
16148         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16149         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16150         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16151         Recurse for any operand of AND as long as constant is non-zero.
16152
16153 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16154
16155         * config/h8300/h8300.md: Remove constraints from expanders.
16156
16157 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16158
16159         * varasm.c: Fix formatting.
16160         * varray.c: Likewise.
16161         * vmsdbgout.c: Likewise.
16162         * xcoffout.c: Likewise.
16163
16164 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
16165
16166         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16167         update edge probabilities to match.
16168
16169 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16170
16171         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16172         dependencies.
16173         * doc/languages.texi, doc/sourcebuild.texi: New files.
16174         * doc/configfiles.texi: Make a subsubsection.  Update.
16175         * doc/configterms.texi: Add @node.  Remove warning that this isn't
16176         instructions for building GCC.
16177         * doc/makefile.texi: Make a subsection.
16178         * doc/gccint.texi: Update.
16179
16180 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
16181
16182         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16183
16184 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16185
16186         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16187
16188 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
16189
16190         * optabs.c (expand_fix): Look for wider integer modes first.
16191
16192         * i386.md (mov?f): Avoid the fake const double trick for medium
16193         memory model.
16194         (min?f*/max?f*): Prohibit memory operands for i387 variant.
16195         (fop_df_4): Disable for SSE compilation.
16196
16197 2002-01-10  Graham Stott  <grahams@redhat.com>
16198
16199         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16200         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16201
16202 2002-01-10  Richard Henderson  <rth@redhat.com>
16203
16204         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16205
16206 2002-01-10  Richard Henderson  <rth@redhat.com>
16207
16208         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16209         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
16210
16211 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16212
16213         * combine.c (can_combine_p): Fix a comment typo.
16214
16215 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
16216
16217         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16218         empty list correctly.  Change loop index $t to $f for
16219         consistency with rest of Makefile.
16220
16221 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
16222
16223         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16224         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16225
16226         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16227         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16228         (altivec_init_builtins): Same.
16229         (altivec_expand_unop_builtin): Return NULL_RTX on error.
16230         (altivec_expand_binop_builtin): Same.
16231         (altivec_expand_ternop_builtin): Same.
16232         (bdesc_dst): New.
16233
16234         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16235         ("altivec_vctuxs"): Fix typo.
16236         ("altivec_vnmsubfp"): Same.
16237         ("altivec_dssall"): New.
16238         ("altivec_mfvscr"): New.
16239         ("altivec_dss"): New.
16240         ("altivec_lvsl"): New.
16241         ("altivec_lvsr"): New.
16242         ("altivec_dstt"): New.
16243         ("altivec_dstst"): New.
16244         ("altivec_dststt"): New.
16245         ("altivec_dst"): New.
16246
16247         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16248         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16249
16250 2002-01-09  Richard Henderson  <rth@redhat.com>
16251
16252         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16253
16254 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
16255
16256         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16257         function.
16258         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16259         prototype.
16260         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16261
16262 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16263
16264         * read-rtl.c: Fix formatting.
16265         * real.c: Likewise.
16266         * regclass.c: Likewise.
16267         * regrename.c: Likewise.
16268         * reg-stack.c: Likewise.
16269         * reload1.c: Likewise.
16270         * reload.c: Likewise.
16271         * rtl.c: Likewise.
16272
16273 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16274
16275         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16276         to extract items in the expr_list chain.
16277
16278 2002-01-09  Richard Henderson  <rth@redhat.com>
16279
16280         * config/vax/vax.c (vax_rtx_cost): Never abort.
16281
16282         * config/vax/vax.h (REAL_ARITHMETIC): Define.
16283
16284 2002-01-09  Jan Hubicka  <jh@suse.cz>
16285
16286         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16287
16288 2002-01-09  Richard Henderson  <rth@redhat.com>
16289
16290         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16291         Unify code from various alternatives.
16292
16293 2002-01-09  Richard Henderson  <rth@redhat.com>
16294
16295         * regrename.c (copy_value): Ignore the copy if the source register
16296         is present in the value chain with a narrower mode.
16297
16298 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
16299
16300         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16301         for the c4x target. Also improve layout.
16302
16303 2002-01-09  Richard Henderson  <rth@redhat.com>
16304
16305         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16306         * config/m32r/m32r.md (and ior xor splitters): Swap operands
16307         to match insn patterns.
16308
16309 2002-01-09  Richard Henderson  <rth@redhat.com>
16310
16311         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16312         (copyprop_hardreg_forward_1): Likewise.
16313
16314 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16315
16316         * pa.md (decrement_and_branch_until_zero): Change predicate for
16317         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16318
16319 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16320
16321         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16322         gets undefined. For Darwin.
16323
16324 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16325
16326         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16327
16328 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16329
16330         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16331
16332 2002-01-08  Richard Henderson  <rth@redhat.com>
16333
16334         * regrename.c (copy_value): Ignore overlapping copies.
16335
16336 2002-01-08  Richard Henderson  <rth@redhat.com>
16337
16338         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16339         as needed to avoid shared structure.
16340
16341 2002-01-08  Kazu Hirata  <kazu@hxi.com>
16342
16343         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16344         H8/300H and H8/S.
16345
16346 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16347
16348         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16349         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16350         documentation of obsolete macros.
16351         * system.h: Poison these macros.
16352         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16353         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16354         config/c4x/c4x.h, config/clipper/clipper.h,
16355         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16356         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16357         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16358         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16359         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16360         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16361         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16362         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16363         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16364         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16365         config/sparc/sparc.h, config/stormy16/stormy16.h,
16366         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16367         definitions and commented out definitions of obsolete macros.
16368         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16369         of MAX_INT_TYPE_SIZE.
16370
16371 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16372
16373         * config/s390/s390.c (s390_preferred_reload_class): Never
16374         return ADDR_REGS if it isn't a subset of the given class.
16375         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16376         FP_REGS, but all superclasses as well.
16377
16378         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16379
16380         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16381         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16382         must not be a const_int.
16383
16384 2002-01-08  Richard Henderson  <rth@redhat.com>
16385
16386         * Makefile.in (toplev.o): Depend on options.h.
16387         (gcc.o): Depend on specs.h.
16388
16389 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16390
16391         * expr.c (store_expr): Convert VOIDmode constants back to target's
16392         mode.
16393
16394 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16395
16396         * doc/invoke.texi: Markup gcc as @command.  Refer to
16397         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16398         of http://gcc.gnu.org/thanks.html.
16399
16400 2002-01-08  Dale Johannesen  <dalej@apple.com>
16401
16402         * config/rs6000/rs6000.md: Add missing int register
16403         target case to movdf_low.
16404
16405 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16406
16407         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16408         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16409         (cppinit.o): Depend on except.h.
16410         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16411         s-specs): New rules.
16412
16413         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16414         Don't create specs.h/options.h/gencheck.h here.  Remove
16415         unnecessary variable settings from last argument of AC_OUTPUT.
16416         * config.in, configure: Regenerate.
16417         * intl.c: Hardcode package name as "gcc".
16418
16419         * cppinit.c: Include except.h.
16420         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16421         appropriate.
16422         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16423         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16424         (!)USING_SJLJ_EXCEPTIONS.
16425         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16426
16427 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16428
16429         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16430         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16431         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16432         documentation of obsolete macros.
16433         * system.h: Poison these macros.
16434         * config/d30v/d30v.h, config/ns32k/encore.h,
16435         config/stormy16/stormy16.h: Remove definitions and commented out
16436         definitions of obsolete macros.
16437
16438 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16439
16440         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16441         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16442         warnings.
16443
16444 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16445
16446         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16447         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16448         to insn adjusting stack/frame pointer.
16449         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16450         accept operands that cause the insn to be non-splittable.
16451
16452 2002-01-08  Graham Stott  <grahams@redhat.com>
16453
16454         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16455         (C_TYPE_FIELDS_VOLATILE): Likewise.
16456         (C_TYPE_BEING_DEFINED): Likewise.
16457         (C_IS_RESERVED_WORD): Likewise.
16458         (C_TYPE_VARIABLE_SIZE): Likewise.
16459         (C_DECL_VARIABLE_SIZE): Likewise.
16460         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16461         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16462         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16463         parenthesis.
16464         (C_DECL_ANTICIPATED): Likewise.
16465         (c_build_type_variant): Add parenthesis.
16466
16467 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16468
16469         * gcc.c (option_map): Remove --version.
16470         (process_command): Handle -fversion following the GNU Coding
16471         Standards.  Partially addresses PR other/704.
16472
16473 2002-01-08  Graham Stott  <grahams@redhat.com>
16474
16475         * combine.c (combine_instructions): Fix typo.
16476
16477 2002-01-08  Graham Stott  <grahams@redhat.com>
16478
16479         * debug.h: Use "tree" and "rtx" throughout.
16480
16481         * debug.c: Likewise.
16482
16483 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16484
16485         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16486         constant pool, use the pool's version of the symbol instead.
16487
16488 2002-01-07  Richard Henderson  <rth@redhat.com>
16489
16490         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16491         the original register was copied in a mode with a fewer number of
16492         hard registers than the desired mode.
16493         (copyprop_hardreg_forward_1): Likewise.
16494         (debug_value_data): Fix loop test.
16495         * toplev.c (parse_options_and_default_flags): Reenable
16496         -fcprop-registers at -O1.
16497
16498 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16499
16500         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16501         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16502
16503         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16504         predicates.
16505
16506         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16507
16508 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16509
16510         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16511         (pa_output_function_prologue): Output local label at the beginning of
16512         the prologue when profiling.
16513         (hppa_profile_hook): Use the local label rather than the function label.
16514         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16515
16516 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16517
16518         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16519         (altivec_expand_unop_builtin): Fix thinko.
16520         (altivec_expand_binop_builtin): Same.
16521         (altivec_expand_ternop_builtin): Same.
16522         (altivec_expand_builtin): Same.
16523
16524 2002-01-07  Richard Henderson  <rth@redhat.com>
16525
16526         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16527
16528 2002-01-07  Jason Merrill  <jason@redhat.com>
16529
16530         * unwind-dw2.c (execute_cfa_program): Use < again.
16531
16532 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16533
16534         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16535
16536 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16537
16538         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16539         Don't allow -1 - x -> ~x simplifications in the first pass.
16540
16541 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16542
16543         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16544         arguments.
16545         (altivec_expand_binop_builtin): Same.
16546         (altivec_expand_unop_builtin): Same.
16547         (print_operand): Fix typo.
16548         (bdesc_1arg): Add vupk* variants.
16549
16550         * rs6000.h (rs6000_builtins): Add vupk* enums.
16551
16552         * rs6000.md: Add altivec_vupk* variants.
16553
16554 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16555
16556         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16557         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16558         and last update dates.
16559
16560 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16561
16562         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16563
16564 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16565
16566         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16567         * config/avr/avr.h (CPP_SPEC): Likewise.
16568         (LINK_SPEC): Likewise.
16569         (CRT_BINUTILS_SPECS): Likewise.
16570         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16571         * doc/invoke.texi (AVR Options): Document them.
16572
16573 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16574
16575         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16576         LABEL_NUSES.
16577
16578 2002-01-07  Graham Stott  <grahams@redhat.com>
16579
16580         * config/i386/i386.h: Update copyright date.
16581         (HALF_PIC_PTR): Add parenthesis.
16582         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16583         (CONSTANT_ALIGNMENT): Add parenthesis.
16584         (DATA_ALIGNMENT): Likewise.
16585         (LOCAL_ALIGNMENT): Likewise.
16586         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16587         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16588         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16589         (HARD_REGNO_NREGS): Add paranethesis.
16590         (VALID_SSE_REG_MODE): Whitespace.
16591         (VALID_MMX_REG_MODE): Whitespace.
16592         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16593         (ix86_hard_regno_mode_ok): Add parenthesis.
16594         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16595         (RETURN_IN_MEMORY): Whitespace.
16596         (N_REG_CLASSES): Add parenthesis.
16597         (INTEGER_CLASS_P): Add parenthesis and wrap.
16598         (FLOAT_CLASS_P): Likewise.
16599         (SSE_CLASS_P): Likewise.
16600         (MMX_CLASS_P): Likewise.
16601         (MAYBE_INTEGER_CLASS_P): Likewise.
16602         (MAYBE_FLOAT_CLASS_P): Likewise.
16603         (MAYBE_SSE_CLASS_P): Likewise.
16604         (MAYBE_MMX_CLASS_P): Likewise.
16605         (Q_CLASS_P): Likewise.
16606         (GENERAL_REGNO_P): Uppercase macro parameter.
16607         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16608         (FP_REGNO_P): Likewise.
16609         (ANY_FP_REGNO_P): Uppercase macro parameter.
16610         (SSE_REGNO_P): Likewise.
16611         (SSE_REGNO): Likewise.
16612         (SSE_REG_P): Likewise.
16613         (SSE_FLOAT_MODE_P): Likewise.
16614         (MMX_REGNO_P): Likewise.
16615         (MMX_REG_P):Likewise.
16616         (STACK_REG_P): Likewise.
16617         (NON_STACK_REG_P): Likewise.
16618         (STACK_TOP_P): Likewise.
16619         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16620         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16621         (SECONDARY_MEMORY_NEEDED): Likewise.
16622         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16623         (MD_ASM_CLOBBERS): Whitespace and wrap.
16624         (MUST_PASS_IN_STACK): Whitespace and wrap.
16625         (RETURN_POPS_ARGS): Add parenthesis.
16626         (INIT_CUMULATIVE_ARGS): Likewise.
16627         (FUNCTION_ARG): Likewise.
16628         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16629         (SETUP_INCOMING_VARARGS): Likewise.
16630         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16631         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16632         parenthsis.
16633         (EXPAND_BUILTIN_VA_ARG): Likewise.
16634         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16635         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16636         (INITIAL_ELIMINATION_OFFSET): Likewise.
16637         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16638         (REGNO_OK_FOR_BASE_P): Likewise.
16639         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16640         (REGNO_OK_FOR_DIREG_P): Likewise.
16641         (REG_OK_FOR_INDEX_P): Whitespace.
16642         (REG_OK_FOR_BASE_P): Whitespace.
16643         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16644         parenthesis.
16645         (FIND_BASE_TERM): Fix typo.
16646         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16647         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16648         (SYMBOLIC_CONST; Whitespace.
16649         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16650         (ENCODE_SECTION_INFO): Whitespace.
16651         (FINALIZE_PIC): Remove do { ... } while (0).
16652         (PROMOTE_MODE): Wrap in do { ... } while (0).
16653         (CONST_COSTS): Whitespace.
16654         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16655         (REGISTER_MOVE_COST): Add parenthesis.
16656         (MEMORY_MOVE_COST): Likewise.
16657         (EXTRA_CC_MODES): Whitespace.
16658         (SELECT_CC_MODE): Add parenthesis and whitespace.
16659         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16660         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16661         (ASM_OUTPUT_LABEL): Add paramethesis.
16662         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16663         (ASM_OUTPUT_REG_POP): Likewise.
16664         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16665         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16666
16667         * config/i386/i386.c: Update copyright.
16668         (CHECK_STACK_LIMIT): Add parenthesis.
16669         (AT_BP): Uppercase macro parameter.
16670         (x86_64_int_parameter_registers): Constify.
16671         (x86_64_int_return_registers): Likewise.
16672         (ix86_compare_op0): Use rtx.
16673         (construct_container): Constify INTREG parameter.
16674         (function_arg): Use rtx.
16675
16676         * diagnostic.h: Update copyright date.
16677         (output_buffer_state): Add parenthesis.
16678         (output_buffer_format_args): Likewise.
16679
16680         * combine.c (combine_instructions): Replace XEXP (links, 0)
16681         with link.
16682
16683 2002-01-06  H.J. Lu <hjl@gnu.org>
16684
16685         * cfgcleanup.c (thread_jump): Fix 2 typos.
16686
16687 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16688
16689         * config.gcc: Add support for --enable-altivec.
16690
16691 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16692
16693         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16694
16695 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16696
16697         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16698         __objc_class_name_*.
16699
16700 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16701
16702         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16703
16704 2002-01-06  Richard Henderson  <rth@redhat.com>
16705
16706         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16707         nop them out.  Increment label reference count for REG_LABEL.
16708         (fill_slots_from_thread): Frob label reference count around
16709         delete_related_insns.
16710
16711 2002-01-05  Richard Henderson  <rth@redhat.com>
16712
16713         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16714         jump threading.
16715
16716 2002-01-05  Richard Henderson  <rth@redhat.com>
16717
16718         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16719         * integrate.c (output_inline_function): Likewise.
16720         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16721         to remove_unnecessary_notes after emitting abstract instance.
16722         Force an emitted nested function to have its parent emited as well.
16723         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16724         for null.
16725         (rtl_for_decl_location): Do not look at reload data structures
16726         before reload has run.
16727
16728 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16729
16730         * cse.c: Fix formatting.
16731         * dwarf2asm.c: Likewise.
16732         * dwarf2out.c: Likewise.
16733         * explow.c: Likewise.
16734         * expmed.c: Likewise.
16735         * function.c: Likewise.
16736         * gcov.c: Likewise.
16737         * gencheck.c: Likewise.
16738         * genrecog.c: Likewise.
16739         * ggc-common.c: Likewise.
16740         * ggc-page.c: Likewise.
16741         * global.c: Likewise.
16742
16743 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16744
16745         * combine.c: Fix formatting.
16746
16747 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16748
16749         PR middle-end/1557
16750         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16751
16752 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16753
16754         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16755         as 1 for __powerpc64__ as well.
16756
16757         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16758
16759         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16760         return it.
16761
16762 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16763
16764         * lcm.c: Revert change, due to performance regression it causes on
16765         SPEC because it's slightly more conservative (sigh, I hate
16766         edge-based LCM).
16767
16768 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16769
16770         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16771
16772 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16773
16774         * doc/cppinternals.texi: Update.
16775
16776 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16777
16778         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16779         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16780         negatives.
16781         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16782         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16783         kludge for pre-october-14th mmix versions to handle new-found bug
16784         with PUSHJ/PUSHGO and the register stack.
16785         * config/mmix/mmix.h (struct machine_function): Rename member
16786         has_call_value_without_parameters to has_call_without_parameters.
16787         All referers changed.
16788         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16789         TARGET_MASK_BRANCH_PREDICT): New macros.
16790         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16791         -mno-reg-stack-fill-bug-workaround.
16792         * config/mmix/mmix.md ("call"): Set struct machine member
16793         has_call_without_parameters.
16794
16795 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16796
16797         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16798
16799 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16800
16801         * cfgcleanup.c: Include tm_p.h
16802         (mark_effect): Fix handling of hard register; fix handling of SET
16803
16804 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16805
16806         * config/h8300/h8300.md (anonymous patterns): Check that
16807         operands are registers before using REGNO on them.
16808
16809 2002-01-03  Roland McGrath  <roland@frob.com>
16810
16811         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16812
16813 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16814
16815         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16816         * c-common.h (genrtl_expr_stmt_value): Likewise.
16817         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16818         (expand_expr_stmt_value): Add maybe_last argument.
16819         Don't warn about statement with no effect if it is the last statement
16820         in expression statement.
16821         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16822         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16823         expand_expr_stmt_value.
16824         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16825         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16826         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16827         as maybe_last to expand_expr_stmt_value.
16828
16829 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16830
16831         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16832         be passed in, do not build it.
16833         (c_begin_if_stmt): New function.
16834         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16835         * c-common.h (c_expand_start_cond): Update prototype.
16836         (c_begin_if_stmt): Prototype new function.
16837         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16838         * c-parse.in (if_prefix): Use c_begin_if_stmt,
16839         c_begin_while_stmt and c_finish_while_stmt_cond.
16840
16841 2002-01-04  William Cohen  <wcohen@redhat.com>
16842
16843         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16844         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16845         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16846         * config/pa/som.h (ASM_FILE_START): Likewise.
16847
16848 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
16849
16850         * lcm.c: Include df.h.
16851         Add available_transfer_function prototype.
16852         (compute_available): Rework to use iterative dataflow framework.
16853         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16854         with bb_info in df.h
16855         (available_transfer_function): New function.
16856
16857         * Makefile.in (lcm.o): add df.h to dependencies.
16858
16859 2002-01-04  Richard Henderson  <rth@redhat.com>
16860
16861         * config/alpha/alpha.c (some_operand): Accept HIGH.
16862         (input_operand): Likewise; accept simple references to globals.
16863         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16864         (alpha_const_double_ok_for_letter_p): Likewise.
16865         (alpha_extra_constraint): Likewise.
16866         (alpha_preferred_reload_class): Likewise.  Do not force
16867         symbolic constants to memory.
16868         (alpha_legitimate_address_p): Accept simple references
16869         to small_symbolic_operand.
16870         (alpha_legitimize_address): New arg scratch.  Be prepared to be
16871         called when no_new_pseudos.  Emit simple symbolic references.
16872         Split integers into low, high, and rest.
16873         (alpha_expand_mov): Use alpha_legitimize_address.
16874         (some_small_symbolic_mem_operand): New.
16875         (split_small_symbolic_mem_operand): New.
16876         * config/alpha/alpha-protos.h: Update.
16877         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16878         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16879         (EXTRA_CONSTRAINT): Likewise.
16880         (PREFERRED_RELOAD_CLASS): Likewise.
16881         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16882         (PREDICATE_CODES): Update.
16883         * config/alpha/alpha.md: New post-reload splitters to convert
16884         simplfied symbolic operands to the form that references $29.
16885         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16886         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16887
16888 2002-01-03  Richard Henderson  <rth@redhat.com>
16889
16890         * local-alloc.c (function_invariant_p): Update commentary.
16891
16892 2002-01-04  H.J. Lu <hjl@gnu.org>
16893
16894         * toplev.c (rest_of_compilation): Fix a typo when calling
16895         cleanup_cfg.
16896
16897 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16898
16899         * c-common.c: Fix formatting.
16900         * diagnostic.c: Likewise.
16901         * doloop.c: Likewise.
16902         * dwarf2out.c: Likewise.
16903
16904 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16905
16906         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16907         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16908
16909 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16910
16911         * cpperror.c: Update comments and copyright.
16912         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16913         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16914
16915 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16916
16917         * collect2.c (main): Use strcmp when testing for "-shared".
16918
16919 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16920
16921         * cppmacro.c: Don't include intl.h.  Update comments.
16922         (new_number_token): Allocate enough buffer for 64-bit unsigned
16923         integers; update prototype.
16924         * cppmain.c: Update comments.
16925
16926 2002-01-03  William Cohen  <wcohen@redhat.com>
16927
16928         * function.h (struct function): Add profile.
16929         (current_function_profile): New.
16930         doc/extend.texi: Update documentation.
16931         * final.c (final_start_function): Use current_function_profile
16932         instead of profile_flag.
16933         (profile_after_prologue): Likewise.
16934         * function.c (expand_function_start): Likewise.
16935         (expand_function_start): Likewise.
16936         * config/alpha/alpha.c (direct_call_operand):
16937         (alpha_does_function_need_gp): Likewise.
16938         (alpha_expand_prologue): Likewise.
16939         * config/arm/arm.c (arm_expand_prologue): Likewise.
16940         thumb_expand_prologue: Likewise.
16941         * config/d30v/d30v.c (d30v_stack_info): Likewise.
16942         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16943         (fr30_expand_prologue): Likewise.
16944         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16945         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16946         * config/i386/i386.h (FINALIZE_PIC): Likewise.
16947         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16948         * config/i960/i960.c (i960_output_function_prologue): Likewise.
16949         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16950         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16951         (m32r_expand_prologue): Likewise.
16952         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16953         (m88k_expand_prologue): Likewise.
16954         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16955         * config/mips/mips.c (compute_frame_size): Likewise.
16956         (mips_expand_prologue): Likewise.
16957         (mips_can_use_return_insn): Likewise.
16958         * config/pa/elf.h (ASM_FILE_START): Likewise.
16959         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16960         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16961         * config/pa/som.h (ASM_FILE_START): Likewise.
16962         * config/romp/romp.c (romp_using_r14): Likewise.
16963         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16964         (rs6000_stack_info): Likewise.
16965         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16966         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16967         * config/v850/v850.c (compute_register_save_size): Likewise.
16968
16969 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
16970
16971         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16972         gen_lowpart_common fails, use gen_lowpart_SUBREG.
16973
16974 2002-01-03  Turly O'Connor  <turly@apple.com>
16975
16976         * darwin.c (machopic_output_possible_stub_label): Don't generate
16977         stub routines for pseudo-stubs which we've just defined.
16978
16979 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16980
16981         * builtins.c: Fix formatting.
16982         * c-typeck.c: Likewise.
16983         * combine.c: Likewise.
16984         * expr.c: Likewise.
16985         * loop.c: Likewise.
16986
16987 2002-01-03  Andreas Schwab  <schwab@suse.de>
16988
16989         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16990         and return true if _cpp_push_next_buffer pushed a new include
16991         file.
16992         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16993         _cpp_pop_file_buffer did not push a new file.
16994         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16995
16996 2002-01-02  Eric Christopher  <echristo@redhat.com>
16997
16998         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16999         FIND_REG_INC_NOTE call. Update copyright.
17000         * loop.c (canonicalize_condition): Ditto.
17001         * reorg.c (delete_scheduled_jump): Ditto.
17002
17003 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17004
17005         * gcse.c: Fix formatting.
17006
17007 2002-01-03  Graham Stott  <grahams@redhat.com>
17008
17009         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
17010         forward defs for struct tags rtx_def, union_tree, rtvec_def
17011         also output corresponding typedefs for rtx, tree, and rtvec.
17012
17013         * system.h: Move forward defs for struct tags rtx_def, union_tree,
17014         rtvec_def along with corresponding typedefs for rtx, tree, and
17015         rtvec to config.h, hconfig.h, tconfig.h.
17016
17017 2002-01-03  Graham Stott  <grahams@redhat.com>
17018
17019         * tree.h: Update copyright date.
17020         (IS_EXPR_CODE_CLASS): Add parenthesis.
17021         (TREE_SET_CODE): Add whitespace.
17022         (TREE_CHECK): Add parenthesis.
17023         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
17024         (CST_OR_CONSTRUCTOR_CHECK):
17025         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
17026         (TREE_SYMBOL_REFERENCED): Whitespace.
17027         (INT_CST_LT): Likewise.
17028         (INT_CST_LT_UNSIGNED): Likewise.
17029         (tree_real_cst): Unwrap comment.
17030         (tree_string): Likewise.
17031         (tree_complex): Likewise.
17032         (IDENTIFIER_POINTER): correct cast.
17033         (SAVE_EXPR_CONTEXT): Whitespace.
17034         (EXPR_WFL_FILENAME_NODE): Likewise.
17035         (EXPR_WFL_FILENAME): Remove parenthesis.
17036         (DECL_ORIGIN): Add parenthesis.
17037         (DECL_FROM_INLINE): Use NULL_TREE.
17038         (build_int_2): Whitespace.
17039         (build_type_variant): Add parenthesis.
17040
17041         * gcc/jcf-parse.c: Update copyright date.
17042         (yyparse): Constify resource_filename.
17043
17044 2002-01-03  Graham Stott  <grahams@redhat.com>
17045
17046         * rtl.h: Update copyright date.
17047         (RTL_CHECK1): Wrap long line.
17048         (RTL_CHECK2): Likewise.
17049         (RTL_CHECKC1): Wrap long line and whitespace.
17050         (RTL_CHECKC2): Likewise.
17051         (XWINT): Whitespace.
17052         (XINT): Likewise.
17053         (XSTR): Likewise.
17054         (XEXP): Likewise.
17055         (XVEC): Likewise.
17056         (XMODE): Likewise.
17057         (XBITMAP): Likewise.
17058         (XTREE): Likewise.
17059         (XBBDEF): Likewise.
17060         (XTMPL): Likewise.
17061         (X0WINT): Likewise.
17062         (X0INT):Likewise.
17063         (X0UINT): Likewise.
17064         (X0STR): Likewise.
17065         (X0EXP): Likewise.
17066         (X0VEC): Likewise.
17067         (X0MODE): Likewise.
17068         (X0BITMAP): Likewise.
17069         (X0TREE): Likewise.
17070         (X0BBDEF): Likewise.
17071         (X0ADVFLAGS): Likewise.
17072         (X0CSELIB): Likewise.
17073         (X0MEMATTR): Likewise.
17074         (XCWINT): Likewise.
17075         (XCINT): Likewise.
17076         (XCUINT): Likewise.
17077         (XCSTR): Likewise.
17078         (XCEXP): Likewise.
17079         (XCVEC): Likewise.
17080         (XCMODE): Likewise.
17081         (XCBITMAP): Likewise.
17082         (XCTREE): Likewise.
17083         (XCBBDEF): Likewise.
17084         (XCADVFLAGS): Likewise.
17085         (XCCSELIB): Likewise.
17086         (XC2EXP): Likewise.
17087         (INSN_UID): Likewise.
17088         (PREV_INSN): Likewise.
17089         (PATTERN): Likewise.
17090         (INSN_CODE): Likewise.
17091         (PUT_REG_NOTE_KIND): Likewise.
17092         (CODE_LABEL_NUMBER): Likewise.
17093         (NOTE_SOURCE_FILE): Likewise.
17094         (NOTE_BLOCK): Likewise.
17095         (NOTE_EH_HANDLER): Likewise.
17096         (NOTE_RANGE_INFO): Likewise.
17097         (NOTE_LIVE_INFO): Likewise.
17098         (NOTE_BASIC_BLOCK): Likewise.
17099         (NOTE_EXPECTED_VALUE): Likewise.
17100         (NOTE_LINE_NUMBER): Likewise.
17101         (LABEL_NAME): Likewise.
17102         (LABEL_NUSES): Likewise.
17103         (LABEL_ALTERNATE_NAME): Likewise.
17104         (ADDRESSOF_DECL): Likewise.
17105         (JUMP_LABEL): Likewise.
17106         (LABEL_NEXTREF): Likewise.
17107         (REGNO): Likewise.
17108         (ORIGINAL_REGNO: Likewise.
17109         (HARD_REGISTER_NUM_P): Add parenthesis.
17110         (SUBREG_REG): Whitespace.
17111         (SUBREG_BYTE): Likewise.
17112         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17113         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17114         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17115         (ASM_OPERANDS_INPUT_VEC): Likewise.
17116         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17117         (ASM_OPERANDS_INPUT): Likewise.
17118         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17119         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17120         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17121         (ASM_OPERANDS_INPUT_MODE): Likewise.
17122         (ASM_OPERANDS_SOURCE_FILE): Likewise.
17123         (ASM_OPERANDS_SOURCE_LINE): Likewise.
17124         (MEM_SET_IN_STRUCT_P): Minor reformat.
17125         (TRAP_CONDITION): Whitespace.
17126         (TRAP_CODE): Likewise.
17127         (COND_EXEC_TEST): Likewise.
17128         (COND_EXEC_CODE): Likewise.
17129         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17130         (PHI_NODE_P): Add parenthesis.
17131         (plus_constant): Whitespace and add parenthesis.
17132
17133 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17134
17135         * config/avr/avr.c: Fix comment typos.
17136         * config/c4x/c4x.md: Likewise.
17137         * config/dsp16xx/dsp16xx.h: Likewise.
17138         * config/dsp16xx/dsp16xx.md: Likewise.
17139         * config/i386/i386.md: Likewise.
17140         * config/ia64/ia64.c: Likewise.
17141         * config/m32r/m32r.h: Likewise.
17142         * config/m68hc11/m68hc11.md: Likewise.
17143         * config/mmix/mmix.c: Likewise.
17144         * config/mn10200/mn10200.c: Likewise.
17145         * config/romp/romp.c: Likewise.
17146         * config/sh/sh.c: Likewise.
17147         * config/stormy16/stormy16.c: Likewise.
17148         * config/stormy16/stormy16.h: Likewise.
17149         * config/stormy16/stormy16.md: Likewise.
17150
17151 2002-01-03  Graham Stott  <grahams@redhat.com>
17152
17153         * loop.h: Update copyright date.
17154         (LOOP_MOVABLES): Fix typo.
17155         (LOOP_REGS): Likewise.
17156         (LOOP_IVS): Likewise.
17157
17158 2002-01-03  Graham Stott  <grahams@redhat.com>
17159
17160         * cppinit.c: Update copyright date.
17161         Don't include output.h
17162         * Makefile.in: Update copyright date.
17163         Update dependency.
17164
17165 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17166
17167         PR c/5226
17168         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17169         (-pthread) Add to RS/6000 options.
17170
17171 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17172
17173         * except.c: Fix comment typos.
17174         * loop.c: Likewise.
17175         * varasm.c: Likewise.
17176         * doc/tm.texi: Fix a typo.
17177
17178 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
17179
17180         * c-typeck.c (output_init_element): Allow initializing static storage
17181         duration objects with compound literals.
17182
17183 2002-01-02  Richard Henderson  <rth@redhat.com>
17184
17185         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17186         after abusing it.
17187
17188 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17189
17190         * gcc.c (default_compilers): Const-ify.
17191         * mips-tdump.c (stab_names): Likewise.
17192         * mips-tfile.c (map_coff_types, map_coff_storage,
17193         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17194         pseudo_ops_t, pseudo_ops): Likewise.
17195         * protoize.c (default_include): Likewise
17196
17197         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17198         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17199         Add array size in declaration.
17200         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17201         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17202         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17203         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17204         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17205         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17206         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17207         emtens, make_nan): Const-ify.
17208         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17209         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17210
17211 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
17212
17213         * config.gcc (ia64-*-*): Set extra_headers.
17214         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
17215         * config/alpha/t-osf: Remove.
17216         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17217
17218 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
17219
17220         * config/rs6000/t-aix43: Revert previous change.
17221
17222 2002-01-02  Jason Merrill  <jason@redhat.com>
17223
17224         * c-decl.c (c_expand_body): Call outlining_inline_function when
17225         emitting an inline function out of line.
17226
17227 2002-01-02  Richard Henderson  <rth@redhat.com>
17228
17229         * dwarf2out.c (limbo_die_node): Add created_for member.
17230         (new_die): New argument created_for.  Update all callers.
17231         (mark_limbo_die_list): New.
17232         (dwarf2out_init): Register limbo_die_list as a root.
17233         (dwarf2out_finish): Force insert limbo dies into their function
17234         context.
17235
17236 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
17237
17238         PR c++/5089
17239         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17240
17241 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17242
17243         * config/h8300/fixunssfsi.c: Update copyright.
17244         Fix comment typos.
17245         Fix formatting.
17246         * config/h8300/h8300.c: Update copyright.
17247         Eliminate warnings.
17248
17249 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17250
17251         * config/romp/romp.c: Fix comment formatting.
17252         * config/romp/romp.h: Likewise.
17253         * config/romp/romp.md: Likewise.
17254         * config/s390/s390.c: Likewise.
17255         * config/stormy16/stormy16.c: Likewise.
17256         * config/stormy16/stormy16.h: Likewise.
17257
17258 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
17259
17260         * c-common.h (genrtl_expr_stmt_value): Declare.
17261         * c-semantics.c (genrtl_goto_stmt): Redirect to...
17262         (genrtl_goto_stmt_value): ... this new function.  Pass new
17263         argument down to expand_expr_stmt_value, taking
17264         TREE_ADDRESSABLE into account.
17265         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17266         STMT_EXPR as addressable, i.e., one whose result we want.
17267         * expr.c (expand_expr): Don't save expression statement value
17268         of labeled_blocks or loop_exprs.
17269         * stmt.c (expand_expr_stmt): Redirect to...
17270         (expand_expr_stmt_value): ... this new function.  Use new
17271         argument to tell whether to save expression value.
17272         (expand_end_stmt_expr): Reset last_expr_type and
17273         last_expr_value if we don't have either.
17274         * tree-inline.c (declare_return_variable): Mark its use
17275         statement as addressable.
17276         * tree.h: Document new use of TREE_ADDRESSABLE.
17277         (expand_expr_stmt_value): Declare.
17278
17279 2002-01-01  Tom Rix  <trix@redhat.com>
17280
17281         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17282         rs6000_emit_allocate_stack.
17283
17284 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
17285
17286         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17287         ${srcdir}/ginclude/ to every entry in extra_headers.
17288         * configure: Regenerate.
17289         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17290         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17291         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17292         * ginclude/proto.h: Rename to config/convex/proto.h.
17293
17294 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17295
17296         * attribs.c (handle_vector_size_attribute): Use host_integerp
17297         and tree_int_cst; remove warnings.
17298         * caller-save.c (insert_restore): Add cast to get rid of warning.
17299         (insert_save): Likewise.
17300         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17301         * regmove.c (find_matches): Add temporary var to kill a warning.
17302
17303 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
17304
17305         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17306         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17307         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17308         (vms-dwarf2eh.o): Add Makefile rule.
17309         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17310         * config/alpha/vms-dwarf2eh.asm: New file.
17311
17312         * gcc.c (delete_if_ordinary): Delete all versions.
17313
17314 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
17315
17316         * config/mmix/mmix.md: Update FIXME to not mention
17317         define_constants.
17318         (MMIX_rJ_REGNUM): New define_constants constant.
17319         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17320         "*movdicc_real"): Adjust contraints formatting.
17321         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17322         for branch prediction.
17323         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17324         output template.
17325         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17326         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17327         number.  Delete related FIXMEs.
17328         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17329         from number to MMIX_rJ_REGNUM.
17330         (TARGET_MASK_BRANCH_PREDICT): New.
17331         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17332         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
17333         value.  Add -mbranch-predict and -mno-branch-predict.
17334         (TARGET_VERSION): Drop date.
17335         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17336         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17337         for finding out global symbols.
17338         (mmix_asm_output_labelref): Revert condition for global symbol.
17339         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17340         (mmix_print_operand_punct_valid_p): A '+' is valid.
17341
17342 See ChangeLog.6 for earlier changes.